generated-configure.sh revision 1012:f5cdb85738ca
1#!/bin/bash
2#
3# ##########################################################
4# ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
5# ##########################################################
6#
7#! /bin/sh
8# Guess values for system-dependent variables and create Makefiles.
9# Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
10#
11# Report bugs to <build-dev@openjdk.java.net>.
12#
13#
14# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
15#
16#
17# This configure script is free software; the Free Software Foundation
18# gives unlimited permission to copy, distribute and modify it.
19## -------------------- ##
20## M4sh Initialization. ##
21## -------------------- ##
22
23# Be more Bourne compatible
24DUALCASE=1; export DUALCASE # for MKS sh
25if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26  emulate sh
27  NULLCMD=:
28  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29  # is contrary to our usage.  Disable this feature.
30  alias -g '${1+"$@"}'='"$@"'
31  setopt NO_GLOB_SUBST
32else
33  case `(set -o) 2>/dev/null` in #(
34  *posix*) :
35    set -o posix ;; #(
36  *) :
37     ;;
38esac
39fi
40
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49# Prefer a ksh shell builtin over an external printf program on Solaris,
50# but without wasting forks for bash or zsh.
51if test -z "$BASH_VERSION$ZSH_VERSION" \
52    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53  as_echo='print -r --'
54  as_echo_n='print -rn --'
55elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56  as_echo='printf %s\n'
57  as_echo_n='printf %s'
58else
59  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61    as_echo_n='/usr/ucb/echo -n'
62  else
63    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64    as_echo_n_body='eval
65      arg=$1;
66      case $arg in #(
67      *"$as_nl"*)
68	expr "X$arg" : "X\\(.*\\)$as_nl";
69	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70      esac;
71      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72    '
73    export as_echo_n_body
74    as_echo_n='sh -c $as_echo_n_body as_echo'
75  fi
76  export as_echo_body
77  as_echo='sh -c $as_echo_body as_echo'
78fi
79
80# The user is always right.
81if test "${PATH_SEPARATOR+set}" != set; then
82  PATH_SEPARATOR=:
83  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85      PATH_SEPARATOR=';'
86  }
87fi
88
89
90# IFS
91# We need space, tab and new line, in precisely that order.  Quoting is
92# there to prevent editors from complaining about space-tab.
93# (If _AS_PATH_WALK were called with IFS unset, it would disable word
94# splitting by setting IFS to empty value.)
95IFS=" ""	$as_nl"
96
97# Find who we are.  Look in the path if we contain no directory separator.
98as_myself=
99case $0 in #((
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107  done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  exit 1
120fi
121
122# Unset variables that we do not need and which cause bugs (e.g. in
123# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
124# suppresses any "Segmentation fault" message there.  '((' could
125# trigger a bug in pdksh 5.2.14.
126for as_var in BASH_ENV ENV MAIL MAILPATH
127do eval test x\${$as_var+set} = xset \
128  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
129done
130PS1='$ '
131PS2='> '
132PS4='+ '
133
134# NLS nuisances.
135LC_ALL=C
136export LC_ALL
137LANGUAGE=C
138export LANGUAGE
139
140# CDPATH.
141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142
143# Use a proper internal environment variable to ensure we don't fall
144  # into an infinite loop, continuously re-executing ourselves.
145  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
146    _as_can_reexec=no; export _as_can_reexec;
147    # We cannot yet assume a decent shell, so we have to provide a
148# neutralization value for shells without unset; and this also
149# works around shells that cannot unset nonexistent variables.
150# Preserve -v and -x to the replacement shell.
151BASH_ENV=/dev/null
152ENV=/dev/null
153(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
154case $- in # ((((
155  *v*x* | *x*v* ) as_opts=-vx ;;
156  *v* ) as_opts=-v ;;
157  *x* ) as_opts=-x ;;
158  * ) as_opts= ;;
159esac
160exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
161# Admittedly, this is quite paranoid, since all the known shells bail
162# out after a failed `exec'.
163$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
164as_fn_exit 255
165  fi
166  # We don't want this to propagate to other subprocesses.
167          { _as_can_reexec=; unset _as_can_reexec;}
168if test "x$CONFIG_SHELL" = x; then
169  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
170  emulate sh
171  NULLCMD=:
172  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
173  # is contrary to our usage.  Disable this feature.
174  alias -g '\${1+\"\$@\"}'='\"\$@\"'
175  setopt NO_GLOB_SUBST
176else
177  case \`(set -o) 2>/dev/null\` in #(
178  *posix*) :
179    set -o posix ;; #(
180  *) :
181     ;;
182esac
183fi
184"
185  as_required="as_fn_return () { (exit \$1); }
186as_fn_success () { as_fn_return 0; }
187as_fn_failure () { as_fn_return 1; }
188as_fn_ret_success () { return 0; }
189as_fn_ret_failure () { return 1; }
190
191exitcode=0
192as_fn_success || { exitcode=1; echo as_fn_success failed.; }
193as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
194as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
195as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
196if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
197
198else
199  exitcode=1; echo positional parameters were not saved.
200fi
201test x\$exitcode = x0 || exit 1
202test -x / || exit 1"
203  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
204  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
205  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
206  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org and
276$0: build-dev@openjdk.java.net about your system, including
277$0: any error possibly output before this message. Then
278$0: install a modern shell, or manually run the script
279$0: under such a shell if you do have one."
280  fi
281  exit 1
282fi
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303# as_fn_set_status STATUS
304# -----------------------
305# Set $? to STATUS, without forking.
306as_fn_set_status ()
307{
308  return $1
309} # as_fn_set_status
310
311# as_fn_exit STATUS
312# -----------------
313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314as_fn_exit ()
315{
316  set +e
317  as_fn_set_status $1
318  exit $1
319} # as_fn_exit
320
321# as_fn_mkdir_p
322# -------------
323# Create "$as_dir" as a directory, including parents if necessary.
324as_fn_mkdir_p ()
325{
326
327  case $as_dir in #(
328  -*) as_dir=./$as_dir;;
329  esac
330  test -d "$as_dir" || eval $as_mkdir_p || {
331    as_dirs=
332    while :; do
333      case $as_dir in #(
334      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335      *) as_qdir=$as_dir;;
336      esac
337      as_dirs="'$as_qdir' $as_dirs"
338      as_dir=`$as_dirname -- "$as_dir" ||
339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340	 X"$as_dir" : 'X\(//\)[^/]' \| \
341	 X"$as_dir" : 'X\(//\)$' \| \
342	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343$as_echo X"$as_dir" |
344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345	    s//\1/
346	    q
347	  }
348	  /^X\(\/\/\)[^/].*/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)$/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\).*/{
357	    s//\1/
358	    q
359	  }
360	  s/.*/./; q'`
361      test -d "$as_dir" && break
362    done
363    test -z "$as_dirs" || eval "mkdir $as_dirs"
364  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367} # as_fn_mkdir_p
368
369# as_fn_executable_p FILE
370# -----------------------
371# Test if FILE is an executable regular file.
372as_fn_executable_p ()
373{
374  test -f "$1" && test -x "$1"
375} # as_fn_executable_p
376# as_fn_append VAR VALUE
377# ----------------------
378# Append the text in VALUE to the end of the definition contained in VAR. Take
379# advantage of any shell optimizations that allow amortized linear growth over
380# repeated appends, instead of the typical quadratic growth present in naive
381# implementations.
382if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
383  eval 'as_fn_append ()
384  {
385    eval $1+=\$2
386  }'
387else
388  as_fn_append ()
389  {
390    eval $1=\$$1\$2
391  }
392fi # as_fn_append
393
394# as_fn_arith ARG...
395# ------------------
396# Perform arithmetic evaluation on the ARGs, and store the result in the
397# global $as_val. Take advantage of shells that can avoid forks. The arguments
398# must be portable across $(()) and expr.
399if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
400  eval 'as_fn_arith ()
401  {
402    as_val=$(( $* ))
403  }'
404else
405  as_fn_arith ()
406  {
407    as_val=`expr "$@" || test $? -eq 1`
408  }
409fi # as_fn_arith
410
411
412# as_fn_error STATUS ERROR [LINENO LOG_FD]
413# ----------------------------------------
414# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416# script with STATUS, using 1 if that was 0.
417as_fn_error ()
418{
419  as_status=$1; test $as_status -eq 0 && as_status=1
420  if test "$4"; then
421    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423  fi
424  $as_echo "$as_me: error: $2" >&2
425  as_fn_exit $as_status
426} # as_fn_error
427
428if expr a : '\(a\)' >/dev/null 2>&1 &&
429   test "X`expr 00001 : '.*\(...\)'`" = X001; then
430  as_expr=expr
431else
432  as_expr=false
433fi
434
435if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436  as_basename=basename
437else
438  as_basename=false
439fi
440
441if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442  as_dirname=dirname
443else
444  as_dirname=false
445fi
446
447as_me=`$as_basename -- "$0" ||
448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449	 X"$0" : 'X\(//\)$' \| \
450	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451$as_echo X/"$0" |
452    sed '/^.*\/\([^/][^/]*\)\/*$/{
453	    s//\1/
454	    q
455	  }
456	  /^X\/\(\/\/\)$/{
457	    s//\1/
458	    q
459	  }
460	  /^X\/\(\/\).*/{
461	    s//\1/
462	    q
463	  }
464	  s/.*/./; q'`
465
466# Avoid depending upon Character Ranges.
467as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470as_cr_digits='0123456789'
471as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474  as_lineno_1=$LINENO as_lineno_1a=$LINENO
475  as_lineno_2=$LINENO as_lineno_2a=$LINENO
476  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
479  sed -n '
480    p
481    /[$]LINENO/=
482  ' <$as_myself |
483    sed '
484      s/[$]LINENO.*/&-/
485      t lineno
486      b
487      :lineno
488      N
489      :loop
490      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
491      t loop
492      s/-\n.*//
493    ' >$as_me.lineno &&
494  chmod +x "$as_me.lineno" ||
495    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
497  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
498  # already done that, so ensure we don't try to do so again and fall
499  # in an infinite loop.  This has already happened in practice.
500  _as_can_reexec=no; export _as_can_reexec
501  # Don't try to exec as it changes $[0], causing all sort of problems
502  # (the dirname of $[0] is not the place where we might find the
503  # original and so on.  Autoconf is especially sensitive to this).
504  . "./$as_me.lineno"
505  # Exit status is that of the last command.
506  exit
507}
508
509ECHO_C= ECHO_N= ECHO_T=
510case `echo -n x` in #(((((
511-n*)
512  case `echo 'xy\c'` in
513  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
514  xy)  ECHO_C='\c';;
515  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
516       ECHO_T='	';;
517  esac;;
518*)
519  ECHO_N='-n';;
520esac
521
522rm -f conf$$ conf$$.exe conf$$.file
523if test -d conf$$.dir; then
524  rm -f conf$$.dir/conf$$.file
525else
526  rm -f conf$$.dir
527  mkdir conf$$.dir 2>/dev/null
528fi
529if (echo >conf$$.file) 2>/dev/null; then
530  if ln -s conf$$.file conf$$ 2>/dev/null; then
531    as_ln_s='ln -s'
532    # ... but there are two gotchas:
533    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
534    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
535    # In both cases, we have to default to `cp -pR'.
536    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537      as_ln_s='cp -pR'
538  elif ln conf$$.file conf$$ 2>/dev/null; then
539    as_ln_s=ln
540  else
541    as_ln_s='cp -pR'
542  fi
543else
544  as_ln_s='cp -pR'
545fi
546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547rmdir conf$$.dir 2>/dev/null
548
549if mkdir -p . 2>/dev/null; then
550  as_mkdir_p='mkdir -p "$as_dir"'
551else
552  test -d ./-p && rmdir ./-p
553  as_mkdir_p=false
554fi
555
556as_test_x='test -x'
557as_executable_p=as_fn_executable_p
558
559# Sed expression to map a string onto a valid CPP name.
560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
562# Sed expression to map a string onto a valid variable name.
563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
565
566test -n "$DJDIR" || exec 7<&0 </dev/null
567exec 6>&1
568
569# Name of the host.
570# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
571# so uname gets run too.
572ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573
574#
575# Initializations.
576#
577ac_default_prefix=/usr/local
578ac_clean_files=
579ac_config_libobj_dir=.
580LIBOBJS=
581cross_compiling=no
582subdirs=
583MFLAGS=
584MAKEFLAGS=
585
586# Identity of this package.
587PACKAGE_NAME='OpenJDK'
588PACKAGE_TARNAME='openjdk'
589PACKAGE_VERSION='jdk9'
590PACKAGE_STRING='OpenJDK jdk9'
591PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
592PACKAGE_URL='http://openjdk.java.net'
593
594# Factoring default headers for most tests.
595ac_includes_default="\
596#include <stdio.h>
597#ifdef HAVE_SYS_TYPES_H
598# include <sys/types.h>
599#endif
600#ifdef HAVE_SYS_STAT_H
601# include <sys/stat.h>
602#endif
603#ifdef STDC_HEADERS
604# include <stdlib.h>
605# include <stddef.h>
606#else
607# ifdef HAVE_STDLIB_H
608#  include <stdlib.h>
609# endif
610#endif
611#ifdef HAVE_STRING_H
612# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613#  include <memory.h>
614# endif
615# include <string.h>
616#endif
617#ifdef HAVE_STRINGS_H
618# include <strings.h>
619#endif
620#ifdef HAVE_INTTYPES_H
621# include <inttypes.h>
622#endif
623#ifdef HAVE_STDINT_H
624# include <stdint.h>
625#endif
626#ifdef HAVE_UNISTD_H
627# include <unistd.h>
628#endif"
629
630ac_subst_vars='LTLIBOBJS
631LIBOBJS
632CCACHE
633USE_PRECOMPILED_HEADER
634SJAVAC_SERVER_DIR
635ENABLE_SJAVAC
636SJAVAC_SERVER_JAVA
637JOBS
638MEMORY_SIZE
639NUM_CORES
640ENABLE_INTREE_EC
641SALIB_NAME
642HOTSPOT_MAKE_ARGS
643MSVCR_DLL
644LIBCXX
645LLVM_LIBS
646LLVM_LDFLAGS
647LLVM_CFLAGS
648LLVM_CONFIG
649LIBFFI_LIBS
650LIBFFI_CFLAGS
651STATIC_CXX_SETTING
652LIBDL
653LIBM
654LIBZIP_CAN_USE_MMAP
655USE_EXTERNAL_LIBZ
656USE_EXTERNAL_LIBPNG
657PNG_LIBS
658PNG_CFLAGS
659USE_EXTERNAL_LIBGIF
660USE_EXTERNAL_LIBJPEG
661ALSA_LIBS
662ALSA_CFLAGS
663FREETYPE_BUNDLE_LIB_PATH
664FREETYPE_LIBS
665FREETYPE_CFLAGS
666CUPS_CFLAGS
667X_EXTRA_LIBS
668X_LIBS
669X_PRE_LIBS
670X_CFLAGS
671XMKMF
672FIXPATH
673ZIP_DEBUGINFO_FILES
674ENABLE_DEBUG_SYMBOLS
675CFLAGS_WARNINGS_ARE_ERRORS
676COMPILER_SUPPORTS_TARGET_BITS_FLAG
677ZERO_ARCHFLAG
678LDFLAGS_CXX_JDK
679LDFLAGS_JDKEXE_SUFFIX
680LDFLAGS_JDKLIB_SUFFIX
681LDFLAGS_JDKEXE
682LDFLAGS_JDKLIB
683CXXFLAGS_JDKEXE
684CXXFLAGS_JDKLIB
685CFLAGS_JDKEXE
686CFLAGS_JDKLIB
687MACOSX_VERSION_MIN
688LEGACY_EXTRA_LDFLAGS
689LEGACY_EXTRA_CXXFLAGS
690LEGACY_EXTRA_CFLAGS
691CXX_O_FLAG_NONE
692CXX_O_FLAG_NORM
693CXX_O_FLAG_HI
694CXX_O_FLAG_HIGHEST
695C_O_FLAG_NONE
696C_O_FLAG_NORM
697C_O_FLAG_HI
698C_O_FLAG_HIGHEST
699CXXFLAGS_DEBUG_SYMBOLS
700CFLAGS_DEBUG_SYMBOLS
701CXX_FLAG_DEPS
702C_FLAG_DEPS
703SET_SHARED_LIBRARY_MAPFILE
704SET_SHARED_LIBRARY_NAME
705SET_SHARED_LIBRARY_ORIGIN
706SET_EXECUTABLE_ORIGIN
707SHARED_LIBRARY_FLAGS
708CXX_FLAG_REORDER
709C_FLAG_REORDER
710SYSROOT_LDFLAGS
711SYSROOT_CFLAGS
712RC_FLAGS
713AR_OUT_OPTION
714LD_OUT_OPTION
715EXE_OUT_OPTION
716CC_OUT_OPTION
717POST_MCS_CMD
718POST_STRIP_CMD
719ARFLAGS
720COMPILER_TARGET_BITS_FLAG
721JT_HOME
722JTREGEXE
723USING_BROKEN_SUSE_LD
724PACKAGE_PATH
725LDEXECXX
726LDEXE
727USE_CLANG
728HOTSPOT_LD
729HOTSPOT_CXX
730HOTSPOT_RC
731HOTSPOT_MT
732BUILD_LD
733BUILD_CXX
734BUILD_CC
735ac_ct_OBJDUMP
736OBJDUMP
737ac_ct_OBJCOPY
738OBJCOPY
739ac_ct_NM
740ac_ct_STRIP
741MCS
742GNM
743NM
744STRIP
745DUMPBIN
746RC
747MT
748LIPO
749ac_ct_OBJC
750OBJCFLAGS
751OBJC
752ac_ct_AR
753AR
754AS
755LDCXX
756LD
757CXXCPP
758CPP
759ac_ct_CXX
760CXXFLAGS
761CXX
762ac_ct_PROPER_COMPILER_CXX
763PROPER_COMPILER_CXX
764TOOLCHAIN_PATH_CXX
765POTENTIAL_CXX
766OBJEXT
767EXEEXT
768ac_ct_CC
769CPPFLAGS
770LDFLAGS
771CFLAGS
772CC
773ac_ct_PROPER_COMPILER_CC
774PROPER_COMPILER_CC
775TOOLCHAIN_PATH_CC
776POTENTIAL_CC
777VS_LIB
778VS_INCLUDE
779VS_PATH
780CYGWIN_LINK
781EXE_SUFFIX
782OBJ_SUFFIX
783STATIC_LIBRARY
784SHARED_LIBRARY
785STATIC_LIBRARY_SUFFIX
786SHARED_LIBRARY_SUFFIX
787LIBRARY_PREFIX
788TOOLCHAIN_TYPE
789BUILD_HOTSPOT
790HOTSPOT_DIST
791BUILD_OUTPUT
792OVERRIDE_SRC_ROOT
793ADD_SRC_ROOT
794JDK_TOPDIR
795NASHORN_TOPDIR
796HOTSPOT_TOPDIR
797JAXWS_TOPDIR
798JAXP_TOPDIR
799CORBA_TOPDIR
800LANGTOOLS_TOPDIR
801JAVA_FLAGS_SMALL
802JAVA_FLAGS_BIG
803JAVA_FLAGS
804JAVAC_FLAGS
805BOOT_JDK_SOURCETARGET
806JARSIGNER
807NATIVE2ASCII
808JAR
809JAVAH
810JAVAC
811JAVA
812BOOT_JDK
813BOOT_TOOLSJAR
814BOOT_RTJAR
815JAVA_CHECK
816JAVAC_CHECK
817COOKED_BUILD_NUMBER
818JDK_VERSION
819COPYRIGHT_YEAR
820MACOSX_BUNDLE_ID_BASE
821MACOSX_BUNDLE_NAME_BASE
822COMPANY_NAME
823JDK_RC_PLATFORM_NAME
824PRODUCT_SUFFIX
825PRODUCT_NAME
826LAUNCHER_NAME
827MILESTONE
828JDK_BUILD_NUMBER
829JDK_UPDATE_VERSION
830JDK_MICRO_VERSION
831JDK_MINOR_VERSION
832JDK_MAJOR_VERSION
833USER_RELEASE_SUFFIX
834COMPRESS_JARS
835RMICONNECTOR_IIOP
836UNLIMITED_CRYPTO
837CACERTS_FILE
838TEST_IN_BUILD
839BUILD_HEADLESS
840SUPPORT_HEADFUL
841SUPPORT_HEADLESS
842BDEPS_FTP
843BDEPS_UNZIP
844OS_VERSION_MICRO
845OS_VERSION_MINOR
846OS_VERSION_MAJOR
847PKG_CONFIG
848CODESIGN
849XATTR
850DSYMUTIL
851IS_GNU_TIME
852TIME
853STAT
854HG
855READELF
856OTOOL
857LDD
858ZIP
859UNZIP
860FIND_DELETE
861MAKE
862CHECK_TOOLSDIR_MAKE
863CHECK_TOOLSDIR_GMAKE
864CHECK_MAKE
865CHECK_GMAKE
866PKGHANDLER
867OUTPUT_ROOT
868CONF_NAME
869SPEC
870BUILD_VARIANT_RELEASE
871DEBUG_CLASSFILES
872FASTDEBUG
873VARIANT
874DEBUG_LEVEL
875MACOSX_UNIVERSAL
876INCLUDE_SA
877JVM_VARIANT_CORE
878JVM_VARIANT_ZEROSHARK
879JVM_VARIANT_ZERO
880JVM_VARIANT_KERNEL
881JVM_VARIANT_MINIMAL1
882JVM_VARIANT_CLIENT
883JVM_VARIANT_SERVER
884JVM_VARIANTS
885JVM_INTERPRETER
886JDK_VARIANT
887SET_OPENJDK
888BUILD_LOG_WRAPPER
889BUILD_LOG_PREVIOUS
890BUILD_LOG
891TOPDIR
892PATH_SEP
893ZERO_ARCHDEF
894DEFINE_CROSS_COMPILE_ARCH
895LP64
896OPENJDK_TARGET_OS_EXPORT_DIR
897OPENJDK_TARGET_OS_API_DIR
898OPENJDK_TARGET_CPU_JLI_CFLAGS
899OPENJDK_TARGET_CPU_OSARCH
900OPENJDK_TARGET_CPU_ISADIR
901OPENJDK_TARGET_CPU_LIBDIR
902OPENJDK_TARGET_CPU_LEGACY_LIB
903OPENJDK_TARGET_CPU_LEGACY
904REQUIRED_OS_VERSION
905REQUIRED_OS_NAME
906COMPILE_TYPE
907OPENJDK_TARGET_CPU_ENDIAN
908OPENJDK_TARGET_CPU_BITS
909OPENJDK_TARGET_CPU_ARCH
910OPENJDK_TARGET_CPU
911OPENJDK_TARGET_OS_API
912OPENJDK_TARGET_OS
913OPENJDK_BUILD_CPU_ENDIAN
914OPENJDK_BUILD_CPU_BITS
915OPENJDK_BUILD_CPU_ARCH
916OPENJDK_BUILD_CPU
917OPENJDK_BUILD_OS_API
918OPENJDK_BUILD_OS
919OPENJDK_BUILD_AUTOCONF_NAME
920OPENJDK_TARGET_AUTOCONF_NAME
921target_os
922target_vendor
923target_cpu
924target
925host_os
926host_vendor
927host_cpu
928host
929build_os
930build_vendor
931build_cpu
932build
933SETFILE
934DF
935READLINK
936CYGPATH
937SED
938FGREP
939EGREP
940GREP
941AWK
942XARGS
943WHICH
944WC
945UNIQ
946UNAME
947TR
948TOUCH
949TEE
950TAR
951TAIL
952SORT
953SH
954RM
955PRINTF
956NAWK
957MV
958MKTEMP
959MKDIR
960LS
961LN
962HEAD
963FIND
964FILE
965EXPR
966ECHO
967DIRNAME
968DIFF
969DATE
970CUT
971CPIO
972CP
973COMM
974CMP
975CHMOD
976CAT
977BASH
978BASENAME
979DATE_WHEN_CONFIGURED
980CONFIGURE_COMMAND_LINE
981target_alias
982host_alias
983build_alias
984LIBS
985ECHO_T
986ECHO_N
987ECHO_C
988DEFS
989mandir
990localedir
991libdir
992psdir
993pdfdir
994dvidir
995htmldir
996infodir
997docdir
998oldincludedir
999includedir
1000localstatedir
1001sharedstatedir
1002sysconfdir
1003datadir
1004datarootdir
1005libexecdir
1006sbindir
1007bindir
1008program_transform_name
1009prefix
1010exec_prefix
1011PACKAGE_URL
1012PACKAGE_BUGREPORT
1013PACKAGE_STRING
1014PACKAGE_VERSION
1015PACKAGE_TARNAME
1016PACKAGE_NAME
1017PATH_SEPARATOR
1018SHELL'
1019ac_subst_files=''
1020ac_user_opts='
1021enable_option_checking
1022with_target_bits
1023enable_openjdk_only
1024with_custom_make_dir
1025with_jdk_variant
1026with_jvm_interpreter
1027with_jvm_variants
1028enable_debug
1029with_debug_level
1030with_devkit
1031with_sys_root
1032with_sysroot
1033with_tools_dir
1034with_toolchain_path
1035with_extra_path
1036with_conf_name
1037with_builddeps_conf
1038with_builddeps_server
1039with_builddeps_dir
1040with_builddeps_group
1041enable_headful
1042enable_hotspot_test_in_build
1043with_cacerts_file
1044enable_unlimited_crypto
1045enable_rmiconnector_iiop
1046with_milestone
1047with_update_version
1048with_user_release_suffix
1049with_build_number
1050with_boot_jdk
1051with_boot_jdk_jvmargs
1052with_add_source_root
1053with_override_source_root
1054with_adds_and_overrides
1055with_override_langtools
1056with_override_corba
1057with_override_jaxp
1058with_override_jaxws
1059with_override_hotspot
1060with_override_nashorn
1061with_override_jdk
1062with_import_hotspot
1063with_toolchain_type
1064with_jtreg
1065with_extra_cflags
1066with_extra_cxxflags
1067with_extra_ldflags
1068enable_debug_symbols
1069enable_zip_debug_info
1070enable_macosx_runtime_support
1071with_x
1072with_cups
1073with_cups_include
1074with_freetype
1075with_freetype_include
1076with_freetype_lib
1077enable_freetype_bundling
1078with_alsa
1079with_alsa_include
1080with_alsa_lib
1081with_giflib
1082with_libpng
1083with_zlib
1084with_stdc__lib
1085with_msvcr_dll
1086with_dxsdk
1087with_dxsdk_lib
1088with_dxsdk_include
1089with_num_cores
1090with_memory_size
1091with_jobs
1092with_sjavac_server_java
1093enable_sjavac
1094enable_precompiled_headers
1095enable_ccache
1096with_ccache_dir
1097'
1098      ac_precious_vars='build_alias
1099host_alias
1100target_alias
1101BASENAME
1102BASH
1103CAT
1104CHMOD
1105CMP
1106COMM
1107CP
1108CPIO
1109CUT
1110DATE
1111DIFF
1112DIRNAME
1113ECHO
1114EXPR
1115FILE
1116FIND
1117HEAD
1118LN
1119LS
1120MKDIR
1121MKTEMP
1122MV
1123NAWK
1124PRINTF
1125RM
1126SH
1127SORT
1128TAIL
1129TAR
1130TEE
1131TOUCH
1132TR
1133UNAME
1134UNIQ
1135WC
1136WHICH
1137XARGS
1138AWK
1139GREP
1140EGREP
1141FGREP
1142SED
1143CYGPATH
1144READLINK
1145DF
1146SETFILE
1147UNZIP
1148ZIP
1149LDD
1150OTOOL
1151READELF
1152HG
1153STAT
1154TIME
1155DSYMUTIL
1156XATTR
1157CODESIGN
1158PKG_CONFIG
1159JAVA
1160JAVAC
1161JAVAH
1162JAR
1163NATIVE2ASCII
1164JARSIGNER
1165CC
1166CFLAGS
1167LDFLAGS
1168LIBS
1169CPPFLAGS
1170CXX
1171CXXFLAGS
1172CCC
1173CPP
1174CXXCPP
1175AS
1176AR
1177OBJC
1178OBJCFLAGS
1179LIPO
1180STRIP
1181NM
1182GNM
1183MCS
1184OBJCOPY
1185OBJDUMP
1186BUILD_CC
1187BUILD_CXX
1188BUILD_LD
1189JTREGEXE
1190XMKMF
1191FREETYPE_CFLAGS
1192FREETYPE_LIBS
1193ALSA_CFLAGS
1194ALSA_LIBS
1195PNG_CFLAGS
1196PNG_LIBS
1197LIBFFI_CFLAGS
1198LIBFFI_LIBS
1199CCACHE'
1200
1201
1202# Initialize some variables set by options.
1203ac_init_help=
1204ac_init_version=false
1205ac_unrecognized_opts=
1206ac_unrecognized_sep=
1207# The variables have the same names as the options, with
1208# dashes changed to underlines.
1209cache_file=/dev/null
1210exec_prefix=NONE
1211no_create=
1212no_recursion=
1213prefix=NONE
1214program_prefix=NONE
1215program_suffix=NONE
1216program_transform_name=s,x,x,
1217silent=
1218site=
1219srcdir=
1220verbose=
1221x_includes=NONE
1222x_libraries=NONE
1223
1224# Installation directory options.
1225# These are left unexpanded so users can "make install exec_prefix=/foo"
1226# and all the variables that are supposed to be based on exec_prefix
1227# by default will actually change.
1228# Use braces instead of parens because sh, perl, etc. also accept them.
1229# (The list follows the same order as the GNU Coding Standards.)
1230bindir='${exec_prefix}/bin'
1231sbindir='${exec_prefix}/sbin'
1232libexecdir='${exec_prefix}/libexec'
1233datarootdir='${prefix}/share'
1234datadir='${datarootdir}'
1235sysconfdir='${prefix}/etc'
1236sharedstatedir='${prefix}/com'
1237localstatedir='${prefix}/var'
1238includedir='${prefix}/include'
1239oldincludedir='/usr/include'
1240docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1241infodir='${datarootdir}/info'
1242htmldir='${docdir}'
1243dvidir='${docdir}'
1244pdfdir='${docdir}'
1245psdir='${docdir}'
1246libdir='${exec_prefix}/lib'
1247localedir='${datarootdir}/locale'
1248mandir='${datarootdir}/man'
1249
1250ac_prev=
1251ac_dashdash=
1252for ac_option
1253do
1254  # If the previous option needs an argument, assign it.
1255  if test -n "$ac_prev"; then
1256    eval $ac_prev=\$ac_option
1257    ac_prev=
1258    continue
1259  fi
1260
1261  case $ac_option in
1262  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1263  *=)   ac_optarg= ;;
1264  *)    ac_optarg=yes ;;
1265  esac
1266
1267  # Accept the important Cygnus configure options, so we can diagnose typos.
1268
1269  case $ac_dashdash$ac_option in
1270  --)
1271    ac_dashdash=yes ;;
1272
1273  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1274    ac_prev=bindir ;;
1275  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1276    bindir=$ac_optarg ;;
1277
1278  -build | --build | --buil | --bui | --bu)
1279    ac_prev=build_alias ;;
1280  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1281    build_alias=$ac_optarg ;;
1282
1283  -cache-file | --cache-file | --cache-fil | --cache-fi \
1284  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1285    ac_prev=cache_file ;;
1286  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1287  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1288    cache_file=$ac_optarg ;;
1289
1290  --config-cache | -C)
1291    cache_file=config.cache ;;
1292
1293  -datadir | --datadir | --datadi | --datad)
1294    ac_prev=datadir ;;
1295  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1296    datadir=$ac_optarg ;;
1297
1298  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1299  | --dataroo | --dataro | --datar)
1300    ac_prev=datarootdir ;;
1301  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1302  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1303    datarootdir=$ac_optarg ;;
1304
1305  -disable-* | --disable-*)
1306    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1307    # Reject names that are not valid shell variable names.
1308    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309      as_fn_error $? "invalid feature name: $ac_useropt"
1310    ac_useropt_orig=$ac_useropt
1311    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312    case $ac_user_opts in
1313      *"
1314"enable_$ac_useropt"
1315"*) ;;
1316      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1317	 ac_unrecognized_sep=', ';;
1318    esac
1319    eval enable_$ac_useropt=no ;;
1320
1321  -docdir | --docdir | --docdi | --doc | --do)
1322    ac_prev=docdir ;;
1323  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1324    docdir=$ac_optarg ;;
1325
1326  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1327    ac_prev=dvidir ;;
1328  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1329    dvidir=$ac_optarg ;;
1330
1331  -enable-* | --enable-*)
1332    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1333    # Reject names that are not valid shell variable names.
1334    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335      as_fn_error $? "invalid feature name: $ac_useropt"
1336    ac_useropt_orig=$ac_useropt
1337    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338    case $ac_user_opts in
1339      *"
1340"enable_$ac_useropt"
1341"*) ;;
1342      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1343	 ac_unrecognized_sep=', ';;
1344    esac
1345    eval enable_$ac_useropt=\$ac_optarg ;;
1346
1347  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1348  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1349  | --exec | --exe | --ex)
1350    ac_prev=exec_prefix ;;
1351  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1352  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1353  | --exec=* | --exe=* | --ex=*)
1354    exec_prefix=$ac_optarg ;;
1355
1356  -gas | --gas | --ga | --g)
1357    # Obsolete; use --with-gas.
1358    with_gas=yes ;;
1359
1360  -help | --help | --hel | --he | -h)
1361    ac_init_help=long ;;
1362  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1363    ac_init_help=recursive ;;
1364  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1365    ac_init_help=short ;;
1366
1367  -host | --host | --hos | --ho)
1368    ac_prev=host_alias ;;
1369  -host=* | --host=* | --hos=* | --ho=*)
1370    host_alias=$ac_optarg ;;
1371
1372  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1373    ac_prev=htmldir ;;
1374  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1375  | --ht=*)
1376    htmldir=$ac_optarg ;;
1377
1378  -includedir | --includedir | --includedi | --included | --include \
1379  | --includ | --inclu | --incl | --inc)
1380    ac_prev=includedir ;;
1381  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1382  | --includ=* | --inclu=* | --incl=* | --inc=*)
1383    includedir=$ac_optarg ;;
1384
1385  -infodir | --infodir | --infodi | --infod | --info | --inf)
1386    ac_prev=infodir ;;
1387  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1388    infodir=$ac_optarg ;;
1389
1390  -libdir | --libdir | --libdi | --libd)
1391    ac_prev=libdir ;;
1392  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1393    libdir=$ac_optarg ;;
1394
1395  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1396  | --libexe | --libex | --libe)
1397    ac_prev=libexecdir ;;
1398  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1399  | --libexe=* | --libex=* | --libe=*)
1400    libexecdir=$ac_optarg ;;
1401
1402  -localedir | --localedir | --localedi | --localed | --locale)
1403    ac_prev=localedir ;;
1404  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1405    localedir=$ac_optarg ;;
1406
1407  -localstatedir | --localstatedir | --localstatedi | --localstated \
1408  | --localstate | --localstat | --localsta | --localst | --locals)
1409    ac_prev=localstatedir ;;
1410  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1411  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1412    localstatedir=$ac_optarg ;;
1413
1414  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1415    ac_prev=mandir ;;
1416  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1417    mandir=$ac_optarg ;;
1418
1419  -nfp | --nfp | --nf)
1420    # Obsolete; use --without-fp.
1421    with_fp=no ;;
1422
1423  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1424  | --no-cr | --no-c | -n)
1425    no_create=yes ;;
1426
1427  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1428  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1429    no_recursion=yes ;;
1430
1431  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1432  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1433  | --oldin | --oldi | --old | --ol | --o)
1434    ac_prev=oldincludedir ;;
1435  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1436  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1437  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1438    oldincludedir=$ac_optarg ;;
1439
1440  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1441    ac_prev=prefix ;;
1442  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1443    prefix=$ac_optarg ;;
1444
1445  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1446  | --program-pre | --program-pr | --program-p)
1447    ac_prev=program_prefix ;;
1448  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1449  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1450    program_prefix=$ac_optarg ;;
1451
1452  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1453  | --program-suf | --program-su | --program-s)
1454    ac_prev=program_suffix ;;
1455  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1456  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1457    program_suffix=$ac_optarg ;;
1458
1459  -program-transform-name | --program-transform-name \
1460  | --program-transform-nam | --program-transform-na \
1461  | --program-transform-n | --program-transform- \
1462  | --program-transform | --program-transfor \
1463  | --program-transfo | --program-transf \
1464  | --program-trans | --program-tran \
1465  | --progr-tra | --program-tr | --program-t)
1466    ac_prev=program_transform_name ;;
1467  -program-transform-name=* | --program-transform-name=* \
1468  | --program-transform-nam=* | --program-transform-na=* \
1469  | --program-transform-n=* | --program-transform-=* \
1470  | --program-transform=* | --program-transfor=* \
1471  | --program-transfo=* | --program-transf=* \
1472  | --program-trans=* | --program-tran=* \
1473  | --progr-tra=* | --program-tr=* | --program-t=*)
1474    program_transform_name=$ac_optarg ;;
1475
1476  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1477    ac_prev=pdfdir ;;
1478  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1479    pdfdir=$ac_optarg ;;
1480
1481  -psdir | --psdir | --psdi | --psd | --ps)
1482    ac_prev=psdir ;;
1483  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1484    psdir=$ac_optarg ;;
1485
1486  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487  | -silent | --silent | --silen | --sile | --sil)
1488    silent=yes ;;
1489
1490  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1491    ac_prev=sbindir ;;
1492  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1493  | --sbi=* | --sb=*)
1494    sbindir=$ac_optarg ;;
1495
1496  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1497  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1498  | --sharedst | --shareds | --shared | --share | --shar \
1499  | --sha | --sh)
1500    ac_prev=sharedstatedir ;;
1501  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1502  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1503  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1504  | --sha=* | --sh=*)
1505    sharedstatedir=$ac_optarg ;;
1506
1507  -site | --site | --sit)
1508    ac_prev=site ;;
1509  -site=* | --site=* | --sit=*)
1510    site=$ac_optarg ;;
1511
1512  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1513    ac_prev=srcdir ;;
1514  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1515    srcdir=$ac_optarg ;;
1516
1517  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1518  | --syscon | --sysco | --sysc | --sys | --sy)
1519    ac_prev=sysconfdir ;;
1520  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1521  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1522    sysconfdir=$ac_optarg ;;
1523
1524  -target | --target | --targe | --targ | --tar | --ta | --t)
1525    ac_prev=target_alias ;;
1526  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1527    target_alias=$ac_optarg ;;
1528
1529  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1530    verbose=yes ;;
1531
1532  -version | --version | --versio | --versi | --vers | -V)
1533    ac_init_version=: ;;
1534
1535  -with-* | --with-*)
1536    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1547	 ac_unrecognized_sep=', ';;
1548    esac
1549    eval with_$ac_useropt=\$ac_optarg ;;
1550
1551  -without-* | --without-*)
1552    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1553    # Reject names that are not valid shell variable names.
1554    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1555      as_fn_error $? "invalid package name: $ac_useropt"
1556    ac_useropt_orig=$ac_useropt
1557    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1558    case $ac_user_opts in
1559      *"
1560"with_$ac_useropt"
1561"*) ;;
1562      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1563	 ac_unrecognized_sep=', ';;
1564    esac
1565    eval with_$ac_useropt=no ;;
1566
1567  --x)
1568    # Obsolete; use --with-x.
1569    with_x=yes ;;
1570
1571  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1572  | --x-incl | --x-inc | --x-in | --x-i)
1573    ac_prev=x_includes ;;
1574  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1575  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1576    x_includes=$ac_optarg ;;
1577
1578  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1579  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1580    ac_prev=x_libraries ;;
1581  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1582  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1583    x_libraries=$ac_optarg ;;
1584
1585  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1586Try \`$0 --help' for more information"
1587    ;;
1588
1589  *=*)
1590    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1591    # Reject names that are not valid shell variable names.
1592    case $ac_envvar in #(
1593      '' | [0-9]* | *[!_$as_cr_alnum]* )
1594      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1595    esac
1596    eval $ac_envvar=\$ac_optarg
1597    export $ac_envvar ;;
1598
1599  *)
1600    # FIXME: should be removed in autoconf 3.0.
1601    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1602    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1603      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1604    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1605    ;;
1606
1607  esac
1608done
1609
1610if test -n "$ac_prev"; then
1611  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1612  as_fn_error $? "missing argument to $ac_option"
1613fi
1614
1615if test -n "$ac_unrecognized_opts"; then
1616  case $enable_option_checking in
1617    no) ;;
1618    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1619    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1620  esac
1621fi
1622
1623# Check all directory arguments for consistency.
1624for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1625		datadir sysconfdir sharedstatedir localstatedir includedir \
1626		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1627		libdir localedir mandir
1628do
1629  eval ac_val=\$$ac_var
1630  # Remove trailing slashes.
1631  case $ac_val in
1632    */ )
1633      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1634      eval $ac_var=\$ac_val;;
1635  esac
1636  # Be sure to have absolute directory names.
1637  case $ac_val in
1638    [\\/$]* | ?:[\\/]* )  continue;;
1639    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1640  esac
1641  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1642done
1643
1644# There might be people who depend on the old broken behavior: `$host'
1645# used to hold the argument of --host etc.
1646# FIXME: To remove some day.
1647build=$build_alias
1648host=$host_alias
1649target=$target_alias
1650
1651# FIXME: To remove some day.
1652if test "x$host_alias" != x; then
1653  if test "x$build_alias" = x; then
1654    cross_compiling=maybe
1655  elif test "x$build_alias" != "x$host_alias"; then
1656    cross_compiling=yes
1657  fi
1658fi
1659
1660ac_tool_prefix=
1661test -n "$host_alias" && ac_tool_prefix=$host_alias-
1662
1663test "$silent" = yes && exec 6>/dev/null
1664
1665
1666ac_pwd=`pwd` && test -n "$ac_pwd" &&
1667ac_ls_di=`ls -di .` &&
1668ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1669  as_fn_error $? "working directory cannot be determined"
1670test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1671  as_fn_error $? "pwd does not report name of working directory"
1672
1673
1674# Find the source files, if location was not specified.
1675if test -z "$srcdir"; then
1676  ac_srcdir_defaulted=yes
1677  # Try the directory containing this script, then the parent directory.
1678  ac_confdir=`$as_dirname -- "$as_myself" ||
1679$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1680	 X"$as_myself" : 'X\(//\)[^/]' \| \
1681	 X"$as_myself" : 'X\(//\)$' \| \
1682	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1683$as_echo X"$as_myself" |
1684    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1685	    s//\1/
1686	    q
1687	  }
1688	  /^X\(\/\/\)[^/].*/{
1689	    s//\1/
1690	    q
1691	  }
1692	  /^X\(\/\/\)$/{
1693	    s//\1/
1694	    q
1695	  }
1696	  /^X\(\/\).*/{
1697	    s//\1/
1698	    q
1699	  }
1700	  s/.*/./; q'`
1701  srcdir=$ac_confdir
1702  if test ! -r "$srcdir/$ac_unique_file"; then
1703    srcdir=..
1704  fi
1705else
1706  ac_srcdir_defaulted=no
1707fi
1708if test ! -r "$srcdir/$ac_unique_file"; then
1709  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1710  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1711fi
1712ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1713ac_abs_confdir=`(
1714	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1715	pwd)`
1716# When building in place, set srcdir=.
1717if test "$ac_abs_confdir" = "$ac_pwd"; then
1718  srcdir=.
1719fi
1720# Remove unnecessary trailing slashes from srcdir.
1721# Double slashes in file names in object file debugging info
1722# mess up M-x gdb in Emacs.
1723case $srcdir in
1724*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1725esac
1726for ac_var in $ac_precious_vars; do
1727  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1728  eval ac_env_${ac_var}_value=\$${ac_var}
1729  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1730  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1731done
1732
1733#
1734# Report the --help message.
1735#
1736if test "$ac_init_help" = "long"; then
1737  # Omit some internal or obsolete options to make the list less imposing.
1738  # This message is too long to be a string in the A/UX 3.1 sh.
1739  cat <<_ACEOF
1740\`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1741
1742Usage: $0 [OPTION]... [VAR=VALUE]...
1743
1744To assign environment variables (e.g., CC, CFLAGS...), specify them as
1745VAR=VALUE.  See below for descriptions of some of the useful variables.
1746
1747Defaults for the options are specified in brackets.
1748
1749Configuration:
1750  -h, --help              display this help and exit
1751      --help=short        display options specific to this package
1752      --help=recursive    display the short help of all the included packages
1753  -V, --version           display version information and exit
1754  -q, --quiet, --silent   do not print \`checking ...' messages
1755      --cache-file=FILE   cache test results in FILE [disabled]
1756  -C, --config-cache      alias for \`--cache-file=config.cache'
1757  -n, --no-create         do not create output files
1758      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1759
1760Installation directories:
1761  --prefix=PREFIX         install architecture-independent files in PREFIX
1762                          [$ac_default_prefix]
1763  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1764                          [PREFIX]
1765
1766By default, \`make install' will install all the files in
1767\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1768an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1769for instance \`--prefix=\$HOME'.
1770
1771For better control, use the options below.
1772
1773Fine tuning of the installation directories:
1774  --bindir=DIR            user executables [EPREFIX/bin]
1775  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1776  --libexecdir=DIR        program executables [EPREFIX/libexec]
1777  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1778  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1779  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1780  --libdir=DIR            object code libraries [EPREFIX/lib]
1781  --includedir=DIR        C header files [PREFIX/include]
1782  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1783  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1784  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1785  --infodir=DIR           info documentation [DATAROOTDIR/info]
1786  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1787  --mandir=DIR            man documentation [DATAROOTDIR/man]
1788  --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1789  --htmldir=DIR           html documentation [DOCDIR]
1790  --dvidir=DIR            dvi documentation [DOCDIR]
1791  --pdfdir=DIR            pdf documentation [DOCDIR]
1792  --psdir=DIR             ps documentation [DOCDIR]
1793_ACEOF
1794
1795  cat <<\_ACEOF
1796
1797X features:
1798  --x-includes=DIR    X include files are in DIR
1799  --x-libraries=DIR   X library files are in DIR
1800
1801System types:
1802  --build=BUILD     configure for building on BUILD [guessed]
1803  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1804  --target=TARGET   configure for building compilers for TARGET [HOST]
1805_ACEOF
1806fi
1807
1808if test -n "$ac_init_help"; then
1809  case $ac_init_help in
1810     short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1811   esac
1812  cat <<\_ACEOF
1813
1814Optional Features:
1815  --disable-option-checking  ignore unrecognized --enable/--with options
1816  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1817  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1818  --enable-openjdk-only   suppress building custom source even if present
1819                          [disabled]
1820  --enable-debug          set the debug level to fastdebug (shorthand for
1821                          --with-debug-level=fastdebug) [disabled]
1822  --disable-headful       disable building headful support (graphical UI
1823                          support) [enabled]
1824  --enable-hotspot-test-in-build
1825                          run the Queens test after Hotspot build [disabled]
1826  --enable-unlimited-crypto
1827                          Enable unlimited crypto policy [disabled]
1828  --enable-rmiconnector-iiop
1829                          enable the JMX RMIConnector iiop transport
1830                          [disabled]
1831  --disable-debug-symbols disable generation of debug symbols [enabled]
1832  --disable-zip-debug-info
1833                          disable zipping of debug-info files [enabled]
1834  --enable-macosx-runtime-support
1835                          Deprecated. Option is kept for backwards
1836                          compatibility and is ignored
1837  --disable-freetype-bundling
1838                          disable bundling of the freetype library with the
1839                          build result [enabled on Windows or when using
1840                          --with-freetype, disabled otherwise]
1841  --enable-sjavac         use sjavac to do fast incremental compiles
1842                          [disabled]
1843  --disable-precompiled-headers
1844                          disable using precompiled headers when compiling C++
1845                          [enabled]
1846  --enable-ccache         enable using ccache to speed up recompilations
1847                          [disabled]
1848
1849Optional Packages:
1850  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1851  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1852  --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1853                          support it), e.g. --with-target-bits=32 [guessed]
1854  --with-custom-make-dir  Deprecated. Option is kept for backwards
1855                          compatibility and is ignored
1856  --with-jdk-variant      JDK variant to build (normal) [normal]
1857  --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1858  --with-jvm-variants     JVM variants (separated by commas) to build (server,
1859                          client, minimal1, kernel, zero, zeroshark, core)
1860                          [server]
1861  --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1862                          optimized (HotSpot build only)) [release]
1863  --with-devkit           use this devkit for compilers, tools and resources
1864  --with-sys-root         alias for --with-sysroot for backwards compatability
1865  --with-sysroot          use this directory as sysroot)
1866  --with-tools-dir        alias for --with-toolchain-path for backwards
1867                          compatibility
1868  --with-toolchain-path   prepend these directories when searching for
1869                          toolchain binaries (compilers etc)
1870  --with-extra-path       prepend these directories to the default path
1871  --with-conf-name        use this as the name of the configuration [generated
1872                          from important configuration options]
1873  --with-builddeps-conf   use this configuration file for the builddeps
1874  --with-builddeps-server download and use build dependencies from this server
1875                          url
1876  --with-builddeps-dir    store downloaded build dependencies here
1877                          [/localhome/builddeps]
1878  --with-builddeps-group  chgrp the downloaded build dependencies to this
1879                          group
1880  --with-cacerts-file     specify alternative cacerts file
1881  --with-milestone        Set milestone value for build [internal]
1882  --with-update-version   Set update version value for build [b00]
1883  --with-user-release-suffix
1884                          Add a custom string to the version string if build
1885                          number is not set.[username_builddateb00]
1886  --with-build-number     Set build number value for build [b00]
1887  --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1888  --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1889                          invocations of boot JDK, overriding the default
1890                          values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1891                          -enableassertions"
1892  --with-add-source-root  for each and every source directory, look in this
1893                          additional source root for the same directory; if it
1894                          exists and have files in it, include it in the build
1895  --with-override-source-root
1896                          for each and every source directory, look in this
1897                          override source root for the same directory; if it
1898                          exists, use that directory instead and ignore the
1899                          directory in the original source root
1900  --with-adds-and-overrides
1901                          use the subdirs 'adds' and 'overrides' in the
1902                          specified directory as add-source-root and
1903                          override-source-root
1904  --with-override-langtools
1905                          use this langtools dir for the build
1906  --with-override-corba   use this corba dir for the build
1907  --with-override-jaxp    use this jaxp dir for the build
1908  --with-override-jaxws   use this jaxws dir for the build
1909  --with-override-hotspot use this hotspot dir for the build
1910  --with-override-nashorn use this nashorn dir for the build
1911  --with-override-jdk     use this jdk dir for the build
1912  --with-import-hotspot   import hotspot binaries from this jdk image or
1913                          hotspot build dist dir instead of building from
1914                          source
1915  --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1916                          to show possible values [platform dependent]
1917  --with-jtreg            Regression Test Harness [probed]
1918  --with-extra-cflags     extra flags to be used when compiling jdk c-files
1919  --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1920  --with-extra-ldflags    extra flags to be used when linking jdk
1921  --with-x                use the X Window System
1922  --with-cups             specify prefix directory for the cups package
1923                          (expecting the headers under PATH/include)
1924  --with-cups-include     specify directory for the cups include files
1925  --with-freetype         specify prefix directory for the freetype package
1926                          (expecting the libraries under PATH/lib and the
1927                          headers under PATH/include)
1928  --with-freetype-include specify directory for the freetype include files
1929  --with-freetype-lib     specify directory for the freetype library
1930  --with-alsa             specify prefix directory for the alsa package
1931                          (expecting the libraries under PATH/lib and the
1932                          headers under PATH/include)
1933  --with-alsa-include     specify directory for the alsa include files
1934  --with-alsa-lib         specify directory for the alsa library
1935  --with-giflib           use giflib from build system or OpenJDK source
1936                          (system, bundled) [bundled]
1937  --with-libpng           use libpng from build system or OpenJDK source
1938                          (system, bundled) [bundled]
1939  --with-zlib             use zlib from build system or OpenJDK source
1940                          (system, bundled) [bundled]
1941  --with-stdc++lib=<static>,<dynamic>,<default>
1942                          force linking of the C++ runtime on Linux to either
1943                          static or dynamic, default is static with dynamic as
1944                          fallback
1945  --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1946                          only) [probed]
1947  --with-dxsdk            Deprecated. Option is kept for backwards
1948                          compatibility and is ignored
1949  --with-dxsdk-lib        Deprecated. Option is kept for backwards
1950                          compatibility and is ignored
1951  --with-dxsdk-include    Deprecated. Option is kept for backwards
1952                          compatibility and is ignored
1953  --with-num-cores        number of cores in the build system, e.g.
1954                          --with-num-cores=8 [probed]
1955  --with-memory-size      memory (in MB) available in the build system, e.g.
1956                          --with-memory-size=1024 [probed]
1957  --with-jobs             number of parallel jobs to let make run [calculated
1958                          based on cores and memory]
1959  --with-sjavac-server-java
1960                          use this java binary for running the sjavac
1961                          background server [Boot JDK java]
1962  --with-ccache-dir       where to store ccache files [~/.ccache]
1963
1964Some influential environment variables:
1965  BASENAME    Override default value for BASENAME
1966  BASH        Override default value for BASH
1967  CAT         Override default value for CAT
1968  CHMOD       Override default value for CHMOD
1969  CMP         Override default value for CMP
1970  COMM        Override default value for COMM
1971  CP          Override default value for CP
1972  CPIO        Override default value for CPIO
1973  CUT         Override default value for CUT
1974  DATE        Override default value for DATE
1975  DIFF        Override default value for DIFF
1976  DIRNAME     Override default value for DIRNAME
1977  ECHO        Override default value for ECHO
1978  EXPR        Override default value for EXPR
1979  FILE        Override default value for FILE
1980  FIND        Override default value for FIND
1981  HEAD        Override default value for HEAD
1982  LN          Override default value for LN
1983  LS          Override default value for LS
1984  MKDIR       Override default value for MKDIR
1985  MKTEMP      Override default value for MKTEMP
1986  MV          Override default value for MV
1987  NAWK        Override default value for NAWK
1988  PRINTF      Override default value for PRINTF
1989  RM          Override default value for RM
1990  SH          Override default value for SH
1991  SORT        Override default value for SORT
1992  TAIL        Override default value for TAIL
1993  TAR         Override default value for TAR
1994  TEE         Override default value for TEE
1995  TOUCH       Override default value for TOUCH
1996  TR          Override default value for TR
1997  UNAME       Override default value for UNAME
1998  UNIQ        Override default value for UNIQ
1999  WC          Override default value for WC
2000  WHICH       Override default value for WHICH
2001  XARGS       Override default value for XARGS
2002  AWK         Override default value for AWK
2003  GREP        Override default value for GREP
2004  EGREP       Override default value for EGREP
2005  FGREP       Override default value for FGREP
2006  SED         Override default value for SED
2007  CYGPATH     Override default value for CYGPATH
2008  READLINK    Override default value for READLINK
2009  DF          Override default value for DF
2010  SETFILE     Override default value for SETFILE
2011  UNZIP       Override default value for UNZIP
2012  ZIP         Override default value for ZIP
2013  LDD         Override default value for LDD
2014  OTOOL       Override default value for OTOOL
2015  READELF     Override default value for READELF
2016  HG          Override default value for HG
2017  STAT        Override default value for STAT
2018  TIME        Override default value for TIME
2019  DSYMUTIL    Override default value for DSYMUTIL
2020  XATTR       Override default value for XATTR
2021  CODESIGN    Override default value for CODESIGN
2022  PKG_CONFIG  path to pkg-config utility
2023  JAVA        Override default value for JAVA
2024  JAVAC       Override default value for JAVAC
2025  JAVAH       Override default value for JAVAH
2026  JAR         Override default value for JAR
2027  NATIVE2ASCII
2028              Override default value for NATIVE2ASCII
2029  JARSIGNER   Override default value for JARSIGNER
2030  CC          C compiler command
2031  CFLAGS      C compiler flags
2032  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2033              nonstandard directory <lib dir>
2034  LIBS        libraries to pass to the linker, e.g. -l<library>
2035  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2036              you have headers in a nonstandard directory <include dir>
2037  CXX         C++ compiler command
2038  CXXFLAGS    C++ compiler flags
2039  CPP         C preprocessor
2040  CXXCPP      C++ preprocessor
2041  AS          Override default value for AS
2042  AR          Override default value for AR
2043  OBJC        Objective C compiler command
2044  OBJCFLAGS   Objective C compiler flags
2045  LIPO        Override default value for LIPO
2046  STRIP       Override default value for STRIP
2047  NM          Override default value for NM
2048  GNM         Override default value for GNM
2049  MCS         Override default value for MCS
2050  OBJCOPY     Override default value for OBJCOPY
2051  OBJDUMP     Override default value for OBJDUMP
2052  BUILD_CC    Override default value for BUILD_CC
2053  BUILD_CXX   Override default value for BUILD_CXX
2054  BUILD_LD    Override default value for BUILD_LD
2055  JTREGEXE    Override default value for JTREGEXE
2056  XMKMF       Path to xmkmf, Makefile generator for X Window System
2057  FREETYPE_CFLAGS
2058              C compiler flags for FREETYPE, overriding pkg-config
2059  FREETYPE_LIBS
2060              linker flags for FREETYPE, overriding pkg-config
2061  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2062  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2063  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2064  PNG_LIBS    linker flags for PNG, overriding pkg-config
2065  LIBFFI_CFLAGS
2066              C compiler flags for LIBFFI, overriding pkg-config
2067  LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2068  CCACHE      Override default value for CCACHE
2069
2070Use these variables to override the choices made by `configure' or to help
2071it to find libraries and programs with nonstandard names/locations.
2072
2073Report bugs to <build-dev@openjdk.java.net>.
2074OpenJDK home page: <http://openjdk.java.net>.
2075_ACEOF
2076ac_status=$?
2077fi
2078
2079if test "$ac_init_help" = "recursive"; then
2080  # If there are subdirs, report their specific --help.
2081  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2082    test -d "$ac_dir" ||
2083      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2084      continue
2085    ac_builddir=.
2086
2087case "$ac_dir" in
2088.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089*)
2090  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2091  # A ".." for each directory in $ac_dir_suffix.
2092  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2093  case $ac_top_builddir_sub in
2094  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2095  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2096  esac ;;
2097esac
2098ac_abs_top_builddir=$ac_pwd
2099ac_abs_builddir=$ac_pwd$ac_dir_suffix
2100# for backward compatibility:
2101ac_top_builddir=$ac_top_build_prefix
2102
2103case $srcdir in
2104  .)  # We are building in place.
2105    ac_srcdir=.
2106    ac_top_srcdir=$ac_top_builddir_sub
2107    ac_abs_top_srcdir=$ac_pwd ;;
2108  [\\/]* | ?:[\\/]* )  # Absolute name.
2109    ac_srcdir=$srcdir$ac_dir_suffix;
2110    ac_top_srcdir=$srcdir
2111    ac_abs_top_srcdir=$srcdir ;;
2112  *) # Relative name.
2113    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2114    ac_top_srcdir=$ac_top_build_prefix$srcdir
2115    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2116esac
2117ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2118
2119    cd "$ac_dir" || { ac_status=$?; continue; }
2120    # Check for guested configure.
2121    if test -f "$ac_srcdir/configure.gnu"; then
2122      echo &&
2123      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2124    elif test -f "$ac_srcdir/configure"; then
2125      echo &&
2126      $SHELL "$ac_srcdir/configure" --help=recursive
2127    else
2128      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2129    fi || ac_status=$?
2130    cd "$ac_pwd" || { ac_status=$?; break; }
2131  done
2132fi
2133
2134test -n "$ac_init_help" && exit $ac_status
2135if $ac_init_version; then
2136  cat <<\_ACEOF
2137OpenJDK configure jdk9
2138generated by GNU Autoconf 2.69
2139
2140Copyright (C) 2012 Free Software Foundation, Inc.
2141This configure script is free software; the Free Software Foundation
2142gives unlimited permission to copy, distribute and modify it.
2143_ACEOF
2144  exit
2145fi
2146
2147## ------------------------ ##
2148## Autoconf initialization. ##
2149## ------------------------ ##
2150
2151# ac_fn_c_try_compile LINENO
2152# --------------------------
2153# Try to compile conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_c_try_compile ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  rm -f conftest.$ac_objext
2158  if { { ac_try="$ac_compile"
2159case "(($ac_try" in
2160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161  *) ac_try_echo=$ac_try;;
2162esac
2163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164$as_echo "$ac_try_echo"; } >&5
2165  (eval "$ac_compile") 2>conftest.err
2166  ac_status=$?
2167  if test -s conftest.err; then
2168    grep -v '^ *+' conftest.err >conftest.er1
2169    cat conftest.er1 >&5
2170    mv -f conftest.er1 conftest.err
2171  fi
2172  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173  test $ac_status = 0; } && {
2174	 test -z "$ac_c_werror_flag" ||
2175	 test ! -s conftest.err
2176       } && test -s conftest.$ac_objext; then :
2177  ac_retval=0
2178else
2179  $as_echo "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182	ac_retval=1
2183fi
2184  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185  as_fn_set_status $ac_retval
2186
2187} # ac_fn_c_try_compile
2188
2189# ac_fn_cxx_try_compile LINENO
2190# ----------------------------
2191# Try to compile conftest.$ac_ext, and return whether this succeeded.
2192ac_fn_cxx_try_compile ()
2193{
2194  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195  rm -f conftest.$ac_objext
2196  if { { ac_try="$ac_compile"
2197case "(($ac_try" in
2198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199  *) ac_try_echo=$ac_try;;
2200esac
2201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202$as_echo "$ac_try_echo"; } >&5
2203  (eval "$ac_compile") 2>conftest.err
2204  ac_status=$?
2205  if test -s conftest.err; then
2206    grep -v '^ *+' conftest.err >conftest.er1
2207    cat conftest.er1 >&5
2208    mv -f conftest.er1 conftest.err
2209  fi
2210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211  test $ac_status = 0; } && {
2212	 test -z "$ac_cxx_werror_flag" ||
2213	 test ! -s conftest.err
2214       } && test -s conftest.$ac_objext; then :
2215  ac_retval=0
2216else
2217  $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220	ac_retval=1
2221fi
2222  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223  as_fn_set_status $ac_retval
2224
2225} # ac_fn_cxx_try_compile
2226
2227# ac_fn_c_try_cpp LINENO
2228# ----------------------
2229# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2230ac_fn_c_try_cpp ()
2231{
2232  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233  if { { ac_try="$ac_cpp conftest.$ac_ext"
2234case "(($ac_try" in
2235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236  *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2241  ac_status=$?
2242  if test -s conftest.err; then
2243    grep -v '^ *+' conftest.err >conftest.er1
2244    cat conftest.er1 >&5
2245    mv -f conftest.er1 conftest.err
2246  fi
2247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248  test $ac_status = 0; } > conftest.i && {
2249	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2250	 test ! -s conftest.err
2251       }; then :
2252  ac_retval=0
2253else
2254  $as_echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
2256
2257    ac_retval=1
2258fi
2259  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260  as_fn_set_status $ac_retval
2261
2262} # ac_fn_c_try_cpp
2263
2264# ac_fn_cxx_try_cpp LINENO
2265# ------------------------
2266# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2267ac_fn_cxx_try_cpp ()
2268{
2269  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270  if { { ac_try="$ac_cpp conftest.$ac_ext"
2271case "(($ac_try" in
2272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273  *) ac_try_echo=$ac_try;;
2274esac
2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276$as_echo "$ac_try_echo"; } >&5
2277  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2278  ac_status=$?
2279  if test -s conftest.err; then
2280    grep -v '^ *+' conftest.err >conftest.er1
2281    cat conftest.er1 >&5
2282    mv -f conftest.er1 conftest.err
2283  fi
2284  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285  test $ac_status = 0; } > conftest.i && {
2286	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2287	 test ! -s conftest.err
2288       }; then :
2289  ac_retval=0
2290else
2291  $as_echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294    ac_retval=1
2295fi
2296  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297  as_fn_set_status $ac_retval
2298
2299} # ac_fn_cxx_try_cpp
2300
2301# ac_fn_objc_try_compile LINENO
2302# -----------------------------
2303# Try to compile conftest.$ac_ext, and return whether this succeeded.
2304ac_fn_objc_try_compile ()
2305{
2306  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307  rm -f conftest.$ac_objext
2308  if { { ac_try="$ac_compile"
2309case "(($ac_try" in
2310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311  *) ac_try_echo=$ac_try;;
2312esac
2313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314$as_echo "$ac_try_echo"; } >&5
2315  (eval "$ac_compile") 2>conftest.err
2316  ac_status=$?
2317  if test -s conftest.err; then
2318    grep -v '^ *+' conftest.err >conftest.er1
2319    cat conftest.er1 >&5
2320    mv -f conftest.er1 conftest.err
2321  fi
2322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323  test $ac_status = 0; } && {
2324	 test -z "$ac_objc_werror_flag" ||
2325	 test ! -s conftest.err
2326       } && test -s conftest.$ac_objext; then :
2327  ac_retval=0
2328else
2329  $as_echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332	ac_retval=1
2333fi
2334  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335  as_fn_set_status $ac_retval
2336
2337} # ac_fn_objc_try_compile
2338
2339# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2340# ---------------------------------------------------------
2341# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2342# the include files in INCLUDES and setting the cache variable VAR
2343# accordingly.
2344ac_fn_cxx_check_header_mongrel ()
2345{
2346  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347  if eval \${$3+:} false; then :
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349$as_echo_n "checking for $2... " >&6; }
2350if eval \${$3+:} false; then :
2351  $as_echo_n "(cached) " >&6
2352fi
2353eval ac_res=\$$3
2354	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2355$as_echo "$ac_res" >&6; }
2356else
2357  # Is the header compilable?
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2359$as_echo_n "checking $2 usability... " >&6; }
2360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361/* end confdefs.h.  */
2362$4
2363#include <$2>
2364_ACEOF
2365if ac_fn_cxx_try_compile "$LINENO"; then :
2366  ac_header_compiler=yes
2367else
2368  ac_header_compiler=no
2369fi
2370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2372$as_echo "$ac_header_compiler" >&6; }
2373
2374# Is the header present?
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2376$as_echo_n "checking $2 presence... " >&6; }
2377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378/* end confdefs.h.  */
2379#include <$2>
2380_ACEOF
2381if ac_fn_cxx_try_cpp "$LINENO"; then :
2382  ac_header_preproc=yes
2383else
2384  ac_header_preproc=no
2385fi
2386rm -f conftest.err conftest.i conftest.$ac_ext
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2388$as_echo "$ac_header_preproc" >&6; }
2389
2390# So?  What about this header?
2391case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2392  yes:no: )
2393    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2394$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2395    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2396$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2397    ;;
2398  no:yes:* )
2399    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2400$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2401    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2402$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2404$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2405    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2406$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2407    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2408$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2409( $as_echo "## ----------------------------------------- ##
2410## Report this to build-dev@openjdk.java.net ##
2411## ----------------------------------------- ##"
2412     ) | sed "s/^/$as_me: WARNING:     /" >&2
2413    ;;
2414esac
2415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416$as_echo_n "checking for $2... " >&6; }
2417if eval \${$3+:} false; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  eval "$3=\$ac_header_compiler"
2421fi
2422eval ac_res=\$$3
2423	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424$as_echo "$ac_res" >&6; }
2425fi
2426  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427
2428} # ac_fn_cxx_check_header_mongrel
2429
2430# ac_fn_cxx_try_run LINENO
2431# ------------------------
2432# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2433# that executables *can* be run.
2434ac_fn_cxx_try_run ()
2435{
2436  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437  if { { ac_try="$ac_link"
2438case "(($ac_try" in
2439  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440  *) ac_try_echo=$ac_try;;
2441esac
2442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2443$as_echo "$ac_try_echo"; } >&5
2444  (eval "$ac_link") 2>&5
2445  ac_status=$?
2446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2448  { { case "(($ac_try" in
2449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450  *) ac_try_echo=$ac_try;;
2451esac
2452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453$as_echo "$ac_try_echo"; } >&5
2454  (eval "$ac_try") 2>&5
2455  ac_status=$?
2456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457  test $ac_status = 0; }; }; then :
2458  ac_retval=0
2459else
2460  $as_echo "$as_me: program exited with status $ac_status" >&5
2461       $as_echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
2464       ac_retval=$ac_status
2465fi
2466  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2467  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468  as_fn_set_status $ac_retval
2469
2470} # ac_fn_cxx_try_run
2471
2472# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2473# ---------------------------------------------------------
2474# Tests whether HEADER exists and can be compiled using the include files in
2475# INCLUDES, setting the cache variable VAR accordingly.
2476ac_fn_cxx_check_header_compile ()
2477{
2478  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480$as_echo_n "checking for $2... " >&6; }
2481if eval \${$3+:} false; then :
2482  $as_echo_n "(cached) " >&6
2483else
2484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485/* end confdefs.h.  */
2486$4
2487#include <$2>
2488_ACEOF
2489if ac_fn_cxx_try_compile "$LINENO"; then :
2490  eval "$3=yes"
2491else
2492  eval "$3=no"
2493fi
2494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2495fi
2496eval ac_res=\$$3
2497	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498$as_echo "$ac_res" >&6; }
2499  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2500
2501} # ac_fn_cxx_check_header_compile
2502
2503# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2504# ----------------------------------------------
2505# Tries to find the compile-time value of EXPR in a program that includes
2506# INCLUDES, setting VAR accordingly. Returns whether the value could be
2507# computed
2508ac_fn_cxx_compute_int ()
2509{
2510  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511  if test "$cross_compiling" = yes; then
2512    # Depending upon the size, compute the lo and hi bounds.
2513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514/* end confdefs.h.  */
2515$4
2516int
2517main ()
2518{
2519static int test_array [1 - 2 * !(($2) >= 0)];
2520test_array [0] = 0;
2521return test_array [0];
2522
2523  ;
2524  return 0;
2525}
2526_ACEOF
2527if ac_fn_cxx_try_compile "$LINENO"; then :
2528  ac_lo=0 ac_mid=0
2529  while :; do
2530    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531/* end confdefs.h.  */
2532$4
2533int
2534main ()
2535{
2536static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2537test_array [0] = 0;
2538return test_array [0];
2539
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544if ac_fn_cxx_try_compile "$LINENO"; then :
2545  ac_hi=$ac_mid; break
2546else
2547  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2548			if test $ac_lo -le $ac_mid; then
2549			  ac_lo= ac_hi=
2550			  break
2551			fi
2552			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2553fi
2554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555  done
2556else
2557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558/* end confdefs.h.  */
2559$4
2560int
2561main ()
2562{
2563static int test_array [1 - 2 * !(($2) < 0)];
2564test_array [0] = 0;
2565return test_array [0];
2566
2567  ;
2568  return 0;
2569}
2570_ACEOF
2571if ac_fn_cxx_try_compile "$LINENO"; then :
2572  ac_hi=-1 ac_mid=-1
2573  while :; do
2574    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575/* end confdefs.h.  */
2576$4
2577int
2578main ()
2579{
2580static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2581test_array [0] = 0;
2582return test_array [0];
2583
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588if ac_fn_cxx_try_compile "$LINENO"; then :
2589  ac_lo=$ac_mid; break
2590else
2591  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2592			if test $ac_mid -le $ac_hi; then
2593			  ac_lo= ac_hi=
2594			  break
2595			fi
2596			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2597fi
2598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599  done
2600else
2601  ac_lo= ac_hi=
2602fi
2603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604fi
2605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606# Binary search between lo and hi bounds.
2607while test "x$ac_lo" != "x$ac_hi"; do
2608  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h.  */
2611$4
2612int
2613main ()
2614{
2615static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2616test_array [0] = 0;
2617return test_array [0];
2618
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623if ac_fn_cxx_try_compile "$LINENO"; then :
2624  ac_hi=$ac_mid
2625else
2626  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2627fi
2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629done
2630case $ac_lo in #((
2631?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2632'') ac_retval=1 ;;
2633esac
2634  else
2635    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636/* end confdefs.h.  */
2637$4
2638static long int longval () { return $2; }
2639static unsigned long int ulongval () { return $2; }
2640#include <stdio.h>
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645
2646  FILE *f = fopen ("conftest.val", "w");
2647  if (! f)
2648    return 1;
2649  if (($2) < 0)
2650    {
2651      long int i = longval ();
2652      if (i != ($2))
2653	return 1;
2654      fprintf (f, "%ld", i);
2655    }
2656  else
2657    {
2658      unsigned long int i = ulongval ();
2659      if (i != ($2))
2660	return 1;
2661      fprintf (f, "%lu", i);
2662    }
2663  /* Do not output a trailing newline, as this causes \r\n confusion
2664     on some platforms.  */
2665  return ferror (f) || fclose (f) != 0;
2666
2667  ;
2668  return 0;
2669}
2670_ACEOF
2671if ac_fn_cxx_try_run "$LINENO"; then :
2672  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2673else
2674  ac_retval=1
2675fi
2676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2677  conftest.$ac_objext conftest.beam conftest.$ac_ext
2678rm -f conftest.val
2679
2680  fi
2681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2682  as_fn_set_status $ac_retval
2683
2684} # ac_fn_cxx_compute_int
2685
2686# ac_fn_cxx_try_link LINENO
2687# -------------------------
2688# Try to link conftest.$ac_ext, and return whether this succeeded.
2689ac_fn_cxx_try_link ()
2690{
2691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2692  rm -f conftest.$ac_objext conftest$ac_exeext
2693  if { { ac_try="$ac_link"
2694case "(($ac_try" in
2695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696  *) ac_try_echo=$ac_try;;
2697esac
2698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2699$as_echo "$ac_try_echo"; } >&5
2700  (eval "$ac_link") 2>conftest.err
2701  ac_status=$?
2702  if test -s conftest.err; then
2703    grep -v '^ *+' conftest.err >conftest.er1
2704    cat conftest.er1 >&5
2705    mv -f conftest.er1 conftest.err
2706  fi
2707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2708  test $ac_status = 0; } && {
2709	 test -z "$ac_cxx_werror_flag" ||
2710	 test ! -s conftest.err
2711       } && test -s conftest$ac_exeext && {
2712	 test "$cross_compiling" = yes ||
2713	 test -x conftest$ac_exeext
2714       }; then :
2715  ac_retval=0
2716else
2717  $as_echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
2720	ac_retval=1
2721fi
2722  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2723  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2724  # interfere with the next link command; also delete a directory that is
2725  # left behind by Apple's compiler.  We do this before executing the actions.
2726  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728  as_fn_set_status $ac_retval
2729
2730} # ac_fn_cxx_try_link
2731
2732# ac_fn_cxx_check_func LINENO FUNC VAR
2733# ------------------------------------
2734# Tests whether FUNC exists, setting the cache variable VAR accordingly
2735ac_fn_cxx_check_func ()
2736{
2737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2739$as_echo_n "checking for $2... " >&6; }
2740if eval \${$3+:} false; then :
2741  $as_echo_n "(cached) " >&6
2742else
2743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h.  */
2745/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2747#define $2 innocuous_$2
2748
2749/* System header to define __stub macros and hopefully few prototypes,
2750    which can conflict with char $2 (); below.
2751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2752    <limits.h> exists even on freestanding compilers.  */
2753
2754#ifdef __STDC__
2755# include <limits.h>
2756#else
2757# include <assert.h>
2758#endif
2759
2760#undef $2
2761
2762/* Override any GCC internal prototype to avoid an error.
2763   Use char because int might match the return type of a GCC
2764   builtin and then its argument prototype would still apply.  */
2765#ifdef __cplusplus
2766extern "C"
2767#endif
2768char $2 ();
2769/* The GNU C library defines this for functions which it implements
2770    to always fail with ENOSYS.  Some functions are actually named
2771    something starting with __ and the normal name is an alias.  */
2772#if defined __stub_$2 || defined __stub___$2
2773choke me
2774#endif
2775
2776int
2777main ()
2778{
2779return $2 ();
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784if ac_fn_cxx_try_link "$LINENO"; then :
2785  eval "$3=yes"
2786else
2787  eval "$3=no"
2788fi
2789rm -f core conftest.err conftest.$ac_objext \
2790    conftest$ac_exeext conftest.$ac_ext
2791fi
2792eval ac_res=\$$3
2793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2794$as_echo "$ac_res" >&6; }
2795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2796
2797} # ac_fn_cxx_check_func
2798
2799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2800# -------------------------------------------------------
2801# Tests whether HEADER exists and can be compiled using the include files in
2802# INCLUDES, setting the cache variable VAR accordingly.
2803ac_fn_c_check_header_compile ()
2804{
2805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2807$as_echo_n "checking for $2... " >&6; }
2808if eval \${$3+:} false; then :
2809  $as_echo_n "(cached) " >&6
2810else
2811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812/* end confdefs.h.  */
2813$4
2814#include <$2>
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817  eval "$3=yes"
2818else
2819  eval "$3=no"
2820fi
2821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822fi
2823eval ac_res=\$$3
2824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825$as_echo "$ac_res" >&6; }
2826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2827
2828} # ac_fn_c_check_header_compile
2829cat >config.log <<_ACEOF
2830This file contains any messages produced by compilers while
2831running configure, to aid debugging if configure makes a mistake.
2832
2833It was created by OpenJDK $as_me jdk9, which was
2834generated by GNU Autoconf 2.69.  Invocation command line was
2835
2836  $ $0 $@
2837
2838_ACEOF
2839exec 5>>config.log
2840{
2841cat <<_ASUNAME
2842## --------- ##
2843## Platform. ##
2844## --------- ##
2845
2846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850uname -v = `(uname -v) 2>/dev/null || echo unknown`
2851
2852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2854
2855/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2856/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2859/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2860/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2861/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2862
2863_ASUNAME
2864
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    $as_echo "PATH: $as_dir"
2871  done
2872IFS=$as_save_IFS
2873
2874} >&5
2875
2876cat >&5 <<_ACEOF
2877
2878
2879## ----------- ##
2880## Core tests. ##
2881## ----------- ##
2882
2883_ACEOF
2884
2885
2886# Keep a trace of the command line.
2887# Strip out --no-create and --no-recursion so they do not pile up.
2888# Strip out --silent because we don't want to record it for future runs.
2889# Also quote any args containing shell meta-characters.
2890# Make two passes to allow for proper duplicate-argument suppression.
2891ac_configure_args=
2892ac_configure_args0=
2893ac_configure_args1=
2894ac_must_keep_next=false
2895for ac_pass in 1 2
2896do
2897  for ac_arg
2898  do
2899    case $ac_arg in
2900    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902    | -silent | --silent | --silen | --sile | --sil)
2903      continue ;;
2904    *\'*)
2905      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906    esac
2907    case $ac_pass in
2908    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2909    2)
2910      as_fn_append ac_configure_args1 " '$ac_arg'"
2911      if test $ac_must_keep_next = true; then
2912	ac_must_keep_next=false # Got value, back to normal.
2913      else
2914	case $ac_arg in
2915	  *=* | --config-cache | -C | -disable-* | --disable-* \
2916	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918	  | -with-* | --with-* | -without-* | --without-* | --x)
2919	    case "$ac_configure_args0 " in
2920	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921	    esac
2922	    ;;
2923	  -* ) ac_must_keep_next=true ;;
2924	esac
2925      fi
2926      as_fn_append ac_configure_args " '$ac_arg'"
2927      ;;
2928    esac
2929  done
2930done
2931{ ac_configure_args0=; unset ac_configure_args0;}
2932{ ac_configure_args1=; unset ac_configure_args1;}
2933
2934# When interrupted or exit'd, cleanup temporary files, and complete
2935# config.log.  We remove comments because anyway the quotes in there
2936# would cause problems or look ugly.
2937# WARNING: Use '\'' to represent an apostrophe within the trap.
2938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939trap 'exit_status=$?
2940  # Save into config.log some information that might help in debugging.
2941  {
2942    echo
2943
2944    $as_echo "## ---------------- ##
2945## Cache variables. ##
2946## ---------------- ##"
2947    echo
2948    # The following way of writing the cache mishandles newlines in values,
2949(
2950  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2951    eval ac_val=\$$ac_var
2952    case $ac_val in #(
2953    *${as_nl}*)
2954      case $ac_var in #(
2955      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2957      esac
2958      case $ac_var in #(
2959      _ | IFS | as_nl) ;; #(
2960      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2961      *) { eval $ac_var=; unset $ac_var;} ;;
2962      esac ;;
2963    esac
2964  done
2965  (set) 2>&1 |
2966    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2967    *${as_nl}ac_space=\ *)
2968      sed -n \
2969	"s/'\''/'\''\\\\'\'''\''/g;
2970	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2971      ;; #(
2972    *)
2973      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2974      ;;
2975    esac |
2976    sort
2977)
2978    echo
2979
2980    $as_echo "## ----------------- ##
2981## Output variables. ##
2982## ----------------- ##"
2983    echo
2984    for ac_var in $ac_subst_vars
2985    do
2986      eval ac_val=\$$ac_var
2987      case $ac_val in
2988      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989      esac
2990      $as_echo "$ac_var='\''$ac_val'\''"
2991    done | sort
2992    echo
2993
2994    if test -n "$ac_subst_files"; then
2995      $as_echo "## ------------------- ##
2996## File substitutions. ##
2997## ------------------- ##"
2998      echo
2999      for ac_var in $ac_subst_files
3000      do
3001	eval ac_val=\$$ac_var
3002	case $ac_val in
3003	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3004	esac
3005	$as_echo "$ac_var='\''$ac_val'\''"
3006      done | sort
3007      echo
3008    fi
3009
3010    if test -s confdefs.h; then
3011      $as_echo "## ----------- ##
3012## confdefs.h. ##
3013## ----------- ##"
3014      echo
3015      cat confdefs.h
3016      echo
3017    fi
3018    test "$ac_signal" != 0 &&
3019      $as_echo "$as_me: caught signal $ac_signal"
3020    $as_echo "$as_me: exit $exit_status"
3021  } >&5
3022  rm -f core *.core core.conftest.* &&
3023    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3024    exit $exit_status
3025' 0
3026for ac_signal in 1 2 13 15; do
3027  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3028done
3029ac_signal=0
3030
3031# confdefs.h avoids OS command line length limits that DEFS can exceed.
3032rm -f -r conftest* confdefs.h
3033
3034$as_echo "/* confdefs.h */" > confdefs.h
3035
3036# Predefined preprocessor variables.
3037
3038cat >>confdefs.h <<_ACEOF
3039#define PACKAGE_NAME "$PACKAGE_NAME"
3040_ACEOF
3041
3042cat >>confdefs.h <<_ACEOF
3043#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3044_ACEOF
3045
3046cat >>confdefs.h <<_ACEOF
3047#define PACKAGE_VERSION "$PACKAGE_VERSION"
3048_ACEOF
3049
3050cat >>confdefs.h <<_ACEOF
3051#define PACKAGE_STRING "$PACKAGE_STRING"
3052_ACEOF
3053
3054cat >>confdefs.h <<_ACEOF
3055#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3056_ACEOF
3057
3058cat >>confdefs.h <<_ACEOF
3059#define PACKAGE_URL "$PACKAGE_URL"
3060_ACEOF
3061
3062
3063# Let the site file select an alternate cache file if it wants to.
3064# Prefer an explicitly selected file to automatically selected ones.
3065ac_site_file1=NONE
3066ac_site_file2=NONE
3067if test -n "$CONFIG_SITE"; then
3068  # We do not want a PATH search for config.site.
3069  case $CONFIG_SITE in #((
3070    -*)  ac_site_file1=./$CONFIG_SITE;;
3071    */*) ac_site_file1=$CONFIG_SITE;;
3072    *)   ac_site_file1=./$CONFIG_SITE;;
3073  esac
3074elif test "x$prefix" != xNONE; then
3075  ac_site_file1=$prefix/share/config.site
3076  ac_site_file2=$prefix/etc/config.site
3077else
3078  ac_site_file1=$ac_default_prefix/share/config.site
3079  ac_site_file2=$ac_default_prefix/etc/config.site
3080fi
3081for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3082do
3083  test "x$ac_site_file" = xNONE && continue
3084  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3085    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3086$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3087    sed 's/^/| /' "$ac_site_file" >&5
3088    . "$ac_site_file" \
3089      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091as_fn_error $? "failed to load site script $ac_site_file
3092See \`config.log' for more details" "$LINENO" 5; }
3093  fi
3094done
3095
3096if test -r "$cache_file"; then
3097  # Some versions of bash will fail to source /dev/null (special files
3098  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3099  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3100    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3101$as_echo "$as_me: loading cache $cache_file" >&6;}
3102    case $cache_file in
3103      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3104      *)                      . "./$cache_file";;
3105    esac
3106  fi
3107else
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3109$as_echo "$as_me: creating cache $cache_file" >&6;}
3110  >$cache_file
3111fi
3112
3113# Check that the precious variables saved in the cache have kept the same
3114# value.
3115ac_cache_corrupted=false
3116for ac_var in $ac_precious_vars; do
3117  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3118  eval ac_new_set=\$ac_env_${ac_var}_set
3119  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3120  eval ac_new_val=\$ac_env_${ac_var}_value
3121  case $ac_old_set,$ac_new_set in
3122    set,)
3123      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3124$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3125      ac_cache_corrupted=: ;;
3126    ,set)
3127      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3128$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3129      ac_cache_corrupted=: ;;
3130    ,);;
3131    *)
3132      if test "x$ac_old_val" != "x$ac_new_val"; then
3133	# differences in whitespace do not lead to failure.
3134	ac_old_val_w=`echo x $ac_old_val`
3135	ac_new_val_w=`echo x $ac_new_val`
3136	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3137	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3138$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3139	  ac_cache_corrupted=:
3140	else
3141	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3142$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3143	  eval $ac_var=\$ac_old_val
3144	fi
3145	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3146$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3147	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3148$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3149      fi;;
3150  esac
3151  # Pass precious variables to config.status.
3152  if test "$ac_new_set" = set; then
3153    case $ac_new_val in
3154    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3155    *) ac_arg=$ac_var=$ac_new_val ;;
3156    esac
3157    case " $ac_configure_args " in
3158      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3159      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3160    esac
3161  fi
3162done
3163if $ac_cache_corrupted; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3167$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3168  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169fi
3170## -------------------- ##
3171## Main body of script. ##
3172## -------------------- ##
3173
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179
3180
3181
3182ac_aux_dir=
3183for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3184  if test -f "$ac_dir/install-sh"; then
3185    ac_aux_dir=$ac_dir
3186    ac_install_sh="$ac_aux_dir/install-sh -c"
3187    break
3188  elif test -f "$ac_dir/install.sh"; then
3189    ac_aux_dir=$ac_dir
3190    ac_install_sh="$ac_aux_dir/install.sh -c"
3191    break
3192  elif test -f "$ac_dir/shtool"; then
3193    ac_aux_dir=$ac_dir
3194    ac_install_sh="$ac_aux_dir/shtool install -c"
3195    break
3196  fi
3197done
3198if test -z "$ac_aux_dir"; then
3199  as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3200fi
3201
3202# These three variables are undocumented and unsupported,
3203# and are intended to be withdrawn in a future Autoconf release.
3204# They can cause serious problems if a builder's source tree is in a directory
3205# whose full name contains unusual characters.
3206ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3207ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3208ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3209
3210
3211# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3212
3213#
3214# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3215# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3216#
3217# This code is free software; you can redistribute it and/or modify it
3218# under the terms of the GNU General Public License version 2 only, as
3219# published by the Free Software Foundation.  Oracle designates this
3220# particular file as subject to the "Classpath" exception as provided
3221# by Oracle in the LICENSE file that accompanied this code.
3222#
3223# This code is distributed in the hope that it will be useful, but WITHOUT
3224# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3225# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3226# version 2 for more details (a copy is included in the LICENSE file that
3227# accompanied this code).
3228#
3229# You should have received a copy of the GNU General Public License version
3230# 2 along with this work; if not, write to the Free Software Foundation,
3231# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3232#
3233# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3234# or visit www.oracle.com if you need additional information or have any
3235# questions.
3236#
3237
3238#
3239# Copyright �� 2004 Scott James Remnant <scott@netsplit.com>.
3240#
3241# This program is free software; you can redistribute it and/or modify
3242# it under the terms of the GNU General Public License as published by
3243# the Free Software Foundation; either version 2 of the License, or
3244# (at your option) any later version.
3245#
3246# This program is distributed in the hope that it will be useful, but
3247# WITHOUT ANY WARRANTY; without even the implied warranty of
3248# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3249# General Public License for more details.
3250#
3251# You should have received a copy of the GNU General Public License
3252# along with this program; if not, write to the Free Software
3253# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3254#
3255# As a special exception to the GNU General Public License, if you
3256# distribute this file as part of a program that contains a
3257# configuration script generated by Autoconf, you may include it under
3258# the same distribution terms that you use for the rest of that program.
3259
3260# PKG_PROG_PKG_CONFIG([MIN-VERSION])
3261# ----------------------------------
3262# PKG_PROG_PKG_CONFIG
3263
3264# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3265#
3266# Check to see whether a particular set of modules exists.  Similar
3267# to PKG_CHECK_MODULES(), but does not set variables or print errors.
3268#
3269#
3270# Similar to PKG_CHECK_MODULES, make sure that the first instance of
3271# this or PKG_CHECK_MODULES is called, or make sure to call
3272# PKG_CHECK_EXISTS manually
3273# --------------------------------------------------------------
3274
3275
3276
3277# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3278# ---------------------------------------------
3279# _PKG_CONFIG
3280
3281# _PKG_SHORT_ERRORS_SUPPORTED
3282# -----------------------------
3283# _PKG_SHORT_ERRORS_SUPPORTED
3284
3285
3286# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3287# [ACTION-IF-NOT-FOUND])
3288#
3289#
3290# Note that if there is a possibility the first call to
3291# PKG_CHECK_MODULES might not happen, you should be sure to include an
3292# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3293#
3294#
3295# --------------------------------------------------------------
3296# PKG_CHECK_MODULES
3297
3298
3299# Include these first...
3300#
3301# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3302# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3303#
3304# This code is free software; you can redistribute it and/or modify it
3305# under the terms of the GNU General Public License version 2 only, as
3306# published by the Free Software Foundation.  Oracle designates this
3307# particular file as subject to the "Classpath" exception as provided
3308# by Oracle in the LICENSE file that accompanied this code.
3309#
3310# This code is distributed in the hope that it will be useful, but WITHOUT
3311# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3312# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3313# version 2 for more details (a copy is included in the LICENSE file that
3314# accompanied this code).
3315#
3316# You should have received a copy of the GNU General Public License version
3317# 2 along with this work; if not, write to the Free Software Foundation,
3318# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3319#
3320# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3321# or visit www.oracle.com if you need additional information or have any
3322# questions.
3323#
3324
3325# Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3326# If so, then append $1 to $2 \
3327# Also set JVM_ARG_OK to true/false depending on outcome.
3328
3329
3330# Appends a string to a path variable, only adding the : when needed.
3331
3332
3333# Prepends a string to a path variable, only adding the : when needed.
3334
3335
3336# This will make sure the given variable points to a full and proper
3337# path. This means:
3338# 1) There will be no spaces in the path. On posix platforms,
3339#    spaces in the path will result in an error. On Windows,
3340#    the path will be rewritten using short-style to be space-free.
3341# 2) The path will be absolute, and it will be in unix-style (on
3342#     cygwin).
3343# $1: The name of the variable to fix
3344
3345
3346# This will make sure the given variable points to a executable
3347# with a full and proper path. This means:
3348# 1) There will be no spaces in the path. On posix platforms,
3349#    spaces in the path will result in an error. On Windows,
3350#    the path will be rewritten using short-style to be space-free.
3351# 2) The path will be absolute, and it will be in unix-style (on
3352#     cygwin).
3353# Any arguments given to the executable is preserved.
3354# If the input variable does not have a directory specification, then
3355# it need to be in the PATH.
3356# $1: The name of the variable to fix
3357
3358
3359
3360
3361# Register a --with argument but mark it as deprecated
3362# $1: The name of the with argument to deprecate, not including --with-
3363
3364
3365# Register a --enable argument but mark it as deprecated
3366# $1: The name of the with argument to deprecate, not including --enable-
3367# $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3368
3369
3370
3371
3372# Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3373# $1: variable to check
3374
3375
3376# Check that there are no unprocessed overridden variables left.
3377# If so, they are an incorrect argument and we will exit with an error.
3378
3379
3380# Setup a tool for the given variable. If correctly specified by the user,
3381# use that value, otherwise search for the tool using the supplied code snippet.
3382# $1: variable to set
3383# $2: code snippet to call to look for the tool
3384
3385
3386# Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3387# $1: variable to set
3388# $2: executable name (or list of names) to look for
3389
3390
3391# Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3392# $1: variable to set
3393# $2: executable name (or list of names) to look for
3394
3395
3396# Like BASIC_PATH_PROGS but fails if no tool was found.
3397# $1: variable to set
3398# $2: executable name (or list of names) to look for
3399
3400
3401# Like BASIC_SETUP_TOOL but fails if no tool was found.
3402# $1: variable to set
3403# $2: autoconf macro to call to look for the special tool
3404
3405
3406# Setup the most fundamental tools that relies on not much else to set up,
3407# but is used by much of the early bootstrap code.
3408
3409
3410# Setup basic configuration paths, and platform-specific stuff related to PATHs.
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420#%%% Simple tools %%%
3421
3422# Check if we have found a usable version of make
3423# $1: the path to a potential make binary (or empty)
3424# $2: the description on how we found this
3425
3426
3427# Goes looking for a usable version of GNU make.
3428
3429
3430
3431
3432
3433
3434# Check if build directory is on local disk. If not possible to determine,
3435# we prefer to claim it's local.
3436# Argument 1: directory to test
3437# Argument 2: what to do if it is on local disk
3438# Argument 3: what to do otherwise (remote disk or failure)
3439
3440
3441# Check that source files have basic read permissions set. This might
3442# not be the case in cygwin in certain conditions.
3443
3444
3445
3446
3447#
3448# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3449# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3450#
3451# This code is free software; you can redistribute it and/or modify it
3452# under the terms of the GNU General Public License version 2 only, as
3453# published by the Free Software Foundation.  Oracle designates this
3454# particular file as subject to the "Classpath" exception as provided
3455# by Oracle in the LICENSE file that accompanied this code.
3456#
3457# This code is distributed in the hope that it will be useful, but WITHOUT
3458# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3459# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3460# version 2 for more details (a copy is included in the LICENSE file that
3461# accompanied this code).
3462#
3463# You should have received a copy of the GNU General Public License version
3464# 2 along with this work; if not, write to the Free Software Foundation,
3465# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3466#
3467# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3468# or visit www.oracle.com if you need additional information or have any
3469# questions.
3470#
3471
3472
3473
3474
3475
3476# Helper function which possibly converts a path using DOS-style short mode.
3477# If so, the updated path is stored in $new_path.
3478# $1: The path to check
3479
3480
3481# Helper function which possibly converts a path using DOS-style short mode.
3482# If so, the updated path is stored in $new_path.
3483# $1: The path to check
3484
3485
3486# FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3487# and could probably be heavily simplified. However, all changes in this
3488# area tend to need lot of testing in different scenarios, and in lack of
3489# proper unit testing, cleaning this up has not been deemed worth the effort
3490# at the moment.
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500# Setup basic configuration paths, and platform-specific stuff related to PATHs.
3501
3502
3503
3504
3505#
3506# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3507# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3508#
3509# This code is free software; you can redistribute it and/or modify it
3510# under the terms of the GNU General Public License version 2 only, as
3511# published by the Free Software Foundation.  Oracle designates this
3512# particular file as subject to the "Classpath" exception as provided
3513# by Oracle in the LICENSE file that accompanied this code.
3514#
3515# This code is distributed in the hope that it will be useful, but WITHOUT
3516# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3517# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3518# version 2 for more details (a copy is included in the LICENSE file that
3519# accompanied this code).
3520#
3521# You should have received a copy of the GNU General Public License version
3522# 2 along with this work; if not, write to the Free Software Foundation,
3523# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3524#
3525# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3526# or visit www.oracle.com if you need additional information or have any
3527# questions.
3528#
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540# ... then the rest
3541#
3542# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3543# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3544#
3545# This code is free software; you can redistribute it and/or modify it
3546# under the terms of the GNU General Public License version 2 only, as
3547# published by the Free Software Foundation.  Oracle designates this
3548# particular file as subject to the "Classpath" exception as provided
3549# by Oracle in the LICENSE file that accompanied this code.
3550#
3551# This code is distributed in the hope that it will be useful, but WITHOUT
3552# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3553# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3554# version 2 for more details (a copy is included in the LICENSE file that
3555# accompanied this code).
3556#
3557# You should have received a copy of the GNU General Public License version
3558# 2 along with this work; if not, write to the Free Software Foundation,
3559# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3560#
3561# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3562# or visit www.oracle.com if you need additional information or have any
3563# questions.
3564#
3565
3566########################################################################
3567# This file handles detection of the Boot JDK. The Boot JDK detection
3568# process has been developed as a response to solve a complex real-world
3569# problem. Initially, it was simple, but it has grown as platform after
3570# platform, idiosyncracy after idiosyncracy has been supported.
3571#
3572# The basic idea is this:
3573# 1) You need an acceptable *) JDK to use as a Boot JDK
3574# 2) There are several ways to locate a JDK, that are mostly platform
3575#    dependent **)
3576# 3) You can have multiple JDKs installed
3577# 4) If possible, configure should try to dig out an acceptable JDK
3578#    automatically, without having to resort to command-line options
3579#
3580# *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3581#     javac) and not a JRE, etc.
3582#
3583# **) On Windows we typically use a well-known path.
3584#     On MacOSX we typically use the tool java_home.
3585#     On Linux we typically find javac in the $PATH, and then follow a
3586#     chain of symlinks that often ends up in a real JDK.
3587#
3588# This leads to the code where we check in different ways to locate a
3589# JDK, and if one is found, check if it is acceptable. If not, we print
3590# our reasons for rejecting it (useful when debugging non-working
3591# configure situations) and continue checking the next one.
3592########################################################################
3593
3594# Execute the check given as argument, and verify the result
3595# If the Boot JDK was previously found, do nothing
3596# $1 A command line (typically autoconf macro) to execute
3597
3598
3599# Test: Is bootjdk explicitely set by command line arguments?
3600
3601
3602# Test: Is bootjdk available from builddeps?
3603
3604
3605# Test: Is $JAVA_HOME set?
3606
3607
3608# Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3609
3610
3611# Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3612# $1: Argument to the java_home binary (optional)
3613
3614
3615# Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3616
3617
3618# Look for a jdk in the given path. If there are multiple, try to select the newest.
3619# If found, set BOOT_JDK and BOOT_JDK_FOUND.
3620# $1 = Path to directory containing jdk installations.
3621# $2 = String to append to the found JDK directory to get the proper JDK home
3622
3623
3624# Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3625# environmental variable as base for where to look.
3626# $1 Name of an environmal variable, assumed to point to the Program Files directory.
3627
3628
3629# Test: Is there a JDK installed in default, well-known locations?
3630
3631
3632# Check that a command-line tool in the Boot JDK is correct
3633# $1 = name of variable to assign
3634# $2 = name of binary
3635
3636
3637###############################################################################
3638#
3639# We need a Boot JDK to bootstrap the build.
3640#
3641
3642
3643
3644
3645
3646#
3647# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3648# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3649#
3650# This code is free software; you can redistribute it and/or modify it
3651# under the terms of the GNU General Public License version 2 only, as
3652# published by the Free Software Foundation.  Oracle designates this
3653# particular file as subject to the "Classpath" exception as provided
3654# by Oracle in the LICENSE file that accompanied this code.
3655#
3656# This code is distributed in the hope that it will be useful, but WITHOUT
3657# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3658# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3659# version 2 for more details (a copy is included in the LICENSE file that
3660# accompanied this code).
3661#
3662# You should have received a copy of the GNU General Public License version
3663# 2 along with this work; if not, write to the Free Software Foundation,
3664# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3665#
3666# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3667# or visit www.oracle.com if you need additional information or have any
3668# questions.
3669#
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690#
3691# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3692# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3693#
3694# This code is free software; you can redistribute it and/or modify it
3695# under the terms of the GNU General Public License version 2 only, as
3696# published by the Free Software Foundation.  Oracle designates this
3697# particular file as subject to the "Classpath" exception as provided
3698# by Oracle in the LICENSE file that accompanied this code.
3699#
3700# This code is distributed in the hope that it will be useful, but WITHOUT
3701# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3702# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3703# version 2 for more details (a copy is included in the LICENSE file that
3704# accompanied this code).
3705#
3706# You should have received a copy of the GNU General Public License version
3707# 2 along with this work; if not, write to the Free Software Foundation,
3708# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3709#
3710# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3711# or visit www.oracle.com if you need additional information or have any
3712# questions.
3713#
3714
3715
3716
3717
3718
3719# Documentation on common flags used for solstudio in HIGHEST.
3720#
3721# WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3722#          done with care, there are some assumptions below that need to
3723#          be understood about the use of pointers, and IEEE behavior.
3724#
3725# -fns: Use non-standard floating point mode (not IEEE 754)
3726# -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3727# -fsingle: Use single precision floating point with 'float'
3728# -xalias_level=basic: Assume memory references via basic pointer types do not alias
3729#   (Source with excessing pointer casting and data access with mixed
3730#    pointer types are not recommended)
3731# -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3732#   (If you expect perfect errno behavior, do not use this)
3733# -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3734# -xrestrict: Pointer parameters to functions do not overlap
3735#   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3736#    If you pass in multiple pointers to the same data, do not use this)
3737# -xlibmil: Inline some library routines
3738#   (If you expect perfect errno behavior, do not use this)
3739# -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3740#   (If you expect perfect errno behavior, do not use this)
3741#  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3742
3743    # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3744    # Bug?
3745    #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3746    #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3747    #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3748    #fi
3749
3750
3751
3752
3753
3754
3755# FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3756#                                   [RUN-IF-FALSE])
3757# ------------------------------------------------------------
3758# Check that the c and c++ compilers support an argument
3759
3760
3761
3762
3763#
3764# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3765# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3766#
3767# This code is free software; you can redistribute it and/or modify it
3768# under the terms of the GNU General Public License version 2 only, as
3769# published by the Free Software Foundation.  Oracle designates this
3770# particular file as subject to the "Classpath" exception as provided
3771# by Oracle in the LICENSE file that accompanied this code.
3772#
3773# This code is distributed in the hope that it will be useful, but WITHOUT
3774# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3775# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3776# version 2 for more details (a copy is included in the LICENSE file that
3777# accompanied this code).
3778#
3779# You should have received a copy of the GNU General Public License version
3780# 2 along with this work; if not, write to the Free Software Foundation,
3781# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3782#
3783# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3784# or visit www.oracle.com if you need additional information or have any
3785# questions.
3786#
3787
3788
3789
3790
3791
3792cygwin_help() {
3793  case $1 in
3794    unzip)
3795      PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3796      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3797      ;;
3798    zip)
3799      PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3800      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3801      ;;
3802    make)
3803      PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3804      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3805      ;;
3806    freetype)
3807      if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3808        HELP_MSG="To install freetype, run:
3809wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3810chmod +x /tmp/freetype-setup.exe
3811/tmp/freetype-setup.exe
3812Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3813After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3814      else
3815        HELP_MSG="You need to build a 64-bit version of freetype.
3816This is not readily available.
3817You can find source code and build instructions on
3818http://www.freetype.org/
3819If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3820      fi
3821      ;;
3822  esac
3823}
3824
3825msys_help() {
3826  PKGHANDLER_COMMAND=""
3827}
3828
3829apt_help() {
3830  case $1 in
3831    devkit)
3832      PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3833    openjdk)
3834      PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3835    alsa)
3836      PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3837    cups)
3838      PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3839    freetype)
3840      PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3841    pulse)
3842      PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3843    x11)
3844      PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3845    ccache)
3846      PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3847  esac
3848}
3849
3850yum_help() {
3851  case $1 in
3852    devkit)
3853      PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3854    openjdk)
3855      PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3856    alsa)
3857      PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3858    cups)
3859      PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3860    freetype)
3861      PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3862    pulse)
3863      PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3864    x11)
3865      PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3866    ccache)
3867      PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3868  esac
3869}
3870
3871port_help() {
3872  PKGHANDLER_COMMAND=""
3873}
3874
3875pkgutil_help() {
3876  PKGHANDLER_COMMAND=""
3877}
3878
3879pkgadd_help() {
3880  PKGHANDLER_COMMAND=""
3881}
3882
3883# This function will check if we're called from the "configure" wrapper while
3884# printing --help. If so, we will print out additional information that can
3885# only be extracted within the autoconf script, and then exit. This must be
3886# called at the very beginning in configure.ac.
3887
3888
3889
3890
3891#
3892# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3893# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3894#
3895# This code is free software; you can redistribute it and/or modify it
3896# under the terms of the GNU General Public License version 2 only, as
3897# published by the Free Software Foundation.  Oracle designates this
3898# particular file as subject to the "Classpath" exception as provided
3899# by Oracle in the LICENSE file that accompanied this code.
3900#
3901# This code is distributed in the hope that it will be useful, but WITHOUT
3902# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3903# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3904# version 2 for more details (a copy is included in the LICENSE file that
3905# accompanied this code).
3906#
3907# You should have received a copy of the GNU General Public License version
3908# 2 along with this work; if not, write to the Free Software Foundation,
3909# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3910#
3911# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3912# or visit www.oracle.com if you need additional information or have any
3913# questions.
3914#
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925###############################################################################
3926#
3927# Should we build only OpenJDK even if closed sources are present?
3928#
3929
3930
3931
3932
3933###############################################################################
3934#
3935# Setup version numbers
3936#
3937
3938
3939
3940
3941
3942
3943#
3944# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3945# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3946#
3947# This code is free software; you can redistribute it and/or modify it
3948# under the terms of the GNU General Public License version 2 only, as
3949# published by the Free Software Foundation.  Oracle designates this
3950# particular file as subject to the "Classpath" exception as provided
3951# by Oracle in the LICENSE file that accompanied this code.
3952#
3953# This code is distributed in the hope that it will be useful, but WITHOUT
3954# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3955# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3956# version 2 for more details (a copy is included in the LICENSE file that
3957# accompanied this code).
3958#
3959# You should have received a copy of the GNU General Public License version
3960# 2 along with this work; if not, write to the Free Software Foundation,
3961# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3962#
3963# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3964# or visit www.oracle.com if you need additional information or have any
3965# questions.
3966#
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986#
3987# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3988# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3989#
3990# This code is free software; you can redistribute it and/or modify it
3991# under the terms of the GNU General Public License version 2 only, as
3992# published by the Free Software Foundation.  Oracle designates this
3993# particular file as subject to the "Classpath" exception as provided
3994# by Oracle in the LICENSE file that accompanied this code.
3995#
3996# This code is distributed in the hope that it will be useful, but WITHOUT
3997# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3998# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3999# version 2 for more details (a copy is included in the LICENSE file that
4000# accompanied this code).
4001#
4002# You should have received a copy of the GNU General Public License version
4003# 2 along with this work; if not, write to the Free Software Foundation,
4004# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4005#
4006# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4007# or visit www.oracle.com if you need additional information or have any
4008# questions.
4009#
4010
4011# Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4012# Converts autoconf style CPU name to OpenJDK style, into
4013# VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4014
4015
4016# Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4017# Converts autoconf style OS name to OpenJDK style, into
4018# VAR_OS and VAR_OS_API.
4019
4020
4021# Expects $host_os $host_cpu $build_os and $build_cpu
4022# and $with_target_bits to have been setup!
4023#
4024# Translate the standard triplet(quadruplet) definition
4025# of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4026# OPENJDK_BUILD_OS, etc.
4027
4028
4029# Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4030# accordingly. Must be done after setting up build and target system, but before
4031# doing anything else with these values.
4032
4033
4034# Setup the legacy variables, for controlling the old makefiles.
4035#
4036
4037
4038
4039
4040#%%% Build and target systems %%%
4041
4042
4043
4044
4045# Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4046# Add -mX to various FLAGS variables.
4047
4048
4049
4050
4051
4052
4053#
4054# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4055# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4056#
4057# This code is free software; you can redistribute it and/or modify it
4058# under the terms of the GNU General Public License version 2 only, as
4059# published by the Free Software Foundation.  Oracle designates this
4060# particular file as subject to the "Classpath" exception as provided
4061# by Oracle in the LICENSE file that accompanied this code.
4062#
4063# This code is distributed in the hope that it will be useful, but WITHOUT
4064# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4065# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4066# version 2 for more details (a copy is included in the LICENSE file that
4067# accompanied this code).
4068#
4069# You should have received a copy of the GNU General Public License version
4070# 2 along with this work; if not, write to the Free Software Foundation,
4071# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4072#
4073# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4074# or visit www.oracle.com if you need additional information or have any
4075# questions.
4076#
4077
4078
4079
4080
4081
4082
4083
4084
4085#
4086# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4087# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4088#
4089# This code is free software; you can redistribute it and/or modify it
4090# under the terms of the GNU General Public License version 2 only, as
4091# published by the Free Software Foundation.  Oracle designates this
4092# particular file as subject to the "Classpath" exception as provided
4093# by Oracle in the LICENSE file that accompanied this code.
4094#
4095# This code is distributed in the hope that it will be useful, but WITHOUT
4096# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4097# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4098# version 2 for more details (a copy is included in the LICENSE file that
4099# accompanied this code).
4100#
4101# You should have received a copy of the GNU General Public License version
4102# 2 along with this work; if not, write to the Free Software Foundation,
4103# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4104#
4105# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4106# or visit www.oracle.com if you need additional information or have any
4107# questions.
4108#
4109
4110########################################################################
4111# This file is responsible for detecting, verifying and setting up the
4112# toolchain, i.e. the compiler, linker and related utilities. It will setup
4113# proper paths to the binaries, but it will not setup any flags.
4114#
4115# The binaries used is determined by the toolchain type, which is the family of
4116# compilers and related tools that are used.
4117########################################################################
4118
4119
4120# All valid toolchains, regardless of platform (used by help.m4)
4121VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4122
4123# These toolchains are valid on different platforms
4124VALID_TOOLCHAINS_linux="gcc clang"
4125VALID_TOOLCHAINS_solaris="solstudio"
4126VALID_TOOLCHAINS_macosx="gcc clang"
4127VALID_TOOLCHAINS_aix="xlc"
4128VALID_TOOLCHAINS_windows="microsoft"
4129
4130# Toolchain descriptions
4131TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4132TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4133TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4134TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4135TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4136
4137# Setup a number of variables describing how native output files are
4138# named on this platform/toolchain.
4139
4140
4141# Determine which toolchain type to use, and make sure it is valid for this
4142# platform. Setup various information about the selected toolchain.
4143
4144
4145# Before we start detecting the toolchain executables, we might need some
4146# special setup, e.g. additional paths etc.
4147
4148
4149# Restore path, etc
4150
4151
4152# Check if a compiler is of the toolchain type we expect, and save the version
4153# information from it. If the compiler does not match the expected type,
4154# this function will abort using AC_MSG_ERROR. If it matches, the version will
4155# be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4156# the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4157#
4158# $1 = compiler to test (CC or CXX)
4159# $2 = human readable name of compiler (C or C++)
4160
4161
4162# Try to locate the given C or C++ compiler in the path, or otherwise.
4163#
4164# $1 = compiler to test (CC or CXX)
4165# $2 = human readable name of compiler (C or C++)
4166# $3 = list of compiler names to search for
4167
4168
4169# Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4170# preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4171# archiver (AR). Verify that the compilers are correct according to the
4172# toolchain type.
4173
4174
4175# Setup additional tools that is considered a part of the toolchain, but not the
4176# core part. Many of these are highly platform-specific and do not exist,
4177# and/or are not needed on all platforms.
4178
4179
4180# Setup the build tools (i.e, the compiler and linker used to build programs
4181# that should be run on the build platform, not the target platform, as a build
4182# helper). Since the non-cross-compile case uses the normal, target compilers
4183# for this, we can only do this after these have been setup.
4184
4185
4186# Setup legacy variables that are still needed as alternative ways to refer to
4187# parts of the toolchain.
4188
4189
4190# Do some additional checks on the detected tools.
4191
4192
4193# Setup the JTReg Regression Test Harness.
4194
4195
4196#
4197# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4198# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4199#
4200# This code is free software; you can redistribute it and/or modify it
4201# under the terms of the GNU General Public License version 2 only, as
4202# published by the Free Software Foundation.  Oracle designates this
4203# particular file as subject to the "Classpath" exception as provided
4204# by Oracle in the LICENSE file that accompanied this code.
4205#
4206# This code is distributed in the hope that it will be useful, but WITHOUT
4207# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4208# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4209# version 2 for more details (a copy is included in the LICENSE file that
4210# accompanied this code).
4211#
4212# You should have received a copy of the GNU General Public License version
4213# 2 along with this work; if not, write to the Free Software Foundation,
4214# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4215#
4216# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4217# or visit www.oracle.com if you need additional information or have any
4218# questions.
4219#
4220
4221
4222
4223
4224
4225
4226
4227# Check if the VS env variables were setup prior to running configure.
4228# If not, then find vcvarsall.bat and run it automatically, and integrate
4229# the set env variables into the spec file.
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240# This line needs to be here, verbatim, after all includes and the dummy hook
4241# definitions. It is replaced with custom functionality when building
4242# custom sources.
4243#CUSTOM_AUTOCONF_INCLUDE
4244
4245# Do not change or remove the following line, it is needed for consistency checks:
4246DATE_WHEN_GENERATED=1396624161
4247
4248###############################################################################
4249#
4250# Initialization / Boot-strapping
4251#
4252# The bootstrapping process needs to solve the "chicken or the egg" problem,
4253# thus it jumps back and forth, each time gaining something needed later on.
4254#
4255###############################################################################
4256
4257# If we are requested to print additional help, do that and then exit.
4258# This must be the very first call.
4259
4260  if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4261    $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4262    $PRINTF "Which are valid to use depends on the build platform.\n"
4263    for toolchain in $VALID_TOOLCHAINS_all; do
4264      # Use indirect variable referencing
4265      toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4266      TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4267      $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4268    done
4269
4270    # And now exit directly
4271    exit 0
4272  fi
4273
4274
4275# Basic initialization that must happen first of all in the normal process.
4276
4277  # Save the original command line. This is passed to us by the wrapper configure script.
4278
4279  DATE_WHEN_CONFIGURED=`LANG=C date`
4280
4281  { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4282$as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4284$as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4285
4286
4287  # Start with tools that do not need have cross compilation support
4288  # and can be expected to be found in the default PATH. These tools are
4289  # used by configure. Nor are these tools expected to be found in the
4290  # devkit from the builddeps server either, since they are
4291  # needed to download the devkit.
4292
4293  # First are all the simple required tools.
4294
4295
4296
4297  # Publish this variable in the help.
4298
4299
4300  if test "x$BASENAME" = x; then
4301    # The variable is not set by user, try to locate tool using the code snippet
4302    for ac_prog in basename
4303do
4304  # Extract the first word of "$ac_prog", so it can be a program name with args.
4305set dummy $ac_prog; ac_word=$2
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if ${ac_cv_path_BASENAME+:} false; then :
4309  $as_echo_n "(cached) " >&6
4310else
4311  case $BASENAME in
4312  [\\/]* | ?:[\\/]*)
4313  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4314  ;;
4315  *)
4316  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323    ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325    break 2
4326  fi
4327done
4328  done
4329IFS=$as_save_IFS
4330
4331  ;;
4332esac
4333fi
4334BASENAME=$ac_cv_path_BASENAME
4335if test -n "$BASENAME"; then
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4337$as_echo "$BASENAME" >&6; }
4338else
4339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340$as_echo "no" >&6; }
4341fi
4342
4343
4344  test -n "$BASENAME" && break
4345done
4346
4347  else
4348    # The variable is set, but is it from the command line or the environment?
4349
4350    # Try to remove the string !BASENAME! from our list.
4351    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4352    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4353      # If it failed, the variable was not from the command line. Ignore it,
4354      # but warn the user (except for BASH, which is always set by the calling BASH).
4355      if test "xBASENAME" != xBASH; then
4356        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4357$as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4358      fi
4359      # Try to locate tool using the code snippet
4360      for ac_prog in basename
4361do
4362  # Extract the first word of "$ac_prog", so it can be a program name with args.
4363set dummy $ac_prog; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if ${ac_cv_path_BASENAME+:} false; then :
4367  $as_echo_n "(cached) " >&6
4368else
4369  case $BASENAME in
4370  [\\/]* | ?:[\\/]*)
4371  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4372  ;;
4373  *)
4374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381    ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389  ;;
4390esac
4391fi
4392BASENAME=$ac_cv_path_BASENAME
4393if test -n "$BASENAME"; then
4394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4395$as_echo "$BASENAME" >&6; }
4396else
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398$as_echo "no" >&6; }
4399fi
4400
4401
4402  test -n "$BASENAME" && break
4403done
4404
4405    else
4406      # If it succeeded, then it was overridden by the user. We will use it
4407      # for the tool.
4408
4409      # First remove it from the list of overridden variables, so we can test
4410      # for unknown variables in the end.
4411      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4412
4413      # Check if the provided tool contains a complete path.
4414      tool_specified="$BASENAME"
4415      tool_basename="${tool_specified##*/}"
4416      if test "x$tool_basename" = "x$tool_specified"; then
4417        # A command without a complete path is provided, search $PATH.
4418        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4419$as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4420        # Extract the first word of "$tool_basename", so it can be a program name with args.
4421set dummy $tool_basename; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if ${ac_cv_path_BASENAME+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  case $BASENAME in
4428  [\\/]* | ?:[\\/]*)
4429  ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4430  ;;
4431  *)
4432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439    ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444  done
4445IFS=$as_save_IFS
4446
4447  ;;
4448esac
4449fi
4450BASENAME=$ac_cv_path_BASENAME
4451if test -n "$BASENAME"; then
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4453$as_echo "$BASENAME" >&6; }
4454else
4455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
4457fi
4458
4459
4460        if test "x$BASENAME" = x; then
4461          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4462        fi
4463      else
4464        # Otherwise we believe it is a complete path. Use it as it is.
4465        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4466$as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4467        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4468$as_echo_n "checking for BASENAME... " >&6; }
4469        if test ! -x "$tool_specified"; then
4470          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4471$as_echo "not found" >&6; }
4472          as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4473        fi
4474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4475$as_echo "$tool_specified" >&6; }
4476      fi
4477    fi
4478  fi
4479
4480
4481
4482  if test "x$BASENAME" = x; then
4483    as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4484  fi
4485
4486
4487
4488
4489
4490  # Publish this variable in the help.
4491
4492
4493  if test "x$BASH" = x; then
4494    # The variable is not set by user, try to locate tool using the code snippet
4495    for ac_prog in bash
4496do
4497  # Extract the first word of "$ac_prog", so it can be a program name with args.
4498set dummy $ac_prog; ac_word=$2
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
4501if ${ac_cv_path_BASH+:} false; then :
4502  $as_echo_n "(cached) " >&6
4503else
4504  case $BASH in
4505  [\\/]* | ?:[\\/]*)
4506  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4507  ;;
4508  *)
4509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524  ;;
4525esac
4526fi
4527BASH=$ac_cv_path_BASH
4528if test -n "$BASH"; then
4529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4530$as_echo "$BASH" >&6; }
4531else
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534fi
4535
4536
4537  test -n "$BASH" && break
4538done
4539
4540  else
4541    # The variable is set, but is it from the command line or the environment?
4542
4543    # Try to remove the string !BASH! from our list.
4544    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4545    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4546      # If it failed, the variable was not from the command line. Ignore it,
4547      # but warn the user (except for BASH, which is always set by the calling BASH).
4548      if test "xBASH" != xBASH; then
4549        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4550$as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4551      fi
4552      # Try to locate tool using the code snippet
4553      for ac_prog in bash
4554do
4555  # Extract the first word of "$ac_prog", so it can be a program name with args.
4556set dummy $ac_prog; ac_word=$2
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558$as_echo_n "checking for $ac_word... " >&6; }
4559if ${ac_cv_path_BASH+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562  case $BASH in
4563  [\\/]* | ?:[\\/]*)
4564  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4565  ;;
4566  *)
4567  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570  IFS=$as_save_IFS
4571  test -z "$as_dir" && as_dir=.
4572    for ac_exec_ext in '' $ac_executable_extensions; do
4573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582  ;;
4583esac
4584fi
4585BASH=$ac_cv_path_BASH
4586if test -n "$BASH"; then
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4588$as_echo "$BASH" >&6; }
4589else
4590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592fi
4593
4594
4595  test -n "$BASH" && break
4596done
4597
4598    else
4599      # If it succeeded, then it was overridden by the user. We will use it
4600      # for the tool.
4601
4602      # First remove it from the list of overridden variables, so we can test
4603      # for unknown variables in the end.
4604      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4605
4606      # Check if the provided tool contains a complete path.
4607      tool_specified="$BASH"
4608      tool_basename="${tool_specified##*/}"
4609      if test "x$tool_basename" = "x$tool_specified"; then
4610        # A command without a complete path is provided, search $PATH.
4611        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4612$as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4613        # Extract the first word of "$tool_basename", so it can be a program name with args.
4614set dummy $tool_basename; ac_word=$2
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if ${ac_cv_path_BASH+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620  case $BASH in
4621  [\\/]* | ?:[\\/]*)
4622  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4623  ;;
4624  *)
4625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628  IFS=$as_save_IFS
4629  test -z "$as_dir" && as_dir=.
4630    for ac_exec_ext in '' $ac_executable_extensions; do
4631  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4633    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634    break 2
4635  fi
4636done
4637  done
4638IFS=$as_save_IFS
4639
4640  ;;
4641esac
4642fi
4643BASH=$ac_cv_path_BASH
4644if test -n "$BASH"; then
4645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4646$as_echo "$BASH" >&6; }
4647else
4648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649$as_echo "no" >&6; }
4650fi
4651
4652
4653        if test "x$BASH" = x; then
4654          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4655        fi
4656      else
4657        # Otherwise we believe it is a complete path. Use it as it is.
4658        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4659$as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4660        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4661$as_echo_n "checking for BASH... " >&6; }
4662        if test ! -x "$tool_specified"; then
4663          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4664$as_echo "not found" >&6; }
4665          as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4666        fi
4667        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4668$as_echo "$tool_specified" >&6; }
4669      fi
4670    fi
4671  fi
4672
4673
4674
4675  if test "x$BASH" = x; then
4676    as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4677  fi
4678
4679
4680
4681
4682
4683  # Publish this variable in the help.
4684
4685
4686  if test "x$CAT" = x; then
4687    # The variable is not set by user, try to locate tool using the code snippet
4688    for ac_prog in cat
4689do
4690  # Extract the first word of "$ac_prog", so it can be a program name with args.
4691set dummy $ac_prog; ac_word=$2
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if ${ac_cv_path_CAT+:} false; then :
4695  $as_echo_n "(cached) " >&6
4696else
4697  case $CAT in
4698  [\\/]* | ?:[\\/]*)
4699  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4700  ;;
4701  *)
4702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705  IFS=$as_save_IFS
4706  test -z "$as_dir" && as_dir=.
4707    for ac_exec_ext in '' $ac_executable_extensions; do
4708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714  done
4715IFS=$as_save_IFS
4716
4717  ;;
4718esac
4719fi
4720CAT=$ac_cv_path_CAT
4721if test -n "$CAT"; then
4722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4723$as_echo "$CAT" >&6; }
4724else
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726$as_echo "no" >&6; }
4727fi
4728
4729
4730  test -n "$CAT" && break
4731done
4732
4733  else
4734    # The variable is set, but is it from the command line or the environment?
4735
4736    # Try to remove the string !CAT! from our list.
4737    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4738    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4739      # If it failed, the variable was not from the command line. Ignore it,
4740      # but warn the user (except for BASH, which is always set by the calling BASH).
4741      if test "xCAT" != xBASH; then
4742        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4743$as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4744      fi
4745      # Try to locate tool using the code snippet
4746      for ac_prog in cat
4747do
4748  # Extract the first word of "$ac_prog", so it can be a program name with args.
4749set dummy $ac_prog; ac_word=$2
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if ${ac_cv_path_CAT+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  case $CAT in
4756  [\\/]* | ?:[\\/]*)
4757  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4758  ;;
4759  *)
4760  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763  IFS=$as_save_IFS
4764  test -z "$as_dir" && as_dir=.
4765    for ac_exec_ext in '' $ac_executable_extensions; do
4766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769    break 2
4770  fi
4771done
4772  done
4773IFS=$as_save_IFS
4774
4775  ;;
4776esac
4777fi
4778CAT=$ac_cv_path_CAT
4779if test -n "$CAT"; then
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4781$as_echo "$CAT" >&6; }
4782else
4783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787
4788  test -n "$CAT" && break
4789done
4790
4791    else
4792      # If it succeeded, then it was overridden by the user. We will use it
4793      # for the tool.
4794
4795      # First remove it from the list of overridden variables, so we can test
4796      # for unknown variables in the end.
4797      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4798
4799      # Check if the provided tool contains a complete path.
4800      tool_specified="$CAT"
4801      tool_basename="${tool_specified##*/}"
4802      if test "x$tool_basename" = "x$tool_specified"; then
4803        # A command without a complete path is provided, search $PATH.
4804        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4805$as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4806        # Extract the first word of "$tool_basename", so it can be a program name with args.
4807set dummy $tool_basename; ac_word=$2
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809$as_echo_n "checking for $ac_word... " >&6; }
4810if ${ac_cv_path_CAT+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  case $CAT in
4814  [\\/]* | ?:[\\/]*)
4815  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4816  ;;
4817  *)
4818  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821  IFS=$as_save_IFS
4822  test -z "$as_dir" && as_dir=.
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827    break 2
4828  fi
4829done
4830  done
4831IFS=$as_save_IFS
4832
4833  ;;
4834esac
4835fi
4836CAT=$ac_cv_path_CAT
4837if test -n "$CAT"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4839$as_echo "$CAT" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
4846        if test "x$CAT" = x; then
4847          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4848        fi
4849      else
4850        # Otherwise we believe it is a complete path. Use it as it is.
4851        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4852$as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4853        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4854$as_echo_n "checking for CAT... " >&6; }
4855        if test ! -x "$tool_specified"; then
4856          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4857$as_echo "not found" >&6; }
4858          as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4859        fi
4860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4861$as_echo "$tool_specified" >&6; }
4862      fi
4863    fi
4864  fi
4865
4866
4867
4868  if test "x$CAT" = x; then
4869    as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4870  fi
4871
4872
4873
4874
4875
4876  # Publish this variable in the help.
4877
4878
4879  if test "x$CHMOD" = x; then
4880    # The variable is not set by user, try to locate tool using the code snippet
4881    for ac_prog in chmod
4882do
4883  # Extract the first word of "$ac_prog", so it can be a program name with args.
4884set dummy $ac_prog; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if ${ac_cv_path_CHMOD+:} false; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  case $CHMOD in
4891  [\\/]* | ?:[\\/]*)
4892  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4893  ;;
4894  *)
4895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900    for ac_exec_ext in '' $ac_executable_extensions; do
4901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907  done
4908IFS=$as_save_IFS
4909
4910  ;;
4911esac
4912fi
4913CHMOD=$ac_cv_path_CHMOD
4914if test -n "$CHMOD"; then
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4916$as_echo "$CHMOD" >&6; }
4917else
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
4922
4923  test -n "$CHMOD" && break
4924done
4925
4926  else
4927    # The variable is set, but is it from the command line or the environment?
4928
4929    # Try to remove the string !CHMOD! from our list.
4930    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4931    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4932      # If it failed, the variable was not from the command line. Ignore it,
4933      # but warn the user (except for BASH, which is always set by the calling BASH).
4934      if test "xCHMOD" != xBASH; then
4935        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4936$as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4937      fi
4938      # Try to locate tool using the code snippet
4939      for ac_prog in chmod
4940do
4941  # Extract the first word of "$ac_prog", so it can be a program name with args.
4942set dummy $ac_prog; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if ${ac_cv_path_CHMOD+:} false; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  case $CHMOD in
4949  [\\/]* | ?:[\\/]*)
4950  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4951  ;;
4952  *)
4953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968  ;;
4969esac
4970fi
4971CHMOD=$ac_cv_path_CHMOD
4972if test -n "$CHMOD"; then
4973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4974$as_echo "$CHMOD" >&6; }
4975else
4976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
4978fi
4979
4980
4981  test -n "$CHMOD" && break
4982done
4983
4984    else
4985      # If it succeeded, then it was overridden by the user. We will use it
4986      # for the tool.
4987
4988      # First remove it from the list of overridden variables, so we can test
4989      # for unknown variables in the end.
4990      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4991
4992      # Check if the provided tool contains a complete path.
4993      tool_specified="$CHMOD"
4994      tool_basename="${tool_specified##*/}"
4995      if test "x$tool_basename" = "x$tool_specified"; then
4996        # A command without a complete path is provided, search $PATH.
4997        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4998$as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4999        # Extract the first word of "$tool_basename", so it can be a program name with args.
5000set dummy $tool_basename; ac_word=$2
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
5003if ${ac_cv_path_CHMOD+:} false; then :
5004  $as_echo_n "(cached) " >&6
5005else
5006  case $CHMOD in
5007  [\\/]* | ?:[\\/]*)
5008  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5009  ;;
5010  *)
5011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014  IFS=$as_save_IFS
5015  test -z "$as_dir" && as_dir=.
5016    for ac_exec_ext in '' $ac_executable_extensions; do
5017  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020    break 2
5021  fi
5022done
5023  done
5024IFS=$as_save_IFS
5025
5026  ;;
5027esac
5028fi
5029CHMOD=$ac_cv_path_CHMOD
5030if test -n "$CHMOD"; then
5031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5032$as_echo "$CHMOD" >&6; }
5033else
5034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5036fi
5037
5038
5039        if test "x$CHMOD" = x; then
5040          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5041        fi
5042      else
5043        # Otherwise we believe it is a complete path. Use it as it is.
5044        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5045$as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5046        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5047$as_echo_n "checking for CHMOD... " >&6; }
5048        if test ! -x "$tool_specified"; then
5049          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5050$as_echo "not found" >&6; }
5051          as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5052        fi
5053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5054$as_echo "$tool_specified" >&6; }
5055      fi
5056    fi
5057  fi
5058
5059
5060
5061  if test "x$CHMOD" = x; then
5062    as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5063  fi
5064
5065
5066
5067
5068
5069  # Publish this variable in the help.
5070
5071
5072  if test "x$CMP" = x; then
5073    # The variable is not set by user, try to locate tool using the code snippet
5074    for ac_prog in cmp
5075do
5076  # Extract the first word of "$ac_prog", so it can be a program name with args.
5077set dummy $ac_prog; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_path_CMP+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  case $CMP in
5084  [\\/]* | ?:[\\/]*)
5085  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5086  ;;
5087  *)
5088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091  IFS=$as_save_IFS
5092  test -z "$as_dir" && as_dir=.
5093    for ac_exec_ext in '' $ac_executable_extensions; do
5094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097    break 2
5098  fi
5099done
5100  done
5101IFS=$as_save_IFS
5102
5103  ;;
5104esac
5105fi
5106CMP=$ac_cv_path_CMP
5107if test -n "$CMP"; then
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5109$as_echo "$CMP" >&6; }
5110else
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114
5115
5116  test -n "$CMP" && break
5117done
5118
5119  else
5120    # The variable is set, but is it from the command line or the environment?
5121
5122    # Try to remove the string !CMP! from our list.
5123    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5124    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5125      # If it failed, the variable was not from the command line. Ignore it,
5126      # but warn the user (except for BASH, which is always set by the calling BASH).
5127      if test "xCMP" != xBASH; then
5128        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5129$as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5130      fi
5131      # Try to locate tool using the code snippet
5132      for ac_prog in cmp
5133do
5134  # Extract the first word of "$ac_prog", so it can be a program name with args.
5135set dummy $ac_prog; ac_word=$2
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137$as_echo_n "checking for $ac_word... " >&6; }
5138if ${ac_cv_path_CMP+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  case $CMP in
5142  [\\/]* | ?:[\\/]*)
5143  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5144  ;;
5145  *)
5146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151    for ac_exec_ext in '' $ac_executable_extensions; do
5152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158  done
5159IFS=$as_save_IFS
5160
5161  ;;
5162esac
5163fi
5164CMP=$ac_cv_path_CMP
5165if test -n "$CMP"; then
5166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5167$as_echo "$CMP" >&6; }
5168else
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }
5171fi
5172
5173
5174  test -n "$CMP" && break
5175done
5176
5177    else
5178      # If it succeeded, then it was overridden by the user. We will use it
5179      # for the tool.
5180
5181      # First remove it from the list of overridden variables, so we can test
5182      # for unknown variables in the end.
5183      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5184
5185      # Check if the provided tool contains a complete path.
5186      tool_specified="$CMP"
5187      tool_basename="${tool_specified##*/}"
5188      if test "x$tool_basename" = "x$tool_specified"; then
5189        # A command without a complete path is provided, search $PATH.
5190        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5191$as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5192        # Extract the first word of "$tool_basename", so it can be a program name with args.
5193set dummy $tool_basename; ac_word=$2
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195$as_echo_n "checking for $ac_word... " >&6; }
5196if ${ac_cv_path_CMP+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  case $CMP in
5200  [\\/]* | ?:[\\/]*)
5201  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5202  ;;
5203  *)
5204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209    for ac_exec_ext in '' $ac_executable_extensions; do
5210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213    break 2
5214  fi
5215done
5216  done
5217IFS=$as_save_IFS
5218
5219  ;;
5220esac
5221fi
5222CMP=$ac_cv_path_CMP
5223if test -n "$CMP"; then
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5225$as_echo "$CMP" >&6; }
5226else
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231
5232        if test "x$CMP" = x; then
5233          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5234        fi
5235      else
5236        # Otherwise we believe it is a complete path. Use it as it is.
5237        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5238$as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5239        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5240$as_echo_n "checking for CMP... " >&6; }
5241        if test ! -x "$tool_specified"; then
5242          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5243$as_echo "not found" >&6; }
5244          as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5245        fi
5246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5247$as_echo "$tool_specified" >&6; }
5248      fi
5249    fi
5250  fi
5251
5252
5253
5254  if test "x$CMP" = x; then
5255    as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5256  fi
5257
5258
5259
5260
5261
5262  # Publish this variable in the help.
5263
5264
5265  if test "x$COMM" = x; then
5266    # The variable is not set by user, try to locate tool using the code snippet
5267    for ac_prog in comm
5268do
5269  # Extract the first word of "$ac_prog", so it can be a program name with args.
5270set dummy $ac_prog; ac_word=$2
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272$as_echo_n "checking for $ac_word... " >&6; }
5273if ${ac_cv_path_COMM+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  case $COMM in
5277  [\\/]* | ?:[\\/]*)
5278  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5279  ;;
5280  *)
5281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH
5283do
5284  IFS=$as_save_IFS
5285  test -z "$as_dir" && as_dir=.
5286    for ac_exec_ext in '' $ac_executable_extensions; do
5287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290    break 2
5291  fi
5292done
5293  done
5294IFS=$as_save_IFS
5295
5296  ;;
5297esac
5298fi
5299COMM=$ac_cv_path_COMM
5300if test -n "$COMM"; then
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5302$as_echo "$COMM" >&6; }
5303else
5304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
5306fi
5307
5308
5309  test -n "$COMM" && break
5310done
5311
5312  else
5313    # The variable is set, but is it from the command line or the environment?
5314
5315    # Try to remove the string !COMM! from our list.
5316    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5317    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5318      # If it failed, the variable was not from the command line. Ignore it,
5319      # but warn the user (except for BASH, which is always set by the calling BASH).
5320      if test "xCOMM" != xBASH; then
5321        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5322$as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5323      fi
5324      # Try to locate tool using the code snippet
5325      for ac_prog in comm
5326do
5327  # Extract the first word of "$ac_prog", so it can be a program name with args.
5328set dummy $ac_prog; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if ${ac_cv_path_COMM+:} false; then :
5332  $as_echo_n "(cached) " >&6
5333else
5334  case $COMM in
5335  [\\/]* | ?:[\\/]*)
5336  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5337  ;;
5338  *)
5339  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344    for ac_exec_ext in '' $ac_executable_extensions; do
5345  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5347    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351  done
5352IFS=$as_save_IFS
5353
5354  ;;
5355esac
5356fi
5357COMM=$ac_cv_path_COMM
5358if test -n "$COMM"; then
5359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5360$as_echo "$COMM" >&6; }
5361else
5362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363$as_echo "no" >&6; }
5364fi
5365
5366
5367  test -n "$COMM" && break
5368done
5369
5370    else
5371      # If it succeeded, then it was overridden by the user. We will use it
5372      # for the tool.
5373
5374      # First remove it from the list of overridden variables, so we can test
5375      # for unknown variables in the end.
5376      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5377
5378      # Check if the provided tool contains a complete path.
5379      tool_specified="$COMM"
5380      tool_basename="${tool_specified##*/}"
5381      if test "x$tool_basename" = "x$tool_specified"; then
5382        # A command without a complete path is provided, search $PATH.
5383        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5384$as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5385        # Extract the first word of "$tool_basename", so it can be a program name with args.
5386set dummy $tool_basename; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_path_COMM+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  case $COMM in
5393  [\\/]* | ?:[\\/]*)
5394  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5395  ;;
5396  *)
5397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400  IFS=$as_save_IFS
5401  test -z "$as_dir" && as_dir=.
5402    for ac_exec_ext in '' $ac_executable_extensions; do
5403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406    break 2
5407  fi
5408done
5409  done
5410IFS=$as_save_IFS
5411
5412  ;;
5413esac
5414fi
5415COMM=$ac_cv_path_COMM
5416if test -n "$COMM"; then
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5418$as_echo "$COMM" >&6; }
5419else
5420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423
5424
5425        if test "x$COMM" = x; then
5426          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5427        fi
5428      else
5429        # Otherwise we believe it is a complete path. Use it as it is.
5430        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5431$as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5432        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5433$as_echo_n "checking for COMM... " >&6; }
5434        if test ! -x "$tool_specified"; then
5435          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5436$as_echo "not found" >&6; }
5437          as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5438        fi
5439        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5440$as_echo "$tool_specified" >&6; }
5441      fi
5442    fi
5443  fi
5444
5445
5446
5447  if test "x$COMM" = x; then
5448    as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5449  fi
5450
5451
5452
5453
5454
5455  # Publish this variable in the help.
5456
5457
5458  if test "x$CP" = x; then
5459    # The variable is not set by user, try to locate tool using the code snippet
5460    for ac_prog in cp
5461do
5462  # Extract the first word of "$ac_prog", so it can be a program name with args.
5463set dummy $ac_prog; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_path_CP+:} false; then :
5467  $as_echo_n "(cached) " >&6
5468else
5469  case $CP in
5470  [\\/]* | ?:[\\/]*)
5471  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5472  ;;
5473  *)
5474  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477  IFS=$as_save_IFS
5478  test -z "$as_dir" && as_dir=.
5479    for ac_exec_ext in '' $ac_executable_extensions; do
5480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483    break 2
5484  fi
5485done
5486  done
5487IFS=$as_save_IFS
5488
5489  ;;
5490esac
5491fi
5492CP=$ac_cv_path_CP
5493if test -n "$CP"; then
5494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5495$as_echo "$CP" >&6; }
5496else
5497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498$as_echo "no" >&6; }
5499fi
5500
5501
5502  test -n "$CP" && break
5503done
5504
5505  else
5506    # The variable is set, but is it from the command line or the environment?
5507
5508    # Try to remove the string !CP! from our list.
5509    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5510    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5511      # If it failed, the variable was not from the command line. Ignore it,
5512      # but warn the user (except for BASH, which is always set by the calling BASH).
5513      if test "xCP" != xBASH; then
5514        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5515$as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5516      fi
5517      # Try to locate tool using the code snippet
5518      for ac_prog in cp
5519do
5520  # Extract the first word of "$ac_prog", so it can be a program name with args.
5521set dummy $ac_prog; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_path_CP+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  case $CP in
5528  [\\/]* | ?:[\\/]*)
5529  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5530  ;;
5531  *)
5532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537    for ac_exec_ext in '' $ac_executable_extensions; do
5538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541    break 2
5542  fi
5543done
5544  done
5545IFS=$as_save_IFS
5546
5547  ;;
5548esac
5549fi
5550CP=$ac_cv_path_CP
5551if test -n "$CP"; then
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5553$as_echo "$CP" >&6; }
5554else
5555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559
5560  test -n "$CP" && break
5561done
5562
5563    else
5564      # If it succeeded, then it was overridden by the user. We will use it
5565      # for the tool.
5566
5567      # First remove it from the list of overridden variables, so we can test
5568      # for unknown variables in the end.
5569      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5570
5571      # Check if the provided tool contains a complete path.
5572      tool_specified="$CP"
5573      tool_basename="${tool_specified##*/}"
5574      if test "x$tool_basename" = "x$tool_specified"; then
5575        # A command without a complete path is provided, search $PATH.
5576        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5577$as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5578        # Extract the first word of "$tool_basename", so it can be a program name with args.
5579set dummy $tool_basename; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if ${ac_cv_path_CP+:} false; then :
5583  $as_echo_n "(cached) " >&6
5584else
5585  case $CP in
5586  [\\/]* | ?:[\\/]*)
5587  ac_cv_path_CP="$CP" # Let the user override the test with a path.
5588  ;;
5589  *)
5590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593  IFS=$as_save_IFS
5594  test -z "$as_dir" && as_dir=.
5595    for ac_exec_ext in '' $ac_executable_extensions; do
5596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599    break 2
5600  fi
5601done
5602  done
5603IFS=$as_save_IFS
5604
5605  ;;
5606esac
5607fi
5608CP=$ac_cv_path_CP
5609if test -n "$CP"; then
5610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5611$as_echo "$CP" >&6; }
5612else
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614$as_echo "no" >&6; }
5615fi
5616
5617
5618        if test "x$CP" = x; then
5619          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5620        fi
5621      else
5622        # Otherwise we believe it is a complete path. Use it as it is.
5623        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5624$as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5625        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5626$as_echo_n "checking for CP... " >&6; }
5627        if test ! -x "$tool_specified"; then
5628          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5629$as_echo "not found" >&6; }
5630          as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5631        fi
5632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5633$as_echo "$tool_specified" >&6; }
5634      fi
5635    fi
5636  fi
5637
5638
5639
5640  if test "x$CP" = x; then
5641    as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5642  fi
5643
5644
5645
5646
5647
5648  # Publish this variable in the help.
5649
5650
5651  if test "x$CPIO" = x; then
5652    # The variable is not set by user, try to locate tool using the code snippet
5653    for ac_prog in cpio
5654do
5655  # Extract the first word of "$ac_prog", so it can be a program name with args.
5656set dummy $ac_prog; ac_word=$2
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658$as_echo_n "checking for $ac_word... " >&6; }
5659if ${ac_cv_path_CPIO+:} false; then :
5660  $as_echo_n "(cached) " >&6
5661else
5662  case $CPIO in
5663  [\\/]* | ?:[\\/]*)
5664  ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5665  ;;
5666  *)
5667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672    for ac_exec_ext in '' $ac_executable_extensions; do
5673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674    ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679  done
5680IFS=$as_save_IFS
5681
5682  ;;
5683esac
5684fi
5685CPIO=$ac_cv_path_CPIO
5686if test -n "$CPIO"; then
5687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5688$as_echo "$CPIO" >&6; }
5689else
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }
5692fi
5693
5694
5695  test -n "$CPIO" && break
5696done
5697
5698  else
5699    # The variable is set, but is it from the command line or the environment?
5700
5701    # Try to remove the string !CPIO! from our list.
5702    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5703    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5704      # If it failed, the variable was not from the command line. Ignore it,
5705      # but warn the user (except for BASH, which is always set by the calling BASH).
5706      if test "xCPIO" != xBASH; then
5707        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5708$as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5709      fi
5710      # Try to locate tool using the code snippet
5711      for ac_prog in cpio
5712do
5713  # Extract the first word of "$ac_prog", so it can be a program name with args.
5714set dummy $ac_prog; ac_word=$2
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716$as_echo_n "checking for $ac_word... " >&6; }
5717if ${ac_cv_path_CPIO+:} false; then :
5718  $as_echo_n "(cached) " >&6
5719else
5720  case $CPIO in
5721  [\\/]* | ?:[\\/]*)
5722  ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5723  ;;
5724  *)
5725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730    for ac_exec_ext in '' $ac_executable_extensions; do
5731  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737  done
5738IFS=$as_save_IFS
5739
5740  ;;
5741esac
5742fi
5743CPIO=$ac_cv_path_CPIO
5744if test -n "$CPIO"; then
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5746$as_echo "$CPIO" >&6; }
5747else
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752
5753  test -n "$CPIO" && break
5754done
5755
5756    else
5757      # If it succeeded, then it was overridden by the user. We will use it
5758      # for the tool.
5759
5760      # First remove it from the list of overridden variables, so we can test
5761      # for unknown variables in the end.
5762      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5763
5764      # Check if the provided tool contains a complete path.
5765      tool_specified="$CPIO"
5766      tool_basename="${tool_specified##*/}"
5767      if test "x$tool_basename" = "x$tool_specified"; then
5768        # A command without a complete path is provided, search $PATH.
5769        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5770$as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5771        # Extract the first word of "$tool_basename", so it can be a program name with args.
5772set dummy $tool_basename; ac_word=$2
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774$as_echo_n "checking for $ac_word... " >&6; }
5775if ${ac_cv_path_CPIO+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  case $CPIO in
5779  [\\/]* | ?:[\\/]*)
5780  ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5781  ;;
5782  *)
5783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784for as_dir in $PATH
5785do
5786  IFS=$as_save_IFS
5787  test -z "$as_dir" && as_dir=.
5788    for ac_exec_ext in '' $ac_executable_extensions; do
5789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790    ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792    break 2
5793  fi
5794done
5795  done
5796IFS=$as_save_IFS
5797
5798  ;;
5799esac
5800fi
5801CPIO=$ac_cv_path_CPIO
5802if test -n "$CPIO"; then
5803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5804$as_echo "$CPIO" >&6; }
5805else
5806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810
5811        if test "x$CPIO" = x; then
5812          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5813        fi
5814      else
5815        # Otherwise we believe it is a complete path. Use it as it is.
5816        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5817$as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5818        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5819$as_echo_n "checking for CPIO... " >&6; }
5820        if test ! -x "$tool_specified"; then
5821          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5822$as_echo "not found" >&6; }
5823          as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5824        fi
5825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5826$as_echo "$tool_specified" >&6; }
5827      fi
5828    fi
5829  fi
5830
5831
5832
5833  if test "x$CPIO" = x; then
5834    as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5835  fi
5836
5837
5838
5839
5840
5841  # Publish this variable in the help.
5842
5843
5844  if test "x$CUT" = x; then
5845    # The variable is not set by user, try to locate tool using the code snippet
5846    for ac_prog in cut
5847do
5848  # Extract the first word of "$ac_prog", so it can be a program name with args.
5849set dummy $ac_prog; ac_word=$2
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851$as_echo_n "checking for $ac_word... " >&6; }
5852if ${ac_cv_path_CUT+:} false; then :
5853  $as_echo_n "(cached) " >&6
5854else
5855  case $CUT in
5856  [\\/]* | ?:[\\/]*)
5857  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5858  ;;
5859  *)
5860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863  IFS=$as_save_IFS
5864  test -z "$as_dir" && as_dir=.
5865    for ac_exec_ext in '' $ac_executable_extensions; do
5866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869    break 2
5870  fi
5871done
5872  done
5873IFS=$as_save_IFS
5874
5875  ;;
5876esac
5877fi
5878CUT=$ac_cv_path_CUT
5879if test -n "$CUT"; then
5880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5881$as_echo "$CUT" >&6; }
5882else
5883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884$as_echo "no" >&6; }
5885fi
5886
5887
5888  test -n "$CUT" && break
5889done
5890
5891  else
5892    # The variable is set, but is it from the command line or the environment?
5893
5894    # Try to remove the string !CUT! from our list.
5895    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5896    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5897      # If it failed, the variable was not from the command line. Ignore it,
5898      # but warn the user (except for BASH, which is always set by the calling BASH).
5899      if test "xCUT" != xBASH; then
5900        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5901$as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5902      fi
5903      # Try to locate tool using the code snippet
5904      for ac_prog in cut
5905do
5906  # Extract the first word of "$ac_prog", so it can be a program name with args.
5907set dummy $ac_prog; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if ${ac_cv_path_CUT+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  case $CUT in
5914  [\\/]* | ?:[\\/]*)
5915  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5916  ;;
5917  *)
5918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923    for ac_exec_ext in '' $ac_executable_extensions; do
5924  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5926    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930  done
5931IFS=$as_save_IFS
5932
5933  ;;
5934esac
5935fi
5936CUT=$ac_cv_path_CUT
5937if test -n "$CUT"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5939$as_echo "$CUT" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946  test -n "$CUT" && break
5947done
5948
5949    else
5950      # If it succeeded, then it was overridden by the user. We will use it
5951      # for the tool.
5952
5953      # First remove it from the list of overridden variables, so we can test
5954      # for unknown variables in the end.
5955      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5956
5957      # Check if the provided tool contains a complete path.
5958      tool_specified="$CUT"
5959      tool_basename="${tool_specified##*/}"
5960      if test "x$tool_basename" = "x$tool_specified"; then
5961        # A command without a complete path is provided, search $PATH.
5962        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5963$as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5964        # Extract the first word of "$tool_basename", so it can be a program name with args.
5965set dummy $tool_basename; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if ${ac_cv_path_CUT+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  case $CUT in
5972  [\\/]* | ?:[\\/]*)
5973  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5974  ;;
5975  *)
5976  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979  IFS=$as_save_IFS
5980  test -z "$as_dir" && as_dir=.
5981    for ac_exec_ext in '' $ac_executable_extensions; do
5982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985    break 2
5986  fi
5987done
5988  done
5989IFS=$as_save_IFS
5990
5991  ;;
5992esac
5993fi
5994CUT=$ac_cv_path_CUT
5995if test -n "$CUT"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5997$as_echo "$CUT" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004        if test "x$CUT" = x; then
6005          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6006        fi
6007      else
6008        # Otherwise we believe it is a complete path. Use it as it is.
6009        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6010$as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6011        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6012$as_echo_n "checking for CUT... " >&6; }
6013        if test ! -x "$tool_specified"; then
6014          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6015$as_echo "not found" >&6; }
6016          as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6017        fi
6018        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6019$as_echo "$tool_specified" >&6; }
6020      fi
6021    fi
6022  fi
6023
6024
6025
6026  if test "x$CUT" = x; then
6027    as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6028  fi
6029
6030
6031
6032
6033
6034  # Publish this variable in the help.
6035
6036
6037  if test "x$DATE" = x; then
6038    # The variable is not set by user, try to locate tool using the code snippet
6039    for ac_prog in date
6040do
6041  # Extract the first word of "$ac_prog", so it can be a program name with args.
6042set dummy $ac_prog; ac_word=$2
6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044$as_echo_n "checking for $ac_word... " >&6; }
6045if ${ac_cv_path_DATE+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  case $DATE in
6049  [\\/]* | ?:[\\/]*)
6050  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6051  ;;
6052  *)
6053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  test -z "$as_dir" && as_dir=.
6058    for ac_exec_ext in '' $ac_executable_extensions; do
6059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6060    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062    break 2
6063  fi
6064done
6065  done
6066IFS=$as_save_IFS
6067
6068  ;;
6069esac
6070fi
6071DATE=$ac_cv_path_DATE
6072if test -n "$DATE"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6074$as_echo "$DATE" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081  test -n "$DATE" && break
6082done
6083
6084  else
6085    # The variable is set, but is it from the command line or the environment?
6086
6087    # Try to remove the string !DATE! from our list.
6088    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6089    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6090      # If it failed, the variable was not from the command line. Ignore it,
6091      # but warn the user (except for BASH, which is always set by the calling BASH).
6092      if test "xDATE" != xBASH; then
6093        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6094$as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6095      fi
6096      # Try to locate tool using the code snippet
6097      for ac_prog in date
6098do
6099  # Extract the first word of "$ac_prog", so it can be a program name with args.
6100set dummy $ac_prog; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if ${ac_cv_path_DATE+:} false; then :
6104  $as_echo_n "(cached) " >&6
6105else
6106  case $DATE in
6107  [\\/]* | ?:[\\/]*)
6108  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6109  ;;
6110  *)
6111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  test -z "$as_dir" && as_dir=.
6116    for ac_exec_ext in '' $ac_executable_extensions; do
6117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120    break 2
6121  fi
6122done
6123  done
6124IFS=$as_save_IFS
6125
6126  ;;
6127esac
6128fi
6129DATE=$ac_cv_path_DATE
6130if test -n "$DATE"; then
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6132$as_echo "$DATE" >&6; }
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138
6139  test -n "$DATE" && break
6140done
6141
6142    else
6143      # If it succeeded, then it was overridden by the user. We will use it
6144      # for the tool.
6145
6146      # First remove it from the list of overridden variables, so we can test
6147      # for unknown variables in the end.
6148      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6149
6150      # Check if the provided tool contains a complete path.
6151      tool_specified="$DATE"
6152      tool_basename="${tool_specified##*/}"
6153      if test "x$tool_basename" = "x$tool_specified"; then
6154        # A command without a complete path is provided, search $PATH.
6155        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6156$as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6157        # Extract the first word of "$tool_basename", so it can be a program name with args.
6158set dummy $tool_basename; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
6161if ${ac_cv_path_DATE+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  case $DATE in
6165  [\\/]* | ?:[\\/]*)
6166  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6167  ;;
6168  *)
6169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184  ;;
6185esac
6186fi
6187DATE=$ac_cv_path_DATE
6188if test -n "$DATE"; then
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6190$as_echo "$DATE" >&6; }
6191else
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193$as_echo "no" >&6; }
6194fi
6195
6196
6197        if test "x$DATE" = x; then
6198          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6199        fi
6200      else
6201        # Otherwise we believe it is a complete path. Use it as it is.
6202        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6203$as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6204        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6205$as_echo_n "checking for DATE... " >&6; }
6206        if test ! -x "$tool_specified"; then
6207          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6208$as_echo "not found" >&6; }
6209          as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6210        fi
6211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6212$as_echo "$tool_specified" >&6; }
6213      fi
6214    fi
6215  fi
6216
6217
6218
6219  if test "x$DATE" = x; then
6220    as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6221  fi
6222
6223
6224
6225
6226
6227  # Publish this variable in the help.
6228
6229
6230  if test "x$DIFF" = x; then
6231    # The variable is not set by user, try to locate tool using the code snippet
6232    for ac_prog in gdiff diff
6233do
6234  # Extract the first word of "$ac_prog", so it can be a program name with args.
6235set dummy $ac_prog; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if ${ac_cv_path_DIFF+:} false; then :
6239  $as_echo_n "(cached) " >&6
6240else
6241  case $DIFF in
6242  [\\/]* | ?:[\\/]*)
6243  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6244  ;;
6245  *)
6246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249  IFS=$as_save_IFS
6250  test -z "$as_dir" && as_dir=.
6251    for ac_exec_ext in '' $ac_executable_extensions; do
6252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255    break 2
6256  fi
6257done
6258  done
6259IFS=$as_save_IFS
6260
6261  ;;
6262esac
6263fi
6264DIFF=$ac_cv_path_DIFF
6265if test -n "$DIFF"; then
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6267$as_echo "$DIFF" >&6; }
6268else
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274  test -n "$DIFF" && break
6275done
6276
6277  else
6278    # The variable is set, but is it from the command line or the environment?
6279
6280    # Try to remove the string !DIFF! from our list.
6281    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6282    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6283      # If it failed, the variable was not from the command line. Ignore it,
6284      # but warn the user (except for BASH, which is always set by the calling BASH).
6285      if test "xDIFF" != xBASH; then
6286        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6287$as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6288      fi
6289      # Try to locate tool using the code snippet
6290      for ac_prog in gdiff diff
6291do
6292  # Extract the first word of "$ac_prog", so it can be a program name with args.
6293set dummy $ac_prog; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
6296if ${ac_cv_path_DIFF+:} false; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  case $DIFF in
6300  [\\/]* | ?:[\\/]*)
6301  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6302  ;;
6303  *)
6304  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307  IFS=$as_save_IFS
6308  test -z "$as_dir" && as_dir=.
6309    for ac_exec_ext in '' $ac_executable_extensions; do
6310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313    break 2
6314  fi
6315done
6316  done
6317IFS=$as_save_IFS
6318
6319  ;;
6320esac
6321fi
6322DIFF=$ac_cv_path_DIFF
6323if test -n "$DIFF"; then
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6325$as_echo "$DIFF" >&6; }
6326else
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
6329fi
6330
6331
6332  test -n "$DIFF" && break
6333done
6334
6335    else
6336      # If it succeeded, then it was overridden by the user. We will use it
6337      # for the tool.
6338
6339      # First remove it from the list of overridden variables, so we can test
6340      # for unknown variables in the end.
6341      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6342
6343      # Check if the provided tool contains a complete path.
6344      tool_specified="$DIFF"
6345      tool_basename="${tool_specified##*/}"
6346      if test "x$tool_basename" = "x$tool_specified"; then
6347        # A command without a complete path is provided, search $PATH.
6348        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6349$as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6350        # Extract the first word of "$tool_basename", so it can be a program name with args.
6351set dummy $tool_basename; ac_word=$2
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if ${ac_cv_path_DIFF+:} false; then :
6355  $as_echo_n "(cached) " >&6
6356else
6357  case $DIFF in
6358  [\\/]* | ?:[\\/]*)
6359  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6360  ;;
6361  *)
6362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371    break 2
6372  fi
6373done
6374  done
6375IFS=$as_save_IFS
6376
6377  ;;
6378esac
6379fi
6380DIFF=$ac_cv_path_DIFF
6381if test -n "$DIFF"; then
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6383$as_echo "$DIFF" >&6; }
6384else
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
6387fi
6388
6389
6390        if test "x$DIFF" = x; then
6391          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6392        fi
6393      else
6394        # Otherwise we believe it is a complete path. Use it as it is.
6395        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6396$as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6397        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6398$as_echo_n "checking for DIFF... " >&6; }
6399        if test ! -x "$tool_specified"; then
6400          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6401$as_echo "not found" >&6; }
6402          as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6403        fi
6404        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6405$as_echo "$tool_specified" >&6; }
6406      fi
6407    fi
6408  fi
6409
6410
6411
6412  if test "x$DIFF" = x; then
6413    as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6414  fi
6415
6416
6417
6418
6419
6420  # Publish this variable in the help.
6421
6422
6423  if test "x$DIRNAME" = x; then
6424    # The variable is not set by user, try to locate tool using the code snippet
6425    for ac_prog in dirname
6426do
6427  # Extract the first word of "$ac_prog", so it can be a program name with args.
6428set dummy $ac_prog; ac_word=$2
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if ${ac_cv_path_DIRNAME+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  case $DIRNAME in
6435  [\\/]* | ?:[\\/]*)
6436  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6437  ;;
6438  *)
6439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442  IFS=$as_save_IFS
6443  test -z "$as_dir" && as_dir=.
6444    for ac_exec_ext in '' $ac_executable_extensions; do
6445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446    ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448    break 2
6449  fi
6450done
6451  done
6452IFS=$as_save_IFS
6453
6454  ;;
6455esac
6456fi
6457DIRNAME=$ac_cv_path_DIRNAME
6458if test -n "$DIRNAME"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6460$as_echo "$DIRNAME" >&6; }
6461else
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467  test -n "$DIRNAME" && break
6468done
6469
6470  else
6471    # The variable is set, but is it from the command line or the environment?
6472
6473    # Try to remove the string !DIRNAME! from our list.
6474    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6475    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6476      # If it failed, the variable was not from the command line. Ignore it,
6477      # but warn the user (except for BASH, which is always set by the calling BASH).
6478      if test "xDIRNAME" != xBASH; then
6479        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6480$as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6481      fi
6482      # Try to locate tool using the code snippet
6483      for ac_prog in dirname
6484do
6485  # Extract the first word of "$ac_prog", so it can be a program name with args.
6486set dummy $ac_prog; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
6489if ${ac_cv_path_DIRNAME+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  case $DIRNAME in
6493  [\\/]* | ?:[\\/]*)
6494  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6495  ;;
6496  *)
6497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500  IFS=$as_save_IFS
6501  test -z "$as_dir" && as_dir=.
6502    for ac_exec_ext in '' $ac_executable_extensions; do
6503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504    ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506    break 2
6507  fi
6508done
6509  done
6510IFS=$as_save_IFS
6511
6512  ;;
6513esac
6514fi
6515DIRNAME=$ac_cv_path_DIRNAME
6516if test -n "$DIRNAME"; then
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6518$as_echo "$DIRNAME" >&6; }
6519else
6520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525  test -n "$DIRNAME" && break
6526done
6527
6528    else
6529      # If it succeeded, then it was overridden by the user. We will use it
6530      # for the tool.
6531
6532      # First remove it from the list of overridden variables, so we can test
6533      # for unknown variables in the end.
6534      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6535
6536      # Check if the provided tool contains a complete path.
6537      tool_specified="$DIRNAME"
6538      tool_basename="${tool_specified##*/}"
6539      if test "x$tool_basename" = "x$tool_specified"; then
6540        # A command without a complete path is provided, search $PATH.
6541        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6542$as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6543        # Extract the first word of "$tool_basename", so it can be a program name with args.
6544set dummy $tool_basename; ac_word=$2
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546$as_echo_n "checking for $ac_word... " >&6; }
6547if ${ac_cv_path_DIRNAME+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  case $DIRNAME in
6551  [\\/]* | ?:[\\/]*)
6552  ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6553  ;;
6554  *)
6555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560    for ac_exec_ext in '' $ac_executable_extensions; do
6561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562    ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567  done
6568IFS=$as_save_IFS
6569
6570  ;;
6571esac
6572fi
6573DIRNAME=$ac_cv_path_DIRNAME
6574if test -n "$DIRNAME"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6576$as_echo "$DIRNAME" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583        if test "x$DIRNAME" = x; then
6584          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6585        fi
6586      else
6587        # Otherwise we believe it is a complete path. Use it as it is.
6588        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6589$as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6590        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6591$as_echo_n "checking for DIRNAME... " >&6; }
6592        if test ! -x "$tool_specified"; then
6593          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6594$as_echo "not found" >&6; }
6595          as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6596        fi
6597        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6598$as_echo "$tool_specified" >&6; }
6599      fi
6600    fi
6601  fi
6602
6603
6604
6605  if test "x$DIRNAME" = x; then
6606    as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6607  fi
6608
6609
6610
6611
6612
6613  # Publish this variable in the help.
6614
6615
6616  if test "x$ECHO" = x; then
6617    # The variable is not set by user, try to locate tool using the code snippet
6618    for ac_prog in echo
6619do
6620  # Extract the first word of "$ac_prog", so it can be a program name with args.
6621set dummy $ac_prog; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_path_ECHO+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  case $ECHO in
6628  [\\/]* | ?:[\\/]*)
6629  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6630  ;;
6631  *)
6632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647  ;;
6648esac
6649fi
6650ECHO=$ac_cv_path_ECHO
6651if test -n "$ECHO"; then
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6653$as_echo "$ECHO" >&6; }
6654else
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656$as_echo "no" >&6; }
6657fi
6658
6659
6660  test -n "$ECHO" && break
6661done
6662
6663  else
6664    # The variable is set, but is it from the command line or the environment?
6665
6666    # Try to remove the string !ECHO! from our list.
6667    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6668    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6669      # If it failed, the variable was not from the command line. Ignore it,
6670      # but warn the user (except for BASH, which is always set by the calling BASH).
6671      if test "xECHO" != xBASH; then
6672        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6673$as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6674      fi
6675      # Try to locate tool using the code snippet
6676      for ac_prog in echo
6677do
6678  # Extract the first word of "$ac_prog", so it can be a program name with args.
6679set dummy $ac_prog; ac_word=$2
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681$as_echo_n "checking for $ac_word... " >&6; }
6682if ${ac_cv_path_ECHO+:} false; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  case $ECHO in
6686  [\\/]* | ?:[\\/]*)
6687  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6688  ;;
6689  *)
6690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693  IFS=$as_save_IFS
6694  test -z "$as_dir" && as_dir=.
6695    for ac_exec_ext in '' $ac_executable_extensions; do
6696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699    break 2
6700  fi
6701done
6702  done
6703IFS=$as_save_IFS
6704
6705  ;;
6706esac
6707fi
6708ECHO=$ac_cv_path_ECHO
6709if test -n "$ECHO"; then
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6711$as_echo "$ECHO" >&6; }
6712else
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718  test -n "$ECHO" && break
6719done
6720
6721    else
6722      # If it succeeded, then it was overridden by the user. We will use it
6723      # for the tool.
6724
6725      # First remove it from the list of overridden variables, so we can test
6726      # for unknown variables in the end.
6727      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6728
6729      # Check if the provided tool contains a complete path.
6730      tool_specified="$ECHO"
6731      tool_basename="${tool_specified##*/}"
6732      if test "x$tool_basename" = "x$tool_specified"; then
6733        # A command without a complete path is provided, search $PATH.
6734        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6735$as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6736        # Extract the first word of "$tool_basename", so it can be a program name with args.
6737set dummy $tool_basename; ac_word=$2
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739$as_echo_n "checking for $ac_word... " >&6; }
6740if ${ac_cv_path_ECHO+:} false; then :
6741  $as_echo_n "(cached) " >&6
6742else
6743  case $ECHO in
6744  [\\/]* | ?:[\\/]*)
6745  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6746  ;;
6747  *)
6748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751  IFS=$as_save_IFS
6752  test -z "$as_dir" && as_dir=.
6753    for ac_exec_ext in '' $ac_executable_extensions; do
6754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757    break 2
6758  fi
6759done
6760  done
6761IFS=$as_save_IFS
6762
6763  ;;
6764esac
6765fi
6766ECHO=$ac_cv_path_ECHO
6767if test -n "$ECHO"; then
6768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6769$as_echo "$ECHO" >&6; }
6770else
6771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776        if test "x$ECHO" = x; then
6777          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6778        fi
6779      else
6780        # Otherwise we believe it is a complete path. Use it as it is.
6781        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6782$as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6783        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6784$as_echo_n "checking for ECHO... " >&6; }
6785        if test ! -x "$tool_specified"; then
6786          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6787$as_echo "not found" >&6; }
6788          as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6789        fi
6790        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6791$as_echo "$tool_specified" >&6; }
6792      fi
6793    fi
6794  fi
6795
6796
6797
6798  if test "x$ECHO" = x; then
6799    as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6800  fi
6801
6802
6803
6804
6805
6806  # Publish this variable in the help.
6807
6808
6809  if test "x$EXPR" = x; then
6810    # The variable is not set by user, try to locate tool using the code snippet
6811    for ac_prog in expr
6812do
6813  # Extract the first word of "$ac_prog", so it can be a program name with args.
6814set dummy $ac_prog; ac_word=$2
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816$as_echo_n "checking for $ac_word... " >&6; }
6817if ${ac_cv_path_EXPR+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  case $EXPR in
6821  [\\/]* | ?:[\\/]*)
6822  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6823  ;;
6824  *)
6825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828  IFS=$as_save_IFS
6829  test -z "$as_dir" && as_dir=.
6830    for ac_exec_ext in '' $ac_executable_extensions; do
6831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834    break 2
6835  fi
6836done
6837  done
6838IFS=$as_save_IFS
6839
6840  ;;
6841esac
6842fi
6843EXPR=$ac_cv_path_EXPR
6844if test -n "$EXPR"; then
6845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6846$as_echo "$EXPR" >&6; }
6847else
6848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850fi
6851
6852
6853  test -n "$EXPR" && break
6854done
6855
6856  else
6857    # The variable is set, but is it from the command line or the environment?
6858
6859    # Try to remove the string !EXPR! from our list.
6860    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6861    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6862      # If it failed, the variable was not from the command line. Ignore it,
6863      # but warn the user (except for BASH, which is always set by the calling BASH).
6864      if test "xEXPR" != xBASH; then
6865        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6866$as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6867      fi
6868      # Try to locate tool using the code snippet
6869      for ac_prog in expr
6870do
6871  # Extract the first word of "$ac_prog", so it can be a program name with args.
6872set dummy $ac_prog; ac_word=$2
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874$as_echo_n "checking for $ac_word... " >&6; }
6875if ${ac_cv_path_EXPR+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  case $EXPR in
6879  [\\/]* | ?:[\\/]*)
6880  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6881  ;;
6882  *)
6883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886  IFS=$as_save_IFS
6887  test -z "$as_dir" && as_dir=.
6888    for ac_exec_ext in '' $ac_executable_extensions; do
6889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892    break 2
6893  fi
6894done
6895  done
6896IFS=$as_save_IFS
6897
6898  ;;
6899esac
6900fi
6901EXPR=$ac_cv_path_EXPR
6902if test -n "$EXPR"; then
6903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6904$as_echo "$EXPR" >&6; }
6905else
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907$as_echo "no" >&6; }
6908fi
6909
6910
6911  test -n "$EXPR" && break
6912done
6913
6914    else
6915      # If it succeeded, then it was overridden by the user. We will use it
6916      # for the tool.
6917
6918      # First remove it from the list of overridden variables, so we can test
6919      # for unknown variables in the end.
6920      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6921
6922      # Check if the provided tool contains a complete path.
6923      tool_specified="$EXPR"
6924      tool_basename="${tool_specified##*/}"
6925      if test "x$tool_basename" = "x$tool_specified"; then
6926        # A command without a complete path is provided, search $PATH.
6927        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6928$as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6929        # Extract the first word of "$tool_basename", so it can be a program name with args.
6930set dummy $tool_basename; ac_word=$2
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if ${ac_cv_path_EXPR+:} false; then :
6934  $as_echo_n "(cached) " >&6
6935else
6936  case $EXPR in
6937  [\\/]* | ?:[\\/]*)
6938  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6939  ;;
6940  *)
6941  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946    for ac_exec_ext in '' $ac_executable_extensions; do
6947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950    break 2
6951  fi
6952done
6953  done
6954IFS=$as_save_IFS
6955
6956  ;;
6957esac
6958fi
6959EXPR=$ac_cv_path_EXPR
6960if test -n "$EXPR"; then
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6962$as_echo "$EXPR" >&6; }
6963else
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968
6969        if test "x$EXPR" = x; then
6970          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6971        fi
6972      else
6973        # Otherwise we believe it is a complete path. Use it as it is.
6974        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6975$as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6976        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6977$as_echo_n "checking for EXPR... " >&6; }
6978        if test ! -x "$tool_specified"; then
6979          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6980$as_echo "not found" >&6; }
6981          as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6982        fi
6983        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6984$as_echo "$tool_specified" >&6; }
6985      fi
6986    fi
6987  fi
6988
6989
6990
6991  if test "x$EXPR" = x; then
6992    as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6993  fi
6994
6995
6996
6997
6998
6999  # Publish this variable in the help.
7000
7001
7002  if test "x$FILE" = x; then
7003    # The variable is not set by user, try to locate tool using the code snippet
7004    for ac_prog in file
7005do
7006  # Extract the first word of "$ac_prog", so it can be a program name with args.
7007set dummy $ac_prog; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if ${ac_cv_path_FILE+:} false; then :
7011  $as_echo_n "(cached) " >&6
7012else
7013  case $FILE in
7014  [\\/]* | ?:[\\/]*)
7015  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7016  ;;
7017  *)
7018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7025    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033  ;;
7034esac
7035fi
7036FILE=$ac_cv_path_FILE
7037if test -n "$FILE"; then
7038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7039$as_echo "$FILE" >&6; }
7040else
7041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042$as_echo "no" >&6; }
7043fi
7044
7045
7046  test -n "$FILE" && break
7047done
7048
7049  else
7050    # The variable is set, but is it from the command line or the environment?
7051
7052    # Try to remove the string !FILE! from our list.
7053    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7054    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7055      # If it failed, the variable was not from the command line. Ignore it,
7056      # but warn the user (except for BASH, which is always set by the calling BASH).
7057      if test "xFILE" != xBASH; then
7058        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7059$as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7060      fi
7061      # Try to locate tool using the code snippet
7062      for ac_prog in file
7063do
7064  # Extract the first word of "$ac_prog", so it can be a program name with args.
7065set dummy $ac_prog; ac_word=$2
7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067$as_echo_n "checking for $ac_word... " >&6; }
7068if ${ac_cv_path_FILE+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  case $FILE in
7072  [\\/]* | ?:[\\/]*)
7073  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7074  ;;
7075  *)
7076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081    for ac_exec_ext in '' $ac_executable_extensions; do
7082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088  done
7089IFS=$as_save_IFS
7090
7091  ;;
7092esac
7093fi
7094FILE=$ac_cv_path_FILE
7095if test -n "$FILE"; then
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7097$as_echo "$FILE" >&6; }
7098else
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
7101fi
7102
7103
7104  test -n "$FILE" && break
7105done
7106
7107    else
7108      # If it succeeded, then it was overridden by the user. We will use it
7109      # for the tool.
7110
7111      # First remove it from the list of overridden variables, so we can test
7112      # for unknown variables in the end.
7113      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7114
7115      # Check if the provided tool contains a complete path.
7116      tool_specified="$FILE"
7117      tool_basename="${tool_specified##*/}"
7118      if test "x$tool_basename" = "x$tool_specified"; then
7119        # A command without a complete path is provided, search $PATH.
7120        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7121$as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7122        # Extract the first word of "$tool_basename", so it can be a program name with args.
7123set dummy $tool_basename; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_path_FILE+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  case $FILE in
7130  [\\/]* | ?:[\\/]*)
7131  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7132  ;;
7133  *)
7134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137  IFS=$as_save_IFS
7138  test -z "$as_dir" && as_dir=.
7139    for ac_exec_ext in '' $ac_executable_extensions; do
7140  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7142    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143    break 2
7144  fi
7145done
7146  done
7147IFS=$as_save_IFS
7148
7149  ;;
7150esac
7151fi
7152FILE=$ac_cv_path_FILE
7153if test -n "$FILE"; then
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7155$as_echo "$FILE" >&6; }
7156else
7157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
7159fi
7160
7161
7162        if test "x$FILE" = x; then
7163          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7164        fi
7165      else
7166        # Otherwise we believe it is a complete path. Use it as it is.
7167        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7168$as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7169        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7170$as_echo_n "checking for FILE... " >&6; }
7171        if test ! -x "$tool_specified"; then
7172          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7173$as_echo "not found" >&6; }
7174          as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7175        fi
7176        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7177$as_echo "$tool_specified" >&6; }
7178      fi
7179    fi
7180  fi
7181
7182
7183
7184  if test "x$FILE" = x; then
7185    as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7186  fi
7187
7188
7189
7190
7191
7192  # Publish this variable in the help.
7193
7194
7195  if test "x$FIND" = x; then
7196    # The variable is not set by user, try to locate tool using the code snippet
7197    for ac_prog in find
7198do
7199  # Extract the first word of "$ac_prog", so it can be a program name with args.
7200set dummy $ac_prog; ac_word=$2
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202$as_echo_n "checking for $ac_word... " >&6; }
7203if ${ac_cv_path_FIND+:} false; then :
7204  $as_echo_n "(cached) " >&6
7205else
7206  case $FIND in
7207  [\\/]* | ?:[\\/]*)
7208  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7209  ;;
7210  *)
7211  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216    for ac_exec_ext in '' $ac_executable_extensions; do
7217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223  done
7224IFS=$as_save_IFS
7225
7226  ;;
7227esac
7228fi
7229FIND=$ac_cv_path_FIND
7230if test -n "$FIND"; then
7231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7232$as_echo "$FIND" >&6; }
7233else
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238
7239  test -n "$FIND" && break
7240done
7241
7242  else
7243    # The variable is set, but is it from the command line or the environment?
7244
7245    # Try to remove the string !FIND! from our list.
7246    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7247    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7248      # If it failed, the variable was not from the command line. Ignore it,
7249      # but warn the user (except for BASH, which is always set by the calling BASH).
7250      if test "xFIND" != xBASH; then
7251        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7252$as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7253      fi
7254      # Try to locate tool using the code snippet
7255      for ac_prog in find
7256do
7257  # Extract the first word of "$ac_prog", so it can be a program name with args.
7258set dummy $ac_prog; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
7261if ${ac_cv_path_FIND+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  case $FIND in
7265  [\\/]* | ?:[\\/]*)
7266  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7267  ;;
7268  *)
7269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272  IFS=$as_save_IFS
7273  test -z "$as_dir" && as_dir=.
7274    for ac_exec_ext in '' $ac_executable_extensions; do
7275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281  done
7282IFS=$as_save_IFS
7283
7284  ;;
7285esac
7286fi
7287FIND=$ac_cv_path_FIND
7288if test -n "$FIND"; then
7289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7290$as_echo "$FIND" >&6; }
7291else
7292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293$as_echo "no" >&6; }
7294fi
7295
7296
7297  test -n "$FIND" && break
7298done
7299
7300    else
7301      # If it succeeded, then it was overridden by the user. We will use it
7302      # for the tool.
7303
7304      # First remove it from the list of overridden variables, so we can test
7305      # for unknown variables in the end.
7306      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7307
7308      # Check if the provided tool contains a complete path.
7309      tool_specified="$FIND"
7310      tool_basename="${tool_specified##*/}"
7311      if test "x$tool_basename" = "x$tool_specified"; then
7312        # A command without a complete path is provided, search $PATH.
7313        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7314$as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7315        # Extract the first word of "$tool_basename", so it can be a program name with args.
7316set dummy $tool_basename; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if ${ac_cv_path_FIND+:} false; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  case $FIND in
7323  [\\/]* | ?:[\\/]*)
7324  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7325  ;;
7326  *)
7327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330  IFS=$as_save_IFS
7331  test -z "$as_dir" && as_dir=.
7332    for ac_exec_ext in '' $ac_executable_extensions; do
7333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336    break 2
7337  fi
7338done
7339  done
7340IFS=$as_save_IFS
7341
7342  ;;
7343esac
7344fi
7345FIND=$ac_cv_path_FIND
7346if test -n "$FIND"; then
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7348$as_echo "$FIND" >&6; }
7349else
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354
7355        if test "x$FIND" = x; then
7356          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7357        fi
7358      else
7359        # Otherwise we believe it is a complete path. Use it as it is.
7360        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7361$as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7362        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7363$as_echo_n "checking for FIND... " >&6; }
7364        if test ! -x "$tool_specified"; then
7365          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7366$as_echo "not found" >&6; }
7367          as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7368        fi
7369        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7370$as_echo "$tool_specified" >&6; }
7371      fi
7372    fi
7373  fi
7374
7375
7376
7377  if test "x$FIND" = x; then
7378    as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7379  fi
7380
7381
7382
7383
7384
7385  # Publish this variable in the help.
7386
7387
7388  if test "x$HEAD" = x; then
7389    # The variable is not set by user, try to locate tool using the code snippet
7390    for ac_prog in head
7391do
7392  # Extract the first word of "$ac_prog", so it can be a program name with args.
7393set dummy $ac_prog; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; }
7396if ${ac_cv_path_HEAD+:} false; then :
7397  $as_echo_n "(cached) " >&6
7398else
7399  case $HEAD in
7400  [\\/]* | ?:[\\/]*)
7401  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7402  ;;
7403  *)
7404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407  IFS=$as_save_IFS
7408  test -z "$as_dir" && as_dir=.
7409    for ac_exec_ext in '' $ac_executable_extensions; do
7410  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411    ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413    break 2
7414  fi
7415done
7416  done
7417IFS=$as_save_IFS
7418
7419  ;;
7420esac
7421fi
7422HEAD=$ac_cv_path_HEAD
7423if test -n "$HEAD"; then
7424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7425$as_echo "$HEAD" >&6; }
7426else
7427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428$as_echo "no" >&6; }
7429fi
7430
7431
7432  test -n "$HEAD" && break
7433done
7434
7435  else
7436    # The variable is set, but is it from the command line or the environment?
7437
7438    # Try to remove the string !HEAD! from our list.
7439    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7440    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7441      # If it failed, the variable was not from the command line. Ignore it,
7442      # but warn the user (except for BASH, which is always set by the calling BASH).
7443      if test "xHEAD" != xBASH; then
7444        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7445$as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7446      fi
7447      # Try to locate tool using the code snippet
7448      for ac_prog in head
7449do
7450  # Extract the first word of "$ac_prog", so it can be a program name with args.
7451set dummy $ac_prog; ac_word=$2
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453$as_echo_n "checking for $ac_word... " >&6; }
7454if ${ac_cv_path_HEAD+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  case $HEAD in
7458  [\\/]* | ?:[\\/]*)
7459  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7460  ;;
7461  *)
7462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  test -z "$as_dir" && as_dir=.
7467    for ac_exec_ext in '' $ac_executable_extensions; do
7468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469    ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471    break 2
7472  fi
7473done
7474  done
7475IFS=$as_save_IFS
7476
7477  ;;
7478esac
7479fi
7480HEAD=$ac_cv_path_HEAD
7481if test -n "$HEAD"; then
7482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7483$as_echo "$HEAD" >&6; }
7484else
7485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
7487fi
7488
7489
7490  test -n "$HEAD" && break
7491done
7492
7493    else
7494      # If it succeeded, then it was overridden by the user. We will use it
7495      # for the tool.
7496
7497      # First remove it from the list of overridden variables, so we can test
7498      # for unknown variables in the end.
7499      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7500
7501      # Check if the provided tool contains a complete path.
7502      tool_specified="$HEAD"
7503      tool_basename="${tool_specified##*/}"
7504      if test "x$tool_basename" = "x$tool_specified"; then
7505        # A command without a complete path is provided, search $PATH.
7506        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7507$as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7508        # Extract the first word of "$tool_basename", so it can be a program name with args.
7509set dummy $tool_basename; ac_word=$2
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511$as_echo_n "checking for $ac_word... " >&6; }
7512if ${ac_cv_path_HEAD+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  case $HEAD in
7516  [\\/]* | ?:[\\/]*)
7517  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7518  ;;
7519  *)
7520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523  IFS=$as_save_IFS
7524  test -z "$as_dir" && as_dir=.
7525    for ac_exec_ext in '' $ac_executable_extensions; do
7526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527    ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529    break 2
7530  fi
7531done
7532  done
7533IFS=$as_save_IFS
7534
7535  ;;
7536esac
7537fi
7538HEAD=$ac_cv_path_HEAD
7539if test -n "$HEAD"; then
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7541$as_echo "$HEAD" >&6; }
7542else
7543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
7545fi
7546
7547
7548        if test "x$HEAD" = x; then
7549          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7550        fi
7551      else
7552        # Otherwise we believe it is a complete path. Use it as it is.
7553        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7554$as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7555        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7556$as_echo_n "checking for HEAD... " >&6; }
7557        if test ! -x "$tool_specified"; then
7558          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7559$as_echo "not found" >&6; }
7560          as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7561        fi
7562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7563$as_echo "$tool_specified" >&6; }
7564      fi
7565    fi
7566  fi
7567
7568
7569
7570  if test "x$HEAD" = x; then
7571    as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7572  fi
7573
7574
7575
7576
7577
7578  # Publish this variable in the help.
7579
7580
7581  if test "x$LN" = x; then
7582    # The variable is not set by user, try to locate tool using the code snippet
7583    for ac_prog in ln
7584do
7585  # Extract the first word of "$ac_prog", so it can be a program name with args.
7586set dummy $ac_prog; ac_word=$2
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
7589if ${ac_cv_path_LN+:} false; then :
7590  $as_echo_n "(cached) " >&6
7591else
7592  case $LN in
7593  [\\/]* | ?:[\\/]*)
7594  ac_cv_path_LN="$LN" # Let the user override the test with a path.
7595  ;;
7596  *)
7597  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600  IFS=$as_save_IFS
7601  test -z "$as_dir" && as_dir=.
7602    for ac_exec_ext in '' $ac_executable_extensions; do
7603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606    break 2
7607  fi
7608done
7609  done
7610IFS=$as_save_IFS
7611
7612  ;;
7613esac
7614fi
7615LN=$ac_cv_path_LN
7616if test -n "$LN"; then
7617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7618$as_echo "$LN" >&6; }
7619else
7620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621$as_echo "no" >&6; }
7622fi
7623
7624
7625  test -n "$LN" && break
7626done
7627
7628  else
7629    # The variable is set, but is it from the command line or the environment?
7630
7631    # Try to remove the string !LN! from our list.
7632    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7633    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7634      # If it failed, the variable was not from the command line. Ignore it,
7635      # but warn the user (except for BASH, which is always set by the calling BASH).
7636      if test "xLN" != xBASH; then
7637        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7638$as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7639      fi
7640      # Try to locate tool using the code snippet
7641      for ac_prog in ln
7642do
7643  # Extract the first word of "$ac_prog", so it can be a program name with args.
7644set dummy $ac_prog; ac_word=$2
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646$as_echo_n "checking for $ac_word... " >&6; }
7647if ${ac_cv_path_LN+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  case $LN in
7651  [\\/]* | ?:[\\/]*)
7652  ac_cv_path_LN="$LN" # Let the user override the test with a path.
7653  ;;
7654  *)
7655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658  IFS=$as_save_IFS
7659  test -z "$as_dir" && as_dir=.
7660    for ac_exec_ext in '' $ac_executable_extensions; do
7661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664    break 2
7665  fi
7666done
7667  done
7668IFS=$as_save_IFS
7669
7670  ;;
7671esac
7672fi
7673LN=$ac_cv_path_LN
7674if test -n "$LN"; then
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7676$as_echo "$LN" >&6; }
7677else
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679$as_echo "no" >&6; }
7680fi
7681
7682
7683  test -n "$LN" && break
7684done
7685
7686    else
7687      # If it succeeded, then it was overridden by the user. We will use it
7688      # for the tool.
7689
7690      # First remove it from the list of overridden variables, so we can test
7691      # for unknown variables in the end.
7692      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7693
7694      # Check if the provided tool contains a complete path.
7695      tool_specified="$LN"
7696      tool_basename="${tool_specified##*/}"
7697      if test "x$tool_basename" = "x$tool_specified"; then
7698        # A command without a complete path is provided, search $PATH.
7699        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7700$as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7701        # Extract the first word of "$tool_basename", so it can be a program name with args.
7702set dummy $tool_basename; ac_word=$2
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704$as_echo_n "checking for $ac_word... " >&6; }
7705if ${ac_cv_path_LN+:} false; then :
7706  $as_echo_n "(cached) " >&6
7707else
7708  case $LN in
7709  [\\/]* | ?:[\\/]*)
7710  ac_cv_path_LN="$LN" # Let the user override the test with a path.
7711  ;;
7712  *)
7713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718    for ac_exec_ext in '' $ac_executable_extensions; do
7719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725  done
7726IFS=$as_save_IFS
7727
7728  ;;
7729esac
7730fi
7731LN=$ac_cv_path_LN
7732if test -n "$LN"; then
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7734$as_echo "$LN" >&6; }
7735else
7736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739
7740
7741        if test "x$LN" = x; then
7742          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7743        fi
7744      else
7745        # Otherwise we believe it is a complete path. Use it as it is.
7746        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7747$as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7748        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7749$as_echo_n "checking for LN... " >&6; }
7750        if test ! -x "$tool_specified"; then
7751          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7752$as_echo "not found" >&6; }
7753          as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7754        fi
7755        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7756$as_echo "$tool_specified" >&6; }
7757      fi
7758    fi
7759  fi
7760
7761
7762
7763  if test "x$LN" = x; then
7764    as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7765  fi
7766
7767
7768
7769
7770
7771  # Publish this variable in the help.
7772
7773
7774  if test "x$LS" = x; then
7775    # The variable is not set by user, try to locate tool using the code snippet
7776    for ac_prog in ls
7777do
7778  # Extract the first word of "$ac_prog", so it can be a program name with args.
7779set dummy $ac_prog; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
7782if ${ac_cv_path_LS+:} false; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  case $LS in
7786  [\\/]* | ?:[\\/]*)
7787  ac_cv_path_LS="$LS" # Let the user override the test with a path.
7788  ;;
7789  *)
7790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793  IFS=$as_save_IFS
7794  test -z "$as_dir" && as_dir=.
7795    for ac_exec_ext in '' $ac_executable_extensions; do
7796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799    break 2
7800  fi
7801done
7802  done
7803IFS=$as_save_IFS
7804
7805  ;;
7806esac
7807fi
7808LS=$ac_cv_path_LS
7809if test -n "$LS"; then
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7811$as_echo "$LS" >&6; }
7812else
7813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817
7818  test -n "$LS" && break
7819done
7820
7821  else
7822    # The variable is set, but is it from the command line or the environment?
7823
7824    # Try to remove the string !LS! from our list.
7825    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7826    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7827      # If it failed, the variable was not from the command line. Ignore it,
7828      # but warn the user (except for BASH, which is always set by the calling BASH).
7829      if test "xLS" != xBASH; then
7830        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7831$as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7832      fi
7833      # Try to locate tool using the code snippet
7834      for ac_prog in ls
7835do
7836  # Extract the first word of "$ac_prog", so it can be a program name with args.
7837set dummy $ac_prog; ac_word=$2
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if ${ac_cv_path_LS+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  case $LS in
7844  [\\/]* | ?:[\\/]*)
7845  ac_cv_path_LS="$LS" # Let the user override the test with a path.
7846  ;;
7847  *)
7848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853    for ac_exec_ext in '' $ac_executable_extensions; do
7854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857    break 2
7858  fi
7859done
7860  done
7861IFS=$as_save_IFS
7862
7863  ;;
7864esac
7865fi
7866LS=$ac_cv_path_LS
7867if test -n "$LS"; then
7868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7869$as_echo "$LS" >&6; }
7870else
7871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873fi
7874
7875
7876  test -n "$LS" && break
7877done
7878
7879    else
7880      # If it succeeded, then it was overridden by the user. We will use it
7881      # for the tool.
7882
7883      # First remove it from the list of overridden variables, so we can test
7884      # for unknown variables in the end.
7885      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7886
7887      # Check if the provided tool contains a complete path.
7888      tool_specified="$LS"
7889      tool_basename="${tool_specified##*/}"
7890      if test "x$tool_basename" = "x$tool_specified"; then
7891        # A command without a complete path is provided, search $PATH.
7892        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7893$as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7894        # Extract the first word of "$tool_basename", so it can be a program name with args.
7895set dummy $tool_basename; ac_word=$2
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897$as_echo_n "checking for $ac_word... " >&6; }
7898if ${ac_cv_path_LS+:} false; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  case $LS in
7902  [\\/]* | ?:[\\/]*)
7903  ac_cv_path_LS="$LS" # Let the user override the test with a path.
7904  ;;
7905  *)
7906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909  IFS=$as_save_IFS
7910  test -z "$as_dir" && as_dir=.
7911    for ac_exec_ext in '' $ac_executable_extensions; do
7912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915    break 2
7916  fi
7917done
7918  done
7919IFS=$as_save_IFS
7920
7921  ;;
7922esac
7923fi
7924LS=$ac_cv_path_LS
7925if test -n "$LS"; then
7926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7927$as_echo "$LS" >&6; }
7928else
7929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930$as_echo "no" >&6; }
7931fi
7932
7933
7934        if test "x$LS" = x; then
7935          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7936        fi
7937      else
7938        # Otherwise we believe it is a complete path. Use it as it is.
7939        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7940$as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7941        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7942$as_echo_n "checking for LS... " >&6; }
7943        if test ! -x "$tool_specified"; then
7944          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7945$as_echo "not found" >&6; }
7946          as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7947        fi
7948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7949$as_echo "$tool_specified" >&6; }
7950      fi
7951    fi
7952  fi
7953
7954
7955
7956  if test "x$LS" = x; then
7957    as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7958  fi
7959
7960
7961
7962
7963
7964  # Publish this variable in the help.
7965
7966
7967  if test "x$MKDIR" = x; then
7968    # The variable is not set by user, try to locate tool using the code snippet
7969    for ac_prog in mkdir
7970do
7971  # Extract the first word of "$ac_prog", so it can be a program name with args.
7972set dummy $ac_prog; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if ${ac_cv_path_MKDIR+:} false; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  case $MKDIR in
7979  [\\/]* | ?:[\\/]*)
7980  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7981  ;;
7982  *)
7983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988    for ac_exec_ext in '' $ac_executable_extensions; do
7989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995  done
7996IFS=$as_save_IFS
7997
7998  ;;
7999esac
8000fi
8001MKDIR=$ac_cv_path_MKDIR
8002if test -n "$MKDIR"; then
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8004$as_echo "$MKDIR" >&6; }
8005else
8006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007$as_echo "no" >&6; }
8008fi
8009
8010
8011  test -n "$MKDIR" && break
8012done
8013
8014  else
8015    # The variable is set, but is it from the command line or the environment?
8016
8017    # Try to remove the string !MKDIR! from our list.
8018    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8019    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8020      # If it failed, the variable was not from the command line. Ignore it,
8021      # but warn the user (except for BASH, which is always set by the calling BASH).
8022      if test "xMKDIR" != xBASH; then
8023        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8024$as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8025      fi
8026      # Try to locate tool using the code snippet
8027      for ac_prog in mkdir
8028do
8029  # Extract the first word of "$ac_prog", so it can be a program name with args.
8030set dummy $ac_prog; ac_word=$2
8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032$as_echo_n "checking for $ac_word... " >&6; }
8033if ${ac_cv_path_MKDIR+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  case $MKDIR in
8037  [\\/]* | ?:[\\/]*)
8038  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8039  ;;
8040  *)
8041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044  IFS=$as_save_IFS
8045  test -z "$as_dir" && as_dir=.
8046    for ac_exec_ext in '' $ac_executable_extensions; do
8047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050    break 2
8051  fi
8052done
8053  done
8054IFS=$as_save_IFS
8055
8056  ;;
8057esac
8058fi
8059MKDIR=$ac_cv_path_MKDIR
8060if test -n "$MKDIR"; then
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8062$as_echo "$MKDIR" >&6; }
8063else
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066fi
8067
8068
8069  test -n "$MKDIR" && break
8070done
8071
8072    else
8073      # If it succeeded, then it was overridden by the user. We will use it
8074      # for the tool.
8075
8076      # First remove it from the list of overridden variables, so we can test
8077      # for unknown variables in the end.
8078      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8079
8080      # Check if the provided tool contains a complete path.
8081      tool_specified="$MKDIR"
8082      tool_basename="${tool_specified##*/}"
8083      if test "x$tool_basename" = "x$tool_specified"; then
8084        # A command without a complete path is provided, search $PATH.
8085        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8086$as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8087        # Extract the first word of "$tool_basename", so it can be a program name with args.
8088set dummy $tool_basename; ac_word=$2
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090$as_echo_n "checking for $ac_word... " >&6; }
8091if ${ac_cv_path_MKDIR+:} false; then :
8092  $as_echo_n "(cached) " >&6
8093else
8094  case $MKDIR in
8095  [\\/]* | ?:[\\/]*)
8096  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8097  ;;
8098  *)
8099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102  IFS=$as_save_IFS
8103  test -z "$as_dir" && as_dir=.
8104    for ac_exec_ext in '' $ac_executable_extensions; do
8105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108    break 2
8109  fi
8110done
8111  done
8112IFS=$as_save_IFS
8113
8114  ;;
8115esac
8116fi
8117MKDIR=$ac_cv_path_MKDIR
8118if test -n "$MKDIR"; then
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8120$as_echo "$MKDIR" >&6; }
8121else
8122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127        if test "x$MKDIR" = x; then
8128          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8129        fi
8130      else
8131        # Otherwise we believe it is a complete path. Use it as it is.
8132        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8133$as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8134        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8135$as_echo_n "checking for MKDIR... " >&6; }
8136        if test ! -x "$tool_specified"; then
8137          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8138$as_echo "not found" >&6; }
8139          as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8140        fi
8141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8142$as_echo "$tool_specified" >&6; }
8143      fi
8144    fi
8145  fi
8146
8147
8148
8149  if test "x$MKDIR" = x; then
8150    as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8151  fi
8152
8153
8154
8155
8156
8157  # Publish this variable in the help.
8158
8159
8160  if test "x$MKTEMP" = x; then
8161    # The variable is not set by user, try to locate tool using the code snippet
8162    for ac_prog in mktemp
8163do
8164  # Extract the first word of "$ac_prog", so it can be a program name with args.
8165set dummy $ac_prog; ac_word=$2
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167$as_echo_n "checking for $ac_word... " >&6; }
8168if ${ac_cv_path_MKTEMP+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  case $MKTEMP in
8172  [\\/]* | ?:[\\/]*)
8173  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8174  ;;
8175  *)
8176  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179  IFS=$as_save_IFS
8180  test -z "$as_dir" && as_dir=.
8181    for ac_exec_ext in '' $ac_executable_extensions; do
8182  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183    ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185    break 2
8186  fi
8187done
8188  done
8189IFS=$as_save_IFS
8190
8191  ;;
8192esac
8193fi
8194MKTEMP=$ac_cv_path_MKTEMP
8195if test -n "$MKTEMP"; then
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8197$as_echo "$MKTEMP" >&6; }
8198else
8199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203
8204  test -n "$MKTEMP" && break
8205done
8206
8207  else
8208    # The variable is set, but is it from the command line or the environment?
8209
8210    # Try to remove the string !MKTEMP! from our list.
8211    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8212    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8213      # If it failed, the variable was not from the command line. Ignore it,
8214      # but warn the user (except for BASH, which is always set by the calling BASH).
8215      if test "xMKTEMP" != xBASH; then
8216        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8217$as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8218      fi
8219      # Try to locate tool using the code snippet
8220      for ac_prog in mktemp
8221do
8222  # Extract the first word of "$ac_prog", so it can be a program name with args.
8223set dummy $ac_prog; ac_word=$2
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225$as_echo_n "checking for $ac_word... " >&6; }
8226if ${ac_cv_path_MKTEMP+:} false; then :
8227  $as_echo_n "(cached) " >&6
8228else
8229  case $MKTEMP in
8230  [\\/]* | ?:[\\/]*)
8231  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8232  ;;
8233  *)
8234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  test -z "$as_dir" && as_dir=.
8239    for ac_exec_ext in '' $ac_executable_extensions; do
8240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241    ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243    break 2
8244  fi
8245done
8246  done
8247IFS=$as_save_IFS
8248
8249  ;;
8250esac
8251fi
8252MKTEMP=$ac_cv_path_MKTEMP
8253if test -n "$MKTEMP"; then
8254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8255$as_echo "$MKTEMP" >&6; }
8256else
8257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
8259fi
8260
8261
8262  test -n "$MKTEMP" && break
8263done
8264
8265    else
8266      # If it succeeded, then it was overridden by the user. We will use it
8267      # for the tool.
8268
8269      # First remove it from the list of overridden variables, so we can test
8270      # for unknown variables in the end.
8271      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8272
8273      # Check if the provided tool contains a complete path.
8274      tool_specified="$MKTEMP"
8275      tool_basename="${tool_specified##*/}"
8276      if test "x$tool_basename" = "x$tool_specified"; then
8277        # A command without a complete path is provided, search $PATH.
8278        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8279$as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8280        # Extract the first word of "$tool_basename", so it can be a program name with args.
8281set dummy $tool_basename; ac_word=$2
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if ${ac_cv_path_MKTEMP+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  case $MKTEMP in
8288  [\\/]* | ?:[\\/]*)
8289  ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8290  ;;
8291  *)
8292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293for as_dir in $PATH
8294do
8295  IFS=$as_save_IFS
8296  test -z "$as_dir" && as_dir=.
8297    for ac_exec_ext in '' $ac_executable_extensions; do
8298  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299    ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301    break 2
8302  fi
8303done
8304  done
8305IFS=$as_save_IFS
8306
8307  ;;
8308esac
8309fi
8310MKTEMP=$ac_cv_path_MKTEMP
8311if test -n "$MKTEMP"; then
8312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8313$as_echo "$MKTEMP" >&6; }
8314else
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316$as_echo "no" >&6; }
8317fi
8318
8319
8320        if test "x$MKTEMP" = x; then
8321          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8322        fi
8323      else
8324        # Otherwise we believe it is a complete path. Use it as it is.
8325        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8326$as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8327        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8328$as_echo_n "checking for MKTEMP... " >&6; }
8329        if test ! -x "$tool_specified"; then
8330          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8331$as_echo "not found" >&6; }
8332          as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8333        fi
8334        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8335$as_echo "$tool_specified" >&6; }
8336      fi
8337    fi
8338  fi
8339
8340
8341
8342  if test "x$MKTEMP" = x; then
8343    as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8344  fi
8345
8346
8347
8348
8349
8350  # Publish this variable in the help.
8351
8352
8353  if test "x$MV" = x; then
8354    # The variable is not set by user, try to locate tool using the code snippet
8355    for ac_prog in mv
8356do
8357  # Extract the first word of "$ac_prog", so it can be a program name with args.
8358set dummy $ac_prog; ac_word=$2
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
8361if ${ac_cv_path_MV+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  case $MV in
8365  [\\/]* | ?:[\\/]*)
8366  ac_cv_path_MV="$MV" # Let the user override the test with a path.
8367  ;;
8368  *)
8369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372  IFS=$as_save_IFS
8373  test -z "$as_dir" && as_dir=.
8374    for ac_exec_ext in '' $ac_executable_extensions; do
8375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8376    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378    break 2
8379  fi
8380done
8381  done
8382IFS=$as_save_IFS
8383
8384  ;;
8385esac
8386fi
8387MV=$ac_cv_path_MV
8388if test -n "$MV"; then
8389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8390$as_echo "$MV" >&6; }
8391else
8392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
8394fi
8395
8396
8397  test -n "$MV" && break
8398done
8399
8400  else
8401    # The variable is set, but is it from the command line or the environment?
8402
8403    # Try to remove the string !MV! from our list.
8404    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8405    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8406      # If it failed, the variable was not from the command line. Ignore it,
8407      # but warn the user (except for BASH, which is always set by the calling BASH).
8408      if test "xMV" != xBASH; then
8409        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8410$as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8411      fi
8412      # Try to locate tool using the code snippet
8413      for ac_prog in mv
8414do
8415  # Extract the first word of "$ac_prog", so it can be a program name with args.
8416set dummy $ac_prog; ac_word=$2
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if ${ac_cv_path_MV+:} false; then :
8420  $as_echo_n "(cached) " >&6
8421else
8422  case $MV in
8423  [\\/]* | ?:[\\/]*)
8424  ac_cv_path_MV="$MV" # Let the user override the test with a path.
8425  ;;
8426  *)
8427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430  IFS=$as_save_IFS
8431  test -z "$as_dir" && as_dir=.
8432    for ac_exec_ext in '' $ac_executable_extensions; do
8433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436    break 2
8437  fi
8438done
8439  done
8440IFS=$as_save_IFS
8441
8442  ;;
8443esac
8444fi
8445MV=$ac_cv_path_MV
8446if test -n "$MV"; then
8447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8448$as_echo "$MV" >&6; }
8449else
8450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451$as_echo "no" >&6; }
8452fi
8453
8454
8455  test -n "$MV" && break
8456done
8457
8458    else
8459      # If it succeeded, then it was overridden by the user. We will use it
8460      # for the tool.
8461
8462      # First remove it from the list of overridden variables, so we can test
8463      # for unknown variables in the end.
8464      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8465
8466      # Check if the provided tool contains a complete path.
8467      tool_specified="$MV"
8468      tool_basename="${tool_specified##*/}"
8469      if test "x$tool_basename" = "x$tool_specified"; then
8470        # A command without a complete path is provided, search $PATH.
8471        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8472$as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8473        # Extract the first word of "$tool_basename", so it can be a program name with args.
8474set dummy $tool_basename; ac_word=$2
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
8477if ${ac_cv_path_MV+:} false; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  case $MV in
8481  [\\/]* | ?:[\\/]*)
8482  ac_cv_path_MV="$MV" # Let the user override the test with a path.
8483  ;;
8484  *)
8485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488  IFS=$as_save_IFS
8489  test -z "$as_dir" && as_dir=.
8490    for ac_exec_ext in '' $ac_executable_extensions; do
8491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494    break 2
8495  fi
8496done
8497  done
8498IFS=$as_save_IFS
8499
8500  ;;
8501esac
8502fi
8503MV=$ac_cv_path_MV
8504if test -n "$MV"; then
8505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8506$as_echo "$MV" >&6; }
8507else
8508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509$as_echo "no" >&6; }
8510fi
8511
8512
8513        if test "x$MV" = x; then
8514          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8515        fi
8516      else
8517        # Otherwise we believe it is a complete path. Use it as it is.
8518        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8519$as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8520        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8521$as_echo_n "checking for MV... " >&6; }
8522        if test ! -x "$tool_specified"; then
8523          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8524$as_echo "not found" >&6; }
8525          as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8526        fi
8527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8528$as_echo "$tool_specified" >&6; }
8529      fi
8530    fi
8531  fi
8532
8533
8534
8535  if test "x$MV" = x; then
8536    as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8537  fi
8538
8539
8540
8541
8542
8543  # Publish this variable in the help.
8544
8545
8546  if test "x$NAWK" = x; then
8547    # The variable is not set by user, try to locate tool using the code snippet
8548    for ac_prog in nawk gawk awk
8549do
8550  # Extract the first word of "$ac_prog", so it can be a program name with args.
8551set dummy $ac_prog; ac_word=$2
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if ${ac_cv_path_NAWK+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  case $NAWK in
8558  [\\/]* | ?:[\\/]*)
8559  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8560  ;;
8561  *)
8562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565  IFS=$as_save_IFS
8566  test -z "$as_dir" && as_dir=.
8567    for ac_exec_ext in '' $ac_executable_extensions; do
8568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571    break 2
8572  fi
8573done
8574  done
8575IFS=$as_save_IFS
8576
8577  ;;
8578esac
8579fi
8580NAWK=$ac_cv_path_NAWK
8581if test -n "$NAWK"; then
8582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8583$as_echo "$NAWK" >&6; }
8584else
8585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
8587fi
8588
8589
8590  test -n "$NAWK" && break
8591done
8592
8593  else
8594    # The variable is set, but is it from the command line or the environment?
8595
8596    # Try to remove the string !NAWK! from our list.
8597    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8598    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8599      # If it failed, the variable was not from the command line. Ignore it,
8600      # but warn the user (except for BASH, which is always set by the calling BASH).
8601      if test "xNAWK" != xBASH; then
8602        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8603$as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8604      fi
8605      # Try to locate tool using the code snippet
8606      for ac_prog in nawk gawk awk
8607do
8608  # Extract the first word of "$ac_prog", so it can be a program name with args.
8609set dummy $ac_prog; ac_word=$2
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611$as_echo_n "checking for $ac_word... " >&6; }
8612if ${ac_cv_path_NAWK+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  case $NAWK in
8616  [\\/]* | ?:[\\/]*)
8617  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8618  ;;
8619  *)
8620  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625    for ac_exec_ext in '' $ac_executable_extensions; do
8626  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8628    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632  done
8633IFS=$as_save_IFS
8634
8635  ;;
8636esac
8637fi
8638NAWK=$ac_cv_path_NAWK
8639if test -n "$NAWK"; then
8640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8641$as_echo "$NAWK" >&6; }
8642else
8643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
8645fi
8646
8647
8648  test -n "$NAWK" && break
8649done
8650
8651    else
8652      # If it succeeded, then it was overridden by the user. We will use it
8653      # for the tool.
8654
8655      # First remove it from the list of overridden variables, so we can test
8656      # for unknown variables in the end.
8657      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8658
8659      # Check if the provided tool contains a complete path.
8660      tool_specified="$NAWK"
8661      tool_basename="${tool_specified##*/}"
8662      if test "x$tool_basename" = "x$tool_specified"; then
8663        # A command without a complete path is provided, search $PATH.
8664        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8665$as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8666        # Extract the first word of "$tool_basename", so it can be a program name with args.
8667set dummy $tool_basename; ac_word=$2
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669$as_echo_n "checking for $ac_word... " >&6; }
8670if ${ac_cv_path_NAWK+:} false; then :
8671  $as_echo_n "(cached) " >&6
8672else
8673  case $NAWK in
8674  [\\/]* | ?:[\\/]*)
8675  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8676  ;;
8677  *)
8678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681  IFS=$as_save_IFS
8682  test -z "$as_dir" && as_dir=.
8683    for ac_exec_ext in '' $ac_executable_extensions; do
8684  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8686    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687    break 2
8688  fi
8689done
8690  done
8691IFS=$as_save_IFS
8692
8693  ;;
8694esac
8695fi
8696NAWK=$ac_cv_path_NAWK
8697if test -n "$NAWK"; then
8698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8699$as_echo "$NAWK" >&6; }
8700else
8701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702$as_echo "no" >&6; }
8703fi
8704
8705
8706        if test "x$NAWK" = x; then
8707          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8708        fi
8709      else
8710        # Otherwise we believe it is a complete path. Use it as it is.
8711        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8712$as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8713        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8714$as_echo_n "checking for NAWK... " >&6; }
8715        if test ! -x "$tool_specified"; then
8716          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8717$as_echo "not found" >&6; }
8718          as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8719        fi
8720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8721$as_echo "$tool_specified" >&6; }
8722      fi
8723    fi
8724  fi
8725
8726
8727
8728  if test "x$NAWK" = x; then
8729    as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8730  fi
8731
8732
8733
8734
8735
8736  # Publish this variable in the help.
8737
8738
8739  if test "x$PRINTF" = x; then
8740    # The variable is not set by user, try to locate tool using the code snippet
8741    for ac_prog in printf
8742do
8743  # Extract the first word of "$ac_prog", so it can be a program name with args.
8744set dummy $ac_prog; ac_word=$2
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746$as_echo_n "checking for $ac_word... " >&6; }
8747if ${ac_cv_path_PRINTF+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  case $PRINTF in
8751  [\\/]* | ?:[\\/]*)
8752  ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8753  ;;
8754  *)
8755  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8756for as_dir in $PATH
8757do
8758  IFS=$as_save_IFS
8759  test -z "$as_dir" && as_dir=.
8760    for ac_exec_ext in '' $ac_executable_extensions; do
8761  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8762    ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8763    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8764    break 2
8765  fi
8766done
8767  done
8768IFS=$as_save_IFS
8769
8770  ;;
8771esac
8772fi
8773PRINTF=$ac_cv_path_PRINTF
8774if test -n "$PRINTF"; then
8775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8776$as_echo "$PRINTF" >&6; }
8777else
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781
8782
8783  test -n "$PRINTF" && break
8784done
8785
8786  else
8787    # The variable is set, but is it from the command line or the environment?
8788
8789    # Try to remove the string !PRINTF! from our list.
8790    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8791    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8792      # If it failed, the variable was not from the command line. Ignore it,
8793      # but warn the user (except for BASH, which is always set by the calling BASH).
8794      if test "xPRINTF" != xBASH; then
8795        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8796$as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8797      fi
8798      # Try to locate tool using the code snippet
8799      for ac_prog in printf
8800do
8801  # Extract the first word of "$ac_prog", so it can be a program name with args.
8802set dummy $ac_prog; ac_word=$2
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if ${ac_cv_path_PRINTF+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  case $PRINTF in
8809  [\\/]* | ?:[\\/]*)
8810  ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8811  ;;
8812  *)
8813  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816  IFS=$as_save_IFS
8817  test -z "$as_dir" && as_dir=.
8818    for ac_exec_ext in '' $ac_executable_extensions; do
8819  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820    ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8821    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822    break 2
8823  fi
8824done
8825  done
8826IFS=$as_save_IFS
8827
8828  ;;
8829esac
8830fi
8831PRINTF=$ac_cv_path_PRINTF
8832if test -n "$PRINTF"; then
8833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8834$as_echo "$PRINTF" >&6; }
8835else
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837$as_echo "no" >&6; }
8838fi
8839
8840
8841  test -n "$PRINTF" && break
8842done
8843
8844    else
8845      # If it succeeded, then it was overridden by the user. We will use it
8846      # for the tool.
8847
8848      # First remove it from the list of overridden variables, so we can test
8849      # for unknown variables in the end.
8850      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8851
8852      # Check if the provided tool contains a complete path.
8853      tool_specified="$PRINTF"
8854      tool_basename="${tool_specified##*/}"
8855      if test "x$tool_basename" = "x$tool_specified"; then
8856        # A command without a complete path is provided, search $PATH.
8857        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8858$as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8859        # Extract the first word of "$tool_basename", so it can be a program name with args.
8860set dummy $tool_basename; ac_word=$2
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862$as_echo_n "checking for $ac_word... " >&6; }
8863if ${ac_cv_path_PRINTF+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  case $PRINTF in
8867  [\\/]* | ?:[\\/]*)
8868  ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8869  ;;
8870  *)
8871  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874  IFS=$as_save_IFS
8875  test -z "$as_dir" && as_dir=.
8876    for ac_exec_ext in '' $ac_executable_extensions; do
8877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878    ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880    break 2
8881  fi
8882done
8883  done
8884IFS=$as_save_IFS
8885
8886  ;;
8887esac
8888fi
8889PRINTF=$ac_cv_path_PRINTF
8890if test -n "$PRINTF"; then
8891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8892$as_echo "$PRINTF" >&6; }
8893else
8894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898
8899        if test "x$PRINTF" = x; then
8900          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8901        fi
8902      else
8903        # Otherwise we believe it is a complete path. Use it as it is.
8904        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8905$as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8906        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8907$as_echo_n "checking for PRINTF... " >&6; }
8908        if test ! -x "$tool_specified"; then
8909          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8910$as_echo "not found" >&6; }
8911          as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8912        fi
8913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8914$as_echo "$tool_specified" >&6; }
8915      fi
8916    fi
8917  fi
8918
8919
8920
8921  if test "x$PRINTF" = x; then
8922    as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8923  fi
8924
8925
8926
8927
8928
8929  # Publish this variable in the help.
8930
8931
8932  if test "x$RM" = x; then
8933    # The variable is not set by user, try to locate tool using the code snippet
8934    for ac_prog in rm
8935do
8936  # Extract the first word of "$ac_prog", so it can be a program name with args.
8937set dummy $ac_prog; ac_word=$2
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939$as_echo_n "checking for $ac_word... " >&6; }
8940if ${ac_cv_path_RM+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  case $RM in
8944  [\\/]* | ?:[\\/]*)
8945  ac_cv_path_RM="$RM" # Let the user override the test with a path.
8946  ;;
8947  *)
8948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949for as_dir in $PATH
8950do
8951  IFS=$as_save_IFS
8952  test -z "$as_dir" && as_dir=.
8953    for ac_exec_ext in '' $ac_executable_extensions; do
8954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8955    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957    break 2
8958  fi
8959done
8960  done
8961IFS=$as_save_IFS
8962
8963  ;;
8964esac
8965fi
8966RM=$ac_cv_path_RM
8967if test -n "$RM"; then
8968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8969$as_echo "$RM" >&6; }
8970else
8971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974
8975
8976  test -n "$RM" && break
8977done
8978
8979  else
8980    # The variable is set, but is it from the command line or the environment?
8981
8982    # Try to remove the string !RM! from our list.
8983    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8984    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8985      # If it failed, the variable was not from the command line. Ignore it,
8986      # but warn the user (except for BASH, which is always set by the calling BASH).
8987      if test "xRM" != xBASH; then
8988        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8989$as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8990      fi
8991      # Try to locate tool using the code snippet
8992      for ac_prog in rm
8993do
8994  # Extract the first word of "$ac_prog", so it can be a program name with args.
8995set dummy $ac_prog; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if ${ac_cv_path_RM+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  case $RM in
9002  [\\/]* | ?:[\\/]*)
9003  ac_cv_path_RM="$RM" # Let the user override the test with a path.
9004  ;;
9005  *)
9006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009  IFS=$as_save_IFS
9010  test -z "$as_dir" && as_dir=.
9011    for ac_exec_ext in '' $ac_executable_extensions; do
9012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015    break 2
9016  fi
9017done
9018  done
9019IFS=$as_save_IFS
9020
9021  ;;
9022esac
9023fi
9024RM=$ac_cv_path_RM
9025if test -n "$RM"; then
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9027$as_echo "$RM" >&6; }
9028else
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030$as_echo "no" >&6; }
9031fi
9032
9033
9034  test -n "$RM" && break
9035done
9036
9037    else
9038      # If it succeeded, then it was overridden by the user. We will use it
9039      # for the tool.
9040
9041      # First remove it from the list of overridden variables, so we can test
9042      # for unknown variables in the end.
9043      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9044
9045      # Check if the provided tool contains a complete path.
9046      tool_specified="$RM"
9047      tool_basename="${tool_specified##*/}"
9048      if test "x$tool_basename" = "x$tool_specified"; then
9049        # A command without a complete path is provided, search $PATH.
9050        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9051$as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9052        # Extract the first word of "$tool_basename", so it can be a program name with args.
9053set dummy $tool_basename; ac_word=$2
9054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055$as_echo_n "checking for $ac_word... " >&6; }
9056if ${ac_cv_path_RM+:} false; then :
9057  $as_echo_n "(cached) " >&6
9058else
9059  case $RM in
9060  [\\/]* | ?:[\\/]*)
9061  ac_cv_path_RM="$RM" # Let the user override the test with a path.
9062  ;;
9063  *)
9064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065for as_dir in $PATH
9066do
9067  IFS=$as_save_IFS
9068  test -z "$as_dir" && as_dir=.
9069    for ac_exec_ext in '' $ac_executable_extensions; do
9070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073    break 2
9074  fi
9075done
9076  done
9077IFS=$as_save_IFS
9078
9079  ;;
9080esac
9081fi
9082RM=$ac_cv_path_RM
9083if test -n "$RM"; then
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9085$as_echo "$RM" >&6; }
9086else
9087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
9089fi
9090
9091
9092        if test "x$RM" = x; then
9093          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9094        fi
9095      else
9096        # Otherwise we believe it is a complete path. Use it as it is.
9097        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9098$as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9099        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9100$as_echo_n "checking for RM... " >&6; }
9101        if test ! -x "$tool_specified"; then
9102          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9103$as_echo "not found" >&6; }
9104          as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9105        fi
9106        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9107$as_echo "$tool_specified" >&6; }
9108      fi
9109    fi
9110  fi
9111
9112
9113
9114  if test "x$RM" = x; then
9115    as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9116  fi
9117
9118
9119
9120
9121
9122  # Publish this variable in the help.
9123
9124
9125  if test "x$SH" = x; then
9126    # The variable is not set by user, try to locate tool using the code snippet
9127    for ac_prog in sh
9128do
9129  # Extract the first word of "$ac_prog", so it can be a program name with args.
9130set dummy $ac_prog; ac_word=$2
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132$as_echo_n "checking for $ac_word... " >&6; }
9133if ${ac_cv_path_SH+:} false; then :
9134  $as_echo_n "(cached) " >&6
9135else
9136  case $SH in
9137  [\\/]* | ?:[\\/]*)
9138  ac_cv_path_SH="$SH" # Let the user override the test with a path.
9139  ;;
9140  *)
9141  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9142for as_dir in $PATH
9143do
9144  IFS=$as_save_IFS
9145  test -z "$as_dir" && as_dir=.
9146    for ac_exec_ext in '' $ac_executable_extensions; do
9147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9148    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9150    break 2
9151  fi
9152done
9153  done
9154IFS=$as_save_IFS
9155
9156  ;;
9157esac
9158fi
9159SH=$ac_cv_path_SH
9160if test -n "$SH"; then
9161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9162$as_echo "$SH" >&6; }
9163else
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165$as_echo "no" >&6; }
9166fi
9167
9168
9169  test -n "$SH" && break
9170done
9171
9172  else
9173    # The variable is set, but is it from the command line or the environment?
9174
9175    # Try to remove the string !SH! from our list.
9176    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9177    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9178      # If it failed, the variable was not from the command line. Ignore it,
9179      # but warn the user (except for BASH, which is always set by the calling BASH).
9180      if test "xSH" != xBASH; then
9181        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9182$as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9183      fi
9184      # Try to locate tool using the code snippet
9185      for ac_prog in sh
9186do
9187  # Extract the first word of "$ac_prog", so it can be a program name with args.
9188set dummy $ac_prog; ac_word=$2
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190$as_echo_n "checking for $ac_word... " >&6; }
9191if ${ac_cv_path_SH+:} false; then :
9192  $as_echo_n "(cached) " >&6
9193else
9194  case $SH in
9195  [\\/]* | ?:[\\/]*)
9196  ac_cv_path_SH="$SH" # Let the user override the test with a path.
9197  ;;
9198  *)
9199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $PATH
9201do
9202  IFS=$as_save_IFS
9203  test -z "$as_dir" && as_dir=.
9204    for ac_exec_ext in '' $ac_executable_extensions; do
9205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208    break 2
9209  fi
9210done
9211  done
9212IFS=$as_save_IFS
9213
9214  ;;
9215esac
9216fi
9217SH=$ac_cv_path_SH
9218if test -n "$SH"; then
9219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9220$as_echo "$SH" >&6; }
9221else
9222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
9224fi
9225
9226
9227  test -n "$SH" && break
9228done
9229
9230    else
9231      # If it succeeded, then it was overridden by the user. We will use it
9232      # for the tool.
9233
9234      # First remove it from the list of overridden variables, so we can test
9235      # for unknown variables in the end.
9236      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9237
9238      # Check if the provided tool contains a complete path.
9239      tool_specified="$SH"
9240      tool_basename="${tool_specified##*/}"
9241      if test "x$tool_basename" = "x$tool_specified"; then
9242        # A command without a complete path is provided, search $PATH.
9243        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9244$as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9245        # Extract the first word of "$tool_basename", so it can be a program name with args.
9246set dummy $tool_basename; ac_word=$2
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if ${ac_cv_path_SH+:} false; then :
9250  $as_echo_n "(cached) " >&6
9251else
9252  case $SH in
9253  [\\/]* | ?:[\\/]*)
9254  ac_cv_path_SH="$SH" # Let the user override the test with a path.
9255  ;;
9256  *)
9257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260  IFS=$as_save_IFS
9261  test -z "$as_dir" && as_dir=.
9262    for ac_exec_ext in '' $ac_executable_extensions; do
9263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9264    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266    break 2
9267  fi
9268done
9269  done
9270IFS=$as_save_IFS
9271
9272  ;;
9273esac
9274fi
9275SH=$ac_cv_path_SH
9276if test -n "$SH"; then
9277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9278$as_echo "$SH" >&6; }
9279else
9280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281$as_echo "no" >&6; }
9282fi
9283
9284
9285        if test "x$SH" = x; then
9286          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9287        fi
9288      else
9289        # Otherwise we believe it is a complete path. Use it as it is.
9290        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9291$as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9292        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9293$as_echo_n "checking for SH... " >&6; }
9294        if test ! -x "$tool_specified"; then
9295          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9296$as_echo "not found" >&6; }
9297          as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9298        fi
9299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9300$as_echo "$tool_specified" >&6; }
9301      fi
9302    fi
9303  fi
9304
9305
9306
9307  if test "x$SH" = x; then
9308    as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9309  fi
9310
9311
9312
9313
9314
9315  # Publish this variable in the help.
9316
9317
9318  if test "x$SORT" = x; then
9319    # The variable is not set by user, try to locate tool using the code snippet
9320    for ac_prog in sort
9321do
9322  # Extract the first word of "$ac_prog", so it can be a program name with args.
9323set dummy $ac_prog; ac_word=$2
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325$as_echo_n "checking for $ac_word... " >&6; }
9326if ${ac_cv_path_SORT+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  case $SORT in
9330  [\\/]* | ?:[\\/]*)
9331  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9332  ;;
9333  *)
9334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335for as_dir in $PATH
9336do
9337  IFS=$as_save_IFS
9338  test -z "$as_dir" && as_dir=.
9339    for ac_exec_ext in '' $ac_executable_extensions; do
9340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9341    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343    break 2
9344  fi
9345done
9346  done
9347IFS=$as_save_IFS
9348
9349  ;;
9350esac
9351fi
9352SORT=$ac_cv_path_SORT
9353if test -n "$SORT"; then
9354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9355$as_echo "$SORT" >&6; }
9356else
9357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358$as_echo "no" >&6; }
9359fi
9360
9361
9362  test -n "$SORT" && break
9363done
9364
9365  else
9366    # The variable is set, but is it from the command line or the environment?
9367
9368    # Try to remove the string !SORT! from our list.
9369    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9370    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9371      # If it failed, the variable was not from the command line. Ignore it,
9372      # but warn the user (except for BASH, which is always set by the calling BASH).
9373      if test "xSORT" != xBASH; then
9374        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9375$as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9376      fi
9377      # Try to locate tool using the code snippet
9378      for ac_prog in sort
9379do
9380  # Extract the first word of "$ac_prog", so it can be a program name with args.
9381set dummy $ac_prog; ac_word=$2
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383$as_echo_n "checking for $ac_word... " >&6; }
9384if ${ac_cv_path_SORT+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  case $SORT in
9388  [\\/]* | ?:[\\/]*)
9389  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9390  ;;
9391  *)
9392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395  IFS=$as_save_IFS
9396  test -z "$as_dir" && as_dir=.
9397    for ac_exec_ext in '' $ac_executable_extensions; do
9398  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401    break 2
9402  fi
9403done
9404  done
9405IFS=$as_save_IFS
9406
9407  ;;
9408esac
9409fi
9410SORT=$ac_cv_path_SORT
9411if test -n "$SORT"; then
9412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9413$as_echo "$SORT" >&6; }
9414else
9415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
9417fi
9418
9419
9420  test -n "$SORT" && break
9421done
9422
9423    else
9424      # If it succeeded, then it was overridden by the user. We will use it
9425      # for the tool.
9426
9427      # First remove it from the list of overridden variables, so we can test
9428      # for unknown variables in the end.
9429      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9430
9431      # Check if the provided tool contains a complete path.
9432      tool_specified="$SORT"
9433      tool_basename="${tool_specified##*/}"
9434      if test "x$tool_basename" = "x$tool_specified"; then
9435        # A command without a complete path is provided, search $PATH.
9436        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9437$as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9438        # Extract the first word of "$tool_basename", so it can be a program name with args.
9439set dummy $tool_basename; ac_word=$2
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441$as_echo_n "checking for $ac_word... " >&6; }
9442if ${ac_cv_path_SORT+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  case $SORT in
9446  [\\/]* | ?:[\\/]*)
9447  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9448  ;;
9449  *)
9450  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451for as_dir in $PATH
9452do
9453  IFS=$as_save_IFS
9454  test -z "$as_dir" && as_dir=.
9455    for ac_exec_ext in '' $ac_executable_extensions; do
9456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459    break 2
9460  fi
9461done
9462  done
9463IFS=$as_save_IFS
9464
9465  ;;
9466esac
9467fi
9468SORT=$ac_cv_path_SORT
9469if test -n "$SORT"; then
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9471$as_echo "$SORT" >&6; }
9472else
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474$as_echo "no" >&6; }
9475fi
9476
9477
9478        if test "x$SORT" = x; then
9479          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9480        fi
9481      else
9482        # Otherwise we believe it is a complete path. Use it as it is.
9483        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9484$as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9485        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9486$as_echo_n "checking for SORT... " >&6; }
9487        if test ! -x "$tool_specified"; then
9488          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9489$as_echo "not found" >&6; }
9490          as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9491        fi
9492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9493$as_echo "$tool_specified" >&6; }
9494      fi
9495    fi
9496  fi
9497
9498
9499
9500  if test "x$SORT" = x; then
9501    as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9502  fi
9503
9504
9505
9506
9507
9508  # Publish this variable in the help.
9509
9510
9511  if test "x$TAIL" = x; then
9512    # The variable is not set by user, try to locate tool using the code snippet
9513    for ac_prog in tail
9514do
9515  # Extract the first word of "$ac_prog", so it can be a program name with args.
9516set dummy $ac_prog; ac_word=$2
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518$as_echo_n "checking for $ac_word... " >&6; }
9519if ${ac_cv_path_TAIL+:} false; then :
9520  $as_echo_n "(cached) " >&6
9521else
9522  case $TAIL in
9523  [\\/]* | ?:[\\/]*)
9524  ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9525  ;;
9526  *)
9527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530  IFS=$as_save_IFS
9531  test -z "$as_dir" && as_dir=.
9532    for ac_exec_ext in '' $ac_executable_extensions; do
9533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534    ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536    break 2
9537  fi
9538done
9539  done
9540IFS=$as_save_IFS
9541
9542  ;;
9543esac
9544fi
9545TAIL=$ac_cv_path_TAIL
9546if test -n "$TAIL"; then
9547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9548$as_echo "$TAIL" >&6; }
9549else
9550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551$as_echo "no" >&6; }
9552fi
9553
9554
9555  test -n "$TAIL" && break
9556done
9557
9558  else
9559    # The variable is set, but is it from the command line or the environment?
9560
9561    # Try to remove the string !TAIL! from our list.
9562    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9563    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9564      # If it failed, the variable was not from the command line. Ignore it,
9565      # but warn the user (except for BASH, which is always set by the calling BASH).
9566      if test "xTAIL" != xBASH; then
9567        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9568$as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9569      fi
9570      # Try to locate tool using the code snippet
9571      for ac_prog in tail
9572do
9573  # Extract the first word of "$ac_prog", so it can be a program name with args.
9574set dummy $ac_prog; ac_word=$2
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
9577if ${ac_cv_path_TAIL+:} false; then :
9578  $as_echo_n "(cached) " >&6
9579else
9580  case $TAIL in
9581  [\\/]* | ?:[\\/]*)
9582  ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9583  ;;
9584  *)
9585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586for as_dir in $PATH
9587do
9588  IFS=$as_save_IFS
9589  test -z "$as_dir" && as_dir=.
9590    for ac_exec_ext in '' $ac_executable_extensions; do
9591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592    ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594    break 2
9595  fi
9596done
9597  done
9598IFS=$as_save_IFS
9599
9600  ;;
9601esac
9602fi
9603TAIL=$ac_cv_path_TAIL
9604if test -n "$TAIL"; then
9605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9606$as_echo "$TAIL" >&6; }
9607else
9608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609$as_echo "no" >&6; }
9610fi
9611
9612
9613  test -n "$TAIL" && break
9614done
9615
9616    else
9617      # If it succeeded, then it was overridden by the user. We will use it
9618      # for the tool.
9619
9620      # First remove it from the list of overridden variables, so we can test
9621      # for unknown variables in the end.
9622      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9623
9624      # Check if the provided tool contains a complete path.
9625      tool_specified="$TAIL"
9626      tool_basename="${tool_specified##*/}"
9627      if test "x$tool_basename" = "x$tool_specified"; then
9628        # A command without a complete path is provided, search $PATH.
9629        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9630$as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9631        # Extract the first word of "$tool_basename", so it can be a program name with args.
9632set dummy $tool_basename; ac_word=$2
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
9635if ${ac_cv_path_TAIL+:} false; then :
9636  $as_echo_n "(cached) " >&6
9637else
9638  case $TAIL in
9639  [\\/]* | ?:[\\/]*)
9640  ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9641  ;;
9642  *)
9643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646  IFS=$as_save_IFS
9647  test -z "$as_dir" && as_dir=.
9648    for ac_exec_ext in '' $ac_executable_extensions; do
9649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650    ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652    break 2
9653  fi
9654done
9655  done
9656IFS=$as_save_IFS
9657
9658  ;;
9659esac
9660fi
9661TAIL=$ac_cv_path_TAIL
9662if test -n "$TAIL"; then
9663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9664$as_echo "$TAIL" >&6; }
9665else
9666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670
9671        if test "x$TAIL" = x; then
9672          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9673        fi
9674      else
9675        # Otherwise we believe it is a complete path. Use it as it is.
9676        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9677$as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9678        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9679$as_echo_n "checking for TAIL... " >&6; }
9680        if test ! -x "$tool_specified"; then
9681          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9682$as_echo "not found" >&6; }
9683          as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9684        fi
9685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9686$as_echo "$tool_specified" >&6; }
9687      fi
9688    fi
9689  fi
9690
9691
9692
9693  if test "x$TAIL" = x; then
9694    as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9695  fi
9696
9697
9698
9699
9700
9701  # Publish this variable in the help.
9702
9703
9704  if test "x$TAR" = x; then
9705    # The variable is not set by user, try to locate tool using the code snippet
9706    for ac_prog in tar
9707do
9708  # Extract the first word of "$ac_prog", so it can be a program name with args.
9709set dummy $ac_prog; ac_word=$2
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711$as_echo_n "checking for $ac_word... " >&6; }
9712if ${ac_cv_path_TAR+:} false; then :
9713  $as_echo_n "(cached) " >&6
9714else
9715  case $TAR in
9716  [\\/]* | ?:[\\/]*)
9717  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9718  ;;
9719  *)
9720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721for as_dir in $PATH
9722do
9723  IFS=$as_save_IFS
9724  test -z "$as_dir" && as_dir=.
9725    for ac_exec_ext in '' $ac_executable_extensions; do
9726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9727    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729    break 2
9730  fi
9731done
9732  done
9733IFS=$as_save_IFS
9734
9735  ;;
9736esac
9737fi
9738TAR=$ac_cv_path_TAR
9739if test -n "$TAR"; then
9740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9741$as_echo "$TAR" >&6; }
9742else
9743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744$as_echo "no" >&6; }
9745fi
9746
9747
9748  test -n "$TAR" && break
9749done
9750
9751  else
9752    # The variable is set, but is it from the command line or the environment?
9753
9754    # Try to remove the string !TAR! from our list.
9755    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9756    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9757      # If it failed, the variable was not from the command line. Ignore it,
9758      # but warn the user (except for BASH, which is always set by the calling BASH).
9759      if test "xTAR" != xBASH; then
9760        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9761$as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9762      fi
9763      # Try to locate tool using the code snippet
9764      for ac_prog in tar
9765do
9766  # Extract the first word of "$ac_prog", so it can be a program name with args.
9767set dummy $ac_prog; ac_word=$2
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769$as_echo_n "checking for $ac_word... " >&6; }
9770if ${ac_cv_path_TAR+:} false; then :
9771  $as_echo_n "(cached) " >&6
9772else
9773  case $TAR in
9774  [\\/]* | ?:[\\/]*)
9775  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9776  ;;
9777  *)
9778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781  IFS=$as_save_IFS
9782  test -z "$as_dir" && as_dir=.
9783    for ac_exec_ext in '' $ac_executable_extensions; do
9784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787    break 2
9788  fi
9789done
9790  done
9791IFS=$as_save_IFS
9792
9793  ;;
9794esac
9795fi
9796TAR=$ac_cv_path_TAR
9797if test -n "$TAR"; then
9798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9799$as_echo "$TAR" >&6; }
9800else
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804
9805
9806  test -n "$TAR" && break
9807done
9808
9809    else
9810      # If it succeeded, then it was overridden by the user. We will use it
9811      # for the tool.
9812
9813      # First remove it from the list of overridden variables, so we can test
9814      # for unknown variables in the end.
9815      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9816
9817      # Check if the provided tool contains a complete path.
9818      tool_specified="$TAR"
9819      tool_basename="${tool_specified##*/}"
9820      if test "x$tool_basename" = "x$tool_specified"; then
9821        # A command without a complete path is provided, search $PATH.
9822        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9823$as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9824        # Extract the first word of "$tool_basename", so it can be a program name with args.
9825set dummy $tool_basename; ac_word=$2
9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827$as_echo_n "checking for $ac_word... " >&6; }
9828if ${ac_cv_path_TAR+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  case $TAR in
9832  [\\/]* | ?:[\\/]*)
9833  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9834  ;;
9835  *)
9836  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839  IFS=$as_save_IFS
9840  test -z "$as_dir" && as_dir=.
9841    for ac_exec_ext in '' $ac_executable_extensions; do
9842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9843    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845    break 2
9846  fi
9847done
9848  done
9849IFS=$as_save_IFS
9850
9851  ;;
9852esac
9853fi
9854TAR=$ac_cv_path_TAR
9855if test -n "$TAR"; then
9856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9857$as_echo "$TAR" >&6; }
9858else
9859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860$as_echo "no" >&6; }
9861fi
9862
9863
9864        if test "x$TAR" = x; then
9865          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9866        fi
9867      else
9868        # Otherwise we believe it is a complete path. Use it as it is.
9869        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9870$as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9871        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9872$as_echo_n "checking for TAR... " >&6; }
9873        if test ! -x "$tool_specified"; then
9874          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9875$as_echo "not found" >&6; }
9876          as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9877        fi
9878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9879$as_echo "$tool_specified" >&6; }
9880      fi
9881    fi
9882  fi
9883
9884
9885
9886  if test "x$TAR" = x; then
9887    as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9888  fi
9889
9890
9891
9892
9893
9894  # Publish this variable in the help.
9895
9896
9897  if test "x$TEE" = x; then
9898    # The variable is not set by user, try to locate tool using the code snippet
9899    for ac_prog in tee
9900do
9901  # Extract the first word of "$ac_prog", so it can be a program name with args.
9902set dummy $ac_prog; ac_word=$2
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904$as_echo_n "checking for $ac_word... " >&6; }
9905if ${ac_cv_path_TEE+:} false; then :
9906  $as_echo_n "(cached) " >&6
9907else
9908  case $TEE in
9909  [\\/]* | ?:[\\/]*)
9910  ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9911  ;;
9912  *)
9913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914for as_dir in $PATH
9915do
9916  IFS=$as_save_IFS
9917  test -z "$as_dir" && as_dir=.
9918    for ac_exec_ext in '' $ac_executable_extensions; do
9919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9920    ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922    break 2
9923  fi
9924done
9925  done
9926IFS=$as_save_IFS
9927
9928  ;;
9929esac
9930fi
9931TEE=$ac_cv_path_TEE
9932if test -n "$TEE"; then
9933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9934$as_echo "$TEE" >&6; }
9935else
9936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
9938fi
9939
9940
9941  test -n "$TEE" && break
9942done
9943
9944  else
9945    # The variable is set, but is it from the command line or the environment?
9946
9947    # Try to remove the string !TEE! from our list.
9948    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9949    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9950      # If it failed, the variable was not from the command line. Ignore it,
9951      # but warn the user (except for BASH, which is always set by the calling BASH).
9952      if test "xTEE" != xBASH; then
9953        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9954$as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9955      fi
9956      # Try to locate tool using the code snippet
9957      for ac_prog in tee
9958do
9959  # Extract the first word of "$ac_prog", so it can be a program name with args.
9960set dummy $ac_prog; ac_word=$2
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962$as_echo_n "checking for $ac_word... " >&6; }
9963if ${ac_cv_path_TEE+:} false; then :
9964  $as_echo_n "(cached) " >&6
9965else
9966  case $TEE in
9967  [\\/]* | ?:[\\/]*)
9968  ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9969  ;;
9970  *)
9971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972for as_dir in $PATH
9973do
9974  IFS=$as_save_IFS
9975  test -z "$as_dir" && as_dir=.
9976    for ac_exec_ext in '' $ac_executable_extensions; do
9977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978    ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980    break 2
9981  fi
9982done
9983  done
9984IFS=$as_save_IFS
9985
9986  ;;
9987esac
9988fi
9989TEE=$ac_cv_path_TEE
9990if test -n "$TEE"; then
9991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9992$as_echo "$TEE" >&6; }
9993else
9994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995$as_echo "no" >&6; }
9996fi
9997
9998
9999  test -n "$TEE" && break
10000done
10001
10002    else
10003      # If it succeeded, then it was overridden by the user. We will use it
10004      # for the tool.
10005
10006      # First remove it from the list of overridden variables, so we can test
10007      # for unknown variables in the end.
10008      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10009
10010      # Check if the provided tool contains a complete path.
10011      tool_specified="$TEE"
10012      tool_basename="${tool_specified##*/}"
10013      if test "x$tool_basename" = "x$tool_specified"; then
10014        # A command without a complete path is provided, search $PATH.
10015        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10016$as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10017        # Extract the first word of "$tool_basename", so it can be a program name with args.
10018set dummy $tool_basename; ac_word=$2
10019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020$as_echo_n "checking for $ac_word... " >&6; }
10021if ${ac_cv_path_TEE+:} false; then :
10022  $as_echo_n "(cached) " >&6
10023else
10024  case $TEE in
10025  [\\/]* | ?:[\\/]*)
10026  ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10027  ;;
10028  *)
10029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030for as_dir in $PATH
10031do
10032  IFS=$as_save_IFS
10033  test -z "$as_dir" && as_dir=.
10034    for ac_exec_ext in '' $ac_executable_extensions; do
10035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036    ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038    break 2
10039  fi
10040done
10041  done
10042IFS=$as_save_IFS
10043
10044  ;;
10045esac
10046fi
10047TEE=$ac_cv_path_TEE
10048if test -n "$TEE"; then
10049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10050$as_echo "$TEE" >&6; }
10051else
10052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
10054fi
10055
10056
10057        if test "x$TEE" = x; then
10058          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10059        fi
10060      else
10061        # Otherwise we believe it is a complete path. Use it as it is.
10062        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10063$as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10064        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10065$as_echo_n "checking for TEE... " >&6; }
10066        if test ! -x "$tool_specified"; then
10067          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10068$as_echo "not found" >&6; }
10069          as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10070        fi
10071        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10072$as_echo "$tool_specified" >&6; }
10073      fi
10074    fi
10075  fi
10076
10077
10078
10079  if test "x$TEE" = x; then
10080    as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10081  fi
10082
10083
10084
10085
10086
10087  # Publish this variable in the help.
10088
10089
10090  if test "x$TOUCH" = x; then
10091    # The variable is not set by user, try to locate tool using the code snippet
10092    for ac_prog in touch
10093do
10094  # Extract the first word of "$ac_prog", so it can be a program name with args.
10095set dummy $ac_prog; ac_word=$2
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097$as_echo_n "checking for $ac_word... " >&6; }
10098if ${ac_cv_path_TOUCH+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  case $TOUCH in
10102  [\\/]* | ?:[\\/]*)
10103  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10104  ;;
10105  *)
10106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107for as_dir in $PATH
10108do
10109  IFS=$as_save_IFS
10110  test -z "$as_dir" && as_dir=.
10111    for ac_exec_ext in '' $ac_executable_extensions; do
10112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115    break 2
10116  fi
10117done
10118  done
10119IFS=$as_save_IFS
10120
10121  ;;
10122esac
10123fi
10124TOUCH=$ac_cv_path_TOUCH
10125if test -n "$TOUCH"; then
10126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10127$as_echo "$TOUCH" >&6; }
10128else
10129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
10131fi
10132
10133
10134  test -n "$TOUCH" && break
10135done
10136
10137  else
10138    # The variable is set, but is it from the command line or the environment?
10139
10140    # Try to remove the string !TOUCH! from our list.
10141    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10142    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10143      # If it failed, the variable was not from the command line. Ignore it,
10144      # but warn the user (except for BASH, which is always set by the calling BASH).
10145      if test "xTOUCH" != xBASH; then
10146        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10147$as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10148      fi
10149      # Try to locate tool using the code snippet
10150      for ac_prog in touch
10151do
10152  # Extract the first word of "$ac_prog", so it can be a program name with args.
10153set dummy $ac_prog; ac_word=$2
10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155$as_echo_n "checking for $ac_word... " >&6; }
10156if ${ac_cv_path_TOUCH+:} false; then :
10157  $as_echo_n "(cached) " >&6
10158else
10159  case $TOUCH in
10160  [\\/]* | ?:[\\/]*)
10161  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10162  ;;
10163  *)
10164  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165for as_dir in $PATH
10166do
10167  IFS=$as_save_IFS
10168  test -z "$as_dir" && as_dir=.
10169    for ac_exec_ext in '' $ac_executable_extensions; do
10170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173    break 2
10174  fi
10175done
10176  done
10177IFS=$as_save_IFS
10178
10179  ;;
10180esac
10181fi
10182TOUCH=$ac_cv_path_TOUCH
10183if test -n "$TOUCH"; then
10184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10185$as_echo "$TOUCH" >&6; }
10186else
10187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188$as_echo "no" >&6; }
10189fi
10190
10191
10192  test -n "$TOUCH" && break
10193done
10194
10195    else
10196      # If it succeeded, then it was overridden by the user. We will use it
10197      # for the tool.
10198
10199      # First remove it from the list of overridden variables, so we can test
10200      # for unknown variables in the end.
10201      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10202
10203      # Check if the provided tool contains a complete path.
10204      tool_specified="$TOUCH"
10205      tool_basename="${tool_specified##*/}"
10206      if test "x$tool_basename" = "x$tool_specified"; then
10207        # A command without a complete path is provided, search $PATH.
10208        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10209$as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10210        # Extract the first word of "$tool_basename", so it can be a program name with args.
10211set dummy $tool_basename; ac_word=$2
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213$as_echo_n "checking for $ac_word... " >&6; }
10214if ${ac_cv_path_TOUCH+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  case $TOUCH in
10218  [\\/]* | ?:[\\/]*)
10219  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10220  ;;
10221  *)
10222  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223for as_dir in $PATH
10224do
10225  IFS=$as_save_IFS
10226  test -z "$as_dir" && as_dir=.
10227    for ac_exec_ext in '' $ac_executable_extensions; do
10228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231    break 2
10232  fi
10233done
10234  done
10235IFS=$as_save_IFS
10236
10237  ;;
10238esac
10239fi
10240TOUCH=$ac_cv_path_TOUCH
10241if test -n "$TOUCH"; then
10242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10243$as_echo "$TOUCH" >&6; }
10244else
10245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246$as_echo "no" >&6; }
10247fi
10248
10249
10250        if test "x$TOUCH" = x; then
10251          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10252        fi
10253      else
10254        # Otherwise we believe it is a complete path. Use it as it is.
10255        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10256$as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10257        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10258$as_echo_n "checking for TOUCH... " >&6; }
10259        if test ! -x "$tool_specified"; then
10260          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10261$as_echo "not found" >&6; }
10262          as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10263        fi
10264        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10265$as_echo "$tool_specified" >&6; }
10266      fi
10267    fi
10268  fi
10269
10270
10271
10272  if test "x$TOUCH" = x; then
10273    as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10274  fi
10275
10276
10277
10278
10279
10280  # Publish this variable in the help.
10281
10282
10283  if test "x$TR" = x; then
10284    # The variable is not set by user, try to locate tool using the code snippet
10285    for ac_prog in tr
10286do
10287  # Extract the first word of "$ac_prog", so it can be a program name with args.
10288set dummy $ac_prog; ac_word=$2
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if ${ac_cv_path_TR+:} false; then :
10292  $as_echo_n "(cached) " >&6
10293else
10294  case $TR in
10295  [\\/]* | ?:[\\/]*)
10296  ac_cv_path_TR="$TR" # Let the user override the test with a path.
10297  ;;
10298  *)
10299  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302  IFS=$as_save_IFS
10303  test -z "$as_dir" && as_dir=.
10304    for ac_exec_ext in '' $ac_executable_extensions; do
10305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10306    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308    break 2
10309  fi
10310done
10311  done
10312IFS=$as_save_IFS
10313
10314  ;;
10315esac
10316fi
10317TR=$ac_cv_path_TR
10318if test -n "$TR"; then
10319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10320$as_echo "$TR" >&6; }
10321else
10322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
10324fi
10325
10326
10327  test -n "$TR" && break
10328done
10329
10330  else
10331    # The variable is set, but is it from the command line or the environment?
10332
10333    # Try to remove the string !TR! from our list.
10334    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10335    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10336      # If it failed, the variable was not from the command line. Ignore it,
10337      # but warn the user (except for BASH, which is always set by the calling BASH).
10338      if test "xTR" != xBASH; then
10339        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10340$as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10341      fi
10342      # Try to locate tool using the code snippet
10343      for ac_prog in tr
10344do
10345  # Extract the first word of "$ac_prog", so it can be a program name with args.
10346set dummy $ac_prog; ac_word=$2
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348$as_echo_n "checking for $ac_word... " >&6; }
10349if ${ac_cv_path_TR+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  case $TR in
10353  [\\/]* | ?:[\\/]*)
10354  ac_cv_path_TR="$TR" # Let the user override the test with a path.
10355  ;;
10356  *)
10357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358for as_dir in $PATH
10359do
10360  IFS=$as_save_IFS
10361  test -z "$as_dir" && as_dir=.
10362    for ac_exec_ext in '' $ac_executable_extensions; do
10363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366    break 2
10367  fi
10368done
10369  done
10370IFS=$as_save_IFS
10371
10372  ;;
10373esac
10374fi
10375TR=$ac_cv_path_TR
10376if test -n "$TR"; then
10377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10378$as_echo "$TR" >&6; }
10379else
10380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
10382fi
10383
10384
10385  test -n "$TR" && break
10386done
10387
10388    else
10389      # If it succeeded, then it was overridden by the user. We will use it
10390      # for the tool.
10391
10392      # First remove it from the list of overridden variables, so we can test
10393      # for unknown variables in the end.
10394      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10395
10396      # Check if the provided tool contains a complete path.
10397      tool_specified="$TR"
10398      tool_basename="${tool_specified##*/}"
10399      if test "x$tool_basename" = "x$tool_specified"; then
10400        # A command without a complete path is provided, search $PATH.
10401        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10402$as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10403        # Extract the first word of "$tool_basename", so it can be a program name with args.
10404set dummy $tool_basename; ac_word=$2
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406$as_echo_n "checking for $ac_word... " >&6; }
10407if ${ac_cv_path_TR+:} false; then :
10408  $as_echo_n "(cached) " >&6
10409else
10410  case $TR in
10411  [\\/]* | ?:[\\/]*)
10412  ac_cv_path_TR="$TR" # Let the user override the test with a path.
10413  ;;
10414  *)
10415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418  IFS=$as_save_IFS
10419  test -z "$as_dir" && as_dir=.
10420    for ac_exec_ext in '' $ac_executable_extensions; do
10421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424    break 2
10425  fi
10426done
10427  done
10428IFS=$as_save_IFS
10429
10430  ;;
10431esac
10432fi
10433TR=$ac_cv_path_TR
10434if test -n "$TR"; then
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10436$as_echo "$TR" >&6; }
10437else
10438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
10440fi
10441
10442
10443        if test "x$TR" = x; then
10444          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10445        fi
10446      else
10447        # Otherwise we believe it is a complete path. Use it as it is.
10448        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10449$as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10450        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10451$as_echo_n "checking for TR... " >&6; }
10452        if test ! -x "$tool_specified"; then
10453          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10454$as_echo "not found" >&6; }
10455          as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10456        fi
10457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10458$as_echo "$tool_specified" >&6; }
10459      fi
10460    fi
10461  fi
10462
10463
10464
10465  if test "x$TR" = x; then
10466    as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10467  fi
10468
10469
10470
10471
10472
10473  # Publish this variable in the help.
10474
10475
10476  if test "x$UNAME" = x; then
10477    # The variable is not set by user, try to locate tool using the code snippet
10478    for ac_prog in uname
10479do
10480  # Extract the first word of "$ac_prog", so it can be a program name with args.
10481set dummy $ac_prog; ac_word=$2
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
10484if ${ac_cv_path_UNAME+:} false; then :
10485  $as_echo_n "(cached) " >&6
10486else
10487  case $UNAME in
10488  [\\/]* | ?:[\\/]*)
10489  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10490  ;;
10491  *)
10492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493for as_dir in $PATH
10494do
10495  IFS=$as_save_IFS
10496  test -z "$as_dir" && as_dir=.
10497    for ac_exec_ext in '' $ac_executable_extensions; do
10498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10499    ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501    break 2
10502  fi
10503done
10504  done
10505IFS=$as_save_IFS
10506
10507  ;;
10508esac
10509fi
10510UNAME=$ac_cv_path_UNAME
10511if test -n "$UNAME"; then
10512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10513$as_echo "$UNAME" >&6; }
10514else
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
10517fi
10518
10519
10520  test -n "$UNAME" && break
10521done
10522
10523  else
10524    # The variable is set, but is it from the command line or the environment?
10525
10526    # Try to remove the string !UNAME! from our list.
10527    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10528    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10529      # If it failed, the variable was not from the command line. Ignore it,
10530      # but warn the user (except for BASH, which is always set by the calling BASH).
10531      if test "xUNAME" != xBASH; then
10532        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10533$as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10534      fi
10535      # Try to locate tool using the code snippet
10536      for ac_prog in uname
10537do
10538  # Extract the first word of "$ac_prog", so it can be a program name with args.
10539set dummy $ac_prog; ac_word=$2
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
10542if ${ac_cv_path_UNAME+:} false; then :
10543  $as_echo_n "(cached) " >&6
10544else
10545  case $UNAME in
10546  [\\/]* | ?:[\\/]*)
10547  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10548  ;;
10549  *)
10550  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553  IFS=$as_save_IFS
10554  test -z "$as_dir" && as_dir=.
10555    for ac_exec_ext in '' $ac_executable_extensions; do
10556  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10557    ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559    break 2
10560  fi
10561done
10562  done
10563IFS=$as_save_IFS
10564
10565  ;;
10566esac
10567fi
10568UNAME=$ac_cv_path_UNAME
10569if test -n "$UNAME"; then
10570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10571$as_echo "$UNAME" >&6; }
10572else
10573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
10575fi
10576
10577
10578  test -n "$UNAME" && break
10579done
10580
10581    else
10582      # If it succeeded, then it was overridden by the user. We will use it
10583      # for the tool.
10584
10585      # First remove it from the list of overridden variables, so we can test
10586      # for unknown variables in the end.
10587      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10588
10589      # Check if the provided tool contains a complete path.
10590      tool_specified="$UNAME"
10591      tool_basename="${tool_specified##*/}"
10592      if test "x$tool_basename" = "x$tool_specified"; then
10593        # A command without a complete path is provided, search $PATH.
10594        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10595$as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10596        # Extract the first word of "$tool_basename", so it can be a program name with args.
10597set dummy $tool_basename; ac_word=$2
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599$as_echo_n "checking for $ac_word... " >&6; }
10600if ${ac_cv_path_UNAME+:} false; then :
10601  $as_echo_n "(cached) " >&6
10602else
10603  case $UNAME in
10604  [\\/]* | ?:[\\/]*)
10605  ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10606  ;;
10607  *)
10608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611  IFS=$as_save_IFS
10612  test -z "$as_dir" && as_dir=.
10613    for ac_exec_ext in '' $ac_executable_extensions; do
10614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615    ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617    break 2
10618  fi
10619done
10620  done
10621IFS=$as_save_IFS
10622
10623  ;;
10624esac
10625fi
10626UNAME=$ac_cv_path_UNAME
10627if test -n "$UNAME"; then
10628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10629$as_echo "$UNAME" >&6; }
10630else
10631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632$as_echo "no" >&6; }
10633fi
10634
10635
10636        if test "x$UNAME" = x; then
10637          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10638        fi
10639      else
10640        # Otherwise we believe it is a complete path. Use it as it is.
10641        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10642$as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10643        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10644$as_echo_n "checking for UNAME... " >&6; }
10645        if test ! -x "$tool_specified"; then
10646          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10647$as_echo "not found" >&6; }
10648          as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10649        fi
10650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10651$as_echo "$tool_specified" >&6; }
10652      fi
10653    fi
10654  fi
10655
10656
10657
10658  if test "x$UNAME" = x; then
10659    as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10660  fi
10661
10662
10663
10664
10665
10666  # Publish this variable in the help.
10667
10668
10669  if test "x$UNIQ" = x; then
10670    # The variable is not set by user, try to locate tool using the code snippet
10671    for ac_prog in uniq
10672do
10673  # Extract the first word of "$ac_prog", so it can be a program name with args.
10674set dummy $ac_prog; ac_word=$2
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
10677if ${ac_cv_path_UNIQ+:} false; then :
10678  $as_echo_n "(cached) " >&6
10679else
10680  case $UNIQ in
10681  [\\/]* | ?:[\\/]*)
10682  ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10683  ;;
10684  *)
10685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686for as_dir in $PATH
10687do
10688  IFS=$as_save_IFS
10689  test -z "$as_dir" && as_dir=.
10690    for ac_exec_ext in '' $ac_executable_extensions; do
10691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692    ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10694    break 2
10695  fi
10696done
10697  done
10698IFS=$as_save_IFS
10699
10700  ;;
10701esac
10702fi
10703UNIQ=$ac_cv_path_UNIQ
10704if test -n "$UNIQ"; then
10705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10706$as_echo "$UNIQ" >&6; }
10707else
10708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709$as_echo "no" >&6; }
10710fi
10711
10712
10713  test -n "$UNIQ" && break
10714done
10715
10716  else
10717    # The variable is set, but is it from the command line or the environment?
10718
10719    # Try to remove the string !UNIQ! from our list.
10720    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10721    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10722      # If it failed, the variable was not from the command line. Ignore it,
10723      # but warn the user (except for BASH, which is always set by the calling BASH).
10724      if test "xUNIQ" != xBASH; then
10725        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10726$as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10727      fi
10728      # Try to locate tool using the code snippet
10729      for ac_prog in uniq
10730do
10731  # Extract the first word of "$ac_prog", so it can be a program name with args.
10732set dummy $ac_prog; ac_word=$2
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734$as_echo_n "checking for $ac_word... " >&6; }
10735if ${ac_cv_path_UNIQ+:} false; then :
10736  $as_echo_n "(cached) " >&6
10737else
10738  case $UNIQ in
10739  [\\/]* | ?:[\\/]*)
10740  ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10741  ;;
10742  *)
10743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746  IFS=$as_save_IFS
10747  test -z "$as_dir" && as_dir=.
10748    for ac_exec_ext in '' $ac_executable_extensions; do
10749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750    ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752    break 2
10753  fi
10754done
10755  done
10756IFS=$as_save_IFS
10757
10758  ;;
10759esac
10760fi
10761UNIQ=$ac_cv_path_UNIQ
10762if test -n "$UNIQ"; then
10763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10764$as_echo "$UNIQ" >&6; }
10765else
10766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
10768fi
10769
10770
10771  test -n "$UNIQ" && break
10772done
10773
10774    else
10775      # If it succeeded, then it was overridden by the user. We will use it
10776      # for the tool.
10777
10778      # First remove it from the list of overridden variables, so we can test
10779      # for unknown variables in the end.
10780      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10781
10782      # Check if the provided tool contains a complete path.
10783      tool_specified="$UNIQ"
10784      tool_basename="${tool_specified##*/}"
10785      if test "x$tool_basename" = "x$tool_specified"; then
10786        # A command without a complete path is provided, search $PATH.
10787        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10788$as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10789        # Extract the first word of "$tool_basename", so it can be a program name with args.
10790set dummy $tool_basename; ac_word=$2
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if ${ac_cv_path_UNIQ+:} false; then :
10794  $as_echo_n "(cached) " >&6
10795else
10796  case $UNIQ in
10797  [\\/]* | ?:[\\/]*)
10798  ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10799  ;;
10800  *)
10801  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802for as_dir in $PATH
10803do
10804  IFS=$as_save_IFS
10805  test -z "$as_dir" && as_dir=.
10806    for ac_exec_ext in '' $ac_executable_extensions; do
10807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10808    ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810    break 2
10811  fi
10812done
10813  done
10814IFS=$as_save_IFS
10815
10816  ;;
10817esac
10818fi
10819UNIQ=$ac_cv_path_UNIQ
10820if test -n "$UNIQ"; then
10821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10822$as_echo "$UNIQ" >&6; }
10823else
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
10826fi
10827
10828
10829        if test "x$UNIQ" = x; then
10830          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10831        fi
10832      else
10833        # Otherwise we believe it is a complete path. Use it as it is.
10834        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10835$as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10837$as_echo_n "checking for UNIQ... " >&6; }
10838        if test ! -x "$tool_specified"; then
10839          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10840$as_echo "not found" >&6; }
10841          as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10842        fi
10843        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10844$as_echo "$tool_specified" >&6; }
10845      fi
10846    fi
10847  fi
10848
10849
10850
10851  if test "x$UNIQ" = x; then
10852    as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10853  fi
10854
10855
10856
10857
10858
10859  # Publish this variable in the help.
10860
10861
10862  if test "x$WC" = x; then
10863    # The variable is not set by user, try to locate tool using the code snippet
10864    for ac_prog in wc
10865do
10866  # Extract the first word of "$ac_prog", so it can be a program name with args.
10867set dummy $ac_prog; ac_word=$2
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if ${ac_cv_path_WC+:} false; then :
10871  $as_echo_n "(cached) " >&6
10872else
10873  case $WC in
10874  [\\/]* | ?:[\\/]*)
10875  ac_cv_path_WC="$WC" # Let the user override the test with a path.
10876  ;;
10877  *)
10878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881  IFS=$as_save_IFS
10882  test -z "$as_dir" && as_dir=.
10883    for ac_exec_ext in '' $ac_executable_extensions; do
10884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885    ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887    break 2
10888  fi
10889done
10890  done
10891IFS=$as_save_IFS
10892
10893  ;;
10894esac
10895fi
10896WC=$ac_cv_path_WC
10897if test -n "$WC"; then
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10899$as_echo "$WC" >&6; }
10900else
10901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903fi
10904
10905
10906  test -n "$WC" && break
10907done
10908
10909  else
10910    # The variable is set, but is it from the command line or the environment?
10911
10912    # Try to remove the string !WC! from our list.
10913    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10914    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10915      # If it failed, the variable was not from the command line. Ignore it,
10916      # but warn the user (except for BASH, which is always set by the calling BASH).
10917      if test "xWC" != xBASH; then
10918        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10919$as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10920      fi
10921      # Try to locate tool using the code snippet
10922      for ac_prog in wc
10923do
10924  # Extract the first word of "$ac_prog", so it can be a program name with args.
10925set dummy $ac_prog; ac_word=$2
10926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927$as_echo_n "checking for $ac_word... " >&6; }
10928if ${ac_cv_path_WC+:} false; then :
10929  $as_echo_n "(cached) " >&6
10930else
10931  case $WC in
10932  [\\/]* | ?:[\\/]*)
10933  ac_cv_path_WC="$WC" # Let the user override the test with a path.
10934  ;;
10935  *)
10936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939  IFS=$as_save_IFS
10940  test -z "$as_dir" && as_dir=.
10941    for ac_exec_ext in '' $ac_executable_extensions; do
10942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943    ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945    break 2
10946  fi
10947done
10948  done
10949IFS=$as_save_IFS
10950
10951  ;;
10952esac
10953fi
10954WC=$ac_cv_path_WC
10955if test -n "$WC"; then
10956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10957$as_echo "$WC" >&6; }
10958else
10959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960$as_echo "no" >&6; }
10961fi
10962
10963
10964  test -n "$WC" && break
10965done
10966
10967    else
10968      # If it succeeded, then it was overridden by the user. We will use it
10969      # for the tool.
10970
10971      # First remove it from the list of overridden variables, so we can test
10972      # for unknown variables in the end.
10973      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10974
10975      # Check if the provided tool contains a complete path.
10976      tool_specified="$WC"
10977      tool_basename="${tool_specified##*/}"
10978      if test "x$tool_basename" = "x$tool_specified"; then
10979        # A command without a complete path is provided, search $PATH.
10980        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10981$as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10982        # Extract the first word of "$tool_basename", so it can be a program name with args.
10983set dummy $tool_basename; ac_word=$2
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985$as_echo_n "checking for $ac_word... " >&6; }
10986if ${ac_cv_path_WC+:} false; then :
10987  $as_echo_n "(cached) " >&6
10988else
10989  case $WC in
10990  [\\/]* | ?:[\\/]*)
10991  ac_cv_path_WC="$WC" # Let the user override the test with a path.
10992  ;;
10993  *)
10994  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997  IFS=$as_save_IFS
10998  test -z "$as_dir" && as_dir=.
10999    for ac_exec_ext in '' $ac_executable_extensions; do
11000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001    ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003    break 2
11004  fi
11005done
11006  done
11007IFS=$as_save_IFS
11008
11009  ;;
11010esac
11011fi
11012WC=$ac_cv_path_WC
11013if test -n "$WC"; then
11014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11015$as_echo "$WC" >&6; }
11016else
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018$as_echo "no" >&6; }
11019fi
11020
11021
11022        if test "x$WC" = x; then
11023          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11024        fi
11025      else
11026        # Otherwise we believe it is a complete path. Use it as it is.
11027        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11028$as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11029        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11030$as_echo_n "checking for WC... " >&6; }
11031        if test ! -x "$tool_specified"; then
11032          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11033$as_echo "not found" >&6; }
11034          as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11035        fi
11036        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11037$as_echo "$tool_specified" >&6; }
11038      fi
11039    fi
11040  fi
11041
11042
11043
11044  if test "x$WC" = x; then
11045    as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11046  fi
11047
11048
11049
11050
11051
11052  # Publish this variable in the help.
11053
11054
11055  if test "x$WHICH" = x; then
11056    # The variable is not set by user, try to locate tool using the code snippet
11057    for ac_prog in which
11058do
11059  # Extract the first word of "$ac_prog", so it can be a program name with args.
11060set dummy $ac_prog; ac_word=$2
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062$as_echo_n "checking for $ac_word... " >&6; }
11063if ${ac_cv_path_WHICH+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  case $WHICH in
11067  [\\/]* | ?:[\\/]*)
11068  ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11069  ;;
11070  *)
11071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074  IFS=$as_save_IFS
11075  test -z "$as_dir" && as_dir=.
11076    for ac_exec_ext in '' $ac_executable_extensions; do
11077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078    ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11080    break 2
11081  fi
11082done
11083  done
11084IFS=$as_save_IFS
11085
11086  ;;
11087esac
11088fi
11089WHICH=$ac_cv_path_WHICH
11090if test -n "$WHICH"; then
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11092$as_echo "$WHICH" >&6; }
11093else
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095$as_echo "no" >&6; }
11096fi
11097
11098
11099  test -n "$WHICH" && break
11100done
11101
11102  else
11103    # The variable is set, but is it from the command line or the environment?
11104
11105    # Try to remove the string !WHICH! from our list.
11106    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11107    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11108      # If it failed, the variable was not from the command line. Ignore it,
11109      # but warn the user (except for BASH, which is always set by the calling BASH).
11110      if test "xWHICH" != xBASH; then
11111        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11112$as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11113      fi
11114      # Try to locate tool using the code snippet
11115      for ac_prog in which
11116do
11117  # Extract the first word of "$ac_prog", so it can be a program name with args.
11118set dummy $ac_prog; ac_word=$2
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120$as_echo_n "checking for $ac_word... " >&6; }
11121if ${ac_cv_path_WHICH+:} false; then :
11122  $as_echo_n "(cached) " >&6
11123else
11124  case $WHICH in
11125  [\\/]* | ?:[\\/]*)
11126  ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11127  ;;
11128  *)
11129  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130for as_dir in $PATH
11131do
11132  IFS=$as_save_IFS
11133  test -z "$as_dir" && as_dir=.
11134    for ac_exec_ext in '' $ac_executable_extensions; do
11135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136    ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138    break 2
11139  fi
11140done
11141  done
11142IFS=$as_save_IFS
11143
11144  ;;
11145esac
11146fi
11147WHICH=$ac_cv_path_WHICH
11148if test -n "$WHICH"; then
11149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11150$as_echo "$WHICH" >&6; }
11151else
11152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
11154fi
11155
11156
11157  test -n "$WHICH" && break
11158done
11159
11160    else
11161      # If it succeeded, then it was overridden by the user. We will use it
11162      # for the tool.
11163
11164      # First remove it from the list of overridden variables, so we can test
11165      # for unknown variables in the end.
11166      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11167
11168      # Check if the provided tool contains a complete path.
11169      tool_specified="$WHICH"
11170      tool_basename="${tool_specified##*/}"
11171      if test "x$tool_basename" = "x$tool_specified"; then
11172        # A command without a complete path is provided, search $PATH.
11173        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11174$as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11175        # Extract the first word of "$tool_basename", so it can be a program name with args.
11176set dummy $tool_basename; ac_word=$2
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178$as_echo_n "checking for $ac_word... " >&6; }
11179if ${ac_cv_path_WHICH+:} false; then :
11180  $as_echo_n "(cached) " >&6
11181else
11182  case $WHICH in
11183  [\\/]* | ?:[\\/]*)
11184  ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11185  ;;
11186  *)
11187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190  IFS=$as_save_IFS
11191  test -z "$as_dir" && as_dir=.
11192    for ac_exec_ext in '' $ac_executable_extensions; do
11193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194    ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196    break 2
11197  fi
11198done
11199  done
11200IFS=$as_save_IFS
11201
11202  ;;
11203esac
11204fi
11205WHICH=$ac_cv_path_WHICH
11206if test -n "$WHICH"; then
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11208$as_echo "$WHICH" >&6; }
11209else
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211$as_echo "no" >&6; }
11212fi
11213
11214
11215        if test "x$WHICH" = x; then
11216          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11217        fi
11218      else
11219        # Otherwise we believe it is a complete path. Use it as it is.
11220        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11221$as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11222        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11223$as_echo_n "checking for WHICH... " >&6; }
11224        if test ! -x "$tool_specified"; then
11225          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11226$as_echo "not found" >&6; }
11227          as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11228        fi
11229        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11230$as_echo "$tool_specified" >&6; }
11231      fi
11232    fi
11233  fi
11234
11235
11236
11237  if test "x$WHICH" = x; then
11238    as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11239  fi
11240
11241
11242
11243
11244
11245  # Publish this variable in the help.
11246
11247
11248  if test "x$XARGS" = x; then
11249    # The variable is not set by user, try to locate tool using the code snippet
11250    for ac_prog in xargs
11251do
11252  # Extract the first word of "$ac_prog", so it can be a program name with args.
11253set dummy $ac_prog; ac_word=$2
11254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11255$as_echo_n "checking for $ac_word... " >&6; }
11256if ${ac_cv_path_XARGS+:} false; then :
11257  $as_echo_n "(cached) " >&6
11258else
11259  case $XARGS in
11260  [\\/]* | ?:[\\/]*)
11261  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11262  ;;
11263  *)
11264  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265for as_dir in $PATH
11266do
11267  IFS=$as_save_IFS
11268  test -z "$as_dir" && as_dir=.
11269    for ac_exec_ext in '' $ac_executable_extensions; do
11270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273    break 2
11274  fi
11275done
11276  done
11277IFS=$as_save_IFS
11278
11279  ;;
11280esac
11281fi
11282XARGS=$ac_cv_path_XARGS
11283if test -n "$XARGS"; then
11284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11285$as_echo "$XARGS" >&6; }
11286else
11287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288$as_echo "no" >&6; }
11289fi
11290
11291
11292  test -n "$XARGS" && break
11293done
11294
11295  else
11296    # The variable is set, but is it from the command line or the environment?
11297
11298    # Try to remove the string !XARGS! from our list.
11299    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11300    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11301      # If it failed, the variable was not from the command line. Ignore it,
11302      # but warn the user (except for BASH, which is always set by the calling BASH).
11303      if test "xXARGS" != xBASH; then
11304        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11305$as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11306      fi
11307      # Try to locate tool using the code snippet
11308      for ac_prog in xargs
11309do
11310  # Extract the first word of "$ac_prog", so it can be a program name with args.
11311set dummy $ac_prog; ac_word=$2
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313$as_echo_n "checking for $ac_word... " >&6; }
11314if ${ac_cv_path_XARGS+:} false; then :
11315  $as_echo_n "(cached) " >&6
11316else
11317  case $XARGS in
11318  [\\/]* | ?:[\\/]*)
11319  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11320  ;;
11321  *)
11322  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325  IFS=$as_save_IFS
11326  test -z "$as_dir" && as_dir=.
11327    for ac_exec_ext in '' $ac_executable_extensions; do
11328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11329    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331    break 2
11332  fi
11333done
11334  done
11335IFS=$as_save_IFS
11336
11337  ;;
11338esac
11339fi
11340XARGS=$ac_cv_path_XARGS
11341if test -n "$XARGS"; then
11342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11343$as_echo "$XARGS" >&6; }
11344else
11345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
11347fi
11348
11349
11350  test -n "$XARGS" && break
11351done
11352
11353    else
11354      # If it succeeded, then it was overridden by the user. We will use it
11355      # for the tool.
11356
11357      # First remove it from the list of overridden variables, so we can test
11358      # for unknown variables in the end.
11359      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11360
11361      # Check if the provided tool contains a complete path.
11362      tool_specified="$XARGS"
11363      tool_basename="${tool_specified##*/}"
11364      if test "x$tool_basename" = "x$tool_specified"; then
11365        # A command without a complete path is provided, search $PATH.
11366        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11367$as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11368        # Extract the first word of "$tool_basename", so it can be a program name with args.
11369set dummy $tool_basename; ac_word=$2
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11371$as_echo_n "checking for $ac_word... " >&6; }
11372if ${ac_cv_path_XARGS+:} false; then :
11373  $as_echo_n "(cached) " >&6
11374else
11375  case $XARGS in
11376  [\\/]* | ?:[\\/]*)
11377  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11378  ;;
11379  *)
11380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383  IFS=$as_save_IFS
11384  test -z "$as_dir" && as_dir=.
11385    for ac_exec_ext in '' $ac_executable_extensions; do
11386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11389    break 2
11390  fi
11391done
11392  done
11393IFS=$as_save_IFS
11394
11395  ;;
11396esac
11397fi
11398XARGS=$ac_cv_path_XARGS
11399if test -n "$XARGS"; then
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11401$as_echo "$XARGS" >&6; }
11402else
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405fi
11406
11407
11408        if test "x$XARGS" = x; then
11409          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11410        fi
11411      else
11412        # Otherwise we believe it is a complete path. Use it as it is.
11413        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11414$as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11415        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11416$as_echo_n "checking for XARGS... " >&6; }
11417        if test ! -x "$tool_specified"; then
11418          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11419$as_echo "not found" >&6; }
11420          as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11421        fi
11422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11423$as_echo "$tool_specified" >&6; }
11424      fi
11425    fi
11426  fi
11427
11428
11429
11430  if test "x$XARGS" = x; then
11431    as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11432  fi
11433
11434
11435
11436  # Then required tools that require some special treatment.
11437
11438
11439  # Publish this variable in the help.
11440
11441
11442  if test "x$AWK" = x; then
11443    # The variable is not set by user, try to locate tool using the code snippet
11444    for ac_prog in gawk mawk nawk awk
11445do
11446  # Extract the first word of "$ac_prog", so it can be a program name with args.
11447set dummy $ac_prog; ac_word=$2
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449$as_echo_n "checking for $ac_word... " >&6; }
11450if ${ac_cv_prog_AWK+:} false; then :
11451  $as_echo_n "(cached) " >&6
11452else
11453  if test -n "$AWK"; then
11454  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11455else
11456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH
11458do
11459  IFS=$as_save_IFS
11460  test -z "$as_dir" && as_dir=.
11461    for ac_exec_ext in '' $ac_executable_extensions; do
11462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11463    ac_cv_prog_AWK="$ac_prog"
11464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11465    break 2
11466  fi
11467done
11468  done
11469IFS=$as_save_IFS
11470
11471fi
11472fi
11473AWK=$ac_cv_prog_AWK
11474if test -n "$AWK"; then
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11476$as_echo "$AWK" >&6; }
11477else
11478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479$as_echo "no" >&6; }
11480fi
11481
11482
11483  test -n "$AWK" && break
11484done
11485
11486  else
11487    # The variable is set, but is it from the command line or the environment?
11488
11489    # Try to remove the string !AWK! from our list.
11490    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11491    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11492      # If it failed, the variable was not from the command line. Ignore it,
11493      # but warn the user (except for BASH, which is always set by the calling BASH).
11494      if test "xAWK" != xBASH; then
11495        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11496$as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11497      fi
11498      # Try to locate tool using the code snippet
11499      for ac_prog in gawk mawk nawk awk
11500do
11501  # Extract the first word of "$ac_prog", so it can be a program name with args.
11502set dummy $ac_prog; ac_word=$2
11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11504$as_echo_n "checking for $ac_word... " >&6; }
11505if ${ac_cv_prog_AWK+:} false; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  if test -n "$AWK"; then
11509  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11510else
11511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512for as_dir in $PATH
11513do
11514  IFS=$as_save_IFS
11515  test -z "$as_dir" && as_dir=.
11516    for ac_exec_ext in '' $ac_executable_extensions; do
11517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518    ac_cv_prog_AWK="$ac_prog"
11519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520    break 2
11521  fi
11522done
11523  done
11524IFS=$as_save_IFS
11525
11526fi
11527fi
11528AWK=$ac_cv_prog_AWK
11529if test -n "$AWK"; then
11530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11531$as_echo "$AWK" >&6; }
11532else
11533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
11535fi
11536
11537
11538  test -n "$AWK" && break
11539done
11540
11541    else
11542      # If it succeeded, then it was overridden by the user. We will use it
11543      # for the tool.
11544
11545      # First remove it from the list of overridden variables, so we can test
11546      # for unknown variables in the end.
11547      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11548
11549      # Check if the provided tool contains a complete path.
11550      tool_specified="$AWK"
11551      tool_basename="${tool_specified##*/}"
11552      if test "x$tool_basename" = "x$tool_specified"; then
11553        # A command without a complete path is provided, search $PATH.
11554        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11555$as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11556        # Extract the first word of "$tool_basename", so it can be a program name with args.
11557set dummy $tool_basename; ac_word=$2
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559$as_echo_n "checking for $ac_word... " >&6; }
11560if ${ac_cv_path_AWK+:} false; then :
11561  $as_echo_n "(cached) " >&6
11562else
11563  case $AWK in
11564  [\\/]* | ?:[\\/]*)
11565  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11566  ;;
11567  *)
11568  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569for as_dir in $PATH
11570do
11571  IFS=$as_save_IFS
11572  test -z "$as_dir" && as_dir=.
11573    for ac_exec_ext in '' $ac_executable_extensions; do
11574  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11576    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577    break 2
11578  fi
11579done
11580  done
11581IFS=$as_save_IFS
11582
11583  ;;
11584esac
11585fi
11586AWK=$ac_cv_path_AWK
11587if test -n "$AWK"; then
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11589$as_echo "$AWK" >&6; }
11590else
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594
11595
11596        if test "x$AWK" = x; then
11597          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11598        fi
11599      else
11600        # Otherwise we believe it is a complete path. Use it as it is.
11601        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11602$as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11603        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11604$as_echo_n "checking for AWK... " >&6; }
11605        if test ! -x "$tool_specified"; then
11606          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11607$as_echo "not found" >&6; }
11608          as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11609        fi
11610        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11611$as_echo "$tool_specified" >&6; }
11612      fi
11613    fi
11614  fi
11615
11616
11617  if test "x$AWK" = x; then
11618    as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11619  fi
11620
11621
11622
11623
11624  # Publish this variable in the help.
11625
11626
11627  if test "x$GREP" = x; then
11628    # The variable is not set by user, try to locate tool using the code snippet
11629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11630$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11631if ${ac_cv_path_GREP+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  if test -z "$GREP"; then
11635  ac_path_GREP_found=false
11636  # Loop through the user's path and test for each of PROGNAME-LIST
11637  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11639do
11640  IFS=$as_save_IFS
11641  test -z "$as_dir" && as_dir=.
11642    for ac_prog in grep ggrep; do
11643    for ac_exec_ext in '' $ac_executable_extensions; do
11644      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11645      as_fn_executable_p "$ac_path_GREP" || continue
11646# Check for GNU ac_path_GREP and select it if it is found.
11647  # Check for GNU $ac_path_GREP
11648case `"$ac_path_GREP" --version 2>&1` in
11649*GNU*)
11650  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11651*)
11652  ac_count=0
11653  $as_echo_n 0123456789 >"conftest.in"
11654  while :
11655  do
11656    cat "conftest.in" "conftest.in" >"conftest.tmp"
11657    mv "conftest.tmp" "conftest.in"
11658    cp "conftest.in" "conftest.nl"
11659    $as_echo 'GREP' >> "conftest.nl"
11660    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11661    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11662    as_fn_arith $ac_count + 1 && ac_count=$as_val
11663    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11664      # Best one so far, save it but keep looking for a better one
11665      ac_cv_path_GREP="$ac_path_GREP"
11666      ac_path_GREP_max=$ac_count
11667    fi
11668    # 10*(2^10) chars as input seems more than enough
11669    test $ac_count -gt 10 && break
11670  done
11671  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11672esac
11673
11674      $ac_path_GREP_found && break 3
11675    done
11676  done
11677  done
11678IFS=$as_save_IFS
11679  if test -z "$ac_cv_path_GREP"; then
11680    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11681  fi
11682else
11683  ac_cv_path_GREP=$GREP
11684fi
11685
11686fi
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11688$as_echo "$ac_cv_path_GREP" >&6; }
11689 GREP="$ac_cv_path_GREP"
11690
11691
11692  else
11693    # The variable is set, but is it from the command line or the environment?
11694
11695    # Try to remove the string !GREP! from our list.
11696    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11697    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11698      # If it failed, the variable was not from the command line. Ignore it,
11699      # but warn the user (except for BASH, which is always set by the calling BASH).
11700      if test "xGREP" != xBASH; then
11701        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11702$as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11703      fi
11704      # Try to locate tool using the code snippet
11705      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11706$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11707if ${ac_cv_path_GREP+:} false; then :
11708  $as_echo_n "(cached) " >&6
11709else
11710  if test -z "$GREP"; then
11711  ac_path_GREP_found=false
11712  # Loop through the user's path and test for each of PROGNAME-LIST
11713  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11715do
11716  IFS=$as_save_IFS
11717  test -z "$as_dir" && as_dir=.
11718    for ac_prog in grep ggrep; do
11719    for ac_exec_ext in '' $ac_executable_extensions; do
11720      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11721      as_fn_executable_p "$ac_path_GREP" || continue
11722# Check for GNU ac_path_GREP and select it if it is found.
11723  # Check for GNU $ac_path_GREP
11724case `"$ac_path_GREP" --version 2>&1` in
11725*GNU*)
11726  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11727*)
11728  ac_count=0
11729  $as_echo_n 0123456789 >"conftest.in"
11730  while :
11731  do
11732    cat "conftest.in" "conftest.in" >"conftest.tmp"
11733    mv "conftest.tmp" "conftest.in"
11734    cp "conftest.in" "conftest.nl"
11735    $as_echo 'GREP' >> "conftest.nl"
11736    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11737    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11738    as_fn_arith $ac_count + 1 && ac_count=$as_val
11739    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11740      # Best one so far, save it but keep looking for a better one
11741      ac_cv_path_GREP="$ac_path_GREP"
11742      ac_path_GREP_max=$ac_count
11743    fi
11744    # 10*(2^10) chars as input seems more than enough
11745    test $ac_count -gt 10 && break
11746  done
11747  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11748esac
11749
11750      $ac_path_GREP_found && break 3
11751    done
11752  done
11753  done
11754IFS=$as_save_IFS
11755  if test -z "$ac_cv_path_GREP"; then
11756    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11757  fi
11758else
11759  ac_cv_path_GREP=$GREP
11760fi
11761
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11764$as_echo "$ac_cv_path_GREP" >&6; }
11765 GREP="$ac_cv_path_GREP"
11766
11767
11768    else
11769      # If it succeeded, then it was overridden by the user. We will use it
11770      # for the tool.
11771
11772      # First remove it from the list of overridden variables, so we can test
11773      # for unknown variables in the end.
11774      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11775
11776      # Check if the provided tool contains a complete path.
11777      tool_specified="$GREP"
11778      tool_basename="${tool_specified##*/}"
11779      if test "x$tool_basename" = "x$tool_specified"; then
11780        # A command without a complete path is provided, search $PATH.
11781        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11782$as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11783        # Extract the first word of "$tool_basename", so it can be a program name with args.
11784set dummy $tool_basename; ac_word=$2
11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11786$as_echo_n "checking for $ac_word... " >&6; }
11787if ${ac_cv_path_GREP+:} false; then :
11788  $as_echo_n "(cached) " >&6
11789else
11790  case $GREP in
11791  [\\/]* | ?:[\\/]*)
11792  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11793  ;;
11794  *)
11795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH
11797do
11798  IFS=$as_save_IFS
11799  test -z "$as_dir" && as_dir=.
11800    for ac_exec_ext in '' $ac_executable_extensions; do
11801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804    break 2
11805  fi
11806done
11807  done
11808IFS=$as_save_IFS
11809
11810  ;;
11811esac
11812fi
11813GREP=$ac_cv_path_GREP
11814if test -n "$GREP"; then
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11816$as_echo "$GREP" >&6; }
11817else
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820fi
11821
11822
11823        if test "x$GREP" = x; then
11824          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11825        fi
11826      else
11827        # Otherwise we believe it is a complete path. Use it as it is.
11828        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11829$as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11830        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11831$as_echo_n "checking for GREP... " >&6; }
11832        if test ! -x "$tool_specified"; then
11833          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11834$as_echo "not found" >&6; }
11835          as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11836        fi
11837        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11838$as_echo "$tool_specified" >&6; }
11839      fi
11840    fi
11841  fi
11842
11843
11844  if test "x$GREP" = x; then
11845    as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11846  fi
11847
11848
11849
11850
11851  # Publish this variable in the help.
11852
11853
11854  if test "x$EGREP" = x; then
11855    # The variable is not set by user, try to locate tool using the code snippet
11856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11857$as_echo_n "checking for egrep... " >&6; }
11858if ${ac_cv_path_EGREP+:} false; then :
11859  $as_echo_n "(cached) " >&6
11860else
11861  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11862   then ac_cv_path_EGREP="$GREP -E"
11863   else
11864     if test -z "$EGREP"; then
11865  ac_path_EGREP_found=false
11866  # Loop through the user's path and test for each of PROGNAME-LIST
11867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11869do
11870  IFS=$as_save_IFS
11871  test -z "$as_dir" && as_dir=.
11872    for ac_prog in egrep; do
11873    for ac_exec_ext in '' $ac_executable_extensions; do
11874      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11875      as_fn_executable_p "$ac_path_EGREP" || continue
11876# Check for GNU ac_path_EGREP and select it if it is found.
11877  # Check for GNU $ac_path_EGREP
11878case `"$ac_path_EGREP" --version 2>&1` in
11879*GNU*)
11880  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11881*)
11882  ac_count=0
11883  $as_echo_n 0123456789 >"conftest.in"
11884  while :
11885  do
11886    cat "conftest.in" "conftest.in" >"conftest.tmp"
11887    mv "conftest.tmp" "conftest.in"
11888    cp "conftest.in" "conftest.nl"
11889    $as_echo 'EGREP' >> "conftest.nl"
11890    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11891    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11892    as_fn_arith $ac_count + 1 && ac_count=$as_val
11893    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11894      # Best one so far, save it but keep looking for a better one
11895      ac_cv_path_EGREP="$ac_path_EGREP"
11896      ac_path_EGREP_max=$ac_count
11897    fi
11898    # 10*(2^10) chars as input seems more than enough
11899    test $ac_count -gt 10 && break
11900  done
11901  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11902esac
11903
11904      $ac_path_EGREP_found && break 3
11905    done
11906  done
11907  done
11908IFS=$as_save_IFS
11909  if test -z "$ac_cv_path_EGREP"; then
11910    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11911  fi
11912else
11913  ac_cv_path_EGREP=$EGREP
11914fi
11915
11916   fi
11917fi
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11919$as_echo "$ac_cv_path_EGREP" >&6; }
11920 EGREP="$ac_cv_path_EGREP"
11921
11922
11923  else
11924    # The variable is set, but is it from the command line or the environment?
11925
11926    # Try to remove the string !EGREP! from our list.
11927    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11928    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11929      # If it failed, the variable was not from the command line. Ignore it,
11930      # but warn the user (except for BASH, which is always set by the calling BASH).
11931      if test "xEGREP" != xBASH; then
11932        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11933$as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11934      fi
11935      # Try to locate tool using the code snippet
11936      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11937$as_echo_n "checking for egrep... " >&6; }
11938if ${ac_cv_path_EGREP+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11942   then ac_cv_path_EGREP="$GREP -E"
11943   else
11944     if test -z "$EGREP"; then
11945  ac_path_EGREP_found=false
11946  # Loop through the user's path and test for each of PROGNAME-LIST
11947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11949do
11950  IFS=$as_save_IFS
11951  test -z "$as_dir" && as_dir=.
11952    for ac_prog in egrep; do
11953    for ac_exec_ext in '' $ac_executable_extensions; do
11954      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11955      as_fn_executable_p "$ac_path_EGREP" || continue
11956# Check for GNU ac_path_EGREP and select it if it is found.
11957  # Check for GNU $ac_path_EGREP
11958case `"$ac_path_EGREP" --version 2>&1` in
11959*GNU*)
11960  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11961*)
11962  ac_count=0
11963  $as_echo_n 0123456789 >"conftest.in"
11964  while :
11965  do
11966    cat "conftest.in" "conftest.in" >"conftest.tmp"
11967    mv "conftest.tmp" "conftest.in"
11968    cp "conftest.in" "conftest.nl"
11969    $as_echo 'EGREP' >> "conftest.nl"
11970    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11971    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11972    as_fn_arith $ac_count + 1 && ac_count=$as_val
11973    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11974      # Best one so far, save it but keep looking for a better one
11975      ac_cv_path_EGREP="$ac_path_EGREP"
11976      ac_path_EGREP_max=$ac_count
11977    fi
11978    # 10*(2^10) chars as input seems more than enough
11979    test $ac_count -gt 10 && break
11980  done
11981  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11982esac
11983
11984      $ac_path_EGREP_found && break 3
11985    done
11986  done
11987  done
11988IFS=$as_save_IFS
11989  if test -z "$ac_cv_path_EGREP"; then
11990    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11991  fi
11992else
11993  ac_cv_path_EGREP=$EGREP
11994fi
11995
11996   fi
11997fi
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11999$as_echo "$ac_cv_path_EGREP" >&6; }
12000 EGREP="$ac_cv_path_EGREP"
12001
12002
12003    else
12004      # If it succeeded, then it was overridden by the user. We will use it
12005      # for the tool.
12006
12007      # First remove it from the list of overridden variables, so we can test
12008      # for unknown variables in the end.
12009      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12010
12011      # Check if the provided tool contains a complete path.
12012      tool_specified="$EGREP"
12013      tool_basename="${tool_specified##*/}"
12014      if test "x$tool_basename" = "x$tool_specified"; then
12015        # A command without a complete path is provided, search $PATH.
12016        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12017$as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12018        # Extract the first word of "$tool_basename", so it can be a program name with args.
12019set dummy $tool_basename; ac_word=$2
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12021$as_echo_n "checking for $ac_word... " >&6; }
12022if ${ac_cv_path_EGREP+:} false; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  case $EGREP in
12026  [\\/]* | ?:[\\/]*)
12027  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12028  ;;
12029  *)
12030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033  IFS=$as_save_IFS
12034  test -z "$as_dir" && as_dir=.
12035    for ac_exec_ext in '' $ac_executable_extensions; do
12036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039    break 2
12040  fi
12041done
12042  done
12043IFS=$as_save_IFS
12044
12045  ;;
12046esac
12047fi
12048EGREP=$ac_cv_path_EGREP
12049if test -n "$EGREP"; then
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12051$as_echo "$EGREP" >&6; }
12052else
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12054$as_echo "no" >&6; }
12055fi
12056
12057
12058        if test "x$EGREP" = x; then
12059          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12060        fi
12061      else
12062        # Otherwise we believe it is a complete path. Use it as it is.
12063        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12064$as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12065        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12066$as_echo_n "checking for EGREP... " >&6; }
12067        if test ! -x "$tool_specified"; then
12068          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12069$as_echo "not found" >&6; }
12070          as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12071        fi
12072        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12073$as_echo "$tool_specified" >&6; }
12074      fi
12075    fi
12076  fi
12077
12078
12079  if test "x$EGREP" = x; then
12080    as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12081  fi
12082
12083
12084
12085
12086  # Publish this variable in the help.
12087
12088
12089  if test "x$FGREP" = x; then
12090    # The variable is not set by user, try to locate tool using the code snippet
12091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12092$as_echo_n "checking for fgrep... " >&6; }
12093if ${ac_cv_path_FGREP+:} false; then :
12094  $as_echo_n "(cached) " >&6
12095else
12096  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12097   then ac_cv_path_FGREP="$GREP -F"
12098   else
12099     if test -z "$FGREP"; then
12100  ac_path_FGREP_found=false
12101  # Loop through the user's path and test for each of PROGNAME-LIST
12102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12104do
12105  IFS=$as_save_IFS
12106  test -z "$as_dir" && as_dir=.
12107    for ac_prog in fgrep; do
12108    for ac_exec_ext in '' $ac_executable_extensions; do
12109      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12110      as_fn_executable_p "$ac_path_FGREP" || continue
12111# Check for GNU ac_path_FGREP and select it if it is found.
12112  # Check for GNU $ac_path_FGREP
12113case `"$ac_path_FGREP" --version 2>&1` in
12114*GNU*)
12115  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12116*)
12117  ac_count=0
12118  $as_echo_n 0123456789 >"conftest.in"
12119  while :
12120  do
12121    cat "conftest.in" "conftest.in" >"conftest.tmp"
12122    mv "conftest.tmp" "conftest.in"
12123    cp "conftest.in" "conftest.nl"
12124    $as_echo 'FGREP' >> "conftest.nl"
12125    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12126    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12127    as_fn_arith $ac_count + 1 && ac_count=$as_val
12128    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12129      # Best one so far, save it but keep looking for a better one
12130      ac_cv_path_FGREP="$ac_path_FGREP"
12131      ac_path_FGREP_max=$ac_count
12132    fi
12133    # 10*(2^10) chars as input seems more than enough
12134    test $ac_count -gt 10 && break
12135  done
12136  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12137esac
12138
12139      $ac_path_FGREP_found && break 3
12140    done
12141  done
12142  done
12143IFS=$as_save_IFS
12144  if test -z "$ac_cv_path_FGREP"; then
12145    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12146  fi
12147else
12148  ac_cv_path_FGREP=$FGREP
12149fi
12150
12151   fi
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12154$as_echo "$ac_cv_path_FGREP" >&6; }
12155 FGREP="$ac_cv_path_FGREP"
12156
12157
12158  else
12159    # The variable is set, but is it from the command line or the environment?
12160
12161    # Try to remove the string !FGREP! from our list.
12162    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12163    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12164      # If it failed, the variable was not from the command line. Ignore it,
12165      # but warn the user (except for BASH, which is always set by the calling BASH).
12166      if test "xFGREP" != xBASH; then
12167        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12168$as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12169      fi
12170      # Try to locate tool using the code snippet
12171      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12172$as_echo_n "checking for fgrep... " >&6; }
12173if ${ac_cv_path_FGREP+:} false; then :
12174  $as_echo_n "(cached) " >&6
12175else
12176  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12177   then ac_cv_path_FGREP="$GREP -F"
12178   else
12179     if test -z "$FGREP"; then
12180  ac_path_FGREP_found=false
12181  # Loop through the user's path and test for each of PROGNAME-LIST
12182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12184do
12185  IFS=$as_save_IFS
12186  test -z "$as_dir" && as_dir=.
12187    for ac_prog in fgrep; do
12188    for ac_exec_ext in '' $ac_executable_extensions; do
12189      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12190      as_fn_executable_p "$ac_path_FGREP" || continue
12191# Check for GNU ac_path_FGREP and select it if it is found.
12192  # Check for GNU $ac_path_FGREP
12193case `"$ac_path_FGREP" --version 2>&1` in
12194*GNU*)
12195  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12196*)
12197  ac_count=0
12198  $as_echo_n 0123456789 >"conftest.in"
12199  while :
12200  do
12201    cat "conftest.in" "conftest.in" >"conftest.tmp"
12202    mv "conftest.tmp" "conftest.in"
12203    cp "conftest.in" "conftest.nl"
12204    $as_echo 'FGREP' >> "conftest.nl"
12205    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12206    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12207    as_fn_arith $ac_count + 1 && ac_count=$as_val
12208    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12209      # Best one so far, save it but keep looking for a better one
12210      ac_cv_path_FGREP="$ac_path_FGREP"
12211      ac_path_FGREP_max=$ac_count
12212    fi
12213    # 10*(2^10) chars as input seems more than enough
12214    test $ac_count -gt 10 && break
12215  done
12216  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12217esac
12218
12219      $ac_path_FGREP_found && break 3
12220    done
12221  done
12222  done
12223IFS=$as_save_IFS
12224  if test -z "$ac_cv_path_FGREP"; then
12225    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12226  fi
12227else
12228  ac_cv_path_FGREP=$FGREP
12229fi
12230
12231   fi
12232fi
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12234$as_echo "$ac_cv_path_FGREP" >&6; }
12235 FGREP="$ac_cv_path_FGREP"
12236
12237
12238    else
12239      # If it succeeded, then it was overridden by the user. We will use it
12240      # for the tool.
12241
12242      # First remove it from the list of overridden variables, so we can test
12243      # for unknown variables in the end.
12244      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12245
12246      # Check if the provided tool contains a complete path.
12247      tool_specified="$FGREP"
12248      tool_basename="${tool_specified##*/}"
12249      if test "x$tool_basename" = "x$tool_specified"; then
12250        # A command without a complete path is provided, search $PATH.
12251        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12252$as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12253        # Extract the first word of "$tool_basename", so it can be a program name with args.
12254set dummy $tool_basename; ac_word=$2
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
12257if ${ac_cv_path_FGREP+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  case $FGREP in
12261  [\\/]* | ?:[\\/]*)
12262  ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12263  ;;
12264  *)
12265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $PATH
12267do
12268  IFS=$as_save_IFS
12269  test -z "$as_dir" && as_dir=.
12270    for ac_exec_ext in '' $ac_executable_extensions; do
12271  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272    ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12273    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12274    break 2
12275  fi
12276done
12277  done
12278IFS=$as_save_IFS
12279
12280  ;;
12281esac
12282fi
12283FGREP=$ac_cv_path_FGREP
12284if test -n "$FGREP"; then
12285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12286$as_echo "$FGREP" >&6; }
12287else
12288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290fi
12291
12292
12293        if test "x$FGREP" = x; then
12294          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12295        fi
12296      else
12297        # Otherwise we believe it is a complete path. Use it as it is.
12298        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12299$as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12300        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12301$as_echo_n "checking for FGREP... " >&6; }
12302        if test ! -x "$tool_specified"; then
12303          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12304$as_echo "not found" >&6; }
12305          as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12306        fi
12307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12308$as_echo "$tool_specified" >&6; }
12309      fi
12310    fi
12311  fi
12312
12313
12314  if test "x$FGREP" = x; then
12315    as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12316  fi
12317
12318
12319
12320
12321  # Publish this variable in the help.
12322
12323
12324  if test "x$SED" = x; then
12325    # The variable is not set by user, try to locate tool using the code snippet
12326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12327$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12328if ${ac_cv_path_SED+:} false; then :
12329  $as_echo_n "(cached) " >&6
12330else
12331            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12332     for ac_i in 1 2 3 4 5 6 7; do
12333       ac_script="$ac_script$as_nl$ac_script"
12334     done
12335     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12336     { ac_script=; unset ac_script;}
12337     if test -z "$SED"; then
12338  ac_path_SED_found=false
12339  # Loop through the user's path and test for each of PROGNAME-LIST
12340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343  IFS=$as_save_IFS
12344  test -z "$as_dir" && as_dir=.
12345    for ac_prog in sed gsed; do
12346    for ac_exec_ext in '' $ac_executable_extensions; do
12347      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12348      as_fn_executable_p "$ac_path_SED" || continue
12349# Check for GNU ac_path_SED and select it if it is found.
12350  # Check for GNU $ac_path_SED
12351case `"$ac_path_SED" --version 2>&1` in
12352*GNU*)
12353  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12354*)
12355  ac_count=0
12356  $as_echo_n 0123456789 >"conftest.in"
12357  while :
12358  do
12359    cat "conftest.in" "conftest.in" >"conftest.tmp"
12360    mv "conftest.tmp" "conftest.in"
12361    cp "conftest.in" "conftest.nl"
12362    $as_echo '' >> "conftest.nl"
12363    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12364    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12365    as_fn_arith $ac_count + 1 && ac_count=$as_val
12366    if test $ac_count -gt ${ac_path_SED_max-0}; then
12367      # Best one so far, save it but keep looking for a better one
12368      ac_cv_path_SED="$ac_path_SED"
12369      ac_path_SED_max=$ac_count
12370    fi
12371    # 10*(2^10) chars as input seems more than enough
12372    test $ac_count -gt 10 && break
12373  done
12374  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12375esac
12376
12377      $ac_path_SED_found && break 3
12378    done
12379  done
12380  done
12381IFS=$as_save_IFS
12382  if test -z "$ac_cv_path_SED"; then
12383    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12384  fi
12385else
12386  ac_cv_path_SED=$SED
12387fi
12388
12389fi
12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12391$as_echo "$ac_cv_path_SED" >&6; }
12392 SED="$ac_cv_path_SED"
12393  rm -f conftest.sed
12394
12395  else
12396    # The variable is set, but is it from the command line or the environment?
12397
12398    # Try to remove the string !SED! from our list.
12399    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12400    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12401      # If it failed, the variable was not from the command line. Ignore it,
12402      # but warn the user (except for BASH, which is always set by the calling BASH).
12403      if test "xSED" != xBASH; then
12404        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12405$as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12406      fi
12407      # Try to locate tool using the code snippet
12408      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12409$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12410if ${ac_cv_path_SED+:} false; then :
12411  $as_echo_n "(cached) " >&6
12412else
12413            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12414     for ac_i in 1 2 3 4 5 6 7; do
12415       ac_script="$ac_script$as_nl$ac_script"
12416     done
12417     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12418     { ac_script=; unset ac_script;}
12419     if test -z "$SED"; then
12420  ac_path_SED_found=false
12421  # Loop through the user's path and test for each of PROGNAME-LIST
12422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423for as_dir in $PATH
12424do
12425  IFS=$as_save_IFS
12426  test -z "$as_dir" && as_dir=.
12427    for ac_prog in sed gsed; do
12428    for ac_exec_ext in '' $ac_executable_extensions; do
12429      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12430      as_fn_executable_p "$ac_path_SED" || continue
12431# Check for GNU ac_path_SED and select it if it is found.
12432  # Check for GNU $ac_path_SED
12433case `"$ac_path_SED" --version 2>&1` in
12434*GNU*)
12435  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12436*)
12437  ac_count=0
12438  $as_echo_n 0123456789 >"conftest.in"
12439  while :
12440  do
12441    cat "conftest.in" "conftest.in" >"conftest.tmp"
12442    mv "conftest.tmp" "conftest.in"
12443    cp "conftest.in" "conftest.nl"
12444    $as_echo '' >> "conftest.nl"
12445    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12446    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12447    as_fn_arith $ac_count + 1 && ac_count=$as_val
12448    if test $ac_count -gt ${ac_path_SED_max-0}; then
12449      # Best one so far, save it but keep looking for a better one
12450      ac_cv_path_SED="$ac_path_SED"
12451      ac_path_SED_max=$ac_count
12452    fi
12453    # 10*(2^10) chars as input seems more than enough
12454    test $ac_count -gt 10 && break
12455  done
12456  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12457esac
12458
12459      $ac_path_SED_found && break 3
12460    done
12461  done
12462  done
12463IFS=$as_save_IFS
12464  if test -z "$ac_cv_path_SED"; then
12465    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12466  fi
12467else
12468  ac_cv_path_SED=$SED
12469fi
12470
12471fi
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12473$as_echo "$ac_cv_path_SED" >&6; }
12474 SED="$ac_cv_path_SED"
12475  rm -f conftest.sed
12476
12477    else
12478      # If it succeeded, then it was overridden by the user. We will use it
12479      # for the tool.
12480
12481      # First remove it from the list of overridden variables, so we can test
12482      # for unknown variables in the end.
12483      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12484
12485      # Check if the provided tool contains a complete path.
12486      tool_specified="$SED"
12487      tool_basename="${tool_specified##*/}"
12488      if test "x$tool_basename" = "x$tool_specified"; then
12489        # A command without a complete path is provided, search $PATH.
12490        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12491$as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12492        # Extract the first word of "$tool_basename", so it can be a program name with args.
12493set dummy $tool_basename; ac_word=$2
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495$as_echo_n "checking for $ac_word... " >&6; }
12496if ${ac_cv_path_SED+:} false; then :
12497  $as_echo_n "(cached) " >&6
12498else
12499  case $SED in
12500  [\\/]* | ?:[\\/]*)
12501  ac_cv_path_SED="$SED" # Let the user override the test with a path.
12502  ;;
12503  *)
12504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507  IFS=$as_save_IFS
12508  test -z "$as_dir" && as_dir=.
12509    for ac_exec_ext in '' $ac_executable_extensions; do
12510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513    break 2
12514  fi
12515done
12516  done
12517IFS=$as_save_IFS
12518
12519  ;;
12520esac
12521fi
12522SED=$ac_cv_path_SED
12523if test -n "$SED"; then
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12525$as_echo "$SED" >&6; }
12526else
12527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531
12532        if test "x$SED" = x; then
12533          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12534        fi
12535      else
12536        # Otherwise we believe it is a complete path. Use it as it is.
12537        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12538$as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12539        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12540$as_echo_n "checking for SED... " >&6; }
12541        if test ! -x "$tool_specified"; then
12542          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12543$as_echo "not found" >&6; }
12544          as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12545        fi
12546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12547$as_echo "$tool_specified" >&6; }
12548      fi
12549    fi
12550  fi
12551
12552
12553  if test "x$SED" = x; then
12554    as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12555  fi
12556
12557
12558
12559  # Always force rm.
12560  RM="$RM -f"
12561
12562  # pwd behaves differently on various platforms and some don't support the -L flag.
12563  # Always use the bash builtin pwd to get uniform behavior.
12564  THEPWDCMD=pwd
12565
12566  # These are not required on all platforms
12567
12568
12569  # Publish this variable in the help.
12570
12571
12572  if test "x$CYGPATH" = x; then
12573    # The variable is not set by user, try to locate tool using the code snippet
12574    for ac_prog in cygpath
12575do
12576  # Extract the first word of "$ac_prog", so it can be a program name with args.
12577set dummy $ac_prog; ac_word=$2
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579$as_echo_n "checking for $ac_word... " >&6; }
12580if ${ac_cv_path_CYGPATH+:} false; then :
12581  $as_echo_n "(cached) " >&6
12582else
12583  case $CYGPATH in
12584  [\\/]* | ?:[\\/]*)
12585  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12586  ;;
12587  *)
12588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589for as_dir in $PATH
12590do
12591  IFS=$as_save_IFS
12592  test -z "$as_dir" && as_dir=.
12593    for ac_exec_ext in '' $ac_executable_extensions; do
12594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597    break 2
12598  fi
12599done
12600  done
12601IFS=$as_save_IFS
12602
12603  ;;
12604esac
12605fi
12606CYGPATH=$ac_cv_path_CYGPATH
12607if test -n "$CYGPATH"; then
12608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12609$as_echo "$CYGPATH" >&6; }
12610else
12611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612$as_echo "no" >&6; }
12613fi
12614
12615
12616  test -n "$CYGPATH" && break
12617done
12618
12619  else
12620    # The variable is set, but is it from the command line or the environment?
12621
12622    # Try to remove the string !CYGPATH! from our list.
12623    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12624    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12625      # If it failed, the variable was not from the command line. Ignore it,
12626      # but warn the user (except for BASH, which is always set by the calling BASH).
12627      if test "xCYGPATH" != xBASH; then
12628        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12629$as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12630      fi
12631      # Try to locate tool using the code snippet
12632      for ac_prog in cygpath
12633do
12634  # Extract the first word of "$ac_prog", so it can be a program name with args.
12635set dummy $ac_prog; ac_word=$2
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12637$as_echo_n "checking for $ac_word... " >&6; }
12638if ${ac_cv_path_CYGPATH+:} false; then :
12639  $as_echo_n "(cached) " >&6
12640else
12641  case $CYGPATH in
12642  [\\/]* | ?:[\\/]*)
12643  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12644  ;;
12645  *)
12646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647for as_dir in $PATH
12648do
12649  IFS=$as_save_IFS
12650  test -z "$as_dir" && as_dir=.
12651    for ac_exec_ext in '' $ac_executable_extensions; do
12652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12653    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12655    break 2
12656  fi
12657done
12658  done
12659IFS=$as_save_IFS
12660
12661  ;;
12662esac
12663fi
12664CYGPATH=$ac_cv_path_CYGPATH
12665if test -n "$CYGPATH"; then
12666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12667$as_echo "$CYGPATH" >&6; }
12668else
12669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
12671fi
12672
12673
12674  test -n "$CYGPATH" && break
12675done
12676
12677    else
12678      # If it succeeded, then it was overridden by the user. We will use it
12679      # for the tool.
12680
12681      # First remove it from the list of overridden variables, so we can test
12682      # for unknown variables in the end.
12683      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12684
12685      # Check if the provided tool contains a complete path.
12686      tool_specified="$CYGPATH"
12687      tool_basename="${tool_specified##*/}"
12688      if test "x$tool_basename" = "x$tool_specified"; then
12689        # A command without a complete path is provided, search $PATH.
12690        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12691$as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12692        # Extract the first word of "$tool_basename", so it can be a program name with args.
12693set dummy $tool_basename; ac_word=$2
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695$as_echo_n "checking for $ac_word... " >&6; }
12696if ${ac_cv_path_CYGPATH+:} false; then :
12697  $as_echo_n "(cached) " >&6
12698else
12699  case $CYGPATH in
12700  [\\/]* | ?:[\\/]*)
12701  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12702  ;;
12703  *)
12704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705for as_dir in $PATH
12706do
12707  IFS=$as_save_IFS
12708  test -z "$as_dir" && as_dir=.
12709    for ac_exec_ext in '' $ac_executable_extensions; do
12710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713    break 2
12714  fi
12715done
12716  done
12717IFS=$as_save_IFS
12718
12719  ;;
12720esac
12721fi
12722CYGPATH=$ac_cv_path_CYGPATH
12723if test -n "$CYGPATH"; then
12724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12725$as_echo "$CYGPATH" >&6; }
12726else
12727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732        if test "x$CYGPATH" = x; then
12733          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12734        fi
12735      else
12736        # Otherwise we believe it is a complete path. Use it as it is.
12737        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12738$as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12740$as_echo_n "checking for CYGPATH... " >&6; }
12741        if test ! -x "$tool_specified"; then
12742          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12743$as_echo "not found" >&6; }
12744          as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12745        fi
12746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12747$as_echo "$tool_specified" >&6; }
12748      fi
12749    fi
12750  fi
12751
12752
12753
12754
12755  # Publish this variable in the help.
12756
12757
12758  if test "x$READLINK" = x; then
12759    # The variable is not set by user, try to locate tool using the code snippet
12760    for ac_prog in greadlink readlink
12761do
12762  # Extract the first word of "$ac_prog", so it can be a program name with args.
12763set dummy $ac_prog; ac_word=$2
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12765$as_echo_n "checking for $ac_word... " >&6; }
12766if ${ac_cv_path_READLINK+:} false; then :
12767  $as_echo_n "(cached) " >&6
12768else
12769  case $READLINK in
12770  [\\/]* | ?:[\\/]*)
12771  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12772  ;;
12773  *)
12774  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777  IFS=$as_save_IFS
12778  test -z "$as_dir" && as_dir=.
12779    for ac_exec_ext in '' $ac_executable_extensions; do
12780  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12781    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12782    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783    break 2
12784  fi
12785done
12786  done
12787IFS=$as_save_IFS
12788
12789  ;;
12790esac
12791fi
12792READLINK=$ac_cv_path_READLINK
12793if test -n "$READLINK"; then
12794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12795$as_echo "$READLINK" >&6; }
12796else
12797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
12799fi
12800
12801
12802  test -n "$READLINK" && break
12803done
12804
12805  else
12806    # The variable is set, but is it from the command line or the environment?
12807
12808    # Try to remove the string !READLINK! from our list.
12809    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12810    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12811      # If it failed, the variable was not from the command line. Ignore it,
12812      # but warn the user (except for BASH, which is always set by the calling BASH).
12813      if test "xREADLINK" != xBASH; then
12814        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12815$as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12816      fi
12817      # Try to locate tool using the code snippet
12818      for ac_prog in greadlink readlink
12819do
12820  # Extract the first word of "$ac_prog", so it can be a program name with args.
12821set dummy $ac_prog; ac_word=$2
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823$as_echo_n "checking for $ac_word... " >&6; }
12824if ${ac_cv_path_READLINK+:} false; then :
12825  $as_echo_n "(cached) " >&6
12826else
12827  case $READLINK in
12828  [\\/]* | ?:[\\/]*)
12829  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12830  ;;
12831  *)
12832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833for as_dir in $PATH
12834do
12835  IFS=$as_save_IFS
12836  test -z "$as_dir" && as_dir=.
12837    for ac_exec_ext in '' $ac_executable_extensions; do
12838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12839    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841    break 2
12842  fi
12843done
12844  done
12845IFS=$as_save_IFS
12846
12847  ;;
12848esac
12849fi
12850READLINK=$ac_cv_path_READLINK
12851if test -n "$READLINK"; then
12852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12853$as_echo "$READLINK" >&6; }
12854else
12855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856$as_echo "no" >&6; }
12857fi
12858
12859
12860  test -n "$READLINK" && break
12861done
12862
12863    else
12864      # If it succeeded, then it was overridden by the user. We will use it
12865      # for the tool.
12866
12867      # First remove it from the list of overridden variables, so we can test
12868      # for unknown variables in the end.
12869      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12870
12871      # Check if the provided tool contains a complete path.
12872      tool_specified="$READLINK"
12873      tool_basename="${tool_specified##*/}"
12874      if test "x$tool_basename" = "x$tool_specified"; then
12875        # A command without a complete path is provided, search $PATH.
12876        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12877$as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12878        # Extract the first word of "$tool_basename", so it can be a program name with args.
12879set dummy $tool_basename; ac_word=$2
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881$as_echo_n "checking for $ac_word... " >&6; }
12882if ${ac_cv_path_READLINK+:} false; then :
12883  $as_echo_n "(cached) " >&6
12884else
12885  case $READLINK in
12886  [\\/]* | ?:[\\/]*)
12887  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12888  ;;
12889  *)
12890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893  IFS=$as_save_IFS
12894  test -z "$as_dir" && as_dir=.
12895    for ac_exec_ext in '' $ac_executable_extensions; do
12896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12897    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899    break 2
12900  fi
12901done
12902  done
12903IFS=$as_save_IFS
12904
12905  ;;
12906esac
12907fi
12908READLINK=$ac_cv_path_READLINK
12909if test -n "$READLINK"; then
12910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12911$as_echo "$READLINK" >&6; }
12912else
12913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
12915fi
12916
12917
12918        if test "x$READLINK" = x; then
12919          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12920        fi
12921      else
12922        # Otherwise we believe it is a complete path. Use it as it is.
12923        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12924$as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12925        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12926$as_echo_n "checking for READLINK... " >&6; }
12927        if test ! -x "$tool_specified"; then
12928          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12929$as_echo "not found" >&6; }
12930          as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12931        fi
12932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12933$as_echo "$tool_specified" >&6; }
12934      fi
12935    fi
12936  fi
12937
12938
12939
12940
12941  # Publish this variable in the help.
12942
12943
12944  if test "x$DF" = x; then
12945    # The variable is not set by user, try to locate tool using the code snippet
12946    for ac_prog in df
12947do
12948  # Extract the first word of "$ac_prog", so it can be a program name with args.
12949set dummy $ac_prog; ac_word=$2
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12951$as_echo_n "checking for $ac_word... " >&6; }
12952if ${ac_cv_path_DF+:} false; then :
12953  $as_echo_n "(cached) " >&6
12954else
12955  case $DF in
12956  [\\/]* | ?:[\\/]*)
12957  ac_cv_path_DF="$DF" # Let the user override the test with a path.
12958  ;;
12959  *)
12960  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961for as_dir in $PATH
12962do
12963  IFS=$as_save_IFS
12964  test -z "$as_dir" && as_dir=.
12965    for ac_exec_ext in '' $ac_executable_extensions; do
12966  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12967    ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12968    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12969    break 2
12970  fi
12971done
12972  done
12973IFS=$as_save_IFS
12974
12975  ;;
12976esac
12977fi
12978DF=$ac_cv_path_DF
12979if test -n "$DF"; then
12980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12981$as_echo "$DF" >&6; }
12982else
12983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984$as_echo "no" >&6; }
12985fi
12986
12987
12988  test -n "$DF" && break
12989done
12990
12991  else
12992    # The variable is set, but is it from the command line or the environment?
12993
12994    # Try to remove the string !DF! from our list.
12995    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12996    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12997      # If it failed, the variable was not from the command line. Ignore it,
12998      # but warn the user (except for BASH, which is always set by the calling BASH).
12999      if test "xDF" != xBASH; then
13000        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13001$as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13002      fi
13003      # Try to locate tool using the code snippet
13004      for ac_prog in df
13005do
13006  # Extract the first word of "$ac_prog", so it can be a program name with args.
13007set dummy $ac_prog; ac_word=$2
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009$as_echo_n "checking for $ac_word... " >&6; }
13010if ${ac_cv_path_DF+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  case $DF in
13014  [\\/]* | ?:[\\/]*)
13015  ac_cv_path_DF="$DF" # Let the user override the test with a path.
13016  ;;
13017  *)
13018  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021  IFS=$as_save_IFS
13022  test -z "$as_dir" && as_dir=.
13023    for ac_exec_ext in '' $ac_executable_extensions; do
13024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025    ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030  done
13031IFS=$as_save_IFS
13032
13033  ;;
13034esac
13035fi
13036DF=$ac_cv_path_DF
13037if test -n "$DF"; then
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13039$as_echo "$DF" >&6; }
13040else
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
13043fi
13044
13045
13046  test -n "$DF" && break
13047done
13048
13049    else
13050      # If it succeeded, then it was overridden by the user. We will use it
13051      # for the tool.
13052
13053      # First remove it from the list of overridden variables, so we can test
13054      # for unknown variables in the end.
13055      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13056
13057      # Check if the provided tool contains a complete path.
13058      tool_specified="$DF"
13059      tool_basename="${tool_specified##*/}"
13060      if test "x$tool_basename" = "x$tool_specified"; then
13061        # A command without a complete path is provided, search $PATH.
13062        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13063$as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13064        # Extract the first word of "$tool_basename", so it can be a program name with args.
13065set dummy $tool_basename; ac_word=$2
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067$as_echo_n "checking for $ac_word... " >&6; }
13068if ${ac_cv_path_DF+:} false; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  case $DF in
13072  [\\/]* | ?:[\\/]*)
13073  ac_cv_path_DF="$DF" # Let the user override the test with a path.
13074  ;;
13075  *)
13076  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077for as_dir in $PATH
13078do
13079  IFS=$as_save_IFS
13080  test -z "$as_dir" && as_dir=.
13081    for ac_exec_ext in '' $ac_executable_extensions; do
13082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083    ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085    break 2
13086  fi
13087done
13088  done
13089IFS=$as_save_IFS
13090
13091  ;;
13092esac
13093fi
13094DF=$ac_cv_path_DF
13095if test -n "$DF"; then
13096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13097$as_echo "$DF" >&6; }
13098else
13099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100$as_echo "no" >&6; }
13101fi
13102
13103
13104        if test "x$DF" = x; then
13105          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13106        fi
13107      else
13108        # Otherwise we believe it is a complete path. Use it as it is.
13109        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13110$as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13111        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13112$as_echo_n "checking for DF... " >&6; }
13113        if test ! -x "$tool_specified"; then
13114          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13115$as_echo "not found" >&6; }
13116          as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13117        fi
13118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13119$as_echo "$tool_specified" >&6; }
13120      fi
13121    fi
13122  fi
13123
13124
13125
13126
13127  # Publish this variable in the help.
13128
13129
13130  if test "x$SETFILE" = x; then
13131    # The variable is not set by user, try to locate tool using the code snippet
13132    for ac_prog in SetFile
13133do
13134  # Extract the first word of "$ac_prog", so it can be a program name with args.
13135set dummy $ac_prog; ac_word=$2
13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137$as_echo_n "checking for $ac_word... " >&6; }
13138if ${ac_cv_path_SETFILE+:} false; then :
13139  $as_echo_n "(cached) " >&6
13140else
13141  case $SETFILE in
13142  [\\/]* | ?:[\\/]*)
13143  ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13144  ;;
13145  *)
13146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147for as_dir in $PATH
13148do
13149  IFS=$as_save_IFS
13150  test -z "$as_dir" && as_dir=.
13151    for ac_exec_ext in '' $ac_executable_extensions; do
13152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153    ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155    break 2
13156  fi
13157done
13158  done
13159IFS=$as_save_IFS
13160
13161  ;;
13162esac
13163fi
13164SETFILE=$ac_cv_path_SETFILE
13165if test -n "$SETFILE"; then
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13167$as_echo "$SETFILE" >&6; }
13168else
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173
13174  test -n "$SETFILE" && break
13175done
13176
13177  else
13178    # The variable is set, but is it from the command line or the environment?
13179
13180    # Try to remove the string !SETFILE! from our list.
13181    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13182    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13183      # If it failed, the variable was not from the command line. Ignore it,
13184      # but warn the user (except for BASH, which is always set by the calling BASH).
13185      if test "xSETFILE" != xBASH; then
13186        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13187$as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13188      fi
13189      # Try to locate tool using the code snippet
13190      for ac_prog in SetFile
13191do
13192  # Extract the first word of "$ac_prog", so it can be a program name with args.
13193set dummy $ac_prog; ac_word=$2
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195$as_echo_n "checking for $ac_word... " >&6; }
13196if ${ac_cv_path_SETFILE+:} false; then :
13197  $as_echo_n "(cached) " >&6
13198else
13199  case $SETFILE in
13200  [\\/]* | ?:[\\/]*)
13201  ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13202  ;;
13203  *)
13204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207  IFS=$as_save_IFS
13208  test -z "$as_dir" && as_dir=.
13209    for ac_exec_ext in '' $ac_executable_extensions; do
13210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211    ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213    break 2
13214  fi
13215done
13216  done
13217IFS=$as_save_IFS
13218
13219  ;;
13220esac
13221fi
13222SETFILE=$ac_cv_path_SETFILE
13223if test -n "$SETFILE"; then
13224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13225$as_echo "$SETFILE" >&6; }
13226else
13227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
13229fi
13230
13231
13232  test -n "$SETFILE" && break
13233done
13234
13235    else
13236      # If it succeeded, then it was overridden by the user. We will use it
13237      # for the tool.
13238
13239      # First remove it from the list of overridden variables, so we can test
13240      # for unknown variables in the end.
13241      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13242
13243      # Check if the provided tool contains a complete path.
13244      tool_specified="$SETFILE"
13245      tool_basename="${tool_specified##*/}"
13246      if test "x$tool_basename" = "x$tool_specified"; then
13247        # A command without a complete path is provided, search $PATH.
13248        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13249$as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13250        # Extract the first word of "$tool_basename", so it can be a program name with args.
13251set dummy $tool_basename; ac_word=$2
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
13254if ${ac_cv_path_SETFILE+:} false; then :
13255  $as_echo_n "(cached) " >&6
13256else
13257  case $SETFILE in
13258  [\\/]* | ?:[\\/]*)
13259  ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13260  ;;
13261  *)
13262  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263for as_dir in $PATH
13264do
13265  IFS=$as_save_IFS
13266  test -z "$as_dir" && as_dir=.
13267    for ac_exec_ext in '' $ac_executable_extensions; do
13268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13269    ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271    break 2
13272  fi
13273done
13274  done
13275IFS=$as_save_IFS
13276
13277  ;;
13278esac
13279fi
13280SETFILE=$ac_cv_path_SETFILE
13281if test -n "$SETFILE"; then
13282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13283$as_echo "$SETFILE" >&6; }
13284else
13285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
13287fi
13288
13289
13290        if test "x$SETFILE" = x; then
13291          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13292        fi
13293      else
13294        # Otherwise we believe it is a complete path. Use it as it is.
13295        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13296$as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13297        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13298$as_echo_n "checking for SETFILE... " >&6; }
13299        if test ! -x "$tool_specified"; then
13300          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13301$as_echo "not found" >&6; }
13302          as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13303        fi
13304        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13305$as_echo "$tool_specified" >&6; }
13306      fi
13307    fi
13308  fi
13309
13310
13311
13312
13313# Now we can determine OpenJDK build and target platforms. This is required to
13314# have early on.
13315# Make sure we can run config.sub.
13316$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13317  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13318
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13320$as_echo_n "checking build system type... " >&6; }
13321if ${ac_cv_build+:} false; then :
13322  $as_echo_n "(cached) " >&6
13323else
13324  ac_build_alias=$build_alias
13325test "x$ac_build_alias" = x &&
13326  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13327test "x$ac_build_alias" = x &&
13328  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13329ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13330  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13331
13332fi
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13334$as_echo "$ac_cv_build" >&6; }
13335case $ac_cv_build in
13336*-*-*) ;;
13337*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13338esac
13339build=$ac_cv_build
13340ac_save_IFS=$IFS; IFS='-'
13341set x $ac_cv_build
13342shift
13343build_cpu=$1
13344build_vendor=$2
13345shift; shift
13346# Remember, the first character of IFS is used to create $*,
13347# except with old shells:
13348build_os=$*
13349IFS=$ac_save_IFS
13350case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13351
13352
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13354$as_echo_n "checking host system type... " >&6; }
13355if ${ac_cv_host+:} false; then :
13356  $as_echo_n "(cached) " >&6
13357else
13358  if test "x$host_alias" = x; then
13359  ac_cv_host=$ac_cv_build
13360else
13361  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13362    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13363fi
13364
13365fi
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13367$as_echo "$ac_cv_host" >&6; }
13368case $ac_cv_host in
13369*-*-*) ;;
13370*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13371esac
13372host=$ac_cv_host
13373ac_save_IFS=$IFS; IFS='-'
13374set x $ac_cv_host
13375shift
13376host_cpu=$1
13377host_vendor=$2
13378shift; shift
13379# Remember, the first character of IFS is used to create $*,
13380# except with old shells:
13381host_os=$*
13382IFS=$ac_save_IFS
13383case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13384
13385
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13387$as_echo_n "checking target system type... " >&6; }
13388if ${ac_cv_target+:} false; then :
13389  $as_echo_n "(cached) " >&6
13390else
13391  if test "x$target_alias" = x; then
13392  ac_cv_target=$ac_cv_host
13393else
13394  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13395    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13396fi
13397
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13400$as_echo "$ac_cv_target" >&6; }
13401case $ac_cv_target in
13402*-*-*) ;;
13403*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13404esac
13405target=$ac_cv_target
13406ac_save_IFS=$IFS; IFS='-'
13407set x $ac_cv_target
13408shift
13409target_cpu=$1
13410target_vendor=$2
13411shift; shift
13412# Remember, the first character of IFS is used to create $*,
13413# except with old shells:
13414target_os=$*
13415IFS=$ac_save_IFS
13416case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13417
13418
13419# The aliases save the names the user supplied, while $host etc.
13420# will get canonicalized.
13421test -n "$target_alias" &&
13422  test "$program_prefix$program_suffix$program_transform_name" = \
13423    NONENONEs,x,x, &&
13424  program_prefix=${target_alias}-
13425
13426  # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13427  # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13428  # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13429  # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13430  # to use the configure naming style.
13431
13432
13433
13434
13435
13436  # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13437  # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13438  # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13439  # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13440  OPENJDK_TARGET_AUTOCONF_NAME="$host"
13441  OPENJDK_BUILD_AUTOCONF_NAME="$build"
13442
13443
13444
13445  # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13446
13447  case "$build_os" in
13448    *linux*)
13449      VAR_OS=linux
13450      VAR_OS_API=posix
13451      VAR_OS_ENV=linux
13452      ;;
13453    *solaris*)
13454      VAR_OS=solaris
13455      VAR_OS_API=posix
13456      VAR_OS_ENV=solaris
13457      ;;
13458    *darwin*)
13459      VAR_OS=macosx
13460      VAR_OS_API=posix
13461      VAR_OS_ENV=macosx
13462      ;;
13463    *bsd*)
13464      VAR_OS=bsd
13465      VAR_OS_API=posix
13466      VAR_OS_ENV=bsd
13467      ;;
13468    *cygwin*)
13469      VAR_OS=windows
13470      VAR_OS_API=winapi
13471      VAR_OS_ENV=windows.cygwin
13472      ;;
13473    *mingw*)
13474      VAR_OS=windows
13475      VAR_OS_API=winapi
13476      VAR_OS_ENV=windows.msys
13477      ;;
13478    *aix*)
13479      VAR_OS=aix
13480      VAR_OS_API=posix
13481      VAR_OS_ENV=aix
13482      ;;
13483    *)
13484      as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13485      ;;
13486  esac
13487
13488
13489  # First argument is the cpu name from the trip/quad
13490  case "$build_cpu" in
13491    x86_64)
13492      VAR_CPU=x86_64
13493      VAR_CPU_ARCH=x86
13494      VAR_CPU_BITS=64
13495      VAR_CPU_ENDIAN=little
13496      ;;
13497    i?86)
13498      VAR_CPU=x86
13499      VAR_CPU_ARCH=x86
13500      VAR_CPU_BITS=32
13501      VAR_CPU_ENDIAN=little
13502      ;;
13503    arm*)
13504      VAR_CPU=arm
13505      VAR_CPU_ARCH=arm
13506      VAR_CPU_BITS=32
13507      VAR_CPU_ENDIAN=little
13508      ;;
13509    powerpc)
13510      VAR_CPU=ppc
13511      VAR_CPU_ARCH=ppc
13512      VAR_CPU_BITS=32
13513      VAR_CPU_ENDIAN=big
13514      ;;
13515    powerpc64)
13516      VAR_CPU=ppc64
13517      VAR_CPU_ARCH=ppc
13518      VAR_CPU_BITS=64
13519      VAR_CPU_ENDIAN=big
13520      ;;
13521    s390)
13522      VAR_CPU=s390
13523      VAR_CPU_ARCH=s390
13524      VAR_CPU_BITS=32
13525      VAR_CPU_ENDIAN=big
13526      ;;
13527    s390x)
13528      VAR_CPU=s390x
13529      VAR_CPU_ARCH=s390
13530      VAR_CPU_BITS=64
13531      VAR_CPU_ENDIAN=big
13532      ;;
13533    sparc)
13534      VAR_CPU=sparc
13535      VAR_CPU_ARCH=sparc
13536      VAR_CPU_BITS=32
13537      VAR_CPU_ENDIAN=big
13538      ;;
13539    sparcv9)
13540      VAR_CPU=sparcv9
13541      VAR_CPU_ARCH=sparc
13542      VAR_CPU_BITS=64
13543      VAR_CPU_ENDIAN=big
13544      ;;
13545    *)
13546      as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13547      ;;
13548  esac
13549
13550  # ..and setup our own variables. (Do this explicitely to facilitate searching)
13551  OPENJDK_BUILD_OS="$VAR_OS"
13552  OPENJDK_BUILD_OS_API="$VAR_OS_API"
13553  OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13554  OPENJDK_BUILD_CPU="$VAR_CPU"
13555  OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13556  OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13557  OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13558
13559
13560
13561
13562
13563
13564
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13566$as_echo_n "checking openjdk-build os-cpu... " >&6; }
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13568$as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13569
13570  # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13571
13572  case "$host_os" in
13573    *linux*)
13574      VAR_OS=linux
13575      VAR_OS_API=posix
13576      VAR_OS_ENV=linux
13577      ;;
13578    *solaris*)
13579      VAR_OS=solaris
13580      VAR_OS_API=posix
13581      VAR_OS_ENV=solaris
13582      ;;
13583    *darwin*)
13584      VAR_OS=macosx
13585      VAR_OS_API=posix
13586      VAR_OS_ENV=macosx
13587      ;;
13588    *bsd*)
13589      VAR_OS=bsd
13590      VAR_OS_API=posix
13591      VAR_OS_ENV=bsd
13592      ;;
13593    *cygwin*)
13594      VAR_OS=windows
13595      VAR_OS_API=winapi
13596      VAR_OS_ENV=windows.cygwin
13597      ;;
13598    *mingw*)
13599      VAR_OS=windows
13600      VAR_OS_API=winapi
13601      VAR_OS_ENV=windows.msys
13602      ;;
13603    *aix*)
13604      VAR_OS=aix
13605      VAR_OS_API=posix
13606      VAR_OS_ENV=aix
13607      ;;
13608    *)
13609      as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13610      ;;
13611  esac
13612
13613
13614  # First argument is the cpu name from the trip/quad
13615  case "$host_cpu" in
13616    x86_64)
13617      VAR_CPU=x86_64
13618      VAR_CPU_ARCH=x86
13619      VAR_CPU_BITS=64
13620      VAR_CPU_ENDIAN=little
13621      ;;
13622    i?86)
13623      VAR_CPU=x86
13624      VAR_CPU_ARCH=x86
13625      VAR_CPU_BITS=32
13626      VAR_CPU_ENDIAN=little
13627      ;;
13628    arm*)
13629      VAR_CPU=arm
13630      VAR_CPU_ARCH=arm
13631      VAR_CPU_BITS=32
13632      VAR_CPU_ENDIAN=little
13633      ;;
13634    powerpc)
13635      VAR_CPU=ppc
13636      VAR_CPU_ARCH=ppc
13637      VAR_CPU_BITS=32
13638      VAR_CPU_ENDIAN=big
13639      ;;
13640    powerpc64)
13641      VAR_CPU=ppc64
13642      VAR_CPU_ARCH=ppc
13643      VAR_CPU_BITS=64
13644      VAR_CPU_ENDIAN=big
13645      ;;
13646    s390)
13647      VAR_CPU=s390
13648      VAR_CPU_ARCH=s390
13649      VAR_CPU_BITS=32
13650      VAR_CPU_ENDIAN=big
13651      ;;
13652    s390x)
13653      VAR_CPU=s390x
13654      VAR_CPU_ARCH=s390
13655      VAR_CPU_BITS=64
13656      VAR_CPU_ENDIAN=big
13657      ;;
13658    sparc)
13659      VAR_CPU=sparc
13660      VAR_CPU_ARCH=sparc
13661      VAR_CPU_BITS=32
13662      VAR_CPU_ENDIAN=big
13663      ;;
13664    sparcv9)
13665      VAR_CPU=sparcv9
13666      VAR_CPU_ARCH=sparc
13667      VAR_CPU_BITS=64
13668      VAR_CPU_ENDIAN=big
13669      ;;
13670    *)
13671      as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13672      ;;
13673  esac
13674
13675  # ... and setup our own variables. (Do this explicitely to facilitate searching)
13676  OPENJDK_TARGET_OS="$VAR_OS"
13677  OPENJDK_TARGET_OS_API="$VAR_OS_API"
13678  OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13679  OPENJDK_TARGET_CPU="$VAR_CPU"
13680  OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13681  OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13682  OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13683
13684
13685
13686
13687
13688
13689
13690  { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13691$as_echo_n "checking openjdk-target os-cpu... " >&6; }
13692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13693$as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13694
13695
13696
13697# Check whether --with-target-bits was given.
13698if test "${with_target_bits+set}" = set; then :
13699  withval=$with_target_bits;
13700fi
13701
13702
13703  # We have three types of compiles:
13704  # native  == normal compilation, target system == build system
13705  # cross   == traditional cross compilation, target system != build system; special toolchain needed
13706  # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13707  #
13708  if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13709    # We're doing a proper cross-compilation
13710    COMPILE_TYPE="cross"
13711  else
13712    COMPILE_TYPE="native"
13713  fi
13714
13715  if test "x$with_target_bits" != x; then
13716    if test "x$COMPILE_TYPE" = "xcross"; then
13717      as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13718    fi
13719
13720    if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13721      # A reduced build is requested
13722      COMPILE_TYPE="reduced"
13723      OPENJDK_TARGET_CPU_BITS=32
13724      if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13725        OPENJDK_TARGET_CPU=x86
13726      elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13727        OPENJDK_TARGET_CPU=sparc
13728      else
13729        as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13730      fi
13731    elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13732      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
13733    elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13734      { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13735$as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13736    else
13737      as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13738    fi
13739  fi
13740
13741
13742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13743$as_echo_n "checking compilation type... " >&6; }
13744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13745$as_echo "$COMPILE_TYPE" >&6; }
13746
13747
13748  if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13749    REQUIRED_OS_NAME=SunOS
13750    REQUIRED_OS_VERSION=5.10
13751  fi
13752  if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13753    REQUIRED_OS_NAME=Linux
13754    REQUIRED_OS_VERSION=2.6
13755  fi
13756  if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13757    REQUIRED_OS_NAME=Windows
13758    if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13759      REQUIRED_OS_VERSION=5.2
13760    else
13761      REQUIRED_OS_VERSION=5.1
13762    fi
13763  fi
13764  if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13765    REQUIRED_OS_NAME=Darwin
13766    REQUIRED_OS_VERSION=11.2
13767  fi
13768
13769
13770
13771
13772
13773  # Also store the legacy naming of the cpu.
13774  # Ie i586 and amd64 instead of x86 and x86_64
13775  OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13776  if test "x$OPENJDK_TARGET_CPU" = xx86; then
13777    OPENJDK_TARGET_CPU_LEGACY="i586"
13778  elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13779    # On all platforms except MacOSX replace x86_64 with amd64.
13780    OPENJDK_TARGET_CPU_LEGACY="amd64"
13781  fi
13782
13783
13784  # And the second legacy naming of the cpu.
13785  # Ie i386 and amd64 instead of x86 and x86_64.
13786  OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13787  if test "x$OPENJDK_TARGET_CPU" = xx86; then
13788    OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13789  elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13790    OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13791  fi
13792
13793
13794  # This is the name of the cpu (but using i386 and amd64 instead of
13795  # x86 and x86_64, respectively), preceeded by a /, to be used when
13796  # locating libraries. On macosx, it's empty, though.
13797  OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13798  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13799    OPENJDK_TARGET_CPU_LIBDIR=""
13800  fi
13801
13802
13803  # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13804  # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13805  # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13806  OPENJDK_TARGET_CPU_ISADIR=""
13807  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13808    if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13809      OPENJDK_TARGET_CPU_ISADIR="/amd64"
13810    elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13811      OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13812    fi
13813  fi
13814
13815
13816  # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13817  OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13818  if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13819    # On linux only, we replace x86 with i386.
13820    OPENJDK_TARGET_CPU_OSARCH="i386"
13821  elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13822    # On all platforms except macosx, we replace x86_64 with amd64.
13823    OPENJDK_TARGET_CPU_OSARCH="amd64"
13824  fi
13825
13826
13827  OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13828  if test "x$OPENJDK_TARGET_CPU" = xx86; then
13829    OPENJDK_TARGET_CPU_JLI="i386"
13830  elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13831    # On all platforms except macosx, we replace x86_64 with amd64.
13832    OPENJDK_TARGET_CPU_JLI="amd64"
13833  fi
13834  # Now setup the -D flags for building libjli.
13835  OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13836  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13837    if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13838      OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13839    elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13840      OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13841    fi
13842  fi
13843
13844
13845  # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13846  if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13847    OPENJDK_TARGET_OS_API_DIR="solaris"
13848  fi
13849  if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13850    OPENJDK_TARGET_OS_API_DIR="windows"
13851  fi
13852
13853
13854  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13855      OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13856  else
13857      OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13858  fi
13859
13860
13861  if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13862    A_LP64="LP64:="
13863    # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13864    # unpack200.exe
13865    if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13866      ADD_LP64="-D_LP64=1"
13867    fi
13868  fi
13869  LP64=$A_LP64
13870
13871
13872  if test "x$COMPILE_TYPE" = "xcross"; then
13873    # FIXME: ... or should this include reduced builds..?
13874    DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13875  else
13876    DEFINE_CROSS_COMPILE_ARCH=""
13877  fi
13878
13879
13880  # ZERO_ARCHDEF is used to enable architecture-specific code
13881  case "${OPENJDK_TARGET_CPU}" in
13882    ppc*)    ZERO_ARCHDEF=PPC   ;;
13883    s390*)   ZERO_ARCHDEF=S390  ;;
13884    sparc*)  ZERO_ARCHDEF=SPARC ;;
13885    x86_64*) ZERO_ARCHDEF=AMD64 ;;
13886    x86)     ZERO_ARCHDEF=IA32  ;;
13887    *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13888  esac
13889
13890
13891
13892
13893# Continue setting up basic stuff. Most remaining code require fundamental tools.
13894
13895  # Save the current directory this script was started from
13896  CURDIR="$PWD"
13897
13898  if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13899    PATH_SEP=";"
13900
13901  SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13902  if test $SRC_ROOT_LENGTH -gt 100; then
13903    as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13904  fi
13905
13906  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13908$as_echo_n "checking cygwin release... " >&6; }
13909    CYGWIN_VERSION=`$UNAME -r`
13910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13911$as_echo "$CYGWIN_VERSION" >&6; }
13912    WINDOWS_ENV_VENDOR='cygwin'
13913    WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13914
13915    CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13916    if test "x$CYGWIN_VERSION_OK" = x; then
13917      { $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
13918$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;}
13919      as_fn_error $? "Cannot continue" "$LINENO" 5
13920    fi
13921    if test "x$CYGPATH" = x; then
13922      as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13923    fi
13924    { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13925$as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13926    # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13927    cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13928    # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13929    CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13930    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13931$as_echo "$CYGWIN_ROOT_PATH" >&6; }
13932    WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13933    test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13934    if test "x$test_cygdrive_prefix" = x; then
13935      as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13936    fi
13937  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13938    { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13939$as_echo_n "checking msys release... " >&6; }
13940    MSYS_VERSION=`$UNAME -r`
13941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13942$as_echo "$MSYS_VERSION" >&6; }
13943
13944    WINDOWS_ENV_VENDOR='msys'
13945    WINDOWS_ENV_VERSION="$MSYS_VERSION"
13946
13947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13948$as_echo_n "checking msys root directory as unix-style path... " >&6; }
13949    # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13950    MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13951
13952  windows_path="$MSYS_ROOT_PATH"
13953  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13954    unix_path=`$CYGPATH -u "$windows_path"`
13955    MSYS_ROOT_PATH="$unix_path"
13956  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13957    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13958    MSYS_ROOT_PATH="$unix_path"
13959  fi
13960
13961    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13962$as_echo "$MSYS_ROOT_PATH" >&6; }
13963    WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13964  else
13965    as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13966  fi
13967
13968  # Test if windows or unix (cygwin/msys) find is first in path.
13969  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13970$as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13971  FIND_BINARY_OUTPUT=`find --version 2>&1`
13972  if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13974$as_echo "unix style" >&6; }
13975  elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13977$as_echo "Windows" >&6; }
13978    { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13979$as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13980    { $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
13981$as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13982    as_fn_error $? "Cannot continue" "$LINENO" 5
13983  else
13984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13985$as_echo "unknown" >&6; }
13986    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13987$as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13988  fi
13989
13990  else
13991    PATH_SEP=":"
13992  fi
13993
13994
13995  # We get the top-level directory from the supporting wrappers.
13996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13997$as_echo_n "checking for top-level directory... " >&6; }
13998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13999$as_echo "$TOPDIR" >&6; }
14000
14001
14002  # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14003
14004  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14005
14006  # Input might be given as Windows format, start by converting to
14007  # unix format.
14008  path="$CURDIR"
14009  new_path=`$CYGPATH -u "$path"`
14010
14011  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14012  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14013  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14014  # "foo.exe" is OK but "foo" is an error.
14015  #
14016  # This test is therefore slightly more accurate than "test -f" to check for file precense.
14017  # It is also a way to make sure we got the proper file name for the real test later on.
14018  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14019  if test "x$test_shortpath" = x; then
14020    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14021$as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14022    as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14023  fi
14024
14025  # Call helper function which possibly converts this using DOS-style short mode.
14026  # If so, the updated path is stored in $new_path.
14027
14028  input_path="$new_path"
14029  # Check if we need to convert this using DOS-style short mode. If the path
14030  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14031  # take no chances and rewrite it.
14032  # Note: m4 eats our [], so we need to use [ and ] instead.
14033  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14034  if test "x$has_forbidden_chars" != x; then
14035    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14036    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14037    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14038    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14039      # Going to short mode and back again did indeed matter. Since short mode is
14040      # case insensitive, let's make it lowercase to improve readability.
14041      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14042      # Now convert it back to Unix-stile (cygpath)
14043      input_path=`$CYGPATH -u "$shortmode_path"`
14044      new_path="$input_path"
14045    fi
14046  fi
14047
14048  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14049  if test "x$test_cygdrive_prefix" = x; then
14050    # As a simple fix, exclude /usr/bin since it's not a real path.
14051    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14052      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14053      # a path prefixed by /cygdrive for fixpath to work.
14054      new_path="$CYGWIN_ROOT_PATH$input_path"
14055    fi
14056  fi
14057
14058
14059  if test "x$path" != "x$new_path"; then
14060    CURDIR="$new_path"
14061    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14062$as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14063  fi
14064
14065  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14066
14067  path="$CURDIR"
14068  has_colon=`$ECHO $path | $GREP ^.:`
14069  new_path="$path"
14070  if test "x$has_colon" = x; then
14071    # Not in mixed or Windows style, start by that.
14072    new_path=`cmd //c echo $path`
14073  fi
14074
14075
14076  input_path="$new_path"
14077  # Check if we need to convert this using DOS-style short mode. If the path
14078  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14079  # take no chances and rewrite it.
14080  # Note: m4 eats our [], so we need to use [ and ] instead.
14081  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14082  if test "x$has_forbidden_chars" != x; then
14083    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14084    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14085  fi
14086
14087
14088  windows_path="$new_path"
14089  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14090    unix_path=`$CYGPATH -u "$windows_path"`
14091    new_path="$unix_path"
14092  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14093    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14094    new_path="$unix_path"
14095  fi
14096
14097  if test "x$path" != "x$new_path"; then
14098    CURDIR="$new_path"
14099    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14100$as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14101  fi
14102
14103  # Save the first 10 bytes of this path to the storage, so fixpath can work.
14104  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14105
14106  else
14107    # We're on a posix platform. Hooray! :)
14108    path="$CURDIR"
14109    has_space=`$ECHO "$path" | $GREP " "`
14110    if test "x$has_space" != x; then
14111      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14112$as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14113      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14114    fi
14115
14116    # Use eval to expand a potential ~
14117    eval path="$path"
14118    if test ! -f "$path" && test ! -d "$path"; then
14119      as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14120    fi
14121
14122    CURDIR="`cd "$path"; $THEPWDCMD -L`"
14123  fi
14124
14125
14126  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14127
14128  # Input might be given as Windows format, start by converting to
14129  # unix format.
14130  path="$TOPDIR"
14131  new_path=`$CYGPATH -u "$path"`
14132
14133  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14134  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14135  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14136  # "foo.exe" is OK but "foo" is an error.
14137  #
14138  # This test is therefore slightly more accurate than "test -f" to check for file precense.
14139  # It is also a way to make sure we got the proper file name for the real test later on.
14140  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14141  if test "x$test_shortpath" = x; then
14142    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14143$as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14144    as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14145  fi
14146
14147  # Call helper function which possibly converts this using DOS-style short mode.
14148  # If so, the updated path is stored in $new_path.
14149
14150  input_path="$new_path"
14151  # Check if we need to convert this using DOS-style short mode. If the path
14152  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14153  # take no chances and rewrite it.
14154  # Note: m4 eats our [], so we need to use [ and ] instead.
14155  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14156  if test "x$has_forbidden_chars" != x; then
14157    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14158    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14159    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14160    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14161      # Going to short mode and back again did indeed matter. Since short mode is
14162      # case insensitive, let's make it lowercase to improve readability.
14163      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14164      # Now convert it back to Unix-stile (cygpath)
14165      input_path=`$CYGPATH -u "$shortmode_path"`
14166      new_path="$input_path"
14167    fi
14168  fi
14169
14170  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14171  if test "x$test_cygdrive_prefix" = x; then
14172    # As a simple fix, exclude /usr/bin since it's not a real path.
14173    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14174      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14175      # a path prefixed by /cygdrive for fixpath to work.
14176      new_path="$CYGWIN_ROOT_PATH$input_path"
14177    fi
14178  fi
14179
14180
14181  if test "x$path" != "x$new_path"; then
14182    TOPDIR="$new_path"
14183    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14184$as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14185  fi
14186
14187  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14188
14189  path="$TOPDIR"
14190  has_colon=`$ECHO $path | $GREP ^.:`
14191  new_path="$path"
14192  if test "x$has_colon" = x; then
14193    # Not in mixed or Windows style, start by that.
14194    new_path=`cmd //c echo $path`
14195  fi
14196
14197
14198  input_path="$new_path"
14199  # Check if we need to convert this using DOS-style short mode. If the path
14200  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14201  # take no chances and rewrite it.
14202  # Note: m4 eats our [], so we need to use [ and ] instead.
14203  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14204  if test "x$has_forbidden_chars" != x; then
14205    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14206    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14207  fi
14208
14209
14210  windows_path="$new_path"
14211  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14212    unix_path=`$CYGPATH -u "$windows_path"`
14213    new_path="$unix_path"
14214  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14215    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14216    new_path="$unix_path"
14217  fi
14218
14219  if test "x$path" != "x$new_path"; then
14220    TOPDIR="$new_path"
14221    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14222$as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14223  fi
14224
14225  # Save the first 10 bytes of this path to the storage, so fixpath can work.
14226  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14227
14228  else
14229    # We're on a posix platform. Hooray! :)
14230    path="$TOPDIR"
14231    has_space=`$ECHO "$path" | $GREP " "`
14232    if test "x$has_space" != x; then
14233      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14234$as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14235      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14236    fi
14237
14238    # Use eval to expand a potential ~
14239    eval path="$path"
14240    if test ! -f "$path" && test ! -d "$path"; then
14241      as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14242    fi
14243
14244    TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14245  fi
14246
14247  # SRC_ROOT is a traditional alias for TOPDIR.
14248  SRC_ROOT=$TOPDIR
14249
14250  # Locate the directory of this script.
14251  AUTOCONF_DIR=$TOPDIR/common/autoconf
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.
14266if test "${enable_openjdk_only+set}" = set; then :
14267  enableval=$enable_openjdk_only;
14268else
14269  enable_openjdk_only="no"
14270fi
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  # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14310  # the IncludeCustomExtension macro.
14311
14312
14313# Check whether --with-custom-make-dir was given.
14314if test "${with_custom_make_dir+set}" = set; then :
14315  withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
14316$as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14317fi
14318
14319
14320
14321
14322# These are needed to be able to create a configuration name (and thus the output directory)
14323
14324  ###############################################################################
14325  #
14326  # Check which variant of the JDK that we want to build.
14327  # Currently we have:
14328  #    normal:   standard edition
14329  # but the custom make system may add other variants
14330  #
14331  # Effectively the JDK variant gives a name to a specific set of
14332  # modules to compile into the JDK. In the future, these modules
14333  # might even be Jigsaw modules.
14334  #
14335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14336$as_echo_n "checking which variant of the JDK to build... " >&6; }
14337
14338# Check whether --with-jdk-variant was given.
14339if test "${with_jdk_variant+set}" = set; then :
14340  withval=$with_jdk_variant;
14341fi
14342
14343
14344  if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14345    JDK_VARIANT="normal"
14346  else
14347    as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14348  fi
14349
14350
14351
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14353$as_echo "$JDK_VARIANT" >&6; }
14354
14355
14356###############################################################################
14357#
14358# Check which interpreter of the JVM we want to build.
14359# Currently we have:
14360#    template: Template interpreter (the default)
14361#    cpp     : C++ interpreter
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14363$as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14364
14365# Check whether --with-jvm-interpreter was given.
14366if test "${with_jvm_interpreter+set}" = set; then :
14367  withval=$with_jvm_interpreter;
14368fi
14369
14370
14371if test "x$with_jvm_interpreter" = x; then
14372     with_jvm_interpreter="template"
14373fi
14374
14375JVM_INTERPRETER="$with_jvm_interpreter"
14376
14377if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14378   as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14379fi
14380
14381
14382
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14384$as_echo "$with_jvm_interpreter" >&6; }
14385
14386
14387
14388  ###############################################################################
14389  #
14390  # Check which variants of the JVM that we want to build.
14391  # Currently we have:
14392  #    server: normal interpreter and a tiered C1/C2 compiler
14393  #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14394  #    minimal1: reduced form of client with optional VM services and features stripped out
14395  #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14396  #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14397  #    zero: no machine code interpreter, no compiler
14398  #    zeroshark: zero interpreter and shark/llvm compiler backend
14399#    core: interpreter only, no compiler (only works on some platforms)
14400  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14401$as_echo_n "checking which variants of the JVM to build... " >&6; }
14402
14403# Check whether --with-jvm-variants was given.
14404if test "${with_jvm_variants+set}" = set; then :
14405  withval=$with_jvm_variants;
14406fi
14407
14408
14409  if test "x$with_jvm_variants" = x; then
14410    with_jvm_variants="server"
14411  fi
14412
14413  JVM_VARIANTS=",$with_jvm_variants,"
14414  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,//'`
14415
14416  if test "x$TEST_VARIANTS" != "x,"; then
14417     as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14418  fi
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14420$as_echo "$with_jvm_variants" >&6; }
14421
14422  JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14423  JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14424  JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14425  JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14426  JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14427  JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14428  JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14429
14430  if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14431    if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14432      as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14433    fi
14434  fi
14435  if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14436    if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14437      as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14438    fi
14439  fi
14440  if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14441    if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14442      as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14443    fi
14444  fi
14445
14446  # Replace the commas with AND for use in the build directory name.
14447  ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14448  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/'`
14449  if test "x$COUNT_VARIANTS" != "x,1"; then
14450    BUILDING_MULTIPLE_JVM_VARIANTS=yes
14451  else
14452    BUILDING_MULTIPLE_JVM_VARIANTS=no
14453  fi
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464  INCLUDE_SA=true
14465  if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14466    INCLUDE_SA=false
14467  fi
14468  if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14469    INCLUDE_SA=false
14470  fi
14471  if test "x$VAR_CPU" = xppc64 ; then
14472    INCLUDE_SA=false
14473  fi
14474
14475
14476  if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14477    MACOSX_UNIVERSAL="true"
14478  fi
14479
14480
14481
14482
14483  ###############################################################################
14484  #
14485  # Set the debug level
14486  #    release: no debug information, all optimizations, no asserts.
14487  #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
14488  #    fastdebug: debug information (-g), all optimizations, all asserts
14489  #    slowdebug: debug information (-g), no optimizations, all asserts
14490  #
14491  DEBUG_LEVEL="release"
14492  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14493$as_echo_n "checking which debug level to use... " >&6; }
14494  # Check whether --enable-debug was given.
14495if test "${enable_debug+set}" = set; then :
14496  enableval=$enable_debug;
14497        ENABLE_DEBUG="${enableval}"
14498        DEBUG_LEVEL="fastdebug"
14499
14500else
14501  ENABLE_DEBUG="no"
14502fi
14503
14504
14505
14506# Check whether --with-debug-level was given.
14507if test "${with_debug_level+set}" = set; then :
14508  withval=$with_debug_level;
14509        DEBUG_LEVEL="${withval}"
14510        if test "x$ENABLE_DEBUG" = xyes; then
14511          as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14512        fi
14513
14514fi
14515
14516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14517$as_echo "$DEBUG_LEVEL" >&6; }
14518
14519  if test "x$DEBUG_LEVEL" != xrelease && \
14520      test "x$DEBUG_LEVEL" != xoptimized && \
14521      test "x$DEBUG_LEVEL" != xfastdebug && \
14522      test "x$DEBUG_LEVEL" != xslowdebug; then
14523    as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14524  fi
14525
14526
14527  ###############################################################################
14528  #
14529  # Setup legacy vars/targets and new vars to deal with different debug levels.
14530  #
14531
14532  case $DEBUG_LEVEL in
14533    release )
14534      VARIANT="OPT"
14535      FASTDEBUG="false"
14536      DEBUG_CLASSFILES="false"
14537      BUILD_VARIANT_RELEASE=""
14538      HOTSPOT_DEBUG_LEVEL="product"
14539      HOTSPOT_EXPORT="product"
14540      ;;
14541    fastdebug )
14542      VARIANT="DBG"
14543      FASTDEBUG="true"
14544      DEBUG_CLASSFILES="true"
14545      BUILD_VARIANT_RELEASE="-fastdebug"
14546      HOTSPOT_DEBUG_LEVEL="fastdebug"
14547      HOTSPOT_EXPORT="fastdebug"
14548      ;;
14549    slowdebug )
14550      VARIANT="DBG"
14551      FASTDEBUG="false"
14552      DEBUG_CLASSFILES="true"
14553      BUILD_VARIANT_RELEASE="-debug"
14554      HOTSPOT_DEBUG_LEVEL="jvmg"
14555      HOTSPOT_EXPORT="debug"
14556      ;;
14557    optimized )
14558      VARIANT="OPT"
14559      FASTDEBUG="false"
14560      DEBUG_CLASSFILES="false"
14561      BUILD_VARIANT_RELEASE="-optimized"
14562      HOTSPOT_DEBUG_LEVEL="optimized"
14563      HOTSPOT_EXPORT="optimized"
14564      ;;
14565  esac
14566
14567  # The debug level 'optimized' is a little special because it is currently only
14568  # applicable to the HotSpot build where it means to build a completely
14569  # optimized version of the VM without any debugging code (like for the
14570  # 'release' debug level which is called 'product' in the HotSpot build) but
14571  # with the exception that it can contain additional code which is otherwise
14572  # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
14573  # test new and/or experimental features which are not intended for customer
14574  # shipment. Because these new features need to be tested and benchmarked in
14575  # real world scenarios, we want to build the containing JDK at the 'release'
14576  # debug level.
14577  if test "x$DEBUG_LEVEL" = xoptimized; then
14578    DEBUG_LEVEL="release"
14579  fi
14580
14581  #####
14582  # Generate the legacy makefile targets for hotspot.
14583  # The hotspot api for selecting the build artifacts, really, needs to be improved.
14584  # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14585  # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14586  # But until then ...
14587  HOTSPOT_TARGET=""
14588
14589  if test "x$JVM_VARIANT_SERVER" = xtrue; then
14590    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14591  fi
14592
14593  if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14594    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14595  fi
14596
14597  if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14598    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14599  fi
14600
14601  if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14602    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14603  fi
14604
14605  if test "x$JVM_VARIANT_ZERO" = xtrue; then
14606    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14607  fi
14608
14609  if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14610    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14611  fi
14612
14613  if test "x$JVM_VARIANT_CORE" = xtrue; then
14614    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14615  fi
14616
14617  HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14618
14619  # On Macosx universal binaries are produced, but they only contain
14620  # 64 bit intel. This invalidates control of which jvms are built
14621  # from configure, but only server is valid anyway. Fix this
14622  # when hotspot makefiles are rewritten.
14623  if test "x$MACOSX_UNIVERSAL" = xtrue; then
14624    HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14625  fi
14626
14627  #####
14628
14629
14630
14631
14632
14633
14634
14635
14636# With basic setup done, call the custom early hook.
14637
14638
14639# Check if we have devkits, extra paths or sysroot set.
14640
14641
14642# Check whether --with-devkit was given.
14643if test "${with_devkit+set}" = set; then :
14644  withval=$with_devkit;
14645
14646  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14647
14648  # Input might be given as Windows format, start by converting to
14649  # unix format.
14650  path="$with_devkit"
14651  new_path=`$CYGPATH -u "$path"`
14652
14653  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14654  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14655  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14656  # "foo.exe" is OK but "foo" is an error.
14657  #
14658  # This test is therefore slightly more accurate than "test -f" to check for file precense.
14659  # It is also a way to make sure we got the proper file name for the real test later on.
14660  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14661  if test "x$test_shortpath" = x; then
14662    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14663$as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14664    as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14665  fi
14666
14667  # Call helper function which possibly converts this using DOS-style short mode.
14668  # If so, the updated path is stored in $new_path.
14669
14670  input_path="$new_path"
14671  # Check if we need to convert this using DOS-style short mode. If the path
14672  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14673  # take no chances and rewrite it.
14674  # Note: m4 eats our [], so we need to use [ and ] instead.
14675  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14676  if test "x$has_forbidden_chars" != x; then
14677    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14678    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14679    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14680    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14681      # Going to short mode and back again did indeed matter. Since short mode is
14682      # case insensitive, let's make it lowercase to improve readability.
14683      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14684      # Now convert it back to Unix-stile (cygpath)
14685      input_path=`$CYGPATH -u "$shortmode_path"`
14686      new_path="$input_path"
14687    fi
14688  fi
14689
14690  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14691  if test "x$test_cygdrive_prefix" = x; then
14692    # As a simple fix, exclude /usr/bin since it's not a real path.
14693    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14694      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14695      # a path prefixed by /cygdrive for fixpath to work.
14696      new_path="$CYGWIN_ROOT_PATH$input_path"
14697    fi
14698  fi
14699
14700
14701  if test "x$path" != "x$new_path"; then
14702    with_devkit="$new_path"
14703    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14704$as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14705  fi
14706
14707  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14708
14709  path="$with_devkit"
14710  has_colon=`$ECHO $path | $GREP ^.:`
14711  new_path="$path"
14712  if test "x$has_colon" = x; then
14713    # Not in mixed or Windows style, start by that.
14714    new_path=`cmd //c echo $path`
14715  fi
14716
14717
14718  input_path="$new_path"
14719  # Check if we need to convert this using DOS-style short mode. If the path
14720  # contains just simple characters, use it. Otherwise (spaces, weird characters),
14721  # take no chances and rewrite it.
14722  # Note: m4 eats our [], so we need to use [ and ] instead.
14723  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14724  if test "x$has_forbidden_chars" != x; then
14725    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14726    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14727  fi
14728
14729
14730  windows_path="$new_path"
14731  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14732    unix_path=`$CYGPATH -u "$windows_path"`
14733    new_path="$unix_path"
14734  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14735    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14736    new_path="$unix_path"
14737  fi
14738
14739  if test "x$path" != "x$new_path"; then
14740    with_devkit="$new_path"
14741    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14742$as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14743  fi
14744
14745  # Save the first 10 bytes of this path to the storage, so fixpath can work.
14746  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14747
14748  else
14749    # We're on a posix platform. Hooray! :)
14750    path="$with_devkit"
14751    has_space=`$ECHO "$path" | $GREP " "`
14752    if test "x$has_space" != x; then
14753      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14754$as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14755      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14756    fi
14757
14758    # Use eval to expand a potential ~
14759    eval path="$path"
14760    if test ! -f "$path" && test ! -d "$path"; then
14761      as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14762    fi
14763
14764    with_devkit="`cd "$path"; $THEPWDCMD -L`"
14765  fi
14766
14767        DEVKIT_ROOT="$with_devkit"
14768        # Check for a meta data info file in the root of the devkit
14769        if test -f "$DEVKIT_ROOT/devkit.info"; then
14770          # This potentially sets the following:
14771          # DEVKIT_NAME: A descriptive name of the devkit
14772          # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
14773          # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
14774          # DEVKIT_SYSROOT: Corresponds to --with-sysroot
14775          . $DEVKIT_ROOT/devkit.info
14776        fi
14777
14778        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14779$as_echo_n "checking for devkit... " >&6; }
14780        if test "x$DEVKIT_NAME" != x; then
14781          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14782$as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14783        else
14784          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14785$as_echo "$DEVKIT_ROOT" >&6; }
14786        fi
14787
14788        if test "x$DEVKIT_EXTRA_PATH" != x; then
14789
14790  if test "x$DEVKIT_EXTRA_PATH" != x; then
14791    if test "x$EXTRA_PATH" = x; then
14792      EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14793    else
14794      EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14795    fi
14796  fi
14797
14798        fi
14799
14800        # Fallback default of just /bin if DEVKIT_PATH is not defined
14801        if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14802          DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14803        fi
14804
14805  if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14806    if test "x$TOOLCHAIN_PATH" = x; then
14807      TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14808    else
14809      TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14810    fi
14811  fi
14812
14813
14814        # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14815        # places for backwards compatiblity.
14816        if test "x$DEVKIT_SYSROOT" != x; then
14817          SYSROOT="$DEVKIT_SYSROOT"
14818        elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14819          SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14820        elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14821          SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14822        fi
14823
14824
14825fi
14826
14827
14828  # You can force the sysroot if the sysroot encoded into the compiler tools
14829  # is not correct.
14830
14831# Check whether --with-sys-root was given.
14832if test "${with_sys_root+set}" = set; then :
14833  withval=$with_sys_root; SYSROOT=$with_sys_root
14834
14835fi
14836
14837
14838
14839# Check whether --with-sysroot was given.
14840if test "${with_sysroot+set}" = set; then :
14841  withval=$with_sysroot; SYSROOT=$with_sysroot
14842
14843fi
14844
14845
14846
14847# Check whether --with-tools-dir was given.
14848if test "${with_tools_dir+set}" = set; then :
14849  withval=$with_tools_dir;
14850  if test "x$with_tools_dir" != x; then
14851    if test "x$TOOLCHAIN_PATH" = x; then
14852      TOOLCHAIN_PATH="$with_tools_dir"
14853    else
14854      TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14855    fi
14856  fi
14857
14858
14859fi
14860
14861
14862
14863# Check whether --with-toolchain-path was given.
14864if test "${with_toolchain_path+set}" = set; then :
14865  withval=$with_toolchain_path;
14866  if test "x$with_toolchain_path" != x; then
14867    if test "x$TOOLCHAIN_PATH" = x; then
14868      TOOLCHAIN_PATH="$with_toolchain_path"
14869    else
14870      TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14871    fi
14872  fi
14873
14874
14875fi
14876
14877
14878
14879# Check whether --with-extra-path was given.
14880if test "${with_extra_path+set}" = set; then :
14881  withval=$with_extra_path;
14882  if test "x$with_extra_path" != x; then
14883    if test "x$EXTRA_PATH" = x; then
14884      EXTRA_PATH="$with_extra_path"
14885    else
14886      EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14887    fi
14888  fi
14889
14890
14891fi
14892
14893
14894  # Prepend the extra path to the global path
14895
14896  if test "x$EXTRA_PATH" != x; then
14897    if test "x$PATH" = x; then
14898      PATH="$EXTRA_PATH"
14899    else
14900      PATH="$EXTRA_PATH:$PATH"
14901    fi
14902  fi
14903
14904
14905  if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14906    # Add extra search paths on solaris for utilities like ar and as etc...
14907    PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14908  fi
14909
14910  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14911$as_echo_n "checking for sysroot... " >&6; }
14912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
14913$as_echo "$SYSROOT" >&6; }
14914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
14915$as_echo_n "checking for toolchain path... " >&6; }
14916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
14917$as_echo "$TOOLCHAIN_PATH" >&6; }
14918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
14919$as_echo_n "checking for extra path... " >&6; }
14920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
14921$as_echo "$EXTRA_PATH" >&6; }
14922
14923
14924# To properly create a configuration name, we need to have the OpenJDK target
14925# and options (variants and debug level) parsed.
14926
14927
14928
14929# Check whether --with-conf-name was given.
14930if test "${with_conf_name+set}" = set; then :
14931  withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14932fi
14933
14934
14935  # Test from where we are running configure, in or outside of src root.
14936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14937$as_echo_n "checking where to store configuration... " >&6; }
14938  if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14939      || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14940      || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14941    # We are running configure from the src root.
14942    # Create a default ./build/target-variant-debuglevel output root.
14943    if test "x${CONF_NAME}" = x; then
14944      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14945$as_echo "in default location" >&6; }
14946      CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14947    else
14948      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14949$as_echo "in build directory with custom name" >&6; }
14950    fi
14951    OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14952    $MKDIR -p "$OUTPUT_ROOT"
14953    if test ! -d "$OUTPUT_ROOT"; then
14954      as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14955    fi
14956  else
14957    # We are running configure from outside of the src dir.
14958    # Then use the current directory as output dir!
14959    # If configuration is situated in normal build directory, just use the build
14960    # directory name as configuration name, otherwise use the complete path.
14961    if test "x${CONF_NAME}" = x; then
14962      CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14963    fi
14964    OUTPUT_ROOT="$CURDIR"
14965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14966$as_echo "in current directory" >&6; }
14967
14968    # WARNING: This might be a bad thing to do. You need to be sure you want to
14969    # have a configuration in this directory. Do some sanity checks!
14970
14971    if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14972      # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14973      # other files
14974      files_present=`$LS $OUTPUT_ROOT`
14975      # Configure has already touched config.log and confdefs.h in the current dir when this check
14976      # is performed.
14977      filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14978      | $TR -d '\n'`
14979      if test "x$filtered_files" != x; then
14980        { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14981$as_echo "$as_me: Current directory is $CURDIR." >&6;}
14982        { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14983$as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14984        { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14985$as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14986        { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14987$as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14988        { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14989$as_echo "$as_me: seriously mess up just about everything." >&6;}
14990        { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14991$as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14992        { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14993$as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14994        as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14995      fi
14996    fi
14997  fi
14998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14999$as_echo_n "checking what configuration name to use... " >&6; }
15000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15001$as_echo "$CONF_NAME" >&6; }
15002
15003
15004  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15005
15006  # Input might be given as Windows format, start by converting to
15007  # unix format.
15008  path="$OUTPUT_ROOT"
15009  new_path=`$CYGPATH -u "$path"`
15010
15011  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15012  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15013  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15014  # "foo.exe" is OK but "foo" is an error.
15015  #
15016  # This test is therefore slightly more accurate than "test -f" to check for file precense.
15017  # It is also a way to make sure we got the proper file name for the real test later on.
15018  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15019  if test "x$test_shortpath" = x; then
15020    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15021$as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15022    as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15023  fi
15024
15025  # Call helper function which possibly converts this using DOS-style short mode.
15026  # If so, the updated path is stored in $new_path.
15027
15028  input_path="$new_path"
15029  # Check if we need to convert this using DOS-style short mode. If the path
15030  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15031  # take no chances and rewrite it.
15032  # Note: m4 eats our [], so we need to use [ and ] instead.
15033  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15034  if test "x$has_forbidden_chars" != x; then
15035    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15036    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15037    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15038    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15039      # Going to short mode and back again did indeed matter. Since short mode is
15040      # case insensitive, let's make it lowercase to improve readability.
15041      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15042      # Now convert it back to Unix-stile (cygpath)
15043      input_path=`$CYGPATH -u "$shortmode_path"`
15044      new_path="$input_path"
15045    fi
15046  fi
15047
15048  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15049  if test "x$test_cygdrive_prefix" = x; then
15050    # As a simple fix, exclude /usr/bin since it's not a real path.
15051    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15052      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15053      # a path prefixed by /cygdrive for fixpath to work.
15054      new_path="$CYGWIN_ROOT_PATH$input_path"
15055    fi
15056  fi
15057
15058
15059  if test "x$path" != "x$new_path"; then
15060    OUTPUT_ROOT="$new_path"
15061    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15062$as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15063  fi
15064
15065  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15066
15067  path="$OUTPUT_ROOT"
15068  has_colon=`$ECHO $path | $GREP ^.:`
15069  new_path="$path"
15070  if test "x$has_colon" = x; then
15071    # Not in mixed or Windows style, start by that.
15072    new_path=`cmd //c echo $path`
15073  fi
15074
15075
15076  input_path="$new_path"
15077  # Check if we need to convert this using DOS-style short mode. If the path
15078  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15079  # take no chances and rewrite it.
15080  # Note: m4 eats our [], so we need to use [ and ] instead.
15081  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15082  if test "x$has_forbidden_chars" != x; then
15083    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15084    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15085  fi
15086
15087
15088  windows_path="$new_path"
15089  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15090    unix_path=`$CYGPATH -u "$windows_path"`
15091    new_path="$unix_path"
15092  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15093    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15094    new_path="$unix_path"
15095  fi
15096
15097  if test "x$path" != "x$new_path"; then
15098    OUTPUT_ROOT="$new_path"
15099    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15100$as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15101  fi
15102
15103  # Save the first 10 bytes of this path to the storage, so fixpath can work.
15104  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15105
15106  else
15107    # We're on a posix platform. Hooray! :)
15108    path="$OUTPUT_ROOT"
15109    has_space=`$ECHO "$path" | $GREP " "`
15110    if test "x$has_space" != x; then
15111      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15112$as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15113      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15114    fi
15115
15116    # Use eval to expand a potential ~
15117    eval path="$path"
15118    if test ! -f "$path" && test ! -d "$path"; then
15119      as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15120    fi
15121
15122    OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15123  fi
15124
15125
15126  SPEC=$OUTPUT_ROOT/spec.gmk
15127
15128  CONF_NAME=$CONF_NAME
15129
15130  OUTPUT_ROOT=$OUTPUT_ROOT
15131
15132
15133  # Most of the probed defines are put into config.h
15134  ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15135
15136  # The spec.gmk file contains all variables for the make system.
15137  ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15138
15139  # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15140  ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15141
15142  # The bootcycle-spec.gmk file contains support for boot cycle builds.
15143  ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15144
15145  # The compare.sh is used to compare the build output to other builds.
15146  ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15147
15148  # Spec.sh is currently used by compare-objects.sh
15149  ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15150
15151  # The generated Makefile knows where the spec.gmk is and where the source is.
15152  # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15153  # which will look for generated configurations
15154  ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15155
15156
15157
15158# Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15159
15160  for ac_prog in apt-get yum port pkgutil pkgadd
15161do
15162  # Extract the first word of "$ac_prog", so it can be a program name with args.
15163set dummy $ac_prog; ac_word=$2
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15165$as_echo_n "checking for $ac_word... " >&6; }
15166if ${ac_cv_prog_PKGHANDLER+:} false; then :
15167  $as_echo_n "(cached) " >&6
15168else
15169  if test -n "$PKGHANDLER"; then
15170  ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15171else
15172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173for as_dir in $PATH
15174do
15175  IFS=$as_save_IFS
15176  test -z "$as_dir" && as_dir=.
15177    for ac_exec_ext in '' $ac_executable_extensions; do
15178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179    ac_cv_prog_PKGHANDLER="$ac_prog"
15180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15181    break 2
15182  fi
15183done
15184  done
15185IFS=$as_save_IFS
15186
15187fi
15188fi
15189PKGHANDLER=$ac_cv_prog_PKGHANDLER
15190if test -n "$PKGHANDLER"; then
15191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15192$as_echo "$PKGHANDLER" >&6; }
15193else
15194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15195$as_echo "no" >&6; }
15196fi
15197
15198
15199  test -n "$PKGHANDLER" && break
15200done
15201
15202
15203
15204# Setup tools that requires more complex handling, or that is not needed by the configure script.
15205
15206
15207  # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15208  if test "x$MAKE" != x; then
15209    # User has supplied a make, test it.
15210    if test ! -f "$MAKE"; then
15211      as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15212    fi
15213
15214  MAKE_CANDIDATE=""$MAKE""
15215  DESCRIPTION="user supplied MAKE=$MAKE"
15216  if test "x$MAKE_CANDIDATE" != x; then
15217    { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15218$as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15219    MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15220    IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15221    if test "x$IS_GNU_MAKE" = x; then
15222      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15223$as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15224    else
15225      IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15226      if test "x$IS_MODERN_MAKE" = x; then
15227        { $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
15228$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;}
15229      else
15230        if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15231          if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15232            MAKE_EXPECTED_ENV='cygwin'
15233          elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15234            MAKE_EXPECTED_ENV='msys'
15235          else
15236            as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15237          fi
15238          MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15239          IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15240        else
15241          # Not relevant for non-Windows
15242          IS_MAKE_CORRECT_ENV=true
15243        fi
15244        if test "x$IS_MAKE_CORRECT_ENV" = x; then
15245          { $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
15246$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;}
15247        else
15248          FOUND_MAKE=$MAKE_CANDIDATE
15249
15250  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15251
15252  # First separate the path from the arguments. This will split at the first
15253  # space.
15254  complete="$FOUND_MAKE"
15255  path="${complete%% *}"
15256  tmp="$complete EOL"
15257  arguments="${tmp#* }"
15258
15259  # Input might be given as Windows format, start by converting to
15260  # unix format.
15261  new_path=`$CYGPATH -u "$path"`
15262
15263  # Now try to locate executable using which
15264  new_path=`$WHICH "$new_path" 2> /dev/null`
15265  # bat and cmd files are not always considered executable in cygwin causing which
15266  # to not find them
15267  if test "x$new_path" = x \
15268      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15269      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15270    new_path=`$CYGPATH -u "$path"`
15271  fi
15272  if test "x$new_path" = x; then
15273    # Oops. Which didn't find the executable.
15274    # The splitting of arguments from the executable at a space might have been incorrect,
15275    # since paths with space are more likely in Windows. Give it another try with the whole
15276    # argument.
15277    path="$complete"
15278    arguments="EOL"
15279    new_path=`$CYGPATH -u "$path"`
15280    new_path=`$WHICH "$new_path" 2> /dev/null`
15281    # bat and cmd files are not always considered executable in cygwin causing which
15282    # to not find them
15283    if test "x$new_path" = x \
15284        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15285        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15286      new_path=`$CYGPATH -u "$path"`
15287    fi
15288    if test "x$new_path" = x; then
15289      # It's still not found. Now this is an unrecoverable error.
15290      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15291$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15292      has_space=`$ECHO "$complete" | $GREP " "`
15293      if test "x$has_space" != x; then
15294        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15295$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15296      fi
15297      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15298    fi
15299  fi
15300
15301  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15302  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15303  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15304  # "foo.exe" is OK but "foo" is an error.
15305  #
15306  # This test is therefore slightly more accurate than "test -f" to check for file presence.
15307  # It is also a way to make sure we got the proper file name for the real test later on.
15308  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15309  if test "x$test_shortpath" = x; then
15310    # Short path failed, file does not exist as specified.
15311    # Try adding .exe or .cmd
15312    if test -f "${new_path}.exe"; then
15313      input_to_shortpath="${new_path}.exe"
15314    elif test -f "${new_path}.cmd"; then
15315      input_to_shortpath="${new_path}.cmd"
15316    else
15317      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15318$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15319      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15320$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15321      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15322    fi
15323  else
15324    input_to_shortpath="$new_path"
15325  fi
15326
15327  # Call helper function which possibly converts this using DOS-style short mode.
15328  # If so, the updated path is stored in $new_path.
15329  new_path="$input_to_shortpath"
15330
15331  input_path="$input_to_shortpath"
15332  # Check if we need to convert this using DOS-style short mode. If the path
15333  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15334  # take no chances and rewrite it.
15335  # Note: m4 eats our [], so we need to use [ and ] instead.
15336  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15337  if test "x$has_forbidden_chars" != x; then
15338    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15339    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15340    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15341    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15342      # Going to short mode and back again did indeed matter. Since short mode is
15343      # case insensitive, let's make it lowercase to improve readability.
15344      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15345      # Now convert it back to Unix-stile (cygpath)
15346      input_path=`$CYGPATH -u "$shortmode_path"`
15347      new_path="$input_path"
15348    fi
15349  fi
15350
15351  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15352  if test "x$test_cygdrive_prefix" = x; then
15353    # As a simple fix, exclude /usr/bin since it's not a real path.
15354    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15355      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15356      # a path prefixed by /cygdrive for fixpath to work.
15357      new_path="$CYGWIN_ROOT_PATH$input_path"
15358    fi
15359  fi
15360
15361  # remove trailing .exe if any
15362  new_path="${new_path/%.exe/}"
15363
15364  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15365
15366  # First separate the path from the arguments. This will split at the first
15367  # space.
15368  complete="$FOUND_MAKE"
15369  path="${complete%% *}"
15370  tmp="$complete EOL"
15371  arguments="${tmp#* }"
15372
15373  # Input might be given as Windows format, start by converting to
15374  # unix format.
15375  new_path="$path"
15376
15377  windows_path="$new_path"
15378  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15379    unix_path=`$CYGPATH -u "$windows_path"`
15380    new_path="$unix_path"
15381  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15382    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15383    new_path="$unix_path"
15384  fi
15385
15386
15387  # Now try to locate executable using which
15388  new_path=`$WHICH "$new_path" 2> /dev/null`
15389
15390  if test "x$new_path" = x; then
15391    # Oops. Which didn't find the executable.
15392    # The splitting of arguments from the executable at a space might have been incorrect,
15393    # since paths with space are more likely in Windows. Give it another try with the whole
15394    # argument.
15395    path="$complete"
15396    arguments="EOL"
15397    new_path="$path"
15398
15399  windows_path="$new_path"
15400  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15401    unix_path=`$CYGPATH -u "$windows_path"`
15402    new_path="$unix_path"
15403  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15404    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15405    new_path="$unix_path"
15406  fi
15407
15408
15409    new_path=`$WHICH "$new_path" 2> /dev/null`
15410
15411    if test "x$new_path" = x; then
15412      # It's still not found. Now this is an unrecoverable error.
15413      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15414$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15415      has_space=`$ECHO "$complete" | $GREP " "`
15416      if test "x$has_space" != x; then
15417        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15418$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15419      fi
15420      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15421    fi
15422  fi
15423
15424  # Now new_path has a complete unix path to the binary
15425  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15426    # Keep paths in /bin as-is, but remove trailing .exe if any
15427    new_path="${new_path/%.exe/}"
15428    # Do not save /bin paths to all_fixpath_prefixes!
15429  else
15430    # Not in mixed or Windows style, start by that.
15431    new_path=`cmd //c echo $new_path`
15432
15433  input_path="$new_path"
15434  # Check if we need to convert this using DOS-style short mode. If the path
15435  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15436  # take no chances and rewrite it.
15437  # Note: m4 eats our [], so we need to use [ and ] instead.
15438  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15439  if test "x$has_forbidden_chars" != x; then
15440    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15441    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15442  fi
15443
15444    # Output is in $new_path
15445
15446  windows_path="$new_path"
15447  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15448    unix_path=`$CYGPATH -u "$windows_path"`
15449    new_path="$unix_path"
15450  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15451    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15452    new_path="$unix_path"
15453  fi
15454
15455    # remove trailing .exe if any
15456    new_path="${new_path/%.exe/}"
15457
15458    # Save the first 10 bytes of this path to the storage, so fixpath can work.
15459    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15460  fi
15461
15462  else
15463    # We're on a posix platform. Hooray! :)
15464    # First separate the path from the arguments. This will split at the first
15465    # space.
15466    complete="$FOUND_MAKE"
15467    path="${complete%% *}"
15468    tmp="$complete EOL"
15469    arguments="${tmp#* }"
15470
15471    # Cannot rely on the command "which" here since it doesn't always work.
15472    is_absolute_path=`$ECHO "$path" | $GREP ^/`
15473    if test -z "$is_absolute_path"; then
15474      # Path to executable is not absolute. Find it.
15475      IFS_save="$IFS"
15476      IFS=:
15477      for p in $PATH; do
15478        if test -f "$p/$path" && test -x "$p/$path"; then
15479          new_path="$p/$path"
15480          break
15481        fi
15482      done
15483      IFS="$IFS_save"
15484    else
15485      # This is an absolute path, we can use it without further modifications.
15486      new_path="$path"
15487    fi
15488
15489    if test "x$new_path" = x; then
15490      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15491$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15492      has_space=`$ECHO "$complete" | $GREP " "`
15493      if test "x$has_space" != x; then
15494        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15495$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15496      fi
15497      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15498    fi
15499  fi
15500
15501  # Now join together the path and the arguments once again
15502  if test "x$arguments" != xEOL; then
15503    new_complete="$new_path ${arguments% *}"
15504  else
15505    new_complete="$new_path"
15506  fi
15507
15508  if test "x$complete" != "x$new_complete"; then
15509    FOUND_MAKE="$new_complete"
15510    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15511$as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15512  fi
15513
15514        fi
15515      fi
15516    fi
15517  fi
15518
15519    if test "x$FOUND_MAKE" = x; then
15520      as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15521    fi
15522  else
15523    # Try our hardest to locate a correct version of GNU make
15524    for ac_prog in gmake
15525do
15526  # Extract the first word of "$ac_prog", so it can be a program name with args.
15527set dummy $ac_prog; ac_word=$2
15528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15529$as_echo_n "checking for $ac_word... " >&6; }
15530if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15531  $as_echo_n "(cached) " >&6
15532else
15533  case $CHECK_GMAKE in
15534  [\\/]* | ?:[\\/]*)
15535  ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15536  ;;
15537  *)
15538  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15539for as_dir in $PATH
15540do
15541  IFS=$as_save_IFS
15542  test -z "$as_dir" && as_dir=.
15543    for ac_exec_ext in '' $ac_executable_extensions; do
15544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15545    ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15547    break 2
15548  fi
15549done
15550  done
15551IFS=$as_save_IFS
15552
15553  ;;
15554esac
15555fi
15556CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15557if test -n "$CHECK_GMAKE"; then
15558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15559$as_echo "$CHECK_GMAKE" >&6; }
15560else
15561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562$as_echo "no" >&6; }
15563fi
15564
15565
15566  test -n "$CHECK_GMAKE" && break
15567done
15568
15569
15570  MAKE_CANDIDATE=""$CHECK_GMAKE""
15571  DESCRIPTION="gmake in PATH"
15572  if test "x$MAKE_CANDIDATE" != x; then
15573    { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15574$as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15575    MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15576    IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15577    if test "x$IS_GNU_MAKE" = x; then
15578      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15579$as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15580    else
15581      IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15582      if test "x$IS_MODERN_MAKE" = x; then
15583        { $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
15584$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;}
15585      else
15586        if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15587          if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15588            MAKE_EXPECTED_ENV='cygwin'
15589          elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15590            MAKE_EXPECTED_ENV='msys'
15591          else
15592            as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15593          fi
15594          MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15595          IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15596        else
15597          # Not relevant for non-Windows
15598          IS_MAKE_CORRECT_ENV=true
15599        fi
15600        if test "x$IS_MAKE_CORRECT_ENV" = x; then
15601          { $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
15602$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;}
15603        else
15604          FOUND_MAKE=$MAKE_CANDIDATE
15605
15606  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15607
15608  # First separate the path from the arguments. This will split at the first
15609  # space.
15610  complete="$FOUND_MAKE"
15611  path="${complete%% *}"
15612  tmp="$complete EOL"
15613  arguments="${tmp#* }"
15614
15615  # Input might be given as Windows format, start by converting to
15616  # unix format.
15617  new_path=`$CYGPATH -u "$path"`
15618
15619  # Now try to locate executable using which
15620  new_path=`$WHICH "$new_path" 2> /dev/null`
15621  # bat and cmd files are not always considered executable in cygwin causing which
15622  # to not find them
15623  if test "x$new_path" = x \
15624      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15625      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15626    new_path=`$CYGPATH -u "$path"`
15627  fi
15628  if test "x$new_path" = x; then
15629    # Oops. Which didn't find the executable.
15630    # The splitting of arguments from the executable at a space might have been incorrect,
15631    # since paths with space are more likely in Windows. Give it another try with the whole
15632    # argument.
15633    path="$complete"
15634    arguments="EOL"
15635    new_path=`$CYGPATH -u "$path"`
15636    new_path=`$WHICH "$new_path" 2> /dev/null`
15637    # bat and cmd files are not always considered executable in cygwin causing which
15638    # to not find them
15639    if test "x$new_path" = x \
15640        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15641        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15642      new_path=`$CYGPATH -u "$path"`
15643    fi
15644    if test "x$new_path" = x; then
15645      # It's still not found. Now this is an unrecoverable error.
15646      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15647$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15648      has_space=`$ECHO "$complete" | $GREP " "`
15649      if test "x$has_space" != x; then
15650        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15651$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15652      fi
15653      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15654    fi
15655  fi
15656
15657  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15658  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15659  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15660  # "foo.exe" is OK but "foo" is an error.
15661  #
15662  # This test is therefore slightly more accurate than "test -f" to check for file presence.
15663  # It is also a way to make sure we got the proper file name for the real test later on.
15664  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15665  if test "x$test_shortpath" = x; then
15666    # Short path failed, file does not exist as specified.
15667    # Try adding .exe or .cmd
15668    if test -f "${new_path}.exe"; then
15669      input_to_shortpath="${new_path}.exe"
15670    elif test -f "${new_path}.cmd"; then
15671      input_to_shortpath="${new_path}.cmd"
15672    else
15673      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15674$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15675      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15676$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15677      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15678    fi
15679  else
15680    input_to_shortpath="$new_path"
15681  fi
15682
15683  # Call helper function which possibly converts this using DOS-style short mode.
15684  # If so, the updated path is stored in $new_path.
15685  new_path="$input_to_shortpath"
15686
15687  input_path="$input_to_shortpath"
15688  # Check if we need to convert this using DOS-style short mode. If the path
15689  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15690  # take no chances and rewrite it.
15691  # Note: m4 eats our [], so we need to use [ and ] instead.
15692  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15693  if test "x$has_forbidden_chars" != x; then
15694    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15695    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15696    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15697    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15698      # Going to short mode and back again did indeed matter. Since short mode is
15699      # case insensitive, let's make it lowercase to improve readability.
15700      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15701      # Now convert it back to Unix-stile (cygpath)
15702      input_path=`$CYGPATH -u "$shortmode_path"`
15703      new_path="$input_path"
15704    fi
15705  fi
15706
15707  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15708  if test "x$test_cygdrive_prefix" = x; then
15709    # As a simple fix, exclude /usr/bin since it's not a real path.
15710    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15711      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15712      # a path prefixed by /cygdrive for fixpath to work.
15713      new_path="$CYGWIN_ROOT_PATH$input_path"
15714    fi
15715  fi
15716
15717  # remove trailing .exe if any
15718  new_path="${new_path/%.exe/}"
15719
15720  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15721
15722  # First separate the path from the arguments. This will split at the first
15723  # space.
15724  complete="$FOUND_MAKE"
15725  path="${complete%% *}"
15726  tmp="$complete EOL"
15727  arguments="${tmp#* }"
15728
15729  # Input might be given as Windows format, start by converting to
15730  # unix format.
15731  new_path="$path"
15732
15733  windows_path="$new_path"
15734  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15735    unix_path=`$CYGPATH -u "$windows_path"`
15736    new_path="$unix_path"
15737  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15738    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15739    new_path="$unix_path"
15740  fi
15741
15742
15743  # Now try to locate executable using which
15744  new_path=`$WHICH "$new_path" 2> /dev/null`
15745
15746  if test "x$new_path" = x; then
15747    # Oops. Which didn't find the executable.
15748    # The splitting of arguments from the executable at a space might have been incorrect,
15749    # since paths with space are more likely in Windows. Give it another try with the whole
15750    # argument.
15751    path="$complete"
15752    arguments="EOL"
15753    new_path="$path"
15754
15755  windows_path="$new_path"
15756  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15757    unix_path=`$CYGPATH -u "$windows_path"`
15758    new_path="$unix_path"
15759  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15760    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15761    new_path="$unix_path"
15762  fi
15763
15764
15765    new_path=`$WHICH "$new_path" 2> /dev/null`
15766
15767    if test "x$new_path" = x; then
15768      # It's still not found. Now this is an unrecoverable error.
15769      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15770$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15771      has_space=`$ECHO "$complete" | $GREP " "`
15772      if test "x$has_space" != x; then
15773        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15774$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15775      fi
15776      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15777    fi
15778  fi
15779
15780  # Now new_path has a complete unix path to the binary
15781  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15782    # Keep paths in /bin as-is, but remove trailing .exe if any
15783    new_path="${new_path/%.exe/}"
15784    # Do not save /bin paths to all_fixpath_prefixes!
15785  else
15786    # Not in mixed or Windows style, start by that.
15787    new_path=`cmd //c echo $new_path`
15788
15789  input_path="$new_path"
15790  # Check if we need to convert this using DOS-style short mode. If the path
15791  # contains just simple characters, use it. Otherwise (spaces, weird characters),
15792  # take no chances and rewrite it.
15793  # Note: m4 eats our [], so we need to use [ and ] instead.
15794  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15795  if test "x$has_forbidden_chars" != x; then
15796    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15797    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15798  fi
15799
15800    # Output is in $new_path
15801
15802  windows_path="$new_path"
15803  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15804    unix_path=`$CYGPATH -u "$windows_path"`
15805    new_path="$unix_path"
15806  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15807    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15808    new_path="$unix_path"
15809  fi
15810
15811    # remove trailing .exe if any
15812    new_path="${new_path/%.exe/}"
15813
15814    # Save the first 10 bytes of this path to the storage, so fixpath can work.
15815    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15816  fi
15817
15818  else
15819    # We're on a posix platform. Hooray! :)
15820    # First separate the path from the arguments. This will split at the first
15821    # space.
15822    complete="$FOUND_MAKE"
15823    path="${complete%% *}"
15824    tmp="$complete EOL"
15825    arguments="${tmp#* }"
15826
15827    # Cannot rely on the command "which" here since it doesn't always work.
15828    is_absolute_path=`$ECHO "$path" | $GREP ^/`
15829    if test -z "$is_absolute_path"; then
15830      # Path to executable is not absolute. Find it.
15831      IFS_save="$IFS"
15832      IFS=:
15833      for p in $PATH; do
15834        if test -f "$p/$path" && test -x "$p/$path"; then
15835          new_path="$p/$path"
15836          break
15837        fi
15838      done
15839      IFS="$IFS_save"
15840    else
15841      # This is an absolute path, we can use it without further modifications.
15842      new_path="$path"
15843    fi
15844
15845    if test "x$new_path" = x; then
15846      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15847$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15848      has_space=`$ECHO "$complete" | $GREP " "`
15849      if test "x$has_space" != x; then
15850        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15851$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15852      fi
15853      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15854    fi
15855  fi
15856
15857  # Now join together the path and the arguments once again
15858  if test "x$arguments" != xEOL; then
15859    new_complete="$new_path ${arguments% *}"
15860  else
15861    new_complete="$new_path"
15862  fi
15863
15864  if test "x$complete" != "x$new_complete"; then
15865    FOUND_MAKE="$new_complete"
15866    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15867$as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15868  fi
15869
15870        fi
15871      fi
15872    fi
15873  fi
15874
15875
15876    if test "x$FOUND_MAKE" = x; then
15877      for ac_prog in make
15878do
15879  # Extract the first word of "$ac_prog", so it can be a program name with args.
15880set dummy $ac_prog; ac_word=$2
15881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882$as_echo_n "checking for $ac_word... " >&6; }
15883if ${ac_cv_path_CHECK_MAKE+:} false; then :
15884  $as_echo_n "(cached) " >&6
15885else
15886  case $CHECK_MAKE in
15887  [\\/]* | ?:[\\/]*)
15888  ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15889  ;;
15890  *)
15891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15892for as_dir in $PATH
15893do
15894  IFS=$as_save_IFS
15895  test -z "$as_dir" && as_dir=.
15896    for ac_exec_ext in '' $ac_executable_extensions; do
15897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15898    ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15900    break 2
15901  fi
15902done
15903  done
15904IFS=$as_save_IFS
15905
15906  ;;
15907esac
15908fi
15909CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15910if test -n "$CHECK_MAKE"; then
15911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15912$as_echo "$CHECK_MAKE" >&6; }
15913else
15914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915$as_echo "no" >&6; }
15916fi
15917
15918
15919  test -n "$CHECK_MAKE" && break
15920done
15921
15922
15923  MAKE_CANDIDATE=""$CHECK_MAKE""
15924  DESCRIPTION="make in PATH"
15925  if test "x$MAKE_CANDIDATE" != x; then
15926    { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15927$as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15928    MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15929    IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15930    if test "x$IS_GNU_MAKE" = x; then
15931      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15932$as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15933    else
15934      IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15935      if test "x$IS_MODERN_MAKE" = x; then
15936        { $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
15937$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;}
15938      else
15939        if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15940          if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15941            MAKE_EXPECTED_ENV='cygwin'
15942          elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15943            MAKE_EXPECTED_ENV='msys'
15944          else
15945            as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15946          fi
15947          MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15948          IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15949        else
15950          # Not relevant for non-Windows
15951          IS_MAKE_CORRECT_ENV=true
15952        fi
15953        if test "x$IS_MAKE_CORRECT_ENV" = x; then
15954          { $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
15955$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;}
15956        else
15957          FOUND_MAKE=$MAKE_CANDIDATE
15958
15959  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15960
15961  # First separate the path from the arguments. This will split at the first
15962  # space.
15963  complete="$FOUND_MAKE"
15964  path="${complete%% *}"
15965  tmp="$complete EOL"
15966  arguments="${tmp#* }"
15967
15968  # Input might be given as Windows format, start by converting to
15969  # unix format.
15970  new_path=`$CYGPATH -u "$path"`
15971
15972  # Now try to locate executable using which
15973  new_path=`$WHICH "$new_path" 2> /dev/null`
15974  # bat and cmd files are not always considered executable in cygwin causing which
15975  # to not find them
15976  if test "x$new_path" = x \
15977      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15978      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15979    new_path=`$CYGPATH -u "$path"`
15980  fi
15981  if test "x$new_path" = x; then
15982    # Oops. Which didn't find the executable.
15983    # The splitting of arguments from the executable at a space might have been incorrect,
15984    # since paths with space are more likely in Windows. Give it another try with the whole
15985    # argument.
15986    path="$complete"
15987    arguments="EOL"
15988    new_path=`$CYGPATH -u "$path"`
15989    new_path=`$WHICH "$new_path" 2> /dev/null`
15990    # bat and cmd files are not always considered executable in cygwin causing which
15991    # to not find them
15992    if test "x$new_path" = x \
15993        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15994        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15995      new_path=`$CYGPATH -u "$path"`
15996    fi
15997    if test "x$new_path" = x; then
15998      # It's still not found. Now this is an unrecoverable error.
15999      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16000$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16001      has_space=`$ECHO "$complete" | $GREP " "`
16002      if test "x$has_space" != x; then
16003        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16004$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16005      fi
16006      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16007    fi
16008  fi
16009
16010  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16011  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16012  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16013  # "foo.exe" is OK but "foo" is an error.
16014  #
16015  # This test is therefore slightly more accurate than "test -f" to check for file presence.
16016  # It is also a way to make sure we got the proper file name for the real test later on.
16017  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16018  if test "x$test_shortpath" = x; then
16019    # Short path failed, file does not exist as specified.
16020    # Try adding .exe or .cmd
16021    if test -f "${new_path}.exe"; then
16022      input_to_shortpath="${new_path}.exe"
16023    elif test -f "${new_path}.cmd"; then
16024      input_to_shortpath="${new_path}.cmd"
16025    else
16026      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16027$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16028      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16029$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16030      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16031    fi
16032  else
16033    input_to_shortpath="$new_path"
16034  fi
16035
16036  # Call helper function which possibly converts this using DOS-style short mode.
16037  # If so, the updated path is stored in $new_path.
16038  new_path="$input_to_shortpath"
16039
16040  input_path="$input_to_shortpath"
16041  # Check if we need to convert this using DOS-style short mode. If the path
16042  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16043  # take no chances and rewrite it.
16044  # Note: m4 eats our [], so we need to use [ and ] instead.
16045  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16046  if test "x$has_forbidden_chars" != x; then
16047    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16048    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16049    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16050    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16051      # Going to short mode and back again did indeed matter. Since short mode is
16052      # case insensitive, let's make it lowercase to improve readability.
16053      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16054      # Now convert it back to Unix-stile (cygpath)
16055      input_path=`$CYGPATH -u "$shortmode_path"`
16056      new_path="$input_path"
16057    fi
16058  fi
16059
16060  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16061  if test "x$test_cygdrive_prefix" = x; then
16062    # As a simple fix, exclude /usr/bin since it's not a real path.
16063    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16064      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16065      # a path prefixed by /cygdrive for fixpath to work.
16066      new_path="$CYGWIN_ROOT_PATH$input_path"
16067    fi
16068  fi
16069
16070  # remove trailing .exe if any
16071  new_path="${new_path/%.exe/}"
16072
16073  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16074
16075  # First separate the path from the arguments. This will split at the first
16076  # space.
16077  complete="$FOUND_MAKE"
16078  path="${complete%% *}"
16079  tmp="$complete EOL"
16080  arguments="${tmp#* }"
16081
16082  # Input might be given as Windows format, start by converting to
16083  # unix format.
16084  new_path="$path"
16085
16086  windows_path="$new_path"
16087  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16088    unix_path=`$CYGPATH -u "$windows_path"`
16089    new_path="$unix_path"
16090  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16091    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16092    new_path="$unix_path"
16093  fi
16094
16095
16096  # Now try to locate executable using which
16097  new_path=`$WHICH "$new_path" 2> /dev/null`
16098
16099  if test "x$new_path" = x; then
16100    # Oops. Which didn't find the executable.
16101    # The splitting of arguments from the executable at a space might have been incorrect,
16102    # since paths with space are more likely in Windows. Give it another try with the whole
16103    # argument.
16104    path="$complete"
16105    arguments="EOL"
16106    new_path="$path"
16107
16108  windows_path="$new_path"
16109  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16110    unix_path=`$CYGPATH -u "$windows_path"`
16111    new_path="$unix_path"
16112  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16113    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16114    new_path="$unix_path"
16115  fi
16116
16117
16118    new_path=`$WHICH "$new_path" 2> /dev/null`
16119
16120    if test "x$new_path" = x; then
16121      # It's still not found. Now this is an unrecoverable error.
16122      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16123$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16124      has_space=`$ECHO "$complete" | $GREP " "`
16125      if test "x$has_space" != x; then
16126        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16127$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16128      fi
16129      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16130    fi
16131  fi
16132
16133  # Now new_path has a complete unix path to the binary
16134  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16135    # Keep paths in /bin as-is, but remove trailing .exe if any
16136    new_path="${new_path/%.exe/}"
16137    # Do not save /bin paths to all_fixpath_prefixes!
16138  else
16139    # Not in mixed or Windows style, start by that.
16140    new_path=`cmd //c echo $new_path`
16141
16142  input_path="$new_path"
16143  # Check if we need to convert this using DOS-style short mode. If the path
16144  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16145  # take no chances and rewrite it.
16146  # Note: m4 eats our [], so we need to use [ and ] instead.
16147  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16148  if test "x$has_forbidden_chars" != x; then
16149    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16150    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16151  fi
16152
16153    # Output is in $new_path
16154
16155  windows_path="$new_path"
16156  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16157    unix_path=`$CYGPATH -u "$windows_path"`
16158    new_path="$unix_path"
16159  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16160    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16161    new_path="$unix_path"
16162  fi
16163
16164    # remove trailing .exe if any
16165    new_path="${new_path/%.exe/}"
16166
16167    # Save the first 10 bytes of this path to the storage, so fixpath can work.
16168    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16169  fi
16170
16171  else
16172    # We're on a posix platform. Hooray! :)
16173    # First separate the path from the arguments. This will split at the first
16174    # space.
16175    complete="$FOUND_MAKE"
16176    path="${complete%% *}"
16177    tmp="$complete EOL"
16178    arguments="${tmp#* }"
16179
16180    # Cannot rely on the command "which" here since it doesn't always work.
16181    is_absolute_path=`$ECHO "$path" | $GREP ^/`
16182    if test -z "$is_absolute_path"; then
16183      # Path to executable is not absolute. Find it.
16184      IFS_save="$IFS"
16185      IFS=:
16186      for p in $PATH; do
16187        if test -f "$p/$path" && test -x "$p/$path"; then
16188          new_path="$p/$path"
16189          break
16190        fi
16191      done
16192      IFS="$IFS_save"
16193    else
16194      # This is an absolute path, we can use it without further modifications.
16195      new_path="$path"
16196    fi
16197
16198    if test "x$new_path" = x; then
16199      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16200$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16201      has_space=`$ECHO "$complete" | $GREP " "`
16202      if test "x$has_space" != x; then
16203        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16204$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16205      fi
16206      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16207    fi
16208  fi
16209
16210  # Now join together the path and the arguments once again
16211  if test "x$arguments" != xEOL; then
16212    new_complete="$new_path ${arguments% *}"
16213  else
16214    new_complete="$new_path"
16215  fi
16216
16217  if test "x$complete" != "x$new_complete"; then
16218    FOUND_MAKE="$new_complete"
16219    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16220$as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16221  fi
16222
16223        fi
16224      fi
16225    fi
16226  fi
16227
16228    fi
16229
16230    if test "x$FOUND_MAKE" = x; then
16231      if test "x$TOOLCHAIN_PATH" != x; then
16232        # We have a toolchain path, check that as well before giving up.
16233        OLD_PATH=$PATH
16234        PATH=$TOOLCHAIN_PATH:$PATH
16235        for ac_prog in gmake
16236do
16237  # Extract the first word of "$ac_prog", so it can be a program name with args.
16238set dummy $ac_prog; ac_word=$2
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16240$as_echo_n "checking for $ac_word... " >&6; }
16241if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16242  $as_echo_n "(cached) " >&6
16243else
16244  case $CHECK_TOOLSDIR_GMAKE in
16245  [\\/]* | ?:[\\/]*)
16246  ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16247  ;;
16248  *)
16249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16250for as_dir in $PATH
16251do
16252  IFS=$as_save_IFS
16253  test -z "$as_dir" && as_dir=.
16254    for ac_exec_ext in '' $ac_executable_extensions; do
16255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16256    ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16258    break 2
16259  fi
16260done
16261  done
16262IFS=$as_save_IFS
16263
16264  ;;
16265esac
16266fi
16267CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16268if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16270$as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16271else
16272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16273$as_echo "no" >&6; }
16274fi
16275
16276
16277  test -n "$CHECK_TOOLSDIR_GMAKE" && break
16278done
16279
16280
16281  MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16282  DESCRIPTION="gmake in tools-dir"
16283  if test "x$MAKE_CANDIDATE" != x; then
16284    { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16285$as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16286    MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16287    IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16288    if test "x$IS_GNU_MAKE" = x; then
16289      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16290$as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16291    else
16292      IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16293      if test "x$IS_MODERN_MAKE" = x; then
16294        { $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
16295$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;}
16296      else
16297        if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16298          if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16299            MAKE_EXPECTED_ENV='cygwin'
16300          elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16301            MAKE_EXPECTED_ENV='msys'
16302          else
16303            as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16304          fi
16305          MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16306          IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16307        else
16308          # Not relevant for non-Windows
16309          IS_MAKE_CORRECT_ENV=true
16310        fi
16311        if test "x$IS_MAKE_CORRECT_ENV" = x; then
16312          { $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
16313$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;}
16314        else
16315          FOUND_MAKE=$MAKE_CANDIDATE
16316
16317  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16318
16319  # First separate the path from the arguments. This will split at the first
16320  # space.
16321  complete="$FOUND_MAKE"
16322  path="${complete%% *}"
16323  tmp="$complete EOL"
16324  arguments="${tmp#* }"
16325
16326  # Input might be given as Windows format, start by converting to
16327  # unix format.
16328  new_path=`$CYGPATH -u "$path"`
16329
16330  # Now try to locate executable using which
16331  new_path=`$WHICH "$new_path" 2> /dev/null`
16332  # bat and cmd files are not always considered executable in cygwin causing which
16333  # to not find them
16334  if test "x$new_path" = x \
16335      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16336      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16337    new_path=`$CYGPATH -u "$path"`
16338  fi
16339  if test "x$new_path" = x; then
16340    # Oops. Which didn't find the executable.
16341    # The splitting of arguments from the executable at a space might have been incorrect,
16342    # since paths with space are more likely in Windows. Give it another try with the whole
16343    # argument.
16344    path="$complete"
16345    arguments="EOL"
16346    new_path=`$CYGPATH -u "$path"`
16347    new_path=`$WHICH "$new_path" 2> /dev/null`
16348    # bat and cmd files are not always considered executable in cygwin causing which
16349    # to not find them
16350    if test "x$new_path" = x \
16351        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16352        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16353      new_path=`$CYGPATH -u "$path"`
16354    fi
16355    if test "x$new_path" = x; then
16356      # It's still not found. Now this is an unrecoverable error.
16357      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16358$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16359      has_space=`$ECHO "$complete" | $GREP " "`
16360      if test "x$has_space" != x; then
16361        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16362$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16363      fi
16364      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16365    fi
16366  fi
16367
16368  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16369  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16370  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16371  # "foo.exe" is OK but "foo" is an error.
16372  #
16373  # This test is therefore slightly more accurate than "test -f" to check for file presence.
16374  # It is also a way to make sure we got the proper file name for the real test later on.
16375  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16376  if test "x$test_shortpath" = x; then
16377    # Short path failed, file does not exist as specified.
16378    # Try adding .exe or .cmd
16379    if test -f "${new_path}.exe"; then
16380      input_to_shortpath="${new_path}.exe"
16381    elif test -f "${new_path}.cmd"; then
16382      input_to_shortpath="${new_path}.cmd"
16383    else
16384      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16385$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16386      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16387$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16388      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16389    fi
16390  else
16391    input_to_shortpath="$new_path"
16392  fi
16393
16394  # Call helper function which possibly converts this using DOS-style short mode.
16395  # If so, the updated path is stored in $new_path.
16396  new_path="$input_to_shortpath"
16397
16398  input_path="$input_to_shortpath"
16399  # Check if we need to convert this using DOS-style short mode. If the path
16400  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16401  # take no chances and rewrite it.
16402  # Note: m4 eats our [], so we need to use [ and ] instead.
16403  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16404  if test "x$has_forbidden_chars" != x; then
16405    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16406    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16407    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16408    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16409      # Going to short mode and back again did indeed matter. Since short mode is
16410      # case insensitive, let's make it lowercase to improve readability.
16411      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16412      # Now convert it back to Unix-stile (cygpath)
16413      input_path=`$CYGPATH -u "$shortmode_path"`
16414      new_path="$input_path"
16415    fi
16416  fi
16417
16418  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16419  if test "x$test_cygdrive_prefix" = x; then
16420    # As a simple fix, exclude /usr/bin since it's not a real path.
16421    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16422      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16423      # a path prefixed by /cygdrive for fixpath to work.
16424      new_path="$CYGWIN_ROOT_PATH$input_path"
16425    fi
16426  fi
16427
16428  # remove trailing .exe if any
16429  new_path="${new_path/%.exe/}"
16430
16431  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16432
16433  # First separate the path from the arguments. This will split at the first
16434  # space.
16435  complete="$FOUND_MAKE"
16436  path="${complete%% *}"
16437  tmp="$complete EOL"
16438  arguments="${tmp#* }"
16439
16440  # Input might be given as Windows format, start by converting to
16441  # unix format.
16442  new_path="$path"
16443
16444  windows_path="$new_path"
16445  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16446    unix_path=`$CYGPATH -u "$windows_path"`
16447    new_path="$unix_path"
16448  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16449    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16450    new_path="$unix_path"
16451  fi
16452
16453
16454  # Now try to locate executable using which
16455  new_path=`$WHICH "$new_path" 2> /dev/null`
16456
16457  if test "x$new_path" = x; then
16458    # Oops. Which didn't find the executable.
16459    # The splitting of arguments from the executable at a space might have been incorrect,
16460    # since paths with space are more likely in Windows. Give it another try with the whole
16461    # argument.
16462    path="$complete"
16463    arguments="EOL"
16464    new_path="$path"
16465
16466  windows_path="$new_path"
16467  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16468    unix_path=`$CYGPATH -u "$windows_path"`
16469    new_path="$unix_path"
16470  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16471    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16472    new_path="$unix_path"
16473  fi
16474
16475
16476    new_path=`$WHICH "$new_path" 2> /dev/null`
16477
16478    if test "x$new_path" = x; then
16479      # It's still not found. Now this is an unrecoverable error.
16480      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16481$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16482      has_space=`$ECHO "$complete" | $GREP " "`
16483      if test "x$has_space" != x; then
16484        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16485$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16486      fi
16487      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16488    fi
16489  fi
16490
16491  # Now new_path has a complete unix path to the binary
16492  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16493    # Keep paths in /bin as-is, but remove trailing .exe if any
16494    new_path="${new_path/%.exe/}"
16495    # Do not save /bin paths to all_fixpath_prefixes!
16496  else
16497    # Not in mixed or Windows style, start by that.
16498    new_path=`cmd //c echo $new_path`
16499
16500  input_path="$new_path"
16501  # Check if we need to convert this using DOS-style short mode. If the path
16502  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16503  # take no chances and rewrite it.
16504  # Note: m4 eats our [], so we need to use [ and ] instead.
16505  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16506  if test "x$has_forbidden_chars" != x; then
16507    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16508    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16509  fi
16510
16511    # Output is in $new_path
16512
16513  windows_path="$new_path"
16514  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16515    unix_path=`$CYGPATH -u "$windows_path"`
16516    new_path="$unix_path"
16517  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16518    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16519    new_path="$unix_path"
16520  fi
16521
16522    # remove trailing .exe if any
16523    new_path="${new_path/%.exe/}"
16524
16525    # Save the first 10 bytes of this path to the storage, so fixpath can work.
16526    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16527  fi
16528
16529  else
16530    # We're on a posix platform. Hooray! :)
16531    # First separate the path from the arguments. This will split at the first
16532    # space.
16533    complete="$FOUND_MAKE"
16534    path="${complete%% *}"
16535    tmp="$complete EOL"
16536    arguments="${tmp#* }"
16537
16538    # Cannot rely on the command "which" here since it doesn't always work.
16539    is_absolute_path=`$ECHO "$path" | $GREP ^/`
16540    if test -z "$is_absolute_path"; then
16541      # Path to executable is not absolute. Find it.
16542      IFS_save="$IFS"
16543      IFS=:
16544      for p in $PATH; do
16545        if test -f "$p/$path" && test -x "$p/$path"; then
16546          new_path="$p/$path"
16547          break
16548        fi
16549      done
16550      IFS="$IFS_save"
16551    else
16552      # This is an absolute path, we can use it without further modifications.
16553      new_path="$path"
16554    fi
16555
16556    if test "x$new_path" = x; then
16557      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16558$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16559      has_space=`$ECHO "$complete" | $GREP " "`
16560      if test "x$has_space" != x; then
16561        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16562$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16563      fi
16564      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16565    fi
16566  fi
16567
16568  # Now join together the path and the arguments once again
16569  if test "x$arguments" != xEOL; then
16570    new_complete="$new_path ${arguments% *}"
16571  else
16572    new_complete="$new_path"
16573  fi
16574
16575  if test "x$complete" != "x$new_complete"; then
16576    FOUND_MAKE="$new_complete"
16577    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16578$as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16579  fi
16580
16581        fi
16582      fi
16583    fi
16584  fi
16585
16586        if test "x$FOUND_MAKE" = x; then
16587          for ac_prog in make
16588do
16589  # Extract the first word of "$ac_prog", so it can be a program name with args.
16590set dummy $ac_prog; ac_word=$2
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16592$as_echo_n "checking for $ac_word... " >&6; }
16593if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16594  $as_echo_n "(cached) " >&6
16595else
16596  case $CHECK_TOOLSDIR_MAKE in
16597  [\\/]* | ?:[\\/]*)
16598  ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16599  ;;
16600  *)
16601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602for as_dir in $PATH
16603do
16604  IFS=$as_save_IFS
16605  test -z "$as_dir" && as_dir=.
16606    for ac_exec_ext in '' $ac_executable_extensions; do
16607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16608    ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16610    break 2
16611  fi
16612done
16613  done
16614IFS=$as_save_IFS
16615
16616  ;;
16617esac
16618fi
16619CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16620if test -n "$CHECK_TOOLSDIR_MAKE"; then
16621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16622$as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16623else
16624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16625$as_echo "no" >&6; }
16626fi
16627
16628
16629  test -n "$CHECK_TOOLSDIR_MAKE" && break
16630done
16631
16632
16633  MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16634  DESCRIPTION="make in tools-dir"
16635  if test "x$MAKE_CANDIDATE" != x; then
16636    { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16637$as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16638    MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16639    IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16640    if test "x$IS_GNU_MAKE" = x; then
16641      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16642$as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16643    else
16644      IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16645      if test "x$IS_MODERN_MAKE" = x; then
16646        { $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
16647$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;}
16648      else
16649        if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16650          if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16651            MAKE_EXPECTED_ENV='cygwin'
16652          elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16653            MAKE_EXPECTED_ENV='msys'
16654          else
16655            as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16656          fi
16657          MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16658          IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16659        else
16660          # Not relevant for non-Windows
16661          IS_MAKE_CORRECT_ENV=true
16662        fi
16663        if test "x$IS_MAKE_CORRECT_ENV" = x; then
16664          { $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
16665$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;}
16666        else
16667          FOUND_MAKE=$MAKE_CANDIDATE
16668
16669  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16670
16671  # First separate the path from the arguments. This will split at the first
16672  # space.
16673  complete="$FOUND_MAKE"
16674  path="${complete%% *}"
16675  tmp="$complete EOL"
16676  arguments="${tmp#* }"
16677
16678  # Input might be given as Windows format, start by converting to
16679  # unix format.
16680  new_path=`$CYGPATH -u "$path"`
16681
16682  # Now try to locate executable using which
16683  new_path=`$WHICH "$new_path" 2> /dev/null`
16684  # bat and cmd files are not always considered executable in cygwin causing which
16685  # to not find them
16686  if test "x$new_path" = x \
16687      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16688      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16689    new_path=`$CYGPATH -u "$path"`
16690  fi
16691  if test "x$new_path" = x; then
16692    # Oops. Which didn't find the executable.
16693    # The splitting of arguments from the executable at a space might have been incorrect,
16694    # since paths with space are more likely in Windows. Give it another try with the whole
16695    # argument.
16696    path="$complete"
16697    arguments="EOL"
16698    new_path=`$CYGPATH -u "$path"`
16699    new_path=`$WHICH "$new_path" 2> /dev/null`
16700    # bat and cmd files are not always considered executable in cygwin causing which
16701    # to not find them
16702    if test "x$new_path" = x \
16703        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16704        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16705      new_path=`$CYGPATH -u "$path"`
16706    fi
16707    if test "x$new_path" = x; then
16708      # It's still not found. Now this is an unrecoverable error.
16709      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16710$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16711      has_space=`$ECHO "$complete" | $GREP " "`
16712      if test "x$has_space" != x; then
16713        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16714$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16715      fi
16716      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16717    fi
16718  fi
16719
16720  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16721  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16722  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16723  # "foo.exe" is OK but "foo" is an error.
16724  #
16725  # This test is therefore slightly more accurate than "test -f" to check for file presence.
16726  # It is also a way to make sure we got the proper file name for the real test later on.
16727  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16728  if test "x$test_shortpath" = x; then
16729    # Short path failed, file does not exist as specified.
16730    # Try adding .exe or .cmd
16731    if test -f "${new_path}.exe"; then
16732      input_to_shortpath="${new_path}.exe"
16733    elif test -f "${new_path}.cmd"; then
16734      input_to_shortpath="${new_path}.cmd"
16735    else
16736      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16737$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16738      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16739$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16740      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16741    fi
16742  else
16743    input_to_shortpath="$new_path"
16744  fi
16745
16746  # Call helper function which possibly converts this using DOS-style short mode.
16747  # If so, the updated path is stored in $new_path.
16748  new_path="$input_to_shortpath"
16749
16750  input_path="$input_to_shortpath"
16751  # Check if we need to convert this using DOS-style short mode. If the path
16752  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16753  # take no chances and rewrite it.
16754  # Note: m4 eats our [], so we need to use [ and ] instead.
16755  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16756  if test "x$has_forbidden_chars" != x; then
16757    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16758    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16759    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16760    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16761      # Going to short mode and back again did indeed matter. Since short mode is
16762      # case insensitive, let's make it lowercase to improve readability.
16763      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16764      # Now convert it back to Unix-stile (cygpath)
16765      input_path=`$CYGPATH -u "$shortmode_path"`
16766      new_path="$input_path"
16767    fi
16768  fi
16769
16770  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16771  if test "x$test_cygdrive_prefix" = x; then
16772    # As a simple fix, exclude /usr/bin since it's not a real path.
16773    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16774      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16775      # a path prefixed by /cygdrive for fixpath to work.
16776      new_path="$CYGWIN_ROOT_PATH$input_path"
16777    fi
16778  fi
16779
16780  # remove trailing .exe if any
16781  new_path="${new_path/%.exe/}"
16782
16783  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16784
16785  # First separate the path from the arguments. This will split at the first
16786  # space.
16787  complete="$FOUND_MAKE"
16788  path="${complete%% *}"
16789  tmp="$complete EOL"
16790  arguments="${tmp#* }"
16791
16792  # Input might be given as Windows format, start by converting to
16793  # unix format.
16794  new_path="$path"
16795
16796  windows_path="$new_path"
16797  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16798    unix_path=`$CYGPATH -u "$windows_path"`
16799    new_path="$unix_path"
16800  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16801    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16802    new_path="$unix_path"
16803  fi
16804
16805
16806  # Now try to locate executable using which
16807  new_path=`$WHICH "$new_path" 2> /dev/null`
16808
16809  if test "x$new_path" = x; then
16810    # Oops. Which didn't find the executable.
16811    # The splitting of arguments from the executable at a space might have been incorrect,
16812    # since paths with space are more likely in Windows. Give it another try with the whole
16813    # argument.
16814    path="$complete"
16815    arguments="EOL"
16816    new_path="$path"
16817
16818  windows_path="$new_path"
16819  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16820    unix_path=`$CYGPATH -u "$windows_path"`
16821    new_path="$unix_path"
16822  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16823    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16824    new_path="$unix_path"
16825  fi
16826
16827
16828    new_path=`$WHICH "$new_path" 2> /dev/null`
16829
16830    if test "x$new_path" = x; then
16831      # It's still not found. Now this is an unrecoverable error.
16832      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16833$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16834      has_space=`$ECHO "$complete" | $GREP " "`
16835      if test "x$has_space" != x; then
16836        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16837$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16838      fi
16839      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16840    fi
16841  fi
16842
16843  # Now new_path has a complete unix path to the binary
16844  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16845    # Keep paths in /bin as-is, but remove trailing .exe if any
16846    new_path="${new_path/%.exe/}"
16847    # Do not save /bin paths to all_fixpath_prefixes!
16848  else
16849    # Not in mixed or Windows style, start by that.
16850    new_path=`cmd //c echo $new_path`
16851
16852  input_path="$new_path"
16853  # Check if we need to convert this using DOS-style short mode. If the path
16854  # contains just simple characters, use it. Otherwise (spaces, weird characters),
16855  # take no chances and rewrite it.
16856  # Note: m4 eats our [], so we need to use [ and ] instead.
16857  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16858  if test "x$has_forbidden_chars" != x; then
16859    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16860    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16861  fi
16862
16863    # Output is in $new_path
16864
16865  windows_path="$new_path"
16866  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16867    unix_path=`$CYGPATH -u "$windows_path"`
16868    new_path="$unix_path"
16869  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16870    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16871    new_path="$unix_path"
16872  fi
16873
16874    # remove trailing .exe if any
16875    new_path="${new_path/%.exe/}"
16876
16877    # Save the first 10 bytes of this path to the storage, so fixpath can work.
16878    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16879  fi
16880
16881  else
16882    # We're on a posix platform. Hooray! :)
16883    # First separate the path from the arguments. This will split at the first
16884    # space.
16885    complete="$FOUND_MAKE"
16886    path="${complete%% *}"
16887    tmp="$complete EOL"
16888    arguments="${tmp#* }"
16889
16890    # Cannot rely on the command "which" here since it doesn't always work.
16891    is_absolute_path=`$ECHO "$path" | $GREP ^/`
16892    if test -z "$is_absolute_path"; then
16893      # Path to executable is not absolute. Find it.
16894      IFS_save="$IFS"
16895      IFS=:
16896      for p in $PATH; do
16897        if test -f "$p/$path" && test -x "$p/$path"; then
16898          new_path="$p/$path"
16899          break
16900        fi
16901      done
16902      IFS="$IFS_save"
16903    else
16904      # This is an absolute path, we can use it without further modifications.
16905      new_path="$path"
16906    fi
16907
16908    if test "x$new_path" = x; then
16909      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16910$as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16911      has_space=`$ECHO "$complete" | $GREP " "`
16912      if test "x$has_space" != x; then
16913        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16914$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16915      fi
16916      as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16917    fi
16918  fi
16919
16920  # Now join together the path and the arguments once again
16921  if test "x$arguments" != xEOL; then
16922    new_complete="$new_path ${arguments% *}"
16923  else
16924    new_complete="$new_path"
16925  fi
16926
16927  if test "x$complete" != "x$new_complete"; then
16928    FOUND_MAKE="$new_complete"
16929    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16930$as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16931  fi
16932
16933        fi
16934      fi
16935    fi
16936  fi
16937
16938        fi
16939        PATH=$OLD_PATH
16940      fi
16941    fi
16942
16943    if test "x$FOUND_MAKE" = x; then
16944      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
16945    fi
16946  fi
16947
16948  MAKE=$FOUND_MAKE
16949
16950  { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16951$as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16952
16953
16954
16955  # Test if find supports -delete
16956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16957$as_echo_n "checking if find supports -delete... " >&6; }
16958  FIND_DELETE="-delete"
16959
16960  DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16961
16962  echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16963
16964  TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16965  if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16966    # No, it does not.
16967    rm $DELETEDIR/TestIfFindSupportsDelete
16968    FIND_DELETE="-exec rm \{\} \+"
16969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970$as_echo "no" >&6; }
16971  else
16972    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16973$as_echo "yes" >&6; }
16974  fi
16975  rmdir $DELETEDIR
16976
16977
16978
16979  # These tools might not be installed by default,
16980  # need hint on how to install them.
16981
16982
16983
16984  # Publish this variable in the help.
16985
16986
16987  if test "x$UNZIP" = x; then
16988    # The variable is not set by user, try to locate tool using the code snippet
16989    for ac_prog in unzip
16990do
16991  # Extract the first word of "$ac_prog", so it can be a program name with args.
16992set dummy $ac_prog; ac_word=$2
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16994$as_echo_n "checking for $ac_word... " >&6; }
16995if ${ac_cv_path_UNZIP+:} false; then :
16996  $as_echo_n "(cached) " >&6
16997else
16998  case $UNZIP in
16999  [\\/]* | ?:[\\/]*)
17000  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17001  ;;
17002  *)
17003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004for as_dir in $PATH
17005do
17006  IFS=$as_save_IFS
17007  test -z "$as_dir" && as_dir=.
17008    for ac_exec_ext in '' $ac_executable_extensions; do
17009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17010    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17012    break 2
17013  fi
17014done
17015  done
17016IFS=$as_save_IFS
17017
17018  ;;
17019esac
17020fi
17021UNZIP=$ac_cv_path_UNZIP
17022if test -n "$UNZIP"; then
17023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17024$as_echo "$UNZIP" >&6; }
17025else
17026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17027$as_echo "no" >&6; }
17028fi
17029
17030
17031  test -n "$UNZIP" && break
17032done
17033
17034  else
17035    # The variable is set, but is it from the command line or the environment?
17036
17037    # Try to remove the string !UNZIP! from our list.
17038    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17039    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17040      # If it failed, the variable was not from the command line. Ignore it,
17041      # but warn the user (except for BASH, which is always set by the calling BASH).
17042      if test "xUNZIP" != xBASH; then
17043        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17044$as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17045      fi
17046      # Try to locate tool using the code snippet
17047      for ac_prog in unzip
17048do
17049  # Extract the first word of "$ac_prog", so it can be a program name with args.
17050set dummy $ac_prog; ac_word=$2
17051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17052$as_echo_n "checking for $ac_word... " >&6; }
17053if ${ac_cv_path_UNZIP+:} false; then :
17054  $as_echo_n "(cached) " >&6
17055else
17056  case $UNZIP in
17057  [\\/]* | ?:[\\/]*)
17058  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17059  ;;
17060  *)
17061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17062for as_dir in $PATH
17063do
17064  IFS=$as_save_IFS
17065  test -z "$as_dir" && as_dir=.
17066    for ac_exec_ext in '' $ac_executable_extensions; do
17067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17068    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17070    break 2
17071  fi
17072done
17073  done
17074IFS=$as_save_IFS
17075
17076  ;;
17077esac
17078fi
17079UNZIP=$ac_cv_path_UNZIP
17080if test -n "$UNZIP"; then
17081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17082$as_echo "$UNZIP" >&6; }
17083else
17084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085$as_echo "no" >&6; }
17086fi
17087
17088
17089  test -n "$UNZIP" && break
17090done
17091
17092    else
17093      # If it succeeded, then it was overridden by the user. We will use it
17094      # for the tool.
17095
17096      # First remove it from the list of overridden variables, so we can test
17097      # for unknown variables in the end.
17098      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17099
17100      # Check if the provided tool contains a complete path.
17101      tool_specified="$UNZIP"
17102      tool_basename="${tool_specified##*/}"
17103      if test "x$tool_basename" = "x$tool_specified"; then
17104        # A command without a complete path is provided, search $PATH.
17105        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17106$as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17107        # Extract the first word of "$tool_basename", so it can be a program name with args.
17108set dummy $tool_basename; ac_word=$2
17109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17110$as_echo_n "checking for $ac_word... " >&6; }
17111if ${ac_cv_path_UNZIP+:} false; then :
17112  $as_echo_n "(cached) " >&6
17113else
17114  case $UNZIP in
17115  [\\/]* | ?:[\\/]*)
17116  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17117  ;;
17118  *)
17119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120for as_dir in $PATH
17121do
17122  IFS=$as_save_IFS
17123  test -z "$as_dir" && as_dir=.
17124    for ac_exec_ext in '' $ac_executable_extensions; do
17125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17128    break 2
17129  fi
17130done
17131  done
17132IFS=$as_save_IFS
17133
17134  ;;
17135esac
17136fi
17137UNZIP=$ac_cv_path_UNZIP
17138if test -n "$UNZIP"; then
17139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17140$as_echo "$UNZIP" >&6; }
17141else
17142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17143$as_echo "no" >&6; }
17144fi
17145
17146
17147        if test "x$UNZIP" = x; then
17148          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17149        fi
17150      else
17151        # Otherwise we believe it is a complete path. Use it as it is.
17152        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17153$as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17154        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17155$as_echo_n "checking for UNZIP... " >&6; }
17156        if test ! -x "$tool_specified"; then
17157          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17158$as_echo "not found" >&6; }
17159          as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17160        fi
17161        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17162$as_echo "$tool_specified" >&6; }
17163      fi
17164    fi
17165  fi
17166
17167
17168
17169  if test "x$UNZIP" = x; then
17170    as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17171  fi
17172
17173
17174
17175
17176
17177  # Publish this variable in the help.
17178
17179
17180  if test "x$ZIP" = x; then
17181    # The variable is not set by user, try to locate tool using the code snippet
17182    for ac_prog in zip
17183do
17184  # Extract the first word of "$ac_prog", so it can be a program name with args.
17185set dummy $ac_prog; ac_word=$2
17186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17187$as_echo_n "checking for $ac_word... " >&6; }
17188if ${ac_cv_path_ZIP+:} false; then :
17189  $as_echo_n "(cached) " >&6
17190else
17191  case $ZIP in
17192  [\\/]* | ?:[\\/]*)
17193  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17194  ;;
17195  *)
17196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17197for as_dir in $PATH
17198do
17199  IFS=$as_save_IFS
17200  test -z "$as_dir" && as_dir=.
17201    for ac_exec_ext in '' $ac_executable_extensions; do
17202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17203    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17205    break 2
17206  fi
17207done
17208  done
17209IFS=$as_save_IFS
17210
17211  ;;
17212esac
17213fi
17214ZIP=$ac_cv_path_ZIP
17215if test -n "$ZIP"; then
17216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17217$as_echo "$ZIP" >&6; }
17218else
17219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17220$as_echo "no" >&6; }
17221fi
17222
17223
17224  test -n "$ZIP" && break
17225done
17226
17227  else
17228    # The variable is set, but is it from the command line or the environment?
17229
17230    # Try to remove the string !ZIP! from our list.
17231    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17232    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17233      # If it failed, the variable was not from the command line. Ignore it,
17234      # but warn the user (except for BASH, which is always set by the calling BASH).
17235      if test "xZIP" != xBASH; then
17236        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17237$as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17238      fi
17239      # Try to locate tool using the code snippet
17240      for ac_prog in zip
17241do
17242  # Extract the first word of "$ac_prog", so it can be a program name with args.
17243set dummy $ac_prog; ac_word=$2
17244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17245$as_echo_n "checking for $ac_word... " >&6; }
17246if ${ac_cv_path_ZIP+:} false; then :
17247  $as_echo_n "(cached) " >&6
17248else
17249  case $ZIP in
17250  [\\/]* | ?:[\\/]*)
17251  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17252  ;;
17253  *)
17254  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255for as_dir in $PATH
17256do
17257  IFS=$as_save_IFS
17258  test -z "$as_dir" && as_dir=.
17259    for ac_exec_ext in '' $ac_executable_extensions; do
17260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17261    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17263    break 2
17264  fi
17265done
17266  done
17267IFS=$as_save_IFS
17268
17269  ;;
17270esac
17271fi
17272ZIP=$ac_cv_path_ZIP
17273if test -n "$ZIP"; then
17274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17275$as_echo "$ZIP" >&6; }
17276else
17277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278$as_echo "no" >&6; }
17279fi
17280
17281
17282  test -n "$ZIP" && break
17283done
17284
17285    else
17286      # If it succeeded, then it was overridden by the user. We will use it
17287      # for the tool.
17288
17289      # First remove it from the list of overridden variables, so we can test
17290      # for unknown variables in the end.
17291      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17292
17293      # Check if the provided tool contains a complete path.
17294      tool_specified="$ZIP"
17295      tool_basename="${tool_specified##*/}"
17296      if test "x$tool_basename" = "x$tool_specified"; then
17297        # A command without a complete path is provided, search $PATH.
17298        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17299$as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17300        # Extract the first word of "$tool_basename", so it can be a program name with args.
17301set dummy $tool_basename; ac_word=$2
17302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17303$as_echo_n "checking for $ac_word... " >&6; }
17304if ${ac_cv_path_ZIP+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  case $ZIP in
17308  [\\/]* | ?:[\\/]*)
17309  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17310  ;;
17311  *)
17312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17313for as_dir in $PATH
17314do
17315  IFS=$as_save_IFS
17316  test -z "$as_dir" && as_dir=.
17317    for ac_exec_ext in '' $ac_executable_extensions; do
17318  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17319    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17321    break 2
17322  fi
17323done
17324  done
17325IFS=$as_save_IFS
17326
17327  ;;
17328esac
17329fi
17330ZIP=$ac_cv_path_ZIP
17331if test -n "$ZIP"; then
17332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17333$as_echo "$ZIP" >&6; }
17334else
17335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17336$as_echo "no" >&6; }
17337fi
17338
17339
17340        if test "x$ZIP" = x; then
17341          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17342        fi
17343      else
17344        # Otherwise we believe it is a complete path. Use it as it is.
17345        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17346$as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17348$as_echo_n "checking for ZIP... " >&6; }
17349        if test ! -x "$tool_specified"; then
17350          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17351$as_echo "not found" >&6; }
17352          as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17353        fi
17354        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17355$as_echo "$tool_specified" >&6; }
17356      fi
17357    fi
17358  fi
17359
17360
17361
17362  if test "x$ZIP" = x; then
17363    as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17364  fi
17365
17366
17367
17368  # Non-required basic tools
17369
17370
17371
17372  # Publish this variable in the help.
17373
17374
17375  if test "x$LDD" = x; then
17376    # The variable is not set by user, try to locate tool using the code snippet
17377    for ac_prog in ldd
17378do
17379  # Extract the first word of "$ac_prog", so it can be a program name with args.
17380set dummy $ac_prog; ac_word=$2
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17382$as_echo_n "checking for $ac_word... " >&6; }
17383if ${ac_cv_path_LDD+:} false; then :
17384  $as_echo_n "(cached) " >&6
17385else
17386  case $LDD in
17387  [\\/]* | ?:[\\/]*)
17388  ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17389  ;;
17390  *)
17391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17392for as_dir in $PATH
17393do
17394  IFS=$as_save_IFS
17395  test -z "$as_dir" && as_dir=.
17396    for ac_exec_ext in '' $ac_executable_extensions; do
17397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17398    ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17400    break 2
17401  fi
17402done
17403  done
17404IFS=$as_save_IFS
17405
17406  ;;
17407esac
17408fi
17409LDD=$ac_cv_path_LDD
17410if test -n "$LDD"; then
17411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17412$as_echo "$LDD" >&6; }
17413else
17414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17415$as_echo "no" >&6; }
17416fi
17417
17418
17419  test -n "$LDD" && break
17420done
17421
17422  else
17423    # The variable is set, but is it from the command line or the environment?
17424
17425    # Try to remove the string !LDD! from our list.
17426    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17427    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17428      # If it failed, the variable was not from the command line. Ignore it,
17429      # but warn the user (except for BASH, which is always set by the calling BASH).
17430      if test "xLDD" != xBASH; then
17431        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17432$as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17433      fi
17434      # Try to locate tool using the code snippet
17435      for ac_prog in ldd
17436do
17437  # Extract the first word of "$ac_prog", so it can be a program name with args.
17438set dummy $ac_prog; ac_word=$2
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440$as_echo_n "checking for $ac_word... " >&6; }
17441if ${ac_cv_path_LDD+:} false; then :
17442  $as_echo_n "(cached) " >&6
17443else
17444  case $LDD in
17445  [\\/]* | ?:[\\/]*)
17446  ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17447  ;;
17448  *)
17449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450for as_dir in $PATH
17451do
17452  IFS=$as_save_IFS
17453  test -z "$as_dir" && as_dir=.
17454    for ac_exec_ext in '' $ac_executable_extensions; do
17455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17456    ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458    break 2
17459  fi
17460done
17461  done
17462IFS=$as_save_IFS
17463
17464  ;;
17465esac
17466fi
17467LDD=$ac_cv_path_LDD
17468if test -n "$LDD"; then
17469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17470$as_echo "$LDD" >&6; }
17471else
17472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473$as_echo "no" >&6; }
17474fi
17475
17476
17477  test -n "$LDD" && break
17478done
17479
17480    else
17481      # If it succeeded, then it was overridden by the user. We will use it
17482      # for the tool.
17483
17484      # First remove it from the list of overridden variables, so we can test
17485      # for unknown variables in the end.
17486      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17487
17488      # Check if the provided tool contains a complete path.
17489      tool_specified="$LDD"
17490      tool_basename="${tool_specified##*/}"
17491      if test "x$tool_basename" = "x$tool_specified"; then
17492        # A command without a complete path is provided, search $PATH.
17493        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17494$as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17495        # Extract the first word of "$tool_basename", so it can be a program name with args.
17496set dummy $tool_basename; ac_word=$2
17497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17498$as_echo_n "checking for $ac_word... " >&6; }
17499if ${ac_cv_path_LDD+:} false; then :
17500  $as_echo_n "(cached) " >&6
17501else
17502  case $LDD in
17503  [\\/]* | ?:[\\/]*)
17504  ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17505  ;;
17506  *)
17507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508for as_dir in $PATH
17509do
17510  IFS=$as_save_IFS
17511  test -z "$as_dir" && as_dir=.
17512    for ac_exec_ext in '' $ac_executable_extensions; do
17513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514    ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17516    break 2
17517  fi
17518done
17519  done
17520IFS=$as_save_IFS
17521
17522  ;;
17523esac
17524fi
17525LDD=$ac_cv_path_LDD
17526if test -n "$LDD"; then
17527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17528$as_echo "$LDD" >&6; }
17529else
17530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531$as_echo "no" >&6; }
17532fi
17533
17534
17535        if test "x$LDD" = x; then
17536          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17537        fi
17538      else
17539        # Otherwise we believe it is a complete path. Use it as it is.
17540        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17541$as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17542        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17543$as_echo_n "checking for LDD... " >&6; }
17544        if test ! -x "$tool_specified"; then
17545          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17546$as_echo "not found" >&6; }
17547          as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17548        fi
17549        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17550$as_echo "$tool_specified" >&6; }
17551      fi
17552    fi
17553  fi
17554
17555
17556  if test "x$LDD" = "x"; then
17557    # List shared lib dependencies is used for
17558    # debug output and checking for forbidden dependencies.
17559    # We can build without it.
17560    LDD="true"
17561  fi
17562
17563
17564  # Publish this variable in the help.
17565
17566
17567  if test "x$OTOOL" = x; then
17568    # The variable is not set by user, try to locate tool using the code snippet
17569    for ac_prog in otool
17570do
17571  # Extract the first word of "$ac_prog", so it can be a program name with args.
17572set dummy $ac_prog; ac_word=$2
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17574$as_echo_n "checking for $ac_word... " >&6; }
17575if ${ac_cv_path_OTOOL+:} false; then :
17576  $as_echo_n "(cached) " >&6
17577else
17578  case $OTOOL in
17579  [\\/]* | ?:[\\/]*)
17580  ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17581  ;;
17582  *)
17583  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584for as_dir in $PATH
17585do
17586  IFS=$as_save_IFS
17587  test -z "$as_dir" && as_dir=.
17588    for ac_exec_ext in '' $ac_executable_extensions; do
17589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17590    ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592    break 2
17593  fi
17594done
17595  done
17596IFS=$as_save_IFS
17597
17598  ;;
17599esac
17600fi
17601OTOOL=$ac_cv_path_OTOOL
17602if test -n "$OTOOL"; then
17603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17604$as_echo "$OTOOL" >&6; }
17605else
17606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17607$as_echo "no" >&6; }
17608fi
17609
17610
17611  test -n "$OTOOL" && break
17612done
17613
17614  else
17615    # The variable is set, but is it from the command line or the environment?
17616
17617    # Try to remove the string !OTOOL! from our list.
17618    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17619    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17620      # If it failed, the variable was not from the command line. Ignore it,
17621      # but warn the user (except for BASH, which is always set by the calling BASH).
17622      if test "xOTOOL" != xBASH; then
17623        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17624$as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17625      fi
17626      # Try to locate tool using the code snippet
17627      for ac_prog in otool
17628do
17629  # Extract the first word of "$ac_prog", so it can be a program name with args.
17630set dummy $ac_prog; ac_word=$2
17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17632$as_echo_n "checking for $ac_word... " >&6; }
17633if ${ac_cv_path_OTOOL+:} false; then :
17634  $as_echo_n "(cached) " >&6
17635else
17636  case $OTOOL in
17637  [\\/]* | ?:[\\/]*)
17638  ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17639  ;;
17640  *)
17641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17642for as_dir in $PATH
17643do
17644  IFS=$as_save_IFS
17645  test -z "$as_dir" && as_dir=.
17646    for ac_exec_ext in '' $ac_executable_extensions; do
17647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17648    ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17650    break 2
17651  fi
17652done
17653  done
17654IFS=$as_save_IFS
17655
17656  ;;
17657esac
17658fi
17659OTOOL=$ac_cv_path_OTOOL
17660if test -n "$OTOOL"; then
17661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17662$as_echo "$OTOOL" >&6; }
17663else
17664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665$as_echo "no" >&6; }
17666fi
17667
17668
17669  test -n "$OTOOL" && break
17670done
17671
17672    else
17673      # If it succeeded, then it was overridden by the user. We will use it
17674      # for the tool.
17675
17676      # First remove it from the list of overridden variables, so we can test
17677      # for unknown variables in the end.
17678      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17679
17680      # Check if the provided tool contains a complete path.
17681      tool_specified="$OTOOL"
17682      tool_basename="${tool_specified##*/}"
17683      if test "x$tool_basename" = "x$tool_specified"; then
17684        # A command without a complete path is provided, search $PATH.
17685        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17686$as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17687        # Extract the first word of "$tool_basename", so it can be a program name with args.
17688set dummy $tool_basename; ac_word=$2
17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17690$as_echo_n "checking for $ac_word... " >&6; }
17691if ${ac_cv_path_OTOOL+:} false; then :
17692  $as_echo_n "(cached) " >&6
17693else
17694  case $OTOOL in
17695  [\\/]* | ?:[\\/]*)
17696  ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17697  ;;
17698  *)
17699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17700for as_dir in $PATH
17701do
17702  IFS=$as_save_IFS
17703  test -z "$as_dir" && as_dir=.
17704    for ac_exec_ext in '' $ac_executable_extensions; do
17705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17706    ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17708    break 2
17709  fi
17710done
17711  done
17712IFS=$as_save_IFS
17713
17714  ;;
17715esac
17716fi
17717OTOOL=$ac_cv_path_OTOOL
17718if test -n "$OTOOL"; then
17719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17720$as_echo "$OTOOL" >&6; }
17721else
17722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723$as_echo "no" >&6; }
17724fi
17725
17726
17727        if test "x$OTOOL" = x; then
17728          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17729        fi
17730      else
17731        # Otherwise we believe it is a complete path. Use it as it is.
17732        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17733$as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17734        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17735$as_echo_n "checking for OTOOL... " >&6; }
17736        if test ! -x "$tool_specified"; then
17737          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17738$as_echo "not found" >&6; }
17739          as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17740        fi
17741        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17742$as_echo "$tool_specified" >&6; }
17743      fi
17744    fi
17745  fi
17746
17747
17748  if test "x$OTOOL" = "x"; then
17749    OTOOL="true"
17750  fi
17751
17752
17753  # Publish this variable in the help.
17754
17755
17756  if test "x$READELF" = x; then
17757    # The variable is not set by user, try to locate tool using the code snippet
17758    for ac_prog in greadelf readelf
17759do
17760  # Extract the first word of "$ac_prog", so it can be a program name with args.
17761set dummy $ac_prog; ac_word=$2
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17763$as_echo_n "checking for $ac_word... " >&6; }
17764if ${ac_cv_path_READELF+:} false; then :
17765  $as_echo_n "(cached) " >&6
17766else
17767  case $READELF in
17768  [\\/]* | ?:[\\/]*)
17769  ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17770  ;;
17771  *)
17772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17773for as_dir in $PATH
17774do
17775  IFS=$as_save_IFS
17776  test -z "$as_dir" && as_dir=.
17777    for ac_exec_ext in '' $ac_executable_extensions; do
17778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17779    ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17781    break 2
17782  fi
17783done
17784  done
17785IFS=$as_save_IFS
17786
17787  ;;
17788esac
17789fi
17790READELF=$ac_cv_path_READELF
17791if test -n "$READELF"; then
17792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17793$as_echo "$READELF" >&6; }
17794else
17795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796$as_echo "no" >&6; }
17797fi
17798
17799
17800  test -n "$READELF" && break
17801done
17802
17803  else
17804    # The variable is set, but is it from the command line or the environment?
17805
17806    # Try to remove the string !READELF! from our list.
17807    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17808    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17809      # If it failed, the variable was not from the command line. Ignore it,
17810      # but warn the user (except for BASH, which is always set by the calling BASH).
17811      if test "xREADELF" != xBASH; then
17812        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17813$as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17814      fi
17815      # Try to locate tool using the code snippet
17816      for ac_prog in greadelf readelf
17817do
17818  # Extract the first word of "$ac_prog", so it can be a program name with args.
17819set dummy $ac_prog; ac_word=$2
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17821$as_echo_n "checking for $ac_word... " >&6; }
17822if ${ac_cv_path_READELF+:} false; then :
17823  $as_echo_n "(cached) " >&6
17824else
17825  case $READELF in
17826  [\\/]* | ?:[\\/]*)
17827  ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17828  ;;
17829  *)
17830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17831for as_dir in $PATH
17832do
17833  IFS=$as_save_IFS
17834  test -z "$as_dir" && as_dir=.
17835    for ac_exec_ext in '' $ac_executable_extensions; do
17836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17837    ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17839    break 2
17840  fi
17841done
17842  done
17843IFS=$as_save_IFS
17844
17845  ;;
17846esac
17847fi
17848READELF=$ac_cv_path_READELF
17849if test -n "$READELF"; then
17850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17851$as_echo "$READELF" >&6; }
17852else
17853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854$as_echo "no" >&6; }
17855fi
17856
17857
17858  test -n "$READELF" && break
17859done
17860
17861    else
17862      # If it succeeded, then it was overridden by the user. We will use it
17863      # for the tool.
17864
17865      # First remove it from the list of overridden variables, so we can test
17866      # for unknown variables in the end.
17867      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17868
17869      # Check if the provided tool contains a complete path.
17870      tool_specified="$READELF"
17871      tool_basename="${tool_specified##*/}"
17872      if test "x$tool_basename" = "x$tool_specified"; then
17873        # A command without a complete path is provided, search $PATH.
17874        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17875$as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17876        # Extract the first word of "$tool_basename", so it can be a program name with args.
17877set dummy $tool_basename; ac_word=$2
17878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17879$as_echo_n "checking for $ac_word... " >&6; }
17880if ${ac_cv_path_READELF+:} false; then :
17881  $as_echo_n "(cached) " >&6
17882else
17883  case $READELF in
17884  [\\/]* | ?:[\\/]*)
17885  ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17886  ;;
17887  *)
17888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889for as_dir in $PATH
17890do
17891  IFS=$as_save_IFS
17892  test -z "$as_dir" && as_dir=.
17893    for ac_exec_ext in '' $ac_executable_extensions; do
17894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895    ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17897    break 2
17898  fi
17899done
17900  done
17901IFS=$as_save_IFS
17902
17903  ;;
17904esac
17905fi
17906READELF=$ac_cv_path_READELF
17907if test -n "$READELF"; then
17908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17909$as_echo "$READELF" >&6; }
17910else
17911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912$as_echo "no" >&6; }
17913fi
17914
17915
17916        if test "x$READELF" = x; then
17917          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17918        fi
17919      else
17920        # Otherwise we believe it is a complete path. Use it as it is.
17921        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17922$as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17923        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17924$as_echo_n "checking for READELF... " >&6; }
17925        if test ! -x "$tool_specified"; then
17926          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17927$as_echo "not found" >&6; }
17928          as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17929        fi
17930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17931$as_echo "$tool_specified" >&6; }
17932      fi
17933    fi
17934  fi
17935
17936
17937
17938
17939  # Publish this variable in the help.
17940
17941
17942  if test "x$HG" = x; then
17943    # The variable is not set by user, try to locate tool using the code snippet
17944    for ac_prog in hg
17945do
17946  # Extract the first word of "$ac_prog", so it can be a program name with args.
17947set dummy $ac_prog; ac_word=$2
17948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17949$as_echo_n "checking for $ac_word... " >&6; }
17950if ${ac_cv_path_HG+:} false; then :
17951  $as_echo_n "(cached) " >&6
17952else
17953  case $HG in
17954  [\\/]* | ?:[\\/]*)
17955  ac_cv_path_HG="$HG" # Let the user override the test with a path.
17956  ;;
17957  *)
17958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959for as_dir in $PATH
17960do
17961  IFS=$as_save_IFS
17962  test -z "$as_dir" && as_dir=.
17963    for ac_exec_ext in '' $ac_executable_extensions; do
17964  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965    ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17967    break 2
17968  fi
17969done
17970  done
17971IFS=$as_save_IFS
17972
17973  ;;
17974esac
17975fi
17976HG=$ac_cv_path_HG
17977if test -n "$HG"; then
17978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17979$as_echo "$HG" >&6; }
17980else
17981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17982$as_echo "no" >&6; }
17983fi
17984
17985
17986  test -n "$HG" && break
17987done
17988
17989  else
17990    # The variable is set, but is it from the command line or the environment?
17991
17992    # Try to remove the string !HG! from our list.
17993    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17994    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17995      # If it failed, the variable was not from the command line. Ignore it,
17996      # but warn the user (except for BASH, which is always set by the calling BASH).
17997      if test "xHG" != xBASH; then
17998        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17999$as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18000      fi
18001      # Try to locate tool using the code snippet
18002      for ac_prog in hg
18003do
18004  # Extract the first word of "$ac_prog", so it can be a program name with args.
18005set dummy $ac_prog; ac_word=$2
18006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18007$as_echo_n "checking for $ac_word... " >&6; }
18008if ${ac_cv_path_HG+:} false; then :
18009  $as_echo_n "(cached) " >&6
18010else
18011  case $HG in
18012  [\\/]* | ?:[\\/]*)
18013  ac_cv_path_HG="$HG" # Let the user override the test with a path.
18014  ;;
18015  *)
18016  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18017for as_dir in $PATH
18018do
18019  IFS=$as_save_IFS
18020  test -z "$as_dir" && as_dir=.
18021    for ac_exec_ext in '' $ac_executable_extensions; do
18022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18023    ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18025    break 2
18026  fi
18027done
18028  done
18029IFS=$as_save_IFS
18030
18031  ;;
18032esac
18033fi
18034HG=$ac_cv_path_HG
18035if test -n "$HG"; then
18036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18037$as_echo "$HG" >&6; }
18038else
18039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040$as_echo "no" >&6; }
18041fi
18042
18043
18044  test -n "$HG" && break
18045done
18046
18047    else
18048      # If it succeeded, then it was overridden by the user. We will use it
18049      # for the tool.
18050
18051      # First remove it from the list of overridden variables, so we can test
18052      # for unknown variables in the end.
18053      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18054
18055      # Check if the provided tool contains a complete path.
18056      tool_specified="$HG"
18057      tool_basename="${tool_specified##*/}"
18058      if test "x$tool_basename" = "x$tool_specified"; then
18059        # A command without a complete path is provided, search $PATH.
18060        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18061$as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18062        # Extract the first word of "$tool_basename", so it can be a program name with args.
18063set dummy $tool_basename; ac_word=$2
18064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18065$as_echo_n "checking for $ac_word... " >&6; }
18066if ${ac_cv_path_HG+:} false; then :
18067  $as_echo_n "(cached) " >&6
18068else
18069  case $HG in
18070  [\\/]* | ?:[\\/]*)
18071  ac_cv_path_HG="$HG" # Let the user override the test with a path.
18072  ;;
18073  *)
18074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18075for as_dir in $PATH
18076do
18077  IFS=$as_save_IFS
18078  test -z "$as_dir" && as_dir=.
18079    for ac_exec_ext in '' $ac_executable_extensions; do
18080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18081    ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18083    break 2
18084  fi
18085done
18086  done
18087IFS=$as_save_IFS
18088
18089  ;;
18090esac
18091fi
18092HG=$ac_cv_path_HG
18093if test -n "$HG"; then
18094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18095$as_echo "$HG" >&6; }
18096else
18097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098$as_echo "no" >&6; }
18099fi
18100
18101
18102        if test "x$HG" = x; then
18103          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18104        fi
18105      else
18106        # Otherwise we believe it is a complete path. Use it as it is.
18107        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18108$as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18109        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18110$as_echo_n "checking for HG... " >&6; }
18111        if test ! -x "$tool_specified"; then
18112          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18113$as_echo "not found" >&6; }
18114          as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18115        fi
18116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18117$as_echo "$tool_specified" >&6; }
18118      fi
18119    fi
18120  fi
18121
18122
18123
18124
18125  # Publish this variable in the help.
18126
18127
18128  if test "x$STAT" = x; then
18129    # The variable is not set by user, try to locate tool using the code snippet
18130    for ac_prog in stat
18131do
18132  # Extract the first word of "$ac_prog", so it can be a program name with args.
18133set dummy $ac_prog; ac_word=$2
18134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18135$as_echo_n "checking for $ac_word... " >&6; }
18136if ${ac_cv_path_STAT+:} false; then :
18137  $as_echo_n "(cached) " >&6
18138else
18139  case $STAT in
18140  [\\/]* | ?:[\\/]*)
18141  ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18142  ;;
18143  *)
18144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18145for as_dir in $PATH
18146do
18147  IFS=$as_save_IFS
18148  test -z "$as_dir" && as_dir=.
18149    for ac_exec_ext in '' $ac_executable_extensions; do
18150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18151    ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18153    break 2
18154  fi
18155done
18156  done
18157IFS=$as_save_IFS
18158
18159  ;;
18160esac
18161fi
18162STAT=$ac_cv_path_STAT
18163if test -n "$STAT"; then
18164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18165$as_echo "$STAT" >&6; }
18166else
18167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18168$as_echo "no" >&6; }
18169fi
18170
18171
18172  test -n "$STAT" && break
18173done
18174
18175  else
18176    # The variable is set, but is it from the command line or the environment?
18177
18178    # Try to remove the string !STAT! from our list.
18179    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18180    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18181      # If it failed, the variable was not from the command line. Ignore it,
18182      # but warn the user (except for BASH, which is always set by the calling BASH).
18183      if test "xSTAT" != xBASH; then
18184        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18185$as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18186      fi
18187      # Try to locate tool using the code snippet
18188      for ac_prog in stat
18189do
18190  # Extract the first word of "$ac_prog", so it can be a program name with args.
18191set dummy $ac_prog; ac_word=$2
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18193$as_echo_n "checking for $ac_word... " >&6; }
18194if ${ac_cv_path_STAT+:} false; then :
18195  $as_echo_n "(cached) " >&6
18196else
18197  case $STAT in
18198  [\\/]* | ?:[\\/]*)
18199  ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18200  ;;
18201  *)
18202  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18203for as_dir in $PATH
18204do
18205  IFS=$as_save_IFS
18206  test -z "$as_dir" && as_dir=.
18207    for ac_exec_ext in '' $ac_executable_extensions; do
18208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18209    ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18211    break 2
18212  fi
18213done
18214  done
18215IFS=$as_save_IFS
18216
18217  ;;
18218esac
18219fi
18220STAT=$ac_cv_path_STAT
18221if test -n "$STAT"; then
18222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18223$as_echo "$STAT" >&6; }
18224else
18225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18226$as_echo "no" >&6; }
18227fi
18228
18229
18230  test -n "$STAT" && break
18231done
18232
18233    else
18234      # If it succeeded, then it was overridden by the user. We will use it
18235      # for the tool.
18236
18237      # First remove it from the list of overridden variables, so we can test
18238      # for unknown variables in the end.
18239      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18240
18241      # Check if the provided tool contains a complete path.
18242      tool_specified="$STAT"
18243      tool_basename="${tool_specified##*/}"
18244      if test "x$tool_basename" = "x$tool_specified"; then
18245        # A command without a complete path is provided, search $PATH.
18246        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18247$as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18248        # Extract the first word of "$tool_basename", so it can be a program name with args.
18249set dummy $tool_basename; ac_word=$2
18250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18251$as_echo_n "checking for $ac_word... " >&6; }
18252if ${ac_cv_path_STAT+:} false; then :
18253  $as_echo_n "(cached) " >&6
18254else
18255  case $STAT in
18256  [\\/]* | ?:[\\/]*)
18257  ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18258  ;;
18259  *)
18260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18261for as_dir in $PATH
18262do
18263  IFS=$as_save_IFS
18264  test -z "$as_dir" && as_dir=.
18265    for ac_exec_ext in '' $ac_executable_extensions; do
18266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18267    ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18269    break 2
18270  fi
18271done
18272  done
18273IFS=$as_save_IFS
18274
18275  ;;
18276esac
18277fi
18278STAT=$ac_cv_path_STAT
18279if test -n "$STAT"; then
18280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18281$as_echo "$STAT" >&6; }
18282else
18283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284$as_echo "no" >&6; }
18285fi
18286
18287
18288        if test "x$STAT" = x; then
18289          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18290        fi
18291      else
18292        # Otherwise we believe it is a complete path. Use it as it is.
18293        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18294$as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18295        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18296$as_echo_n "checking for STAT... " >&6; }
18297        if test ! -x "$tool_specified"; then
18298          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18299$as_echo "not found" >&6; }
18300          as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18301        fi
18302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18303$as_echo "$tool_specified" >&6; }
18304      fi
18305    fi
18306  fi
18307
18308
18309
18310
18311  # Publish this variable in the help.
18312
18313
18314  if test "x$TIME" = x; then
18315    # The variable is not set by user, try to locate tool using the code snippet
18316    for ac_prog in time
18317do
18318  # Extract the first word of "$ac_prog", so it can be a program name with args.
18319set dummy $ac_prog; ac_word=$2
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18321$as_echo_n "checking for $ac_word... " >&6; }
18322if ${ac_cv_path_TIME+:} false; then :
18323  $as_echo_n "(cached) " >&6
18324else
18325  case $TIME in
18326  [\\/]* | ?:[\\/]*)
18327  ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18328  ;;
18329  *)
18330  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18331for as_dir in $PATH
18332do
18333  IFS=$as_save_IFS
18334  test -z "$as_dir" && as_dir=.
18335    for ac_exec_ext in '' $ac_executable_extensions; do
18336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18337    ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18339    break 2
18340  fi
18341done
18342  done
18343IFS=$as_save_IFS
18344
18345  ;;
18346esac
18347fi
18348TIME=$ac_cv_path_TIME
18349if test -n "$TIME"; then
18350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18351$as_echo "$TIME" >&6; }
18352else
18353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18354$as_echo "no" >&6; }
18355fi
18356
18357
18358  test -n "$TIME" && break
18359done
18360
18361  else
18362    # The variable is set, but is it from the command line or the environment?
18363
18364    # Try to remove the string !TIME! from our list.
18365    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18366    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18367      # If it failed, the variable was not from the command line. Ignore it,
18368      # but warn the user (except for BASH, which is always set by the calling BASH).
18369      if test "xTIME" != xBASH; then
18370        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18371$as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18372      fi
18373      # Try to locate tool using the code snippet
18374      for ac_prog in time
18375do
18376  # Extract the first word of "$ac_prog", so it can be a program name with args.
18377set dummy $ac_prog; ac_word=$2
18378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18379$as_echo_n "checking for $ac_word... " >&6; }
18380if ${ac_cv_path_TIME+:} false; then :
18381  $as_echo_n "(cached) " >&6
18382else
18383  case $TIME in
18384  [\\/]* | ?:[\\/]*)
18385  ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18386  ;;
18387  *)
18388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18389for as_dir in $PATH
18390do
18391  IFS=$as_save_IFS
18392  test -z "$as_dir" && as_dir=.
18393    for ac_exec_ext in '' $ac_executable_extensions; do
18394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18395    ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18397    break 2
18398  fi
18399done
18400  done
18401IFS=$as_save_IFS
18402
18403  ;;
18404esac
18405fi
18406TIME=$ac_cv_path_TIME
18407if test -n "$TIME"; then
18408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18409$as_echo "$TIME" >&6; }
18410else
18411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412$as_echo "no" >&6; }
18413fi
18414
18415
18416  test -n "$TIME" && break
18417done
18418
18419    else
18420      # If it succeeded, then it was overridden by the user. We will use it
18421      # for the tool.
18422
18423      # First remove it from the list of overridden variables, so we can test
18424      # for unknown variables in the end.
18425      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18426
18427      # Check if the provided tool contains a complete path.
18428      tool_specified="$TIME"
18429      tool_basename="${tool_specified##*/}"
18430      if test "x$tool_basename" = "x$tool_specified"; then
18431        # A command without a complete path is provided, search $PATH.
18432        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18433$as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18434        # Extract the first word of "$tool_basename", so it can be a program name with args.
18435set dummy $tool_basename; ac_word=$2
18436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18437$as_echo_n "checking for $ac_word... " >&6; }
18438if ${ac_cv_path_TIME+:} false; then :
18439  $as_echo_n "(cached) " >&6
18440else
18441  case $TIME in
18442  [\\/]* | ?:[\\/]*)
18443  ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18444  ;;
18445  *)
18446  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18447for as_dir in $PATH
18448do
18449  IFS=$as_save_IFS
18450  test -z "$as_dir" && as_dir=.
18451    for ac_exec_ext in '' $ac_executable_extensions; do
18452  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18453    ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18455    break 2
18456  fi
18457done
18458  done
18459IFS=$as_save_IFS
18460
18461  ;;
18462esac
18463fi
18464TIME=$ac_cv_path_TIME
18465if test -n "$TIME"; then
18466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18467$as_echo "$TIME" >&6; }
18468else
18469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470$as_echo "no" >&6; }
18471fi
18472
18473
18474        if test "x$TIME" = x; then
18475          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18476        fi
18477      else
18478        # Otherwise we believe it is a complete path. Use it as it is.
18479        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18480$as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18481        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18482$as_echo_n "checking for TIME... " >&6; }
18483        if test ! -x "$tool_specified"; then
18484          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18485$as_echo "not found" >&6; }
18486          as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18487        fi
18488        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18489$as_echo "$tool_specified" >&6; }
18490      fi
18491    fi
18492  fi
18493
18494
18495  # Check if it's GNU time
18496  IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18497  if test "x$IS_GNU_TIME" != x; then
18498    IS_GNU_TIME=yes
18499  else
18500    IS_GNU_TIME=no
18501  fi
18502
18503
18504  if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18505
18506
18507
18508  # Publish this variable in the help.
18509
18510
18511  if test "x$COMM" = x; then
18512    # The variable is not set by user, try to locate tool using the code snippet
18513    for ac_prog in comm
18514do
18515  # Extract the first word of "$ac_prog", so it can be a program name with args.
18516set dummy $ac_prog; ac_word=$2
18517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18518$as_echo_n "checking for $ac_word... " >&6; }
18519if ${ac_cv_path_COMM+:} false; then :
18520  $as_echo_n "(cached) " >&6
18521else
18522  case $COMM in
18523  [\\/]* | ?:[\\/]*)
18524  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18525  ;;
18526  *)
18527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18528for as_dir in $PATH
18529do
18530  IFS=$as_save_IFS
18531  test -z "$as_dir" && as_dir=.
18532    for ac_exec_ext in '' $ac_executable_extensions; do
18533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18534    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18536    break 2
18537  fi
18538done
18539  done
18540IFS=$as_save_IFS
18541
18542  ;;
18543esac
18544fi
18545COMM=$ac_cv_path_COMM
18546if test -n "$COMM"; then
18547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18548$as_echo "$COMM" >&6; }
18549else
18550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551$as_echo "no" >&6; }
18552fi
18553
18554
18555  test -n "$COMM" && break
18556done
18557
18558  else
18559    # The variable is set, but is it from the command line or the environment?
18560
18561    # Try to remove the string !COMM! from our list.
18562    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18563    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18564      # If it failed, the variable was not from the command line. Ignore it,
18565      # but warn the user (except for BASH, which is always set by the calling BASH).
18566      if test "xCOMM" != xBASH; then
18567        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18568$as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18569      fi
18570      # Try to locate tool using the code snippet
18571      for ac_prog in comm
18572do
18573  # Extract the first word of "$ac_prog", so it can be a program name with args.
18574set dummy $ac_prog; ac_word=$2
18575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18576$as_echo_n "checking for $ac_word... " >&6; }
18577if ${ac_cv_path_COMM+:} false; then :
18578  $as_echo_n "(cached) " >&6
18579else
18580  case $COMM in
18581  [\\/]* | ?:[\\/]*)
18582  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18583  ;;
18584  *)
18585  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18586for as_dir in $PATH
18587do
18588  IFS=$as_save_IFS
18589  test -z "$as_dir" && as_dir=.
18590    for ac_exec_ext in '' $ac_executable_extensions; do
18591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18592    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18594    break 2
18595  fi
18596done
18597  done
18598IFS=$as_save_IFS
18599
18600  ;;
18601esac
18602fi
18603COMM=$ac_cv_path_COMM
18604if test -n "$COMM"; then
18605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18606$as_echo "$COMM" >&6; }
18607else
18608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609$as_echo "no" >&6; }
18610fi
18611
18612
18613  test -n "$COMM" && break
18614done
18615
18616    else
18617      # If it succeeded, then it was overridden by the user. We will use it
18618      # for the tool.
18619
18620      # First remove it from the list of overridden variables, so we can test
18621      # for unknown variables in the end.
18622      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18623
18624      # Check if the provided tool contains a complete path.
18625      tool_specified="$COMM"
18626      tool_basename="${tool_specified##*/}"
18627      if test "x$tool_basename" = "x$tool_specified"; then
18628        # A command without a complete path is provided, search $PATH.
18629        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18630$as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18631        # Extract the first word of "$tool_basename", so it can be a program name with args.
18632set dummy $tool_basename; ac_word=$2
18633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18634$as_echo_n "checking for $ac_word... " >&6; }
18635if ${ac_cv_path_COMM+:} false; then :
18636  $as_echo_n "(cached) " >&6
18637else
18638  case $COMM in
18639  [\\/]* | ?:[\\/]*)
18640  ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18641  ;;
18642  *)
18643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18644for as_dir in $PATH
18645do
18646  IFS=$as_save_IFS
18647  test -z "$as_dir" && as_dir=.
18648    for ac_exec_ext in '' $ac_executable_extensions; do
18649  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18650    ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18651    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18652    break 2
18653  fi
18654done
18655  done
18656IFS=$as_save_IFS
18657
18658  ;;
18659esac
18660fi
18661COMM=$ac_cv_path_COMM
18662if test -n "$COMM"; then
18663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18664$as_echo "$COMM" >&6; }
18665else
18666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667$as_echo "no" >&6; }
18668fi
18669
18670
18671        if test "x$COMM" = x; then
18672          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18673        fi
18674      else
18675        # Otherwise we believe it is a complete path. Use it as it is.
18676        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18677$as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18678        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18679$as_echo_n "checking for COMM... " >&6; }
18680        if test ! -x "$tool_specified"; then
18681          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18682$as_echo "not found" >&6; }
18683          as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18684        fi
18685        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18686$as_echo "$tool_specified" >&6; }
18687      fi
18688    fi
18689  fi
18690
18691
18692
18693  if test "x$COMM" = x; then
18694    as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18695  fi
18696
18697
18698  fi
18699
18700  if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18701
18702
18703
18704  # Publish this variable in the help.
18705
18706
18707  if test "x$DSYMUTIL" = x; then
18708    # The variable is not set by user, try to locate tool using the code snippet
18709    for ac_prog in dsymutil
18710do
18711  # Extract the first word of "$ac_prog", so it can be a program name with args.
18712set dummy $ac_prog; ac_word=$2
18713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18714$as_echo_n "checking for $ac_word... " >&6; }
18715if ${ac_cv_path_DSYMUTIL+:} false; then :
18716  $as_echo_n "(cached) " >&6
18717else
18718  case $DSYMUTIL in
18719  [\\/]* | ?:[\\/]*)
18720  ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18721  ;;
18722  *)
18723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726  IFS=$as_save_IFS
18727  test -z "$as_dir" && as_dir=.
18728    for ac_exec_ext in '' $ac_executable_extensions; do
18729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730    ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18732    break 2
18733  fi
18734done
18735  done
18736IFS=$as_save_IFS
18737
18738  ;;
18739esac
18740fi
18741DSYMUTIL=$ac_cv_path_DSYMUTIL
18742if test -n "$DSYMUTIL"; then
18743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18744$as_echo "$DSYMUTIL" >&6; }
18745else
18746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747$as_echo "no" >&6; }
18748fi
18749
18750
18751  test -n "$DSYMUTIL" && break
18752done
18753
18754  else
18755    # The variable is set, but is it from the command line or the environment?
18756
18757    # Try to remove the string !DSYMUTIL! from our list.
18758    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18759    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18760      # If it failed, the variable was not from the command line. Ignore it,
18761      # but warn the user (except for BASH, which is always set by the calling BASH).
18762      if test "xDSYMUTIL" != xBASH; then
18763        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18764$as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18765      fi
18766      # Try to locate tool using the code snippet
18767      for ac_prog in dsymutil
18768do
18769  # Extract the first word of "$ac_prog", so it can be a program name with args.
18770set dummy $ac_prog; ac_word=$2
18771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772$as_echo_n "checking for $ac_word... " >&6; }
18773if ${ac_cv_path_DSYMUTIL+:} false; then :
18774  $as_echo_n "(cached) " >&6
18775else
18776  case $DSYMUTIL in
18777  [\\/]* | ?:[\\/]*)
18778  ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18779  ;;
18780  *)
18781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782for as_dir in $PATH
18783do
18784  IFS=$as_save_IFS
18785  test -z "$as_dir" && as_dir=.
18786    for ac_exec_ext in '' $ac_executable_extensions; do
18787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18788    ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790    break 2
18791  fi
18792done
18793  done
18794IFS=$as_save_IFS
18795
18796  ;;
18797esac
18798fi
18799DSYMUTIL=$ac_cv_path_DSYMUTIL
18800if test -n "$DSYMUTIL"; then
18801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18802$as_echo "$DSYMUTIL" >&6; }
18803else
18804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805$as_echo "no" >&6; }
18806fi
18807
18808
18809  test -n "$DSYMUTIL" && break
18810done
18811
18812    else
18813      # If it succeeded, then it was overridden by the user. We will use it
18814      # for the tool.
18815
18816      # First remove it from the list of overridden variables, so we can test
18817      # for unknown variables in the end.
18818      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18819
18820      # Check if the provided tool contains a complete path.
18821      tool_specified="$DSYMUTIL"
18822      tool_basename="${tool_specified##*/}"
18823      if test "x$tool_basename" = "x$tool_specified"; then
18824        # A command without a complete path is provided, search $PATH.
18825        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18826$as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18827        # Extract the first word of "$tool_basename", so it can be a program name with args.
18828set dummy $tool_basename; ac_word=$2
18829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18830$as_echo_n "checking for $ac_word... " >&6; }
18831if ${ac_cv_path_DSYMUTIL+:} false; then :
18832  $as_echo_n "(cached) " >&6
18833else
18834  case $DSYMUTIL in
18835  [\\/]* | ?:[\\/]*)
18836  ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18837  ;;
18838  *)
18839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18840for as_dir in $PATH
18841do
18842  IFS=$as_save_IFS
18843  test -z "$as_dir" && as_dir=.
18844    for ac_exec_ext in '' $ac_executable_extensions; do
18845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18846    ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18848    break 2
18849  fi
18850done
18851  done
18852IFS=$as_save_IFS
18853
18854  ;;
18855esac
18856fi
18857DSYMUTIL=$ac_cv_path_DSYMUTIL
18858if test -n "$DSYMUTIL"; then
18859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18860$as_echo "$DSYMUTIL" >&6; }
18861else
18862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
18864fi
18865
18866
18867        if test "x$DSYMUTIL" = x; then
18868          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18869        fi
18870      else
18871        # Otherwise we believe it is a complete path. Use it as it is.
18872        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18873$as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18875$as_echo_n "checking for DSYMUTIL... " >&6; }
18876        if test ! -x "$tool_specified"; then
18877          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18878$as_echo "not found" >&6; }
18879          as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18880        fi
18881        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18882$as_echo "$tool_specified" >&6; }
18883      fi
18884    fi
18885  fi
18886
18887
18888
18889  if test "x$DSYMUTIL" = x; then
18890    as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18891  fi
18892
18893
18894
18895
18896
18897  # Publish this variable in the help.
18898
18899
18900  if test "x$XATTR" = x; then
18901    # The variable is not set by user, try to locate tool using the code snippet
18902    for ac_prog in xattr
18903do
18904  # Extract the first word of "$ac_prog", so it can be a program name with args.
18905set dummy $ac_prog; ac_word=$2
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18907$as_echo_n "checking for $ac_word... " >&6; }
18908if ${ac_cv_path_XATTR+:} false; then :
18909  $as_echo_n "(cached) " >&6
18910else
18911  case $XATTR in
18912  [\\/]* | ?:[\\/]*)
18913  ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18914  ;;
18915  *)
18916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18917for as_dir in $PATH
18918do
18919  IFS=$as_save_IFS
18920  test -z "$as_dir" && as_dir=.
18921    for ac_exec_ext in '' $ac_executable_extensions; do
18922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18923    ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18925    break 2
18926  fi
18927done
18928  done
18929IFS=$as_save_IFS
18930
18931  ;;
18932esac
18933fi
18934XATTR=$ac_cv_path_XATTR
18935if test -n "$XATTR"; then
18936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18937$as_echo "$XATTR" >&6; }
18938else
18939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940$as_echo "no" >&6; }
18941fi
18942
18943
18944  test -n "$XATTR" && break
18945done
18946
18947  else
18948    # The variable is set, but is it from the command line or the environment?
18949
18950    # Try to remove the string !XATTR! from our list.
18951    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18952    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18953      # If it failed, the variable was not from the command line. Ignore it,
18954      # but warn the user (except for BASH, which is always set by the calling BASH).
18955      if test "xXATTR" != xBASH; then
18956        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18957$as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18958      fi
18959      # Try to locate tool using the code snippet
18960      for ac_prog in xattr
18961do
18962  # Extract the first word of "$ac_prog", so it can be a program name with args.
18963set dummy $ac_prog; ac_word=$2
18964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18965$as_echo_n "checking for $ac_word... " >&6; }
18966if ${ac_cv_path_XATTR+:} false; then :
18967  $as_echo_n "(cached) " >&6
18968else
18969  case $XATTR in
18970  [\\/]* | ?:[\\/]*)
18971  ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18972  ;;
18973  *)
18974  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975for as_dir in $PATH
18976do
18977  IFS=$as_save_IFS
18978  test -z "$as_dir" && as_dir=.
18979    for ac_exec_ext in '' $ac_executable_extensions; do
18980  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981    ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18983    break 2
18984  fi
18985done
18986  done
18987IFS=$as_save_IFS
18988
18989  ;;
18990esac
18991fi
18992XATTR=$ac_cv_path_XATTR
18993if test -n "$XATTR"; then
18994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18995$as_echo "$XATTR" >&6; }
18996else
18997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18998$as_echo "no" >&6; }
18999fi
19000
19001
19002  test -n "$XATTR" && break
19003done
19004
19005    else
19006      # If it succeeded, then it was overridden by the user. We will use it
19007      # for the tool.
19008
19009      # First remove it from the list of overridden variables, so we can test
19010      # for unknown variables in the end.
19011      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19012
19013      # Check if the provided tool contains a complete path.
19014      tool_specified="$XATTR"
19015      tool_basename="${tool_specified##*/}"
19016      if test "x$tool_basename" = "x$tool_specified"; then
19017        # A command without a complete path is provided, search $PATH.
19018        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19019$as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19020        # Extract the first word of "$tool_basename", so it can be a program name with args.
19021set dummy $tool_basename; ac_word=$2
19022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023$as_echo_n "checking for $ac_word... " >&6; }
19024if ${ac_cv_path_XATTR+:} false; then :
19025  $as_echo_n "(cached) " >&6
19026else
19027  case $XATTR in
19028  [\\/]* | ?:[\\/]*)
19029  ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19030  ;;
19031  *)
19032  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033for as_dir in $PATH
19034do
19035  IFS=$as_save_IFS
19036  test -z "$as_dir" && as_dir=.
19037    for ac_exec_ext in '' $ac_executable_extensions; do
19038  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19039    ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19041    break 2
19042  fi
19043done
19044  done
19045IFS=$as_save_IFS
19046
19047  ;;
19048esac
19049fi
19050XATTR=$ac_cv_path_XATTR
19051if test -n "$XATTR"; then
19052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19053$as_echo "$XATTR" >&6; }
19054else
19055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056$as_echo "no" >&6; }
19057fi
19058
19059
19060        if test "x$XATTR" = x; then
19061          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19062        fi
19063      else
19064        # Otherwise we believe it is a complete path. Use it as it is.
19065        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19066$as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19067        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19068$as_echo_n "checking for XATTR... " >&6; }
19069        if test ! -x "$tool_specified"; then
19070          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19071$as_echo "not found" >&6; }
19072          as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19073        fi
19074        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19075$as_echo "$tool_specified" >&6; }
19076      fi
19077    fi
19078  fi
19079
19080
19081
19082  if test "x$XATTR" = x; then
19083    as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19084  fi
19085
19086
19087
19088
19089  # Publish this variable in the help.
19090
19091
19092  if test "x$CODESIGN" = x; then
19093    # The variable is not set by user, try to locate tool using the code snippet
19094    for ac_prog in codesign
19095do
19096  # Extract the first word of "$ac_prog", so it can be a program name with args.
19097set dummy $ac_prog; ac_word=$2
19098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19099$as_echo_n "checking for $ac_word... " >&6; }
19100if ${ac_cv_path_CODESIGN+:} false; then :
19101  $as_echo_n "(cached) " >&6
19102else
19103  case $CODESIGN in
19104  [\\/]* | ?:[\\/]*)
19105  ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19106  ;;
19107  *)
19108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19109for as_dir in $PATH
19110do
19111  IFS=$as_save_IFS
19112  test -z "$as_dir" && as_dir=.
19113    for ac_exec_ext in '' $ac_executable_extensions; do
19114  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19115    ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19117    break 2
19118  fi
19119done
19120  done
19121IFS=$as_save_IFS
19122
19123  ;;
19124esac
19125fi
19126CODESIGN=$ac_cv_path_CODESIGN
19127if test -n "$CODESIGN"; then
19128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19129$as_echo "$CODESIGN" >&6; }
19130else
19131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19132$as_echo "no" >&6; }
19133fi
19134
19135
19136  test -n "$CODESIGN" && break
19137done
19138
19139  else
19140    # The variable is set, but is it from the command line or the environment?
19141
19142    # Try to remove the string !CODESIGN! from our list.
19143    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19144    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19145      # If it failed, the variable was not from the command line. Ignore it,
19146      # but warn the user (except for BASH, which is always set by the calling BASH).
19147      if test "xCODESIGN" != xBASH; then
19148        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19149$as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19150      fi
19151      # Try to locate tool using the code snippet
19152      for ac_prog in codesign
19153do
19154  # Extract the first word of "$ac_prog", so it can be a program name with args.
19155set dummy $ac_prog; ac_word=$2
19156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19157$as_echo_n "checking for $ac_word... " >&6; }
19158if ${ac_cv_path_CODESIGN+:} false; then :
19159  $as_echo_n "(cached) " >&6
19160else
19161  case $CODESIGN in
19162  [\\/]* | ?:[\\/]*)
19163  ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19164  ;;
19165  *)
19166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19167for as_dir in $PATH
19168do
19169  IFS=$as_save_IFS
19170  test -z "$as_dir" && as_dir=.
19171    for ac_exec_ext in '' $ac_executable_extensions; do
19172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19173    ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19175    break 2
19176  fi
19177done
19178  done
19179IFS=$as_save_IFS
19180
19181  ;;
19182esac
19183fi
19184CODESIGN=$ac_cv_path_CODESIGN
19185if test -n "$CODESIGN"; then
19186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19187$as_echo "$CODESIGN" >&6; }
19188else
19189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19190$as_echo "no" >&6; }
19191fi
19192
19193
19194  test -n "$CODESIGN" && break
19195done
19196
19197    else
19198      # If it succeeded, then it was overridden by the user. We will use it
19199      # for the tool.
19200
19201      # First remove it from the list of overridden variables, so we can test
19202      # for unknown variables in the end.
19203      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19204
19205      # Check if the provided tool contains a complete path.
19206      tool_specified="$CODESIGN"
19207      tool_basename="${tool_specified##*/}"
19208      if test "x$tool_basename" = "x$tool_specified"; then
19209        # A command without a complete path is provided, search $PATH.
19210        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19211$as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19212        # Extract the first word of "$tool_basename", so it can be a program name with args.
19213set dummy $tool_basename; ac_word=$2
19214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19215$as_echo_n "checking for $ac_word... " >&6; }
19216if ${ac_cv_path_CODESIGN+:} false; then :
19217  $as_echo_n "(cached) " >&6
19218else
19219  case $CODESIGN in
19220  [\\/]* | ?:[\\/]*)
19221  ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19222  ;;
19223  *)
19224  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225for as_dir in $PATH
19226do
19227  IFS=$as_save_IFS
19228  test -z "$as_dir" && as_dir=.
19229    for ac_exec_ext in '' $ac_executable_extensions; do
19230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19231    ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19233    break 2
19234  fi
19235done
19236  done
19237IFS=$as_save_IFS
19238
19239  ;;
19240esac
19241fi
19242CODESIGN=$ac_cv_path_CODESIGN
19243if test -n "$CODESIGN"; then
19244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19245$as_echo "$CODESIGN" >&6; }
19246else
19247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248$as_echo "no" >&6; }
19249fi
19250
19251
19252        if test "x$CODESIGN" = x; then
19253          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19254        fi
19255      else
19256        # Otherwise we believe it is a complete path. Use it as it is.
19257        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19258$as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19259        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19260$as_echo_n "checking for CODESIGN... " >&6; }
19261        if test ! -x "$tool_specified"; then
19262          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19263$as_echo "not found" >&6; }
19264          as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19265        fi
19266        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19267$as_echo "$tool_specified" >&6; }
19268      fi
19269    fi
19270  fi
19271
19272
19273    if test "x$CODESIGN" != "x"; then
19274      # Verify that the openjdk_codesign certificate is present
19275      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19276$as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19277      rm -f codesign-testfile
19278      touch codesign-testfile
19279      codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19280      rm -f codesign-testfile
19281      if test "x$CODESIGN" = x; then
19282        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284      else
19285        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19286$as_echo "yes" >&6; }
19287      fi
19288    fi
19289  fi
19290
19291
19292# Check if pkg-config is available.
19293
19294
19295if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19296	if test -n "$ac_tool_prefix"; then
19297  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19298set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19300$as_echo_n "checking for $ac_word... " >&6; }
19301if ${ac_cv_path_PKG_CONFIG+:} false; then :
19302  $as_echo_n "(cached) " >&6
19303else
19304  case $PKG_CONFIG in
19305  [\\/]* | ?:[\\/]*)
19306  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19307  ;;
19308  *)
19309  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19310for as_dir in $PATH
19311do
19312  IFS=$as_save_IFS
19313  test -z "$as_dir" && as_dir=.
19314    for ac_exec_ext in '' $ac_executable_extensions; do
19315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19316    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19318    break 2
19319  fi
19320done
19321  done
19322IFS=$as_save_IFS
19323
19324  ;;
19325esac
19326fi
19327PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19328if test -n "$PKG_CONFIG"; then
19329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19330$as_echo "$PKG_CONFIG" >&6; }
19331else
19332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333$as_echo "no" >&6; }
19334fi
19335
19336
19337fi
19338if test -z "$ac_cv_path_PKG_CONFIG"; then
19339  ac_pt_PKG_CONFIG=$PKG_CONFIG
19340  # Extract the first word of "pkg-config", so it can be a program name with args.
19341set dummy pkg-config; ac_word=$2
19342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19343$as_echo_n "checking for $ac_word... " >&6; }
19344if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19345  $as_echo_n "(cached) " >&6
19346else
19347  case $ac_pt_PKG_CONFIG in
19348  [\\/]* | ?:[\\/]*)
19349  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19350  ;;
19351  *)
19352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19353for as_dir in $PATH
19354do
19355  IFS=$as_save_IFS
19356  test -z "$as_dir" && as_dir=.
19357    for ac_exec_ext in '' $ac_executable_extensions; do
19358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19359    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19361    break 2
19362  fi
19363done
19364  done
19365IFS=$as_save_IFS
19366
19367  ;;
19368esac
19369fi
19370ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19371if test -n "$ac_pt_PKG_CONFIG"; then
19372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19373$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19374else
19375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19376$as_echo "no" >&6; }
19377fi
19378
19379  if test "x$ac_pt_PKG_CONFIG" = x; then
19380    PKG_CONFIG=""
19381  else
19382    case $cross_compiling:$ac_tool_warned in
19383yes:)
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19386ac_tool_warned=yes ;;
19387esac
19388    PKG_CONFIG=$ac_pt_PKG_CONFIG
19389  fi
19390else
19391  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19392fi
19393
19394fi
19395if test -n "$PKG_CONFIG"; then
19396	_pkg_min_version=0.9.0
19397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19398$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19399	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19401$as_echo "yes" >&6; }
19402	else
19403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404$as_echo "no" >&6; }
19405		PKG_CONFIG=""
19406	fi
19407
19408fi
19409
19410# After basic tools have been setup, we can check build os specific details.
19411
19412  ###############################################################################
19413
19414  # Note that this is the build platform OS version!
19415
19416  OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19417  OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19418  OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19419  OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19420
19421
19422
19423
19424
19425# Setup builddeps, for automatic downloading of tools we need.
19426# This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19427# boot-jdk setup, but we need to have basic tools setup first.
19428
19429
19430# Check whether --with-builddeps-conf was given.
19431if test "${with_builddeps_conf+set}" = set; then :
19432  withval=$with_builddeps_conf;
19433fi
19434
19435
19436
19437# Check whether --with-builddeps-server was given.
19438if test "${with_builddeps_server+set}" = set; then :
19439  withval=$with_builddeps_server;
19440fi
19441
19442
19443
19444# Check whether --with-builddeps-dir was given.
19445if test "${with_builddeps_dir+set}" = set; then :
19446  withval=$with_builddeps_dir;
19447else
19448  with_builddeps_dir=/localhome/builddeps
19449fi
19450
19451
19452
19453# Check whether --with-builddeps-group was given.
19454if test "${with_builddeps_group+set}" = set; then :
19455  withval=$with_builddeps_group;
19456fi
19457
19458
19459
19460
19461  if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19462    if test "x$with_builddeps_conf" != x; then
19463      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19464$as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19465      builddepsfile=$with_builddeps_conf
19466      if test -s $builddepsfile; then
19467        . $builddepsfile
19468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19469$as_echo "loaded!" >&6; }
19470      else
19471        as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19472      fi
19473    else
19474      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19475$as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19476      builddepsfile=`mktemp`
19477      touch $builddepsfile
19478      # Put all found confs into a single file.
19479      find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19480      # Source the file to acquire the variables
19481      if test -s $builddepsfile; then
19482        . $builddepsfile
19483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19484$as_echo "found at least one!" >&6; }
19485      else
19486        as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19487      fi
19488    fi
19489    # Create build and target names that use _ instead of "-" and ".".
19490    # This is necessary to use them in variable names.
19491    build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19492    target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19493    # Extract rewrite information for build and target
19494    eval rewritten_build=\${REWRITE_${build_var}}
19495    if test "x$rewritten_build" = x; then
19496      rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19497      echo Build stays the same $rewritten_build
19498    else
19499      echo Rewriting build for builddeps into $rewritten_build
19500    fi
19501    eval rewritten_target=\${REWRITE_${target_var}}
19502    if test "x$rewritten_target" = x; then
19503      rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19504      echo Target stays the same $rewritten_target
19505    else
19506      echo Rewriting target for builddeps into $rewritten_target
19507    fi
19508    rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19509    rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19510  fi
19511  for ac_prog in 7z unzip
19512do
19513  # Extract the first word of "$ac_prog", so it can be a program name with args.
19514set dummy $ac_prog; ac_word=$2
19515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19516$as_echo_n "checking for $ac_word... " >&6; }
19517if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19518  $as_echo_n "(cached) " >&6
19519else
19520  if test -n "$BDEPS_UNZIP"; then
19521  ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19522else
19523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19524for as_dir in $PATH
19525do
19526  IFS=$as_save_IFS
19527  test -z "$as_dir" && as_dir=.
19528    for ac_exec_ext in '' $ac_executable_extensions; do
19529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19530    ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19532    break 2
19533  fi
19534done
19535  done
19536IFS=$as_save_IFS
19537
19538fi
19539fi
19540BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19541if test -n "$BDEPS_UNZIP"; then
19542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19543$as_echo "$BDEPS_UNZIP" >&6; }
19544else
19545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19546$as_echo "no" >&6; }
19547fi
19548
19549
19550  test -n "$BDEPS_UNZIP" && break
19551done
19552
19553  if test "x$BDEPS_UNZIP" = x7z; then
19554    BDEPS_UNZIP="7z x"
19555  fi
19556
19557  for ac_prog in wget lftp ftp
19558do
19559  # Extract the first word of "$ac_prog", so it can be a program name with args.
19560set dummy $ac_prog; ac_word=$2
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19562$as_echo_n "checking for $ac_word... " >&6; }
19563if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19564  $as_echo_n "(cached) " >&6
19565else
19566  if test -n "$BDEPS_FTP"; then
19567  ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19568else
19569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19570for as_dir in $PATH
19571do
19572  IFS=$as_save_IFS
19573  test -z "$as_dir" && as_dir=.
19574    for ac_exec_ext in '' $ac_executable_extensions; do
19575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19576    ac_cv_prog_BDEPS_FTP="$ac_prog"
19577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19578    break 2
19579  fi
19580done
19581  done
19582IFS=$as_save_IFS
19583
19584fi
19585fi
19586BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19587if test -n "$BDEPS_FTP"; then
19588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19589$as_echo "$BDEPS_FTP" >&6; }
19590else
19591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592$as_echo "no" >&6; }
19593fi
19594
19595
19596  test -n "$BDEPS_FTP" && break
19597done
19598
19599
19600
19601###############################################################################
19602#
19603# Determine OpenJDK variants, options and version numbers.
19604#
19605###############################################################################
19606
19607# We need build & target for this.
19608
19609
19610  ###############################################################################
19611  #
19612  # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19613  # We always build headless support.
19614  #
19615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19616$as_echo_n "checking headful support... " >&6; }
19617  # Check whether --enable-headful was given.
19618if test "${enable_headful+set}" = set; then :
19619  enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19620else
19621  SUPPORT_HEADFUL=yes
19622fi
19623
19624
19625  SUPPORT_HEADLESS=yes
19626  BUILD_HEADLESS="BUILD_HEADLESS:=true"
19627
19628  if test "x$SUPPORT_HEADFUL" = xyes; then
19629    # We are building both headful and headless.
19630    headful_msg="include support for both headful and headless"
19631  fi
19632
19633  if test "x$SUPPORT_HEADFUL" = xno; then
19634    # Thus we are building headless only.
19635    BUILD_HEADLESS="BUILD_HEADLESS:=true"
19636    headful_msg="headless only"
19637  fi
19638
19639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19640$as_echo "$headful_msg" >&6; }
19641
19642
19643
19644
19645
19646  # Control wether Hotspot runs Queens test after build.
19647  # Check whether --enable-hotspot-test-in-build was given.
19648if test "${enable_hotspot_test_in_build+set}" = set; then :
19649  enableval=$enable_hotspot_test_in_build;
19650else
19651  enable_hotspot_test_in_build=no
19652fi
19653
19654  if test "x$enable_hotspot_test_in_build" = "xyes"; then
19655    TEST_IN_BUILD=true
19656  else
19657    TEST_IN_BUILD=false
19658  fi
19659
19660
19661  ###############################################################################
19662  #
19663  # Choose cacerts source file
19664  #
19665
19666# Check whether --with-cacerts-file was given.
19667if test "${with_cacerts_file+set}" = set; then :
19668  withval=$with_cacerts_file;
19669fi
19670
19671  if test "x$with_cacerts_file" != x; then
19672    CACERTS_FILE=$with_cacerts_file
19673  else
19674    CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19675  fi
19676
19677
19678  ###############################################################################
19679  #
19680  # Enable or disable unlimited crypto
19681  #
19682  # Check whether --enable-unlimited-crypto was given.
19683if test "${enable_unlimited_crypto+set}" = set; then :
19684  enableval=$enable_unlimited_crypto;
19685else
19686  enable_unlimited_crypto=no
19687fi
19688
19689  if test "x$enable_unlimited_crypto" = "xyes"; then
19690    UNLIMITED_CRYPTO=true
19691  else
19692    UNLIMITED_CRYPTO=false
19693  fi
19694
19695
19696  ###############################################################################
19697  #
19698  # Enable or disable the elliptic curve crypto implementation
19699  #
19700
19701
19702  ###############################################################################
19703  #
19704  # --enable-rmiconnector-iiop
19705  #
19706  # Check whether --enable-rmiconnector-iiop was given.
19707if test "${enable_rmiconnector_iiop+set}" = set; then :
19708  enableval=$enable_rmiconnector_iiop;
19709fi
19710
19711  if test "x$enable_rmiconnector_iiop" = "xyes"; then
19712    RMICONNECTOR_IIOP=true
19713  else
19714    RMICONNECTOR_IIOP=false
19715  fi
19716
19717
19718  ###############################################################################
19719  #
19720  # Compress jars
19721  #
19722  COMPRESS_JARS=false
19723
19724
19725
19726
19727  # Source the version numbers
19728  . $AUTOCONF_DIR/version-numbers
19729
19730  # Get the settings from parameters
19731
19732# Check whether --with-milestone was given.
19733if test "${with_milestone+set}" = set; then :
19734  withval=$with_milestone;
19735fi
19736
19737  if test "x$with_milestone" = xyes; then
19738    as_fn_error $? "Milestone must have a value" "$LINENO" 5
19739  elif test "x$with_milestone" != x; then
19740    MILESTONE="$with_milestone"
19741  fi
19742  if test "x$MILESTONE" = x; then
19743    MILESTONE=internal
19744  fi
19745
19746
19747# Check whether --with-update-version was given.
19748if test "${with_update_version+set}" = set; then :
19749  withval=$with_update_version;
19750fi
19751
19752  if test "x$with_update_version" = xyes; then
19753    as_fn_error $? "Update version must have a value" "$LINENO" 5
19754  elif test "x$with_update_version" != x; then
19755    JDK_UPDATE_VERSION="$with_update_version"
19756    # On macosx 10.7, it's not possible to set --with-update-version=0X due
19757    # to a bug in expr (which reduces it to just X). To work around this, we
19758    # always add a 0 to one digit update versions.
19759    if test "${#JDK_UPDATE_VERSION}" = "1"; then
19760      JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19761    fi
19762  fi
19763
19764
19765# Check whether --with-user-release-suffix was given.
19766if test "${with_user_release_suffix+set}" = set; then :
19767  withval=$with_user_release_suffix;
19768fi
19769
19770  if test "x$with_user_release_suffix" = xyes; then
19771    as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19772  elif test "x$with_user_release_suffix" != x; then
19773    USER_RELEASE_SUFFIX="$with_user_release_suffix"
19774  fi
19775
19776
19777# Check whether --with-build-number was given.
19778if test "${with_build_number+set}" = set; then :
19779  withval=$with_build_number;
19780fi
19781
19782  if test "x$with_build_number" = xyes; then
19783    as_fn_error $? "Build number must have a value" "$LINENO" 5
19784  elif test "x$with_build_number" != x; then
19785    JDK_BUILD_NUMBER="$with_build_number"
19786  fi
19787  # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19788  if test "x$JDK_BUILD_NUMBER" = x; then
19789    JDK_BUILD_NUMBER=b00
19790    if test "x$USER_RELEASE_SUFFIX" = x; then
19791      BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19792      # Avoid [:alnum:] since it depends on the locale.
19793      CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19794      USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19795    fi
19796  fi
19797
19798  # Now set the JDK version, milestone, build number etc.
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814  COPYRIGHT_YEAR=`date +'%Y'`
19815
19816
19817  if test "x$JDK_UPDATE_VERSION" != x; then
19818    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19819  else
19820    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19821  fi
19822
19823
19824  COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19825
19826
19827
19828###############################################################################
19829#
19830# Setup BootJDK, used to bootstrap the build.
19831#
19832###############################################################################
19833
19834
19835  BOOT_JDK_FOUND=no
19836
19837# Check whether --with-boot-jdk was given.
19838if test "${with_boot_jdk+set}" = set; then :
19839  withval=$with_boot_jdk;
19840fi
19841
19842
19843  # We look for the Boot JDK through various means, going from more certain to
19844  # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19845  # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19846  # must check if this is indeed valid; otherwise we'll continue looking.
19847
19848  # Test: Is bootjdk explicitely set by command line arguments?
19849
19850  if test "x$BOOT_JDK_FOUND" = xno; then
19851    # Now execute the test
19852
19853  if test "x$with_boot_jdk" != x; then
19854    BOOT_JDK=$with_boot_jdk
19855    BOOT_JDK_FOUND=maybe
19856    { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19857$as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19858  fi
19859
19860
19861    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19862    if test "x$BOOT_JDK_FOUND" = xmaybe; then
19863      # Do we have a bin/java?
19864      if test ! -x "$BOOT_JDK/bin/java"; then
19865        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19866$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19867        BOOT_JDK_FOUND=no
19868      else
19869        # Do we have a bin/javac?
19870        if test ! -x "$BOOT_JDK/bin/javac"; then
19871          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19872$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19873          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19874$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19875          BOOT_JDK_FOUND=no
19876        else
19877          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19878          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19879            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19880$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19881            BOOT_JDK_FOUND=no
19882          else
19883            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19884            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19885
19886            # Extra M4 quote needed to protect [] in grep expression.
19887            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19888            if test "x$FOUND_CORRECT_VERSION" = x; then
19889              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19890$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19891              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19892$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19893              BOOT_JDK_FOUND=no
19894            else
19895              # We're done! :-)
19896              BOOT_JDK_FOUND=yes
19897
19898  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19899
19900  # Input might be given as Windows format, start by converting to
19901  # unix format.
19902  path="$BOOT_JDK"
19903  new_path=`$CYGPATH -u "$path"`
19904
19905  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19906  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19907  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19908  # "foo.exe" is OK but "foo" is an error.
19909  #
19910  # This test is therefore slightly more accurate than "test -f" to check for file precense.
19911  # It is also a way to make sure we got the proper file name for the real test later on.
19912  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19913  if test "x$test_shortpath" = x; then
19914    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19915$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19916    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19917  fi
19918
19919  # Call helper function which possibly converts this using DOS-style short mode.
19920  # If so, the updated path is stored in $new_path.
19921
19922  input_path="$new_path"
19923  # Check if we need to convert this using DOS-style short mode. If the path
19924  # contains just simple characters, use it. Otherwise (spaces, weird characters),
19925  # take no chances and rewrite it.
19926  # Note: m4 eats our [], so we need to use [ and ] instead.
19927  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19928  if test "x$has_forbidden_chars" != x; then
19929    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19930    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19931    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19932    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19933      # Going to short mode and back again did indeed matter. Since short mode is
19934      # case insensitive, let's make it lowercase to improve readability.
19935      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19936      # Now convert it back to Unix-stile (cygpath)
19937      input_path=`$CYGPATH -u "$shortmode_path"`
19938      new_path="$input_path"
19939    fi
19940  fi
19941
19942  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19943  if test "x$test_cygdrive_prefix" = x; then
19944    # As a simple fix, exclude /usr/bin since it's not a real path.
19945    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19946      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19947      # a path prefixed by /cygdrive for fixpath to work.
19948      new_path="$CYGWIN_ROOT_PATH$input_path"
19949    fi
19950  fi
19951
19952
19953  if test "x$path" != "x$new_path"; then
19954    BOOT_JDK="$new_path"
19955    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19956$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19957  fi
19958
19959  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19960
19961  path="$BOOT_JDK"
19962  has_colon=`$ECHO $path | $GREP ^.:`
19963  new_path="$path"
19964  if test "x$has_colon" = x; then
19965    # Not in mixed or Windows style, start by that.
19966    new_path=`cmd //c echo $path`
19967  fi
19968
19969
19970  input_path="$new_path"
19971  # Check if we need to convert this using DOS-style short mode. If the path
19972  # contains just simple characters, use it. Otherwise (spaces, weird characters),
19973  # take no chances and rewrite it.
19974  # Note: m4 eats our [], so we need to use [ and ] instead.
19975  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19976  if test "x$has_forbidden_chars" != x; then
19977    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19978    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19979  fi
19980
19981
19982  windows_path="$new_path"
19983  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19984    unix_path=`$CYGPATH -u "$windows_path"`
19985    new_path="$unix_path"
19986  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19987    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19988    new_path="$unix_path"
19989  fi
19990
19991  if test "x$path" != "x$new_path"; then
19992    BOOT_JDK="$new_path"
19993    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19994$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19995  fi
19996
19997  # Save the first 10 bytes of this path to the storage, so fixpath can work.
19998  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19999
20000  else
20001    # We're on a posix platform. Hooray! :)
20002    path="$BOOT_JDK"
20003    has_space=`$ECHO "$path" | $GREP " "`
20004    if test "x$has_space" != x; then
20005      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20006$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20007      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20008    fi
20009
20010    # Use eval to expand a potential ~
20011    eval path="$path"
20012    if test ! -f "$path" && test ! -d "$path"; then
20013      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20014    fi
20015
20016    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20017  fi
20018
20019              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20020$as_echo_n "checking for Boot JDK... " >&6; }
20021              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20022$as_echo "$BOOT_JDK" >&6; }
20023              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20024$as_echo_n "checking Boot JDK version... " >&6; }
20025              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20026              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20027$as_echo "$BOOT_JDK_VERSION" >&6; }
20028            fi # end check jdk version
20029          fi # end check rt.jar
20030        fi # end check javac
20031      fi # end check java
20032    fi # end check boot jdk found
20033  fi
20034
20035  if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20036    # Having specified an argument which is incorrect will produce an instant failure;
20037    # we should not go on looking
20038    as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20039  fi
20040
20041  # Test: Is bootjdk available from builddeps?
20042
20043  if test "x$BOOT_JDK_FOUND" = xno; then
20044    # Now execute the test
20045
20046
20047
20048  if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20049    # Source the builddeps file again, to make sure it uses the latest variables!
20050    . $builddepsfile
20051    # Look for a target and build machine specific resource!
20052    eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20053    if test "x$resource" = x; then
20054      # Ok, lets instead look for a target specific resource
20055      eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20056    fi
20057    if test "x$resource" = x; then
20058      # Ok, lets instead look for a build specific resource
20059      eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20060    fi
20061    if test "x$resource" = x; then
20062      # Ok, lets instead look for a generic resource
20063      # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20064      resource=${builddep_bootjdk}
20065    fi
20066    if test "x$resource" != x; then
20067      { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20068$as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20069      # If the resource in the builddeps.conf file is an existing directory,
20070      # for example /java/linux/cups
20071      if test -d ${resource}; then
20072        depdir=${resource}
20073      else
20074
20075  # bootjdk is for example mymodule
20076  # $resource is for example libs/general/libmymod_1_2_3.zip
20077  # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20078  # $with_builddeps_dir is for example /localhome/builddeps
20079  # depdir is the name of the variable into which we store the depdir, eg MYMOD
20080  # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20081  # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20082  filename=`basename $resource`
20083  filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20084  filebase=${filename%%.*}
20085  extension=${filename#*.}
20086  installdir=$with_builddeps_dir/$filebase
20087  if test ! -f $installdir/$filename.unpacked; then
20088    { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20089$as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20090    if test ! -d $installdir; then
20091      mkdir -p $installdir
20092    fi
20093    if test ! -d $installdir; then
20094      as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20095    fi
20096    tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20097    touch $tmpfile
20098    if test ! -f $tmpfile; then
20099      as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20100    fi
20101
20102  # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20103  # $tmpfile is the local file name for the downloaded file.
20104  VALID_TOOL=no
20105  if test "x$BDEPS_FTP" = xwget; then
20106    VALID_TOOL=yes
20107    wget -O $tmpfile $with_builddeps_server/$resource
20108  fi
20109  if test "x$BDEPS_FTP" = xlftp; then
20110    VALID_TOOL=yes
20111    lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20112  fi
20113  if test "x$BDEPS_FTP" = xftp; then
20114    VALID_TOOL=yes
20115    FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20116    FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20117    FTPUSERPWD=${FTPSERVER%%@*}
20118    if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20119      FTPUSER=${userpwd%%:*}
20120      FTPPWD=${userpwd#*@}
20121      FTPSERVER=${FTPSERVER#*@}
20122    else
20123      FTPUSER=ftp
20124      FTPPWD=ftp
20125    fi
20126    # the "pass" command does not work on some
20127    # ftp clients (read ftp.exe) but if it works,
20128    # passive mode is better!
20129    ( \
20130        echo "user $FTPUSER $FTPPWD"        ; \
20131        echo "pass"                         ; \
20132        echo "bin"                          ; \
20133        echo "get $FTPPATH $tmpfile"              ; \
20134    ) | ftp -in $FTPSERVER
20135  fi
20136  if test "x$VALID_TOOL" != xyes; then
20137    as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20138  fi
20139
20140    mv $tmpfile $installdir/$filename
20141    if test ! -s $installdir/$filename; then
20142      as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20143    fi
20144    case "$extension" in
20145      zip)  echo "Unzipping $installdir/$filename..."
20146        (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20147        ;;
20148      tar.gz) echo "Untaring $installdir/$filename..."
20149        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20150        ;;
20151      tgz) echo "Untaring $installdir/$filename..."
20152        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20153        ;;
20154      *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20155        ;;
20156    esac
20157  fi
20158  if test -f $installdir/$filename.unpacked; then
20159    depdir=$installdir
20160  fi
20161
20162      fi
20163      # Source the builddeps file again, because in the previous command, the depdir
20164      # was updated to point at the current build dependency install directory.
20165      . $builddepsfile
20166      # Now extract variables from the builddeps.conf files.
20167      theroot=${builddep_bootjdk_ROOT}
20168      thecflags=${builddep_bootjdk_CFLAGS}
20169      thelibs=${builddep_bootjdk_LIBS}
20170      if test "x$depdir" = x; then
20171        as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20172      fi
20173      BOOT_JDK=$depdir
20174      if test "x$theroot" != x; then
20175        BOOT_JDK="$theroot"
20176      fi
20177      if test "x$thecflags" != x; then
20178        BOOT_JDK_CFLAGS="$thecflags"
20179      fi
20180      if test "x$thelibs" != x; then
20181        BOOT_JDK_LIBS="$thelibs"
20182      fi
20183      BOOT_JDK_FOUND=maybe
20184      else BOOT_JDK_FOUND=no
20185
20186    fi
20187    else BOOT_JDK_FOUND=no
20188
20189  fi
20190
20191
20192
20193    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20194    if test "x$BOOT_JDK_FOUND" = xmaybe; then
20195      # Do we have a bin/java?
20196      if test ! -x "$BOOT_JDK/bin/java"; then
20197        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20198$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20199        BOOT_JDK_FOUND=no
20200      else
20201        # Do we have a bin/javac?
20202        if test ! -x "$BOOT_JDK/bin/javac"; then
20203          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20204$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20205          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20206$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20207          BOOT_JDK_FOUND=no
20208        else
20209          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20210          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20211            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20212$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20213            BOOT_JDK_FOUND=no
20214          else
20215            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20216            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20217
20218            # Extra M4 quote needed to protect [] in grep expression.
20219            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20220            if test "x$FOUND_CORRECT_VERSION" = x; then
20221              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20222$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20223              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20224$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20225              BOOT_JDK_FOUND=no
20226            else
20227              # We're done! :-)
20228              BOOT_JDK_FOUND=yes
20229
20230  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20231
20232  # Input might be given as Windows format, start by converting to
20233  # unix format.
20234  path="$BOOT_JDK"
20235  new_path=`$CYGPATH -u "$path"`
20236
20237  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20238  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20239  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20240  # "foo.exe" is OK but "foo" is an error.
20241  #
20242  # This test is therefore slightly more accurate than "test -f" to check for file precense.
20243  # It is also a way to make sure we got the proper file name for the real test later on.
20244  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20245  if test "x$test_shortpath" = x; then
20246    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20247$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20248    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20249  fi
20250
20251  # Call helper function which possibly converts this using DOS-style short mode.
20252  # If so, the updated path is stored in $new_path.
20253
20254  input_path="$new_path"
20255  # Check if we need to convert this using DOS-style short mode. If the path
20256  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20257  # take no chances and rewrite it.
20258  # Note: m4 eats our [], so we need to use [ and ] instead.
20259  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20260  if test "x$has_forbidden_chars" != x; then
20261    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20262    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20263    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20264    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20265      # Going to short mode and back again did indeed matter. Since short mode is
20266      # case insensitive, let's make it lowercase to improve readability.
20267      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20268      # Now convert it back to Unix-stile (cygpath)
20269      input_path=`$CYGPATH -u "$shortmode_path"`
20270      new_path="$input_path"
20271    fi
20272  fi
20273
20274  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20275  if test "x$test_cygdrive_prefix" = x; then
20276    # As a simple fix, exclude /usr/bin since it's not a real path.
20277    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20278      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20279      # a path prefixed by /cygdrive for fixpath to work.
20280      new_path="$CYGWIN_ROOT_PATH$input_path"
20281    fi
20282  fi
20283
20284
20285  if test "x$path" != "x$new_path"; then
20286    BOOT_JDK="$new_path"
20287    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20288$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20289  fi
20290
20291  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20292
20293  path="$BOOT_JDK"
20294  has_colon=`$ECHO $path | $GREP ^.:`
20295  new_path="$path"
20296  if test "x$has_colon" = x; then
20297    # Not in mixed or Windows style, start by that.
20298    new_path=`cmd //c echo $path`
20299  fi
20300
20301
20302  input_path="$new_path"
20303  # Check if we need to convert this using DOS-style short mode. If the path
20304  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20305  # take no chances and rewrite it.
20306  # Note: m4 eats our [], so we need to use [ and ] instead.
20307  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20308  if test "x$has_forbidden_chars" != x; then
20309    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20310    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20311  fi
20312
20313
20314  windows_path="$new_path"
20315  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20316    unix_path=`$CYGPATH -u "$windows_path"`
20317    new_path="$unix_path"
20318  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20319    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20320    new_path="$unix_path"
20321  fi
20322
20323  if test "x$path" != "x$new_path"; then
20324    BOOT_JDK="$new_path"
20325    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20326$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20327  fi
20328
20329  # Save the first 10 bytes of this path to the storage, so fixpath can work.
20330  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20331
20332  else
20333    # We're on a posix platform. Hooray! :)
20334    path="$BOOT_JDK"
20335    has_space=`$ECHO "$path" | $GREP " "`
20336    if test "x$has_space" != x; then
20337      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20338$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20339      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20340    fi
20341
20342    # Use eval to expand a potential ~
20343    eval path="$path"
20344    if test ! -f "$path" && test ! -d "$path"; then
20345      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20346    fi
20347
20348    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20349  fi
20350
20351              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20352$as_echo_n "checking for Boot JDK... " >&6; }
20353              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20354$as_echo "$BOOT_JDK" >&6; }
20355              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20356$as_echo_n "checking Boot JDK version... " >&6; }
20357              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20358              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20359$as_echo "$BOOT_JDK_VERSION" >&6; }
20360            fi # end check jdk version
20361          fi # end check rt.jar
20362        fi # end check javac
20363      fi # end check java
20364    fi # end check boot jdk found
20365  fi
20366
20367
20368  # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20369
20370  if test "x$BOOT_JDK_FOUND" = xno; then
20371    # Now execute the test
20372
20373  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20374    # First check at user selected default
20375
20376  if test "x$BOOT_JDK_FOUND" = xno; then
20377    # Now execute the test
20378
20379  if test -x /usr/libexec/java_home; then
20380    BOOT_JDK=`/usr/libexec/java_home `
20381    BOOT_JDK_FOUND=maybe
20382    { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20383$as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20384  fi
20385
20386
20387    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20388    if test "x$BOOT_JDK_FOUND" = xmaybe; then
20389      # Do we have a bin/java?
20390      if test ! -x "$BOOT_JDK/bin/java"; then
20391        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20392$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20393        BOOT_JDK_FOUND=no
20394      else
20395        # Do we have a bin/javac?
20396        if test ! -x "$BOOT_JDK/bin/javac"; then
20397          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20398$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20399          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20400$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20401          BOOT_JDK_FOUND=no
20402        else
20403          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20404          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20405            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20406$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20407            BOOT_JDK_FOUND=no
20408          else
20409            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20410            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20411
20412            # Extra M4 quote needed to protect [] in grep expression.
20413            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20414            if test "x$FOUND_CORRECT_VERSION" = x; then
20415              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20416$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20417              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20418$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20419              BOOT_JDK_FOUND=no
20420            else
20421              # We're done! :-)
20422              BOOT_JDK_FOUND=yes
20423
20424  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20425
20426  # Input might be given as Windows format, start by converting to
20427  # unix format.
20428  path="$BOOT_JDK"
20429  new_path=`$CYGPATH -u "$path"`
20430
20431  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20432  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20433  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20434  # "foo.exe" is OK but "foo" is an error.
20435  #
20436  # This test is therefore slightly more accurate than "test -f" to check for file precense.
20437  # It is also a way to make sure we got the proper file name for the real test later on.
20438  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20439  if test "x$test_shortpath" = x; then
20440    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20441$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20442    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20443  fi
20444
20445  # Call helper function which possibly converts this using DOS-style short mode.
20446  # If so, the updated path is stored in $new_path.
20447
20448  input_path="$new_path"
20449  # Check if we need to convert this using DOS-style short mode. If the path
20450  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20451  # take no chances and rewrite it.
20452  # Note: m4 eats our [], so we need to use [ and ] instead.
20453  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20454  if test "x$has_forbidden_chars" != x; then
20455    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20456    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20457    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20458    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20459      # Going to short mode and back again did indeed matter. Since short mode is
20460      # case insensitive, let's make it lowercase to improve readability.
20461      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20462      # Now convert it back to Unix-stile (cygpath)
20463      input_path=`$CYGPATH -u "$shortmode_path"`
20464      new_path="$input_path"
20465    fi
20466  fi
20467
20468  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20469  if test "x$test_cygdrive_prefix" = x; then
20470    # As a simple fix, exclude /usr/bin since it's not a real path.
20471    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20472      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20473      # a path prefixed by /cygdrive for fixpath to work.
20474      new_path="$CYGWIN_ROOT_PATH$input_path"
20475    fi
20476  fi
20477
20478
20479  if test "x$path" != "x$new_path"; then
20480    BOOT_JDK="$new_path"
20481    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20482$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20483  fi
20484
20485  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20486
20487  path="$BOOT_JDK"
20488  has_colon=`$ECHO $path | $GREP ^.:`
20489  new_path="$path"
20490  if test "x$has_colon" = x; then
20491    # Not in mixed or Windows style, start by that.
20492    new_path=`cmd //c echo $path`
20493  fi
20494
20495
20496  input_path="$new_path"
20497  # Check if we need to convert this using DOS-style short mode. If the path
20498  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20499  # take no chances and rewrite it.
20500  # Note: m4 eats our [], so we need to use [ and ] instead.
20501  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20502  if test "x$has_forbidden_chars" != x; then
20503    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20504    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20505  fi
20506
20507
20508  windows_path="$new_path"
20509  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20510    unix_path=`$CYGPATH -u "$windows_path"`
20511    new_path="$unix_path"
20512  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20513    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20514    new_path="$unix_path"
20515  fi
20516
20517  if test "x$path" != "x$new_path"; then
20518    BOOT_JDK="$new_path"
20519    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20520$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20521  fi
20522
20523  # Save the first 10 bytes of this path to the storage, so fixpath can work.
20524  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20525
20526  else
20527    # We're on a posix platform. Hooray! :)
20528    path="$BOOT_JDK"
20529    has_space=`$ECHO "$path" | $GREP " "`
20530    if test "x$has_space" != x; then
20531      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20532$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20533      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20534    fi
20535
20536    # Use eval to expand a potential ~
20537    eval path="$path"
20538    if test ! -f "$path" && test ! -d "$path"; then
20539      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20540    fi
20541
20542    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20543  fi
20544
20545              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20546$as_echo_n "checking for Boot JDK... " >&6; }
20547              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20548$as_echo "$BOOT_JDK" >&6; }
20549              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20550$as_echo_n "checking Boot JDK version... " >&6; }
20551              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20552              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20553$as_echo "$BOOT_JDK_VERSION" >&6; }
20554            fi # end check jdk version
20555          fi # end check rt.jar
20556        fi # end check javac
20557      fi # end check java
20558    fi # end check boot jdk found
20559  fi
20560
20561    # If that did not work out (e.g. too old), try explicit versions instead
20562
20563  if test "x$BOOT_JDK_FOUND" = xno; then
20564    # Now execute the test
20565
20566  if test -x /usr/libexec/java_home; then
20567    BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20568    BOOT_JDK_FOUND=maybe
20569    { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20570$as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20571  fi
20572
20573
20574    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20575    if test "x$BOOT_JDK_FOUND" = xmaybe; then
20576      # Do we have a bin/java?
20577      if test ! -x "$BOOT_JDK/bin/java"; then
20578        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20579$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20580        BOOT_JDK_FOUND=no
20581      else
20582        # Do we have a bin/javac?
20583        if test ! -x "$BOOT_JDK/bin/javac"; then
20584          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20585$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20586          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20587$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20588          BOOT_JDK_FOUND=no
20589        else
20590          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20591          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20592            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20593$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20594            BOOT_JDK_FOUND=no
20595          else
20596            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20597            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20598
20599            # Extra M4 quote needed to protect [] in grep expression.
20600            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20601            if test "x$FOUND_CORRECT_VERSION" = x; then
20602              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20603$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20604              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20605$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20606              BOOT_JDK_FOUND=no
20607            else
20608              # We're done! :-)
20609              BOOT_JDK_FOUND=yes
20610
20611  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20612
20613  # Input might be given as Windows format, start by converting to
20614  # unix format.
20615  path="$BOOT_JDK"
20616  new_path=`$CYGPATH -u "$path"`
20617
20618  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20619  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20620  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20621  # "foo.exe" is OK but "foo" is an error.
20622  #
20623  # This test is therefore slightly more accurate than "test -f" to check for file precense.
20624  # It is also a way to make sure we got the proper file name for the real test later on.
20625  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20626  if test "x$test_shortpath" = x; then
20627    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20628$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20629    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20630  fi
20631
20632  # Call helper function which possibly converts this using DOS-style short mode.
20633  # If so, the updated path is stored in $new_path.
20634
20635  input_path="$new_path"
20636  # Check if we need to convert this using DOS-style short mode. If the path
20637  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20638  # take no chances and rewrite it.
20639  # Note: m4 eats our [], so we need to use [ and ] instead.
20640  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20641  if test "x$has_forbidden_chars" != x; then
20642    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20643    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20644    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20645    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20646      # Going to short mode and back again did indeed matter. Since short mode is
20647      # case insensitive, let's make it lowercase to improve readability.
20648      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20649      # Now convert it back to Unix-stile (cygpath)
20650      input_path=`$CYGPATH -u "$shortmode_path"`
20651      new_path="$input_path"
20652    fi
20653  fi
20654
20655  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20656  if test "x$test_cygdrive_prefix" = x; then
20657    # As a simple fix, exclude /usr/bin since it's not a real path.
20658    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20659      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20660      # a path prefixed by /cygdrive for fixpath to work.
20661      new_path="$CYGWIN_ROOT_PATH$input_path"
20662    fi
20663  fi
20664
20665
20666  if test "x$path" != "x$new_path"; then
20667    BOOT_JDK="$new_path"
20668    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20669$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20670  fi
20671
20672  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20673
20674  path="$BOOT_JDK"
20675  has_colon=`$ECHO $path | $GREP ^.:`
20676  new_path="$path"
20677  if test "x$has_colon" = x; then
20678    # Not in mixed or Windows style, start by that.
20679    new_path=`cmd //c echo $path`
20680  fi
20681
20682
20683  input_path="$new_path"
20684  # Check if we need to convert this using DOS-style short mode. If the path
20685  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20686  # take no chances and rewrite it.
20687  # Note: m4 eats our [], so we need to use [ and ] instead.
20688  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20689  if test "x$has_forbidden_chars" != x; then
20690    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20691    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20692  fi
20693
20694
20695  windows_path="$new_path"
20696  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20697    unix_path=`$CYGPATH -u "$windows_path"`
20698    new_path="$unix_path"
20699  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20700    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20701    new_path="$unix_path"
20702  fi
20703
20704  if test "x$path" != "x$new_path"; then
20705    BOOT_JDK="$new_path"
20706    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20707$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20708  fi
20709
20710  # Save the first 10 bytes of this path to the storage, so fixpath can work.
20711  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20712
20713  else
20714    # We're on a posix platform. Hooray! :)
20715    path="$BOOT_JDK"
20716    has_space=`$ECHO "$path" | $GREP " "`
20717    if test "x$has_space" != x; then
20718      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20719$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20720      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20721    fi
20722
20723    # Use eval to expand a potential ~
20724    eval path="$path"
20725    if test ! -f "$path" && test ! -d "$path"; then
20726      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20727    fi
20728
20729    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20730  fi
20731
20732              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20733$as_echo_n "checking for Boot JDK... " >&6; }
20734              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20735$as_echo "$BOOT_JDK" >&6; }
20736              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20737$as_echo_n "checking Boot JDK version... " >&6; }
20738              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20739              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20740$as_echo "$BOOT_JDK_VERSION" >&6; }
20741            fi # end check jdk version
20742          fi # end check rt.jar
20743        fi # end check javac
20744      fi # end check java
20745    fi # end check boot jdk found
20746  fi
20747
20748
20749  if test "x$BOOT_JDK_FOUND" = xno; then
20750    # Now execute the test
20751
20752  if test -x /usr/libexec/java_home; then
20753    BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20754    BOOT_JDK_FOUND=maybe
20755    { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20756$as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20757  fi
20758
20759
20760    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20761    if test "x$BOOT_JDK_FOUND" = xmaybe; then
20762      # Do we have a bin/java?
20763      if test ! -x "$BOOT_JDK/bin/java"; then
20764        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20765$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20766        BOOT_JDK_FOUND=no
20767      else
20768        # Do we have a bin/javac?
20769        if test ! -x "$BOOT_JDK/bin/javac"; then
20770          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20771$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20772          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20773$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20774          BOOT_JDK_FOUND=no
20775        else
20776          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20777          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20778            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20779$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20780            BOOT_JDK_FOUND=no
20781          else
20782            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20783            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20784
20785            # Extra M4 quote needed to protect [] in grep expression.
20786            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20787            if test "x$FOUND_CORRECT_VERSION" = x; then
20788              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20789$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20790              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20791$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20792              BOOT_JDK_FOUND=no
20793            else
20794              # We're done! :-)
20795              BOOT_JDK_FOUND=yes
20796
20797  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20798
20799  # Input might be given as Windows format, start by converting to
20800  # unix format.
20801  path="$BOOT_JDK"
20802  new_path=`$CYGPATH -u "$path"`
20803
20804  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20805  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20806  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20807  # "foo.exe" is OK but "foo" is an error.
20808  #
20809  # This test is therefore slightly more accurate than "test -f" to check for file precense.
20810  # It is also a way to make sure we got the proper file name for the real test later on.
20811  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20812  if test "x$test_shortpath" = x; then
20813    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20814$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20815    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20816  fi
20817
20818  # Call helper function which possibly converts this using DOS-style short mode.
20819  # If so, the updated path is stored in $new_path.
20820
20821  input_path="$new_path"
20822  # Check if we need to convert this using DOS-style short mode. If the path
20823  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20824  # take no chances and rewrite it.
20825  # Note: m4 eats our [], so we need to use [ and ] instead.
20826  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20827  if test "x$has_forbidden_chars" != x; then
20828    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20829    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20830    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20831    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20832      # Going to short mode and back again did indeed matter. Since short mode is
20833      # case insensitive, let's make it lowercase to improve readability.
20834      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20835      # Now convert it back to Unix-stile (cygpath)
20836      input_path=`$CYGPATH -u "$shortmode_path"`
20837      new_path="$input_path"
20838    fi
20839  fi
20840
20841  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20842  if test "x$test_cygdrive_prefix" = x; then
20843    # As a simple fix, exclude /usr/bin since it's not a real path.
20844    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20845      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20846      # a path prefixed by /cygdrive for fixpath to work.
20847      new_path="$CYGWIN_ROOT_PATH$input_path"
20848    fi
20849  fi
20850
20851
20852  if test "x$path" != "x$new_path"; then
20853    BOOT_JDK="$new_path"
20854    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20855$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20856  fi
20857
20858  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20859
20860  path="$BOOT_JDK"
20861  has_colon=`$ECHO $path | $GREP ^.:`
20862  new_path="$path"
20863  if test "x$has_colon" = x; then
20864    # Not in mixed or Windows style, start by that.
20865    new_path=`cmd //c echo $path`
20866  fi
20867
20868
20869  input_path="$new_path"
20870  # Check if we need to convert this using DOS-style short mode. If the path
20871  # contains just simple characters, use it. Otherwise (spaces, weird characters),
20872  # take no chances and rewrite it.
20873  # Note: m4 eats our [], so we need to use [ and ] instead.
20874  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20875  if test "x$has_forbidden_chars" != x; then
20876    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20877    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20878  fi
20879
20880
20881  windows_path="$new_path"
20882  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20883    unix_path=`$CYGPATH -u "$windows_path"`
20884    new_path="$unix_path"
20885  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20886    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20887    new_path="$unix_path"
20888  fi
20889
20890  if test "x$path" != "x$new_path"; then
20891    BOOT_JDK="$new_path"
20892    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20893$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20894  fi
20895
20896  # Save the first 10 bytes of this path to the storage, so fixpath can work.
20897  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20898
20899  else
20900    # We're on a posix platform. Hooray! :)
20901    path="$BOOT_JDK"
20902    has_space=`$ECHO "$path" | $GREP " "`
20903    if test "x$has_space" != x; then
20904      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20905$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20906      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20907    fi
20908
20909    # Use eval to expand a potential ~
20910    eval path="$path"
20911    if test ! -f "$path" && test ! -d "$path"; then
20912      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20913    fi
20914
20915    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20916  fi
20917
20918              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20919$as_echo_n "checking for Boot JDK... " >&6; }
20920              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20921$as_echo "$BOOT_JDK" >&6; }
20922              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20923$as_echo_n "checking Boot JDK version... " >&6; }
20924              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20925              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20926$as_echo "$BOOT_JDK_VERSION" >&6; }
20927            fi # end check jdk version
20928          fi # end check rt.jar
20929        fi # end check javac
20930      fi # end check java
20931    fi # end check boot jdk found
20932  fi
20933
20934
20935  if test "x$BOOT_JDK_FOUND" = xno; then
20936    # Now execute the test
20937
20938  if test -x /usr/libexec/java_home; then
20939    BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20940    BOOT_JDK_FOUND=maybe
20941    { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20942$as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20943  fi
20944
20945
20946    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20947    if test "x$BOOT_JDK_FOUND" = xmaybe; then
20948      # Do we have a bin/java?
20949      if test ! -x "$BOOT_JDK/bin/java"; then
20950        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20951$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20952        BOOT_JDK_FOUND=no
20953      else
20954        # Do we have a bin/javac?
20955        if test ! -x "$BOOT_JDK/bin/javac"; then
20956          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20957$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20958          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20959$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20960          BOOT_JDK_FOUND=no
20961        else
20962          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20963          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20964            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20965$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20966            BOOT_JDK_FOUND=no
20967          else
20968            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20969            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20970
20971            # Extra M4 quote needed to protect [] in grep expression.
20972            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20973            if test "x$FOUND_CORRECT_VERSION" = x; then
20974              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20975$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20976              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20977$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20978              BOOT_JDK_FOUND=no
20979            else
20980              # We're done! :-)
20981              BOOT_JDK_FOUND=yes
20982
20983  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20984
20985  # Input might be given as Windows format, start by converting to
20986  # unix format.
20987  path="$BOOT_JDK"
20988  new_path=`$CYGPATH -u "$path"`
20989
20990  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20991  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20992  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20993  # "foo.exe" is OK but "foo" is an error.
20994  #
20995  # This test is therefore slightly more accurate than "test -f" to check for file precense.
20996  # It is also a way to make sure we got the proper file name for the real test later on.
20997  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20998  if test "x$test_shortpath" = x; then
20999    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21000$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21001    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21002  fi
21003
21004  # Call helper function which possibly converts this using DOS-style short mode.
21005  # If so, the updated path is stored in $new_path.
21006
21007  input_path="$new_path"
21008  # Check if we need to convert this using DOS-style short mode. If the path
21009  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21010  # take no chances and rewrite it.
21011  # Note: m4 eats our [], so we need to use [ and ] instead.
21012  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21013  if test "x$has_forbidden_chars" != x; then
21014    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21015    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21016    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21017    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21018      # Going to short mode and back again did indeed matter. Since short mode is
21019      # case insensitive, let's make it lowercase to improve readability.
21020      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21021      # Now convert it back to Unix-stile (cygpath)
21022      input_path=`$CYGPATH -u "$shortmode_path"`
21023      new_path="$input_path"
21024    fi
21025  fi
21026
21027  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21028  if test "x$test_cygdrive_prefix" = x; then
21029    # As a simple fix, exclude /usr/bin since it's not a real path.
21030    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21031      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21032      # a path prefixed by /cygdrive for fixpath to work.
21033      new_path="$CYGWIN_ROOT_PATH$input_path"
21034    fi
21035  fi
21036
21037
21038  if test "x$path" != "x$new_path"; then
21039    BOOT_JDK="$new_path"
21040    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21041$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21042  fi
21043
21044  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21045
21046  path="$BOOT_JDK"
21047  has_colon=`$ECHO $path | $GREP ^.:`
21048  new_path="$path"
21049  if test "x$has_colon" = x; then
21050    # Not in mixed or Windows style, start by that.
21051    new_path=`cmd //c echo $path`
21052  fi
21053
21054
21055  input_path="$new_path"
21056  # Check if we need to convert this using DOS-style short mode. If the path
21057  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21058  # take no chances and rewrite it.
21059  # Note: m4 eats our [], so we need to use [ and ] instead.
21060  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21061  if test "x$has_forbidden_chars" != x; then
21062    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21063    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21064  fi
21065
21066
21067  windows_path="$new_path"
21068  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21069    unix_path=`$CYGPATH -u "$windows_path"`
21070    new_path="$unix_path"
21071  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21072    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21073    new_path="$unix_path"
21074  fi
21075
21076  if test "x$path" != "x$new_path"; then
21077    BOOT_JDK="$new_path"
21078    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21079$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21080  fi
21081
21082  # Save the first 10 bytes of this path to the storage, so fixpath can work.
21083  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21084
21085  else
21086    # We're on a posix platform. Hooray! :)
21087    path="$BOOT_JDK"
21088    has_space=`$ECHO "$path" | $GREP " "`
21089    if test "x$has_space" != x; then
21090      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21091$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21092      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21093    fi
21094
21095    # Use eval to expand a potential ~
21096    eval path="$path"
21097    if test ! -f "$path" && test ! -d "$path"; then
21098      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21099    fi
21100
21101    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21102  fi
21103
21104              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21105$as_echo_n "checking for Boot JDK... " >&6; }
21106              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21107$as_echo "$BOOT_JDK" >&6; }
21108              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21109$as_echo_n "checking Boot JDK version... " >&6; }
21110              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21111              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21112$as_echo "$BOOT_JDK_VERSION" >&6; }
21113            fi # end check jdk version
21114          fi # end check rt.jar
21115        fi # end check javac
21116      fi # end check java
21117    fi # end check boot jdk found
21118  fi
21119
21120  fi
21121
21122
21123    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21124    if test "x$BOOT_JDK_FOUND" = xmaybe; then
21125      # Do we have a bin/java?
21126      if test ! -x "$BOOT_JDK/bin/java"; then
21127        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21128$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21129        BOOT_JDK_FOUND=no
21130      else
21131        # Do we have a bin/javac?
21132        if test ! -x "$BOOT_JDK/bin/javac"; then
21133          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21134$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21135          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21136$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21137          BOOT_JDK_FOUND=no
21138        else
21139          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21140          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21141            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21142$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21143            BOOT_JDK_FOUND=no
21144          else
21145            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21146            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21147
21148            # Extra M4 quote needed to protect [] in grep expression.
21149            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21150            if test "x$FOUND_CORRECT_VERSION" = x; then
21151              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21152$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21153              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21154$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21155              BOOT_JDK_FOUND=no
21156            else
21157              # We're done! :-)
21158              BOOT_JDK_FOUND=yes
21159
21160  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21161
21162  # Input might be given as Windows format, start by converting to
21163  # unix format.
21164  path="$BOOT_JDK"
21165  new_path=`$CYGPATH -u "$path"`
21166
21167  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21168  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21169  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21170  # "foo.exe" is OK but "foo" is an error.
21171  #
21172  # This test is therefore slightly more accurate than "test -f" to check for file precense.
21173  # It is also a way to make sure we got the proper file name for the real test later on.
21174  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21175  if test "x$test_shortpath" = x; then
21176    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21177$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21178    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21179  fi
21180
21181  # Call helper function which possibly converts this using DOS-style short mode.
21182  # If so, the updated path is stored in $new_path.
21183
21184  input_path="$new_path"
21185  # Check if we need to convert this using DOS-style short mode. If the path
21186  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21187  # take no chances and rewrite it.
21188  # Note: m4 eats our [], so we need to use [ and ] instead.
21189  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21190  if test "x$has_forbidden_chars" != x; then
21191    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21192    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21193    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21194    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21195      # Going to short mode and back again did indeed matter. Since short mode is
21196      # case insensitive, let's make it lowercase to improve readability.
21197      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21198      # Now convert it back to Unix-stile (cygpath)
21199      input_path=`$CYGPATH -u "$shortmode_path"`
21200      new_path="$input_path"
21201    fi
21202  fi
21203
21204  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21205  if test "x$test_cygdrive_prefix" = x; then
21206    # As a simple fix, exclude /usr/bin since it's not a real path.
21207    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21208      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21209      # a path prefixed by /cygdrive for fixpath to work.
21210      new_path="$CYGWIN_ROOT_PATH$input_path"
21211    fi
21212  fi
21213
21214
21215  if test "x$path" != "x$new_path"; then
21216    BOOT_JDK="$new_path"
21217    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21218$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21219  fi
21220
21221  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21222
21223  path="$BOOT_JDK"
21224  has_colon=`$ECHO $path | $GREP ^.:`
21225  new_path="$path"
21226  if test "x$has_colon" = x; then
21227    # Not in mixed or Windows style, start by that.
21228    new_path=`cmd //c echo $path`
21229  fi
21230
21231
21232  input_path="$new_path"
21233  # Check if we need to convert this using DOS-style short mode. If the path
21234  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21235  # take no chances and rewrite it.
21236  # Note: m4 eats our [], so we need to use [ and ] instead.
21237  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21238  if test "x$has_forbidden_chars" != x; then
21239    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21240    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21241  fi
21242
21243
21244  windows_path="$new_path"
21245  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21246    unix_path=`$CYGPATH -u "$windows_path"`
21247    new_path="$unix_path"
21248  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21249    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21250    new_path="$unix_path"
21251  fi
21252
21253  if test "x$path" != "x$new_path"; then
21254    BOOT_JDK="$new_path"
21255    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21256$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21257  fi
21258
21259  # Save the first 10 bytes of this path to the storage, so fixpath can work.
21260  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21261
21262  else
21263    # We're on a posix platform. Hooray! :)
21264    path="$BOOT_JDK"
21265    has_space=`$ECHO "$path" | $GREP " "`
21266    if test "x$has_space" != x; then
21267      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21268$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21269      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21270    fi
21271
21272    # Use eval to expand a potential ~
21273    eval path="$path"
21274    if test ! -f "$path" && test ! -d "$path"; then
21275      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21276    fi
21277
21278    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21279  fi
21280
21281              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21282$as_echo_n "checking for Boot JDK... " >&6; }
21283              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21284$as_echo "$BOOT_JDK" >&6; }
21285              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21286$as_echo_n "checking Boot JDK version... " >&6; }
21287              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21288              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21289$as_echo "$BOOT_JDK_VERSION" >&6; }
21290            fi # end check jdk version
21291          fi # end check rt.jar
21292        fi # end check javac
21293      fi # end check java
21294    fi # end check boot jdk found
21295  fi
21296
21297
21298  # Test: Is $JAVA_HOME set?
21299
21300  if test "x$BOOT_JDK_FOUND" = xno; then
21301    # Now execute the test
21302
21303  if test "x$JAVA_HOME" != x; then
21304    JAVA_HOME_PROCESSED="$JAVA_HOME"
21305
21306  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21307
21308  # Input might be given as Windows format, start by converting to
21309  # unix format.
21310  path="$JAVA_HOME_PROCESSED"
21311  new_path=`$CYGPATH -u "$path"`
21312
21313  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21314  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21315  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21316  # "foo.exe" is OK but "foo" is an error.
21317  #
21318  # This test is therefore slightly more accurate than "test -f" to check for file precense.
21319  # It is also a way to make sure we got the proper file name for the real test later on.
21320  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21321  if test "x$test_shortpath" = x; then
21322    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21323$as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21324    as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21325  fi
21326
21327  # Call helper function which possibly converts this using DOS-style short mode.
21328  # If so, the updated path is stored in $new_path.
21329
21330  input_path="$new_path"
21331  # Check if we need to convert this using DOS-style short mode. If the path
21332  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21333  # take no chances and rewrite it.
21334  # Note: m4 eats our [], so we need to use [ and ] instead.
21335  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21336  if test "x$has_forbidden_chars" != x; then
21337    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21338    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21339    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21340    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21341      # Going to short mode and back again did indeed matter. Since short mode is
21342      # case insensitive, let's make it lowercase to improve readability.
21343      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21344      # Now convert it back to Unix-stile (cygpath)
21345      input_path=`$CYGPATH -u "$shortmode_path"`
21346      new_path="$input_path"
21347    fi
21348  fi
21349
21350  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21351  if test "x$test_cygdrive_prefix" = x; then
21352    # As a simple fix, exclude /usr/bin since it's not a real path.
21353    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21354      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21355      # a path prefixed by /cygdrive for fixpath to work.
21356      new_path="$CYGWIN_ROOT_PATH$input_path"
21357    fi
21358  fi
21359
21360
21361  if test "x$path" != "x$new_path"; then
21362    JAVA_HOME_PROCESSED="$new_path"
21363    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21364$as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21365  fi
21366
21367  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21368
21369  path="$JAVA_HOME_PROCESSED"
21370  has_colon=`$ECHO $path | $GREP ^.:`
21371  new_path="$path"
21372  if test "x$has_colon" = x; then
21373    # Not in mixed or Windows style, start by that.
21374    new_path=`cmd //c echo $path`
21375  fi
21376
21377
21378  input_path="$new_path"
21379  # Check if we need to convert this using DOS-style short mode. If the path
21380  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21381  # take no chances and rewrite it.
21382  # Note: m4 eats our [], so we need to use [ and ] instead.
21383  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21384  if test "x$has_forbidden_chars" != x; then
21385    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21386    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21387  fi
21388
21389
21390  windows_path="$new_path"
21391  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21392    unix_path=`$CYGPATH -u "$windows_path"`
21393    new_path="$unix_path"
21394  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21395    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21396    new_path="$unix_path"
21397  fi
21398
21399  if test "x$path" != "x$new_path"; then
21400    JAVA_HOME_PROCESSED="$new_path"
21401    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21402$as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21403  fi
21404
21405  # Save the first 10 bytes of this path to the storage, so fixpath can work.
21406  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21407
21408  else
21409    # We're on a posix platform. Hooray! :)
21410    path="$JAVA_HOME_PROCESSED"
21411    has_space=`$ECHO "$path" | $GREP " "`
21412    if test "x$has_space" != x; then
21413      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21414$as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21415      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21416    fi
21417
21418    # Use eval to expand a potential ~
21419    eval path="$path"
21420    if test ! -f "$path" && test ! -d "$path"; then
21421      as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21422    fi
21423
21424    JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21425  fi
21426
21427    if test ! -d "$JAVA_HOME_PROCESSED"; then
21428      { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21429$as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21430    else
21431      # Aha, the user has set a JAVA_HOME
21432      # let us use that as the Boot JDK.
21433      BOOT_JDK="$JAVA_HOME_PROCESSED"
21434      BOOT_JDK_FOUND=maybe
21435      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21436$as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21437    fi
21438  fi
21439
21440
21441    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21442    if test "x$BOOT_JDK_FOUND" = xmaybe; then
21443      # Do we have a bin/java?
21444      if test ! -x "$BOOT_JDK/bin/java"; then
21445        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21446$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21447        BOOT_JDK_FOUND=no
21448      else
21449        # Do we have a bin/javac?
21450        if test ! -x "$BOOT_JDK/bin/javac"; then
21451          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21452$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21453          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21454$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21455          BOOT_JDK_FOUND=no
21456        else
21457          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21458          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21459            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21460$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21461            BOOT_JDK_FOUND=no
21462          else
21463            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21464            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21465
21466            # Extra M4 quote needed to protect [] in grep expression.
21467            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21468            if test "x$FOUND_CORRECT_VERSION" = x; then
21469              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21470$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21471              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21472$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21473              BOOT_JDK_FOUND=no
21474            else
21475              # We're done! :-)
21476              BOOT_JDK_FOUND=yes
21477
21478  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21479
21480  # Input might be given as Windows format, start by converting to
21481  # unix format.
21482  path="$BOOT_JDK"
21483  new_path=`$CYGPATH -u "$path"`
21484
21485  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21486  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21487  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21488  # "foo.exe" is OK but "foo" is an error.
21489  #
21490  # This test is therefore slightly more accurate than "test -f" to check for file precense.
21491  # It is also a way to make sure we got the proper file name for the real test later on.
21492  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21493  if test "x$test_shortpath" = x; then
21494    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21495$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21496    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21497  fi
21498
21499  # Call helper function which possibly converts this using DOS-style short mode.
21500  # If so, the updated path is stored in $new_path.
21501
21502  input_path="$new_path"
21503  # Check if we need to convert this using DOS-style short mode. If the path
21504  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21505  # take no chances and rewrite it.
21506  # Note: m4 eats our [], so we need to use [ and ] instead.
21507  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21508  if test "x$has_forbidden_chars" != x; then
21509    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21510    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21511    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21512    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21513      # Going to short mode and back again did indeed matter. Since short mode is
21514      # case insensitive, let's make it lowercase to improve readability.
21515      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21516      # Now convert it back to Unix-stile (cygpath)
21517      input_path=`$CYGPATH -u "$shortmode_path"`
21518      new_path="$input_path"
21519    fi
21520  fi
21521
21522  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21523  if test "x$test_cygdrive_prefix" = x; then
21524    # As a simple fix, exclude /usr/bin since it's not a real path.
21525    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21526      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21527      # a path prefixed by /cygdrive for fixpath to work.
21528      new_path="$CYGWIN_ROOT_PATH$input_path"
21529    fi
21530  fi
21531
21532
21533  if test "x$path" != "x$new_path"; then
21534    BOOT_JDK="$new_path"
21535    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21536$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21537  fi
21538
21539  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21540
21541  path="$BOOT_JDK"
21542  has_colon=`$ECHO $path | $GREP ^.:`
21543  new_path="$path"
21544  if test "x$has_colon" = x; then
21545    # Not in mixed or Windows style, start by that.
21546    new_path=`cmd //c echo $path`
21547  fi
21548
21549
21550  input_path="$new_path"
21551  # Check if we need to convert this using DOS-style short mode. If the path
21552  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21553  # take no chances and rewrite it.
21554  # Note: m4 eats our [], so we need to use [ and ] instead.
21555  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21556  if test "x$has_forbidden_chars" != x; then
21557    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21558    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21559  fi
21560
21561
21562  windows_path="$new_path"
21563  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21564    unix_path=`$CYGPATH -u "$windows_path"`
21565    new_path="$unix_path"
21566  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21567    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21568    new_path="$unix_path"
21569  fi
21570
21571  if test "x$path" != "x$new_path"; then
21572    BOOT_JDK="$new_path"
21573    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21574$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21575  fi
21576
21577  # Save the first 10 bytes of this path to the storage, so fixpath can work.
21578  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21579
21580  else
21581    # We're on a posix platform. Hooray! :)
21582    path="$BOOT_JDK"
21583    has_space=`$ECHO "$path" | $GREP " "`
21584    if test "x$has_space" != x; then
21585      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21586$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21587      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21588    fi
21589
21590    # Use eval to expand a potential ~
21591    eval path="$path"
21592    if test ! -f "$path" && test ! -d "$path"; then
21593      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21594    fi
21595
21596    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21597  fi
21598
21599              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21600$as_echo_n "checking for Boot JDK... " >&6; }
21601              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21602$as_echo "$BOOT_JDK" >&6; }
21603              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21604$as_echo_n "checking Boot JDK version... " >&6; }
21605              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21606              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21607$as_echo "$BOOT_JDK_VERSION" >&6; }
21608            fi # end check jdk version
21609          fi # end check rt.jar
21610        fi # end check javac
21611      fi # end check java
21612    fi # end check boot jdk found
21613  fi
21614
21615
21616  # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21617
21618  if test "x$BOOT_JDK_FOUND" = xno; then
21619    # Now execute the test
21620
21621  # Extract the first word of "javac", so it can be a program name with args.
21622set dummy javac; ac_word=$2
21623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21624$as_echo_n "checking for $ac_word... " >&6; }
21625if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21626  $as_echo_n "(cached) " >&6
21627else
21628  case $JAVAC_CHECK in
21629  [\\/]* | ?:[\\/]*)
21630  ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21631  ;;
21632  *)
21633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21634for as_dir in $PATH
21635do
21636  IFS=$as_save_IFS
21637  test -z "$as_dir" && as_dir=.
21638    for ac_exec_ext in '' $ac_executable_extensions; do
21639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21640    ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21642    break 2
21643  fi
21644done
21645  done
21646IFS=$as_save_IFS
21647
21648  ;;
21649esac
21650fi
21651JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21652if test -n "$JAVAC_CHECK"; then
21653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21654$as_echo "$JAVAC_CHECK" >&6; }
21655else
21656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21657$as_echo "no" >&6; }
21658fi
21659
21660
21661  # Extract the first word of "java", so it can be a program name with args.
21662set dummy java; ac_word=$2
21663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21664$as_echo_n "checking for $ac_word... " >&6; }
21665if ${ac_cv_path_JAVA_CHECK+:} false; then :
21666  $as_echo_n "(cached) " >&6
21667else
21668  case $JAVA_CHECK in
21669  [\\/]* | ?:[\\/]*)
21670  ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21671  ;;
21672  *)
21673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21674for as_dir in $PATH
21675do
21676  IFS=$as_save_IFS
21677  test -z "$as_dir" && as_dir=.
21678    for ac_exec_ext in '' $ac_executable_extensions; do
21679  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21680    ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21682    break 2
21683  fi
21684done
21685  done
21686IFS=$as_save_IFS
21687
21688  ;;
21689esac
21690fi
21691JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21692if test -n "$JAVA_CHECK"; then
21693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21694$as_echo "$JAVA_CHECK" >&6; }
21695else
21696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697$as_echo "no" >&6; }
21698fi
21699
21700
21701  BINARY="$JAVAC_CHECK"
21702  if test "x$JAVAC_CHECK" = x; then
21703    BINARY="$JAVA_CHECK"
21704  fi
21705  if test "x$BINARY" != x; then
21706    # So there is a java(c) binary, it might be part of a JDK.
21707    # Lets find the JDK/JRE directory by following symbolic links.
21708    # Linux/GNU systems often have links from /usr/bin/java to
21709    # /etc/alternatives/java to the real JDK binary.
21710
21711  if test "x$OPENJDK_BUILD_OS" != xwindows; then
21712    # Follow a chain of symbolic links. Use readlink
21713    # where it exists, else fall back to horribly
21714    # complicated shell code.
21715    if test "x$READLINK_TESTED" != yes; then
21716      # On MacOSX there is a readlink tool with a different
21717      # purpose than the GNU readlink tool. Check the found readlink.
21718      ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21719      if test "x$ISGNU" = x; then
21720        # A readlink that we do not know how to use.
21721        # Are there other non-GNU readlinks out there?
21722        READLINK_TESTED=yes
21723        READLINK=
21724      fi
21725    fi
21726
21727    if test "x$READLINK" != x; then
21728      BINARY=`$READLINK -f $BINARY`
21729    else
21730      # Save the current directory for restoring afterwards
21731      STARTDIR=$PWD
21732      COUNTER=0
21733      sym_link_dir=`$DIRNAME $BINARY`
21734      sym_link_file=`$BASENAME $BINARY`
21735      cd $sym_link_dir
21736      # Use -P flag to resolve symlinks in directories.
21737      cd `$THEPWDCMD -P`
21738      sym_link_dir=`$THEPWDCMD -P`
21739      # Resolve file symlinks
21740      while test $COUNTER -lt 20; do
21741        ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21742        if test "x$ISLINK" == x; then
21743          # This is not a symbolic link! We are done!
21744          break
21745        fi
21746        # Again resolve directory symlinks since the target of the just found
21747        # link could be in a different directory
21748        cd `$DIRNAME $ISLINK`
21749        sym_link_dir=`$THEPWDCMD -P`
21750        sym_link_file=`$BASENAME $ISLINK`
21751        let COUNTER=COUNTER+1
21752      done
21753      cd $STARTDIR
21754      BINARY=$sym_link_dir/$sym_link_file
21755    fi
21756  fi
21757
21758    BOOT_JDK=`dirname "$BINARY"`
21759    BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21760    if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21761      # Looks like we found ourselves an JDK
21762      BOOT_JDK_FOUND=maybe
21763      { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21764$as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21765    fi
21766  fi
21767
21768
21769    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21770    if test "x$BOOT_JDK_FOUND" = xmaybe; then
21771      # Do we have a bin/java?
21772      if test ! -x "$BOOT_JDK/bin/java"; then
21773        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21774$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21775        BOOT_JDK_FOUND=no
21776      else
21777        # Do we have a bin/javac?
21778        if test ! -x "$BOOT_JDK/bin/javac"; then
21779          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21780$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21781          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21782$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21783          BOOT_JDK_FOUND=no
21784        else
21785          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21786          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21787            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21788$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21789            BOOT_JDK_FOUND=no
21790          else
21791            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21792            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21793
21794            # Extra M4 quote needed to protect [] in grep expression.
21795            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21796            if test "x$FOUND_CORRECT_VERSION" = x; then
21797              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21798$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21799              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21800$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21801              BOOT_JDK_FOUND=no
21802            else
21803              # We're done! :-)
21804              BOOT_JDK_FOUND=yes
21805
21806  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21807
21808  # Input might be given as Windows format, start by converting to
21809  # unix format.
21810  path="$BOOT_JDK"
21811  new_path=`$CYGPATH -u "$path"`
21812
21813  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21814  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21815  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21816  # "foo.exe" is OK but "foo" is an error.
21817  #
21818  # This test is therefore slightly more accurate than "test -f" to check for file precense.
21819  # It is also a way to make sure we got the proper file name for the real test later on.
21820  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21821  if test "x$test_shortpath" = x; then
21822    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21823$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21824    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21825  fi
21826
21827  # Call helper function which possibly converts this using DOS-style short mode.
21828  # If so, the updated path is stored in $new_path.
21829
21830  input_path="$new_path"
21831  # Check if we need to convert this using DOS-style short mode. If the path
21832  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21833  # take no chances and rewrite it.
21834  # Note: m4 eats our [], so we need to use [ and ] instead.
21835  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21836  if test "x$has_forbidden_chars" != x; then
21837    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21838    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21839    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21840    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21841      # Going to short mode and back again did indeed matter. Since short mode is
21842      # case insensitive, let's make it lowercase to improve readability.
21843      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21844      # Now convert it back to Unix-stile (cygpath)
21845      input_path=`$CYGPATH -u "$shortmode_path"`
21846      new_path="$input_path"
21847    fi
21848  fi
21849
21850  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21851  if test "x$test_cygdrive_prefix" = x; then
21852    # As a simple fix, exclude /usr/bin since it's not a real path.
21853    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21854      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21855      # a path prefixed by /cygdrive for fixpath to work.
21856      new_path="$CYGWIN_ROOT_PATH$input_path"
21857    fi
21858  fi
21859
21860
21861  if test "x$path" != "x$new_path"; then
21862    BOOT_JDK="$new_path"
21863    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21864$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21865  fi
21866
21867  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21868
21869  path="$BOOT_JDK"
21870  has_colon=`$ECHO $path | $GREP ^.:`
21871  new_path="$path"
21872  if test "x$has_colon" = x; then
21873    # Not in mixed or Windows style, start by that.
21874    new_path=`cmd //c echo $path`
21875  fi
21876
21877
21878  input_path="$new_path"
21879  # Check if we need to convert this using DOS-style short mode. If the path
21880  # contains just simple characters, use it. Otherwise (spaces, weird characters),
21881  # take no chances and rewrite it.
21882  # Note: m4 eats our [], so we need to use [ and ] instead.
21883  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21884  if test "x$has_forbidden_chars" != x; then
21885    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21886    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21887  fi
21888
21889
21890  windows_path="$new_path"
21891  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21892    unix_path=`$CYGPATH -u "$windows_path"`
21893    new_path="$unix_path"
21894  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21895    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21896    new_path="$unix_path"
21897  fi
21898
21899  if test "x$path" != "x$new_path"; then
21900    BOOT_JDK="$new_path"
21901    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21902$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21903  fi
21904
21905  # Save the first 10 bytes of this path to the storage, so fixpath can work.
21906  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21907
21908  else
21909    # We're on a posix platform. Hooray! :)
21910    path="$BOOT_JDK"
21911    has_space=`$ECHO "$path" | $GREP " "`
21912    if test "x$has_space" != x; then
21913      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21914$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21915      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21916    fi
21917
21918    # Use eval to expand a potential ~
21919    eval path="$path"
21920    if test ! -f "$path" && test ! -d "$path"; then
21921      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21922    fi
21923
21924    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21925  fi
21926
21927              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21928$as_echo_n "checking for Boot JDK... " >&6; }
21929              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21930$as_echo "$BOOT_JDK" >&6; }
21931              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21932$as_echo_n "checking Boot JDK version... " >&6; }
21933              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21934              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21935$as_echo "$BOOT_JDK_VERSION" >&6; }
21936            fi # end check jdk version
21937          fi # end check rt.jar
21938        fi # end check javac
21939      fi # end check java
21940    fi # end check boot jdk found
21941  fi
21942
21943
21944  # Test: Is there a JDK installed in default, well-known locations?
21945
21946  if test "x$BOOT_JDK_FOUND" = xno; then
21947    # Now execute the test
21948
21949  if test "x$OPENJDK_TARGET_OS" = xwindows; then
21950
21951  if test "x$BOOT_JDK_FOUND" = xno; then
21952    # Now execute the test
21953
21954  if test "x$ProgramW6432" != x; then
21955    VIRTUAL_DIR="$ProgramW6432/Java"
21956
21957  windows_path="$VIRTUAL_DIR"
21958  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21959    unix_path=`$CYGPATH -u "$windows_path"`
21960    VIRTUAL_DIR="$unix_path"
21961  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21962    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21963    VIRTUAL_DIR="$unix_path"
21964  fi
21965
21966
21967  BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21968  BOOT_JDK_SUFFIX=""
21969  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21970  if test "x$ALL_JDKS_FOUND" != x; then
21971    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21972
21973  if test "x$BOOT_JDK_FOUND" = xno; then
21974    # Now execute the test
21975
21976        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21977        if test -d "$BOOT_JDK"; then
21978          BOOT_JDK_FOUND=maybe
21979          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21980$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21981        fi
21982
21983
21984    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21985    if test "x$BOOT_JDK_FOUND" = xmaybe; then
21986      # Do we have a bin/java?
21987      if test ! -x "$BOOT_JDK/bin/java"; then
21988        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21989$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21990        BOOT_JDK_FOUND=no
21991      else
21992        # Do we have a bin/javac?
21993        if test ! -x "$BOOT_JDK/bin/javac"; then
21994          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21995$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21996          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21997$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21998          BOOT_JDK_FOUND=no
21999        else
22000          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22001          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22002            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22003$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22004            BOOT_JDK_FOUND=no
22005          else
22006            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22007            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22008
22009            # Extra M4 quote needed to protect [] in grep expression.
22010            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22011            if test "x$FOUND_CORRECT_VERSION" = x; then
22012              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22013$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22014              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22015$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22016              BOOT_JDK_FOUND=no
22017            else
22018              # We're done! :-)
22019              BOOT_JDK_FOUND=yes
22020
22021  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22022
22023  # Input might be given as Windows format, start by converting to
22024  # unix format.
22025  path="$BOOT_JDK"
22026  new_path=`$CYGPATH -u "$path"`
22027
22028  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22029  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22030  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22031  # "foo.exe" is OK but "foo" is an error.
22032  #
22033  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22034  # It is also a way to make sure we got the proper file name for the real test later on.
22035  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22036  if test "x$test_shortpath" = x; then
22037    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22038$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22039    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22040  fi
22041
22042  # Call helper function which possibly converts this using DOS-style short mode.
22043  # If so, the updated path is stored in $new_path.
22044
22045  input_path="$new_path"
22046  # Check if we need to convert this using DOS-style short mode. If the path
22047  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22048  # take no chances and rewrite it.
22049  # Note: m4 eats our [], so we need to use [ and ] instead.
22050  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22051  if test "x$has_forbidden_chars" != x; then
22052    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22053    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22054    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22055    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22056      # Going to short mode and back again did indeed matter. Since short mode is
22057      # case insensitive, let's make it lowercase to improve readability.
22058      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22059      # Now convert it back to Unix-stile (cygpath)
22060      input_path=`$CYGPATH -u "$shortmode_path"`
22061      new_path="$input_path"
22062    fi
22063  fi
22064
22065  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22066  if test "x$test_cygdrive_prefix" = x; then
22067    # As a simple fix, exclude /usr/bin since it's not a real path.
22068    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22069      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22070      # a path prefixed by /cygdrive for fixpath to work.
22071      new_path="$CYGWIN_ROOT_PATH$input_path"
22072    fi
22073  fi
22074
22075
22076  if test "x$path" != "x$new_path"; then
22077    BOOT_JDK="$new_path"
22078    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22079$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22080  fi
22081
22082  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22083
22084  path="$BOOT_JDK"
22085  has_colon=`$ECHO $path | $GREP ^.:`
22086  new_path="$path"
22087  if test "x$has_colon" = x; then
22088    # Not in mixed or Windows style, start by that.
22089    new_path=`cmd //c echo $path`
22090  fi
22091
22092
22093  input_path="$new_path"
22094  # Check if we need to convert this using DOS-style short mode. If the path
22095  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22096  # take no chances and rewrite it.
22097  # Note: m4 eats our [], so we need to use [ and ] instead.
22098  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22099  if test "x$has_forbidden_chars" != x; then
22100    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22101    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22102  fi
22103
22104
22105  windows_path="$new_path"
22106  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22107    unix_path=`$CYGPATH -u "$windows_path"`
22108    new_path="$unix_path"
22109  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22110    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22111    new_path="$unix_path"
22112  fi
22113
22114  if test "x$path" != "x$new_path"; then
22115    BOOT_JDK="$new_path"
22116    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22117$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22118  fi
22119
22120  # Save the first 10 bytes of this path to the storage, so fixpath can work.
22121  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22122
22123  else
22124    # We're on a posix platform. Hooray! :)
22125    path="$BOOT_JDK"
22126    has_space=`$ECHO "$path" | $GREP " "`
22127    if test "x$has_space" != x; then
22128      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22129$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22130      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22131    fi
22132
22133    # Use eval to expand a potential ~
22134    eval path="$path"
22135    if test ! -f "$path" && test ! -d "$path"; then
22136      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22137    fi
22138
22139    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22140  fi
22141
22142              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22143$as_echo_n "checking for Boot JDK... " >&6; }
22144              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22145$as_echo "$BOOT_JDK" >&6; }
22146              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22147$as_echo_n "checking Boot JDK version... " >&6; }
22148              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22149              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22150$as_echo "$BOOT_JDK_VERSION" >&6; }
22151            fi # end check jdk version
22152          fi # end check rt.jar
22153        fi # end check javac
22154      fi # end check java
22155    fi # end check boot jdk found
22156  fi
22157
22158    done
22159  fi
22160
22161  fi
22162
22163
22164    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22165    if test "x$BOOT_JDK_FOUND" = xmaybe; then
22166      # Do we have a bin/java?
22167      if test ! -x "$BOOT_JDK/bin/java"; then
22168        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22169$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22170        BOOT_JDK_FOUND=no
22171      else
22172        # Do we have a bin/javac?
22173        if test ! -x "$BOOT_JDK/bin/javac"; then
22174          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22175$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22176          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22177$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22178          BOOT_JDK_FOUND=no
22179        else
22180          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22181          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22182            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22183$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22184            BOOT_JDK_FOUND=no
22185          else
22186            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22187            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22188
22189            # Extra M4 quote needed to protect [] in grep expression.
22190            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22191            if test "x$FOUND_CORRECT_VERSION" = x; then
22192              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22193$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22194              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22195$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22196              BOOT_JDK_FOUND=no
22197            else
22198              # We're done! :-)
22199              BOOT_JDK_FOUND=yes
22200
22201  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22202
22203  # Input might be given as Windows format, start by converting to
22204  # unix format.
22205  path="$BOOT_JDK"
22206  new_path=`$CYGPATH -u "$path"`
22207
22208  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22209  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22210  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22211  # "foo.exe" is OK but "foo" is an error.
22212  #
22213  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22214  # It is also a way to make sure we got the proper file name for the real test later on.
22215  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22216  if test "x$test_shortpath" = x; then
22217    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22218$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22219    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22220  fi
22221
22222  # Call helper function which possibly converts this using DOS-style short mode.
22223  # If so, the updated path is stored in $new_path.
22224
22225  input_path="$new_path"
22226  # Check if we need to convert this using DOS-style short mode. If the path
22227  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22228  # take no chances and rewrite it.
22229  # Note: m4 eats our [], so we need to use [ and ] instead.
22230  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22231  if test "x$has_forbidden_chars" != x; then
22232    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22233    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22234    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22235    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22236      # Going to short mode and back again did indeed matter. Since short mode is
22237      # case insensitive, let's make it lowercase to improve readability.
22238      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22239      # Now convert it back to Unix-stile (cygpath)
22240      input_path=`$CYGPATH -u "$shortmode_path"`
22241      new_path="$input_path"
22242    fi
22243  fi
22244
22245  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22246  if test "x$test_cygdrive_prefix" = x; then
22247    # As a simple fix, exclude /usr/bin since it's not a real path.
22248    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22249      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22250      # a path prefixed by /cygdrive for fixpath to work.
22251      new_path="$CYGWIN_ROOT_PATH$input_path"
22252    fi
22253  fi
22254
22255
22256  if test "x$path" != "x$new_path"; then
22257    BOOT_JDK="$new_path"
22258    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22259$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22260  fi
22261
22262  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22263
22264  path="$BOOT_JDK"
22265  has_colon=`$ECHO $path | $GREP ^.:`
22266  new_path="$path"
22267  if test "x$has_colon" = x; then
22268    # Not in mixed or Windows style, start by that.
22269    new_path=`cmd //c echo $path`
22270  fi
22271
22272
22273  input_path="$new_path"
22274  # Check if we need to convert this using DOS-style short mode. If the path
22275  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22276  # take no chances and rewrite it.
22277  # Note: m4 eats our [], so we need to use [ and ] instead.
22278  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22279  if test "x$has_forbidden_chars" != x; then
22280    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22281    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22282  fi
22283
22284
22285  windows_path="$new_path"
22286  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22287    unix_path=`$CYGPATH -u "$windows_path"`
22288    new_path="$unix_path"
22289  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22290    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22291    new_path="$unix_path"
22292  fi
22293
22294  if test "x$path" != "x$new_path"; then
22295    BOOT_JDK="$new_path"
22296    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22297$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22298  fi
22299
22300  # Save the first 10 bytes of this path to the storage, so fixpath can work.
22301  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22302
22303  else
22304    # We're on a posix platform. Hooray! :)
22305    path="$BOOT_JDK"
22306    has_space=`$ECHO "$path" | $GREP " "`
22307    if test "x$has_space" != x; then
22308      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22309$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22310      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22311    fi
22312
22313    # Use eval to expand a potential ~
22314    eval path="$path"
22315    if test ! -f "$path" && test ! -d "$path"; then
22316      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22317    fi
22318
22319    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22320  fi
22321
22322              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22323$as_echo_n "checking for Boot JDK... " >&6; }
22324              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22325$as_echo "$BOOT_JDK" >&6; }
22326              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22327$as_echo_n "checking Boot JDK version... " >&6; }
22328              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22329              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22330$as_echo "$BOOT_JDK_VERSION" >&6; }
22331            fi # end check jdk version
22332          fi # end check rt.jar
22333        fi # end check javac
22334      fi # end check java
22335    fi # end check boot jdk found
22336  fi
22337
22338
22339  if test "x$BOOT_JDK_FOUND" = xno; then
22340    # Now execute the test
22341
22342  if test "x$PROGRAMW6432" != x; then
22343    VIRTUAL_DIR="$PROGRAMW6432/Java"
22344
22345  windows_path="$VIRTUAL_DIR"
22346  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22347    unix_path=`$CYGPATH -u "$windows_path"`
22348    VIRTUAL_DIR="$unix_path"
22349  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22350    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22351    VIRTUAL_DIR="$unix_path"
22352  fi
22353
22354
22355  BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22356  BOOT_JDK_SUFFIX=""
22357  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22358  if test "x$ALL_JDKS_FOUND" != x; then
22359    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22360
22361  if test "x$BOOT_JDK_FOUND" = xno; then
22362    # Now execute the test
22363
22364        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22365        if test -d "$BOOT_JDK"; then
22366          BOOT_JDK_FOUND=maybe
22367          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22368$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22369        fi
22370
22371
22372    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22373    if test "x$BOOT_JDK_FOUND" = xmaybe; then
22374      # Do we have a bin/java?
22375      if test ! -x "$BOOT_JDK/bin/java"; then
22376        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22377$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22378        BOOT_JDK_FOUND=no
22379      else
22380        # Do we have a bin/javac?
22381        if test ! -x "$BOOT_JDK/bin/javac"; then
22382          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22383$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22384          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22385$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22386          BOOT_JDK_FOUND=no
22387        else
22388          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22389          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22390            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22391$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22392            BOOT_JDK_FOUND=no
22393          else
22394            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22395            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22396
22397            # Extra M4 quote needed to protect [] in grep expression.
22398            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22399            if test "x$FOUND_CORRECT_VERSION" = x; then
22400              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22401$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22402              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22403$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22404              BOOT_JDK_FOUND=no
22405            else
22406              # We're done! :-)
22407              BOOT_JDK_FOUND=yes
22408
22409  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22410
22411  # Input might be given as Windows format, start by converting to
22412  # unix format.
22413  path="$BOOT_JDK"
22414  new_path=`$CYGPATH -u "$path"`
22415
22416  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22417  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22418  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22419  # "foo.exe" is OK but "foo" is an error.
22420  #
22421  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22422  # It is also a way to make sure we got the proper file name for the real test later on.
22423  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22424  if test "x$test_shortpath" = x; then
22425    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22426$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22427    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22428  fi
22429
22430  # Call helper function which possibly converts this using DOS-style short mode.
22431  # If so, the updated path is stored in $new_path.
22432
22433  input_path="$new_path"
22434  # Check if we need to convert this using DOS-style short mode. If the path
22435  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22436  # take no chances and rewrite it.
22437  # Note: m4 eats our [], so we need to use [ and ] instead.
22438  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22439  if test "x$has_forbidden_chars" != x; then
22440    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22441    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22442    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22443    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22444      # Going to short mode and back again did indeed matter. Since short mode is
22445      # case insensitive, let's make it lowercase to improve readability.
22446      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22447      # Now convert it back to Unix-stile (cygpath)
22448      input_path=`$CYGPATH -u "$shortmode_path"`
22449      new_path="$input_path"
22450    fi
22451  fi
22452
22453  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22454  if test "x$test_cygdrive_prefix" = x; then
22455    # As a simple fix, exclude /usr/bin since it's not a real path.
22456    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22457      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22458      # a path prefixed by /cygdrive for fixpath to work.
22459      new_path="$CYGWIN_ROOT_PATH$input_path"
22460    fi
22461  fi
22462
22463
22464  if test "x$path" != "x$new_path"; then
22465    BOOT_JDK="$new_path"
22466    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22467$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22468  fi
22469
22470  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22471
22472  path="$BOOT_JDK"
22473  has_colon=`$ECHO $path | $GREP ^.:`
22474  new_path="$path"
22475  if test "x$has_colon" = x; then
22476    # Not in mixed or Windows style, start by that.
22477    new_path=`cmd //c echo $path`
22478  fi
22479
22480
22481  input_path="$new_path"
22482  # Check if we need to convert this using DOS-style short mode. If the path
22483  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22484  # take no chances and rewrite it.
22485  # Note: m4 eats our [], so we need to use [ and ] instead.
22486  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22487  if test "x$has_forbidden_chars" != x; then
22488    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22489    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22490  fi
22491
22492
22493  windows_path="$new_path"
22494  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22495    unix_path=`$CYGPATH -u "$windows_path"`
22496    new_path="$unix_path"
22497  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22498    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22499    new_path="$unix_path"
22500  fi
22501
22502  if test "x$path" != "x$new_path"; then
22503    BOOT_JDK="$new_path"
22504    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22505$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22506  fi
22507
22508  # Save the first 10 bytes of this path to the storage, so fixpath can work.
22509  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22510
22511  else
22512    # We're on a posix platform. Hooray! :)
22513    path="$BOOT_JDK"
22514    has_space=`$ECHO "$path" | $GREP " "`
22515    if test "x$has_space" != x; then
22516      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22517$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22518      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22519    fi
22520
22521    # Use eval to expand a potential ~
22522    eval path="$path"
22523    if test ! -f "$path" && test ! -d "$path"; then
22524      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22525    fi
22526
22527    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22528  fi
22529
22530              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22531$as_echo_n "checking for Boot JDK... " >&6; }
22532              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22533$as_echo "$BOOT_JDK" >&6; }
22534              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22535$as_echo_n "checking Boot JDK version... " >&6; }
22536              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22537              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22538$as_echo "$BOOT_JDK_VERSION" >&6; }
22539            fi # end check jdk version
22540          fi # end check rt.jar
22541        fi # end check javac
22542      fi # end check java
22543    fi # end check boot jdk found
22544  fi
22545
22546    done
22547  fi
22548
22549  fi
22550
22551
22552    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22553    if test "x$BOOT_JDK_FOUND" = xmaybe; then
22554      # Do we have a bin/java?
22555      if test ! -x "$BOOT_JDK/bin/java"; then
22556        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22557$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22558        BOOT_JDK_FOUND=no
22559      else
22560        # Do we have a bin/javac?
22561        if test ! -x "$BOOT_JDK/bin/javac"; then
22562          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22563$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22564          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22565$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22566          BOOT_JDK_FOUND=no
22567        else
22568          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22569          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22570            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22571$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22572            BOOT_JDK_FOUND=no
22573          else
22574            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22575            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22576
22577            # Extra M4 quote needed to protect [] in grep expression.
22578            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22579            if test "x$FOUND_CORRECT_VERSION" = x; then
22580              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22581$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22582              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22583$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22584              BOOT_JDK_FOUND=no
22585            else
22586              # We're done! :-)
22587              BOOT_JDK_FOUND=yes
22588
22589  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22590
22591  # Input might be given as Windows format, start by converting to
22592  # unix format.
22593  path="$BOOT_JDK"
22594  new_path=`$CYGPATH -u "$path"`
22595
22596  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22597  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22598  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22599  # "foo.exe" is OK but "foo" is an error.
22600  #
22601  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22602  # It is also a way to make sure we got the proper file name for the real test later on.
22603  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22604  if test "x$test_shortpath" = x; then
22605    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22606$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22607    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22608  fi
22609
22610  # Call helper function which possibly converts this using DOS-style short mode.
22611  # If so, the updated path is stored in $new_path.
22612
22613  input_path="$new_path"
22614  # Check if we need to convert this using DOS-style short mode. If the path
22615  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22616  # take no chances and rewrite it.
22617  # Note: m4 eats our [], so we need to use [ and ] instead.
22618  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22619  if test "x$has_forbidden_chars" != x; then
22620    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22621    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22622    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22623    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22624      # Going to short mode and back again did indeed matter. Since short mode is
22625      # case insensitive, let's make it lowercase to improve readability.
22626      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22627      # Now convert it back to Unix-stile (cygpath)
22628      input_path=`$CYGPATH -u "$shortmode_path"`
22629      new_path="$input_path"
22630    fi
22631  fi
22632
22633  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22634  if test "x$test_cygdrive_prefix" = x; then
22635    # As a simple fix, exclude /usr/bin since it's not a real path.
22636    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22637      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22638      # a path prefixed by /cygdrive for fixpath to work.
22639      new_path="$CYGWIN_ROOT_PATH$input_path"
22640    fi
22641  fi
22642
22643
22644  if test "x$path" != "x$new_path"; then
22645    BOOT_JDK="$new_path"
22646    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22647$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22648  fi
22649
22650  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22651
22652  path="$BOOT_JDK"
22653  has_colon=`$ECHO $path | $GREP ^.:`
22654  new_path="$path"
22655  if test "x$has_colon" = x; then
22656    # Not in mixed or Windows style, start by that.
22657    new_path=`cmd //c echo $path`
22658  fi
22659
22660
22661  input_path="$new_path"
22662  # Check if we need to convert this using DOS-style short mode. If the path
22663  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22664  # take no chances and rewrite it.
22665  # Note: m4 eats our [], so we need to use [ and ] instead.
22666  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22667  if test "x$has_forbidden_chars" != x; then
22668    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22669    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22670  fi
22671
22672
22673  windows_path="$new_path"
22674  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22675    unix_path=`$CYGPATH -u "$windows_path"`
22676    new_path="$unix_path"
22677  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22678    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22679    new_path="$unix_path"
22680  fi
22681
22682  if test "x$path" != "x$new_path"; then
22683    BOOT_JDK="$new_path"
22684    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22685$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22686  fi
22687
22688  # Save the first 10 bytes of this path to the storage, so fixpath can work.
22689  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22690
22691  else
22692    # We're on a posix platform. Hooray! :)
22693    path="$BOOT_JDK"
22694    has_space=`$ECHO "$path" | $GREP " "`
22695    if test "x$has_space" != x; then
22696      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22697$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22698      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22699    fi
22700
22701    # Use eval to expand a potential ~
22702    eval path="$path"
22703    if test ! -f "$path" && test ! -d "$path"; then
22704      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22705    fi
22706
22707    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22708  fi
22709
22710              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22711$as_echo_n "checking for Boot JDK... " >&6; }
22712              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22713$as_echo "$BOOT_JDK" >&6; }
22714              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22715$as_echo_n "checking Boot JDK version... " >&6; }
22716              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22717              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22718$as_echo "$BOOT_JDK_VERSION" >&6; }
22719            fi # end check jdk version
22720          fi # end check rt.jar
22721        fi # end check javac
22722      fi # end check java
22723    fi # end check boot jdk found
22724  fi
22725
22726
22727  if test "x$BOOT_JDK_FOUND" = xno; then
22728    # Now execute the test
22729
22730  if test "x$PROGRAMFILES" != x; then
22731    VIRTUAL_DIR="$PROGRAMFILES/Java"
22732
22733  windows_path="$VIRTUAL_DIR"
22734  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22735    unix_path=`$CYGPATH -u "$windows_path"`
22736    VIRTUAL_DIR="$unix_path"
22737  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22738    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22739    VIRTUAL_DIR="$unix_path"
22740  fi
22741
22742
22743  BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22744  BOOT_JDK_SUFFIX=""
22745  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22746  if test "x$ALL_JDKS_FOUND" != x; then
22747    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22748
22749  if test "x$BOOT_JDK_FOUND" = xno; then
22750    # Now execute the test
22751
22752        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22753        if test -d "$BOOT_JDK"; then
22754          BOOT_JDK_FOUND=maybe
22755          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22756$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22757        fi
22758
22759
22760    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22761    if test "x$BOOT_JDK_FOUND" = xmaybe; then
22762      # Do we have a bin/java?
22763      if test ! -x "$BOOT_JDK/bin/java"; then
22764        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22765$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22766        BOOT_JDK_FOUND=no
22767      else
22768        # Do we have a bin/javac?
22769        if test ! -x "$BOOT_JDK/bin/javac"; then
22770          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22771$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22772          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22773$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22774          BOOT_JDK_FOUND=no
22775        else
22776          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22777          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22778            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22779$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22780            BOOT_JDK_FOUND=no
22781          else
22782            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22783            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22784
22785            # Extra M4 quote needed to protect [] in grep expression.
22786            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22787            if test "x$FOUND_CORRECT_VERSION" = x; then
22788              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22789$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22790              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22791$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22792              BOOT_JDK_FOUND=no
22793            else
22794              # We're done! :-)
22795              BOOT_JDK_FOUND=yes
22796
22797  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22798
22799  # Input might be given as Windows format, start by converting to
22800  # unix format.
22801  path="$BOOT_JDK"
22802  new_path=`$CYGPATH -u "$path"`
22803
22804  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22805  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22806  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22807  # "foo.exe" is OK but "foo" is an error.
22808  #
22809  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22810  # It is also a way to make sure we got the proper file name for the real test later on.
22811  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22812  if test "x$test_shortpath" = x; then
22813    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22814$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22815    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22816  fi
22817
22818  # Call helper function which possibly converts this using DOS-style short mode.
22819  # If so, the updated path is stored in $new_path.
22820
22821  input_path="$new_path"
22822  # Check if we need to convert this using DOS-style short mode. If the path
22823  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22824  # take no chances and rewrite it.
22825  # Note: m4 eats our [], so we need to use [ and ] instead.
22826  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22827  if test "x$has_forbidden_chars" != x; then
22828    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22829    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22830    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22831    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22832      # Going to short mode and back again did indeed matter. Since short mode is
22833      # case insensitive, let's make it lowercase to improve readability.
22834      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22835      # Now convert it back to Unix-stile (cygpath)
22836      input_path=`$CYGPATH -u "$shortmode_path"`
22837      new_path="$input_path"
22838    fi
22839  fi
22840
22841  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22842  if test "x$test_cygdrive_prefix" = x; then
22843    # As a simple fix, exclude /usr/bin since it's not a real path.
22844    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22845      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22846      # a path prefixed by /cygdrive for fixpath to work.
22847      new_path="$CYGWIN_ROOT_PATH$input_path"
22848    fi
22849  fi
22850
22851
22852  if test "x$path" != "x$new_path"; then
22853    BOOT_JDK="$new_path"
22854    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22855$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22856  fi
22857
22858  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22859
22860  path="$BOOT_JDK"
22861  has_colon=`$ECHO $path | $GREP ^.:`
22862  new_path="$path"
22863  if test "x$has_colon" = x; then
22864    # Not in mixed or Windows style, start by that.
22865    new_path=`cmd //c echo $path`
22866  fi
22867
22868
22869  input_path="$new_path"
22870  # Check if we need to convert this using DOS-style short mode. If the path
22871  # contains just simple characters, use it. Otherwise (spaces, weird characters),
22872  # take no chances and rewrite it.
22873  # Note: m4 eats our [], so we need to use [ and ] instead.
22874  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22875  if test "x$has_forbidden_chars" != x; then
22876    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22877    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22878  fi
22879
22880
22881  windows_path="$new_path"
22882  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22883    unix_path=`$CYGPATH -u "$windows_path"`
22884    new_path="$unix_path"
22885  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22886    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22887    new_path="$unix_path"
22888  fi
22889
22890  if test "x$path" != "x$new_path"; then
22891    BOOT_JDK="$new_path"
22892    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22893$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22894  fi
22895
22896  # Save the first 10 bytes of this path to the storage, so fixpath can work.
22897  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22898
22899  else
22900    # We're on a posix platform. Hooray! :)
22901    path="$BOOT_JDK"
22902    has_space=`$ECHO "$path" | $GREP " "`
22903    if test "x$has_space" != x; then
22904      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22905$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22906      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22907    fi
22908
22909    # Use eval to expand a potential ~
22910    eval path="$path"
22911    if test ! -f "$path" && test ! -d "$path"; then
22912      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22913    fi
22914
22915    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22916  fi
22917
22918              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22919$as_echo_n "checking for Boot JDK... " >&6; }
22920              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22921$as_echo "$BOOT_JDK" >&6; }
22922              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22923$as_echo_n "checking Boot JDK version... " >&6; }
22924              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22925              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22926$as_echo "$BOOT_JDK_VERSION" >&6; }
22927            fi # end check jdk version
22928          fi # end check rt.jar
22929        fi # end check javac
22930      fi # end check java
22931    fi # end check boot jdk found
22932  fi
22933
22934    done
22935  fi
22936
22937  fi
22938
22939
22940    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22941    if test "x$BOOT_JDK_FOUND" = xmaybe; then
22942      # Do we have a bin/java?
22943      if test ! -x "$BOOT_JDK/bin/java"; then
22944        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22945$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22946        BOOT_JDK_FOUND=no
22947      else
22948        # Do we have a bin/javac?
22949        if test ! -x "$BOOT_JDK/bin/javac"; then
22950          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22951$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22952          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22953$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22954          BOOT_JDK_FOUND=no
22955        else
22956          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22957          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22958            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22959$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22960            BOOT_JDK_FOUND=no
22961          else
22962            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22963            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22964
22965            # Extra M4 quote needed to protect [] in grep expression.
22966            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22967            if test "x$FOUND_CORRECT_VERSION" = x; then
22968              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22969$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22970              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22971$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22972              BOOT_JDK_FOUND=no
22973            else
22974              # We're done! :-)
22975              BOOT_JDK_FOUND=yes
22976
22977  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22978
22979  # Input might be given as Windows format, start by converting to
22980  # unix format.
22981  path="$BOOT_JDK"
22982  new_path=`$CYGPATH -u "$path"`
22983
22984  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22985  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22986  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22987  # "foo.exe" is OK but "foo" is an error.
22988  #
22989  # This test is therefore slightly more accurate than "test -f" to check for file precense.
22990  # It is also a way to make sure we got the proper file name for the real test later on.
22991  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22992  if test "x$test_shortpath" = x; then
22993    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22994$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22995    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22996  fi
22997
22998  # Call helper function which possibly converts this using DOS-style short mode.
22999  # If so, the updated path is stored in $new_path.
23000
23001  input_path="$new_path"
23002  # Check if we need to convert this using DOS-style short mode. If the path
23003  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23004  # take no chances and rewrite it.
23005  # Note: m4 eats our [], so we need to use [ and ] instead.
23006  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23007  if test "x$has_forbidden_chars" != x; then
23008    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23009    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23010    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23011    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23012      # Going to short mode and back again did indeed matter. Since short mode is
23013      # case insensitive, let's make it lowercase to improve readability.
23014      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23015      # Now convert it back to Unix-stile (cygpath)
23016      input_path=`$CYGPATH -u "$shortmode_path"`
23017      new_path="$input_path"
23018    fi
23019  fi
23020
23021  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23022  if test "x$test_cygdrive_prefix" = x; then
23023    # As a simple fix, exclude /usr/bin since it's not a real path.
23024    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23025      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23026      # a path prefixed by /cygdrive for fixpath to work.
23027      new_path="$CYGWIN_ROOT_PATH$input_path"
23028    fi
23029  fi
23030
23031
23032  if test "x$path" != "x$new_path"; then
23033    BOOT_JDK="$new_path"
23034    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23035$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23036  fi
23037
23038  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23039
23040  path="$BOOT_JDK"
23041  has_colon=`$ECHO $path | $GREP ^.:`
23042  new_path="$path"
23043  if test "x$has_colon" = x; then
23044    # Not in mixed or Windows style, start by that.
23045    new_path=`cmd //c echo $path`
23046  fi
23047
23048
23049  input_path="$new_path"
23050  # Check if we need to convert this using DOS-style short mode. If the path
23051  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23052  # take no chances and rewrite it.
23053  # Note: m4 eats our [], so we need to use [ and ] instead.
23054  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23055  if test "x$has_forbidden_chars" != x; then
23056    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23057    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23058  fi
23059
23060
23061  windows_path="$new_path"
23062  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23063    unix_path=`$CYGPATH -u "$windows_path"`
23064    new_path="$unix_path"
23065  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23066    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23067    new_path="$unix_path"
23068  fi
23069
23070  if test "x$path" != "x$new_path"; then
23071    BOOT_JDK="$new_path"
23072    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23073$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23074  fi
23075
23076  # Save the first 10 bytes of this path to the storage, so fixpath can work.
23077  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23078
23079  else
23080    # We're on a posix platform. Hooray! :)
23081    path="$BOOT_JDK"
23082    has_space=`$ECHO "$path" | $GREP " "`
23083    if test "x$has_space" != x; then
23084      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23085$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23086      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23087    fi
23088
23089    # Use eval to expand a potential ~
23090    eval path="$path"
23091    if test ! -f "$path" && test ! -d "$path"; then
23092      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23093    fi
23094
23095    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23096  fi
23097
23098              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23099$as_echo_n "checking for Boot JDK... " >&6; }
23100              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23101$as_echo "$BOOT_JDK" >&6; }
23102              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23103$as_echo_n "checking Boot JDK version... " >&6; }
23104              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23105              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23106$as_echo "$BOOT_JDK_VERSION" >&6; }
23107            fi # end check jdk version
23108          fi # end check rt.jar
23109        fi # end check javac
23110      fi # end check java
23111    fi # end check boot jdk found
23112  fi
23113
23114
23115  if test "x$BOOT_JDK_FOUND" = xno; then
23116    # Now execute the test
23117
23118  if test "x$ProgramFiles" != x; then
23119    VIRTUAL_DIR="$ProgramFiles/Java"
23120
23121  windows_path="$VIRTUAL_DIR"
23122  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23123    unix_path=`$CYGPATH -u "$windows_path"`
23124    VIRTUAL_DIR="$unix_path"
23125  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23126    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23127    VIRTUAL_DIR="$unix_path"
23128  fi
23129
23130
23131  BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23132  BOOT_JDK_SUFFIX=""
23133  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23134  if test "x$ALL_JDKS_FOUND" != x; then
23135    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23136
23137  if test "x$BOOT_JDK_FOUND" = xno; then
23138    # Now execute the test
23139
23140        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23141        if test -d "$BOOT_JDK"; then
23142          BOOT_JDK_FOUND=maybe
23143          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23144$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23145        fi
23146
23147
23148    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23149    if test "x$BOOT_JDK_FOUND" = xmaybe; then
23150      # Do we have a bin/java?
23151      if test ! -x "$BOOT_JDK/bin/java"; then
23152        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23153$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23154        BOOT_JDK_FOUND=no
23155      else
23156        # Do we have a bin/javac?
23157        if test ! -x "$BOOT_JDK/bin/javac"; then
23158          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23159$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23160          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23161$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23162          BOOT_JDK_FOUND=no
23163        else
23164          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23165          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23166            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23167$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23168            BOOT_JDK_FOUND=no
23169          else
23170            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23171            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23172
23173            # Extra M4 quote needed to protect [] in grep expression.
23174            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23175            if test "x$FOUND_CORRECT_VERSION" = x; then
23176              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23177$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23178              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23179$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23180              BOOT_JDK_FOUND=no
23181            else
23182              # We're done! :-)
23183              BOOT_JDK_FOUND=yes
23184
23185  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23186
23187  # Input might be given as Windows format, start by converting to
23188  # unix format.
23189  path="$BOOT_JDK"
23190  new_path=`$CYGPATH -u "$path"`
23191
23192  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23193  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23194  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23195  # "foo.exe" is OK but "foo" is an error.
23196  #
23197  # This test is therefore slightly more accurate than "test -f" to check for file precense.
23198  # It is also a way to make sure we got the proper file name for the real test later on.
23199  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23200  if test "x$test_shortpath" = x; then
23201    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23202$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23203    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23204  fi
23205
23206  # Call helper function which possibly converts this using DOS-style short mode.
23207  # If so, the updated path is stored in $new_path.
23208
23209  input_path="$new_path"
23210  # Check if we need to convert this using DOS-style short mode. If the path
23211  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23212  # take no chances and rewrite it.
23213  # Note: m4 eats our [], so we need to use [ and ] instead.
23214  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23215  if test "x$has_forbidden_chars" != x; then
23216    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23217    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23218    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23219    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23220      # Going to short mode and back again did indeed matter. Since short mode is
23221      # case insensitive, let's make it lowercase to improve readability.
23222      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23223      # Now convert it back to Unix-stile (cygpath)
23224      input_path=`$CYGPATH -u "$shortmode_path"`
23225      new_path="$input_path"
23226    fi
23227  fi
23228
23229  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23230  if test "x$test_cygdrive_prefix" = x; then
23231    # As a simple fix, exclude /usr/bin since it's not a real path.
23232    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23233      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23234      # a path prefixed by /cygdrive for fixpath to work.
23235      new_path="$CYGWIN_ROOT_PATH$input_path"
23236    fi
23237  fi
23238
23239
23240  if test "x$path" != "x$new_path"; then
23241    BOOT_JDK="$new_path"
23242    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23243$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23244  fi
23245
23246  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23247
23248  path="$BOOT_JDK"
23249  has_colon=`$ECHO $path | $GREP ^.:`
23250  new_path="$path"
23251  if test "x$has_colon" = x; then
23252    # Not in mixed or Windows style, start by that.
23253    new_path=`cmd //c echo $path`
23254  fi
23255
23256
23257  input_path="$new_path"
23258  # Check if we need to convert this using DOS-style short mode. If the path
23259  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23260  # take no chances and rewrite it.
23261  # Note: m4 eats our [], so we need to use [ and ] instead.
23262  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23263  if test "x$has_forbidden_chars" != x; then
23264    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23265    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23266  fi
23267
23268
23269  windows_path="$new_path"
23270  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23271    unix_path=`$CYGPATH -u "$windows_path"`
23272    new_path="$unix_path"
23273  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23274    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23275    new_path="$unix_path"
23276  fi
23277
23278  if test "x$path" != "x$new_path"; then
23279    BOOT_JDK="$new_path"
23280    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23281$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23282  fi
23283
23284  # Save the first 10 bytes of this path to the storage, so fixpath can work.
23285  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23286
23287  else
23288    # We're on a posix platform. Hooray! :)
23289    path="$BOOT_JDK"
23290    has_space=`$ECHO "$path" | $GREP " "`
23291    if test "x$has_space" != x; then
23292      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23293$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23294      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23295    fi
23296
23297    # Use eval to expand a potential ~
23298    eval path="$path"
23299    if test ! -f "$path" && test ! -d "$path"; then
23300      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23301    fi
23302
23303    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23304  fi
23305
23306              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23307$as_echo_n "checking for Boot JDK... " >&6; }
23308              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23309$as_echo "$BOOT_JDK" >&6; }
23310              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23311$as_echo_n "checking Boot JDK version... " >&6; }
23312              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23313              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23314$as_echo "$BOOT_JDK_VERSION" >&6; }
23315            fi # end check jdk version
23316          fi # end check rt.jar
23317        fi # end check javac
23318      fi # end check java
23319    fi # end check boot jdk found
23320  fi
23321
23322    done
23323  fi
23324
23325  fi
23326
23327
23328    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23329    if test "x$BOOT_JDK_FOUND" = xmaybe; then
23330      # Do we have a bin/java?
23331      if test ! -x "$BOOT_JDK/bin/java"; then
23332        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23333$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23334        BOOT_JDK_FOUND=no
23335      else
23336        # Do we have a bin/javac?
23337        if test ! -x "$BOOT_JDK/bin/javac"; then
23338          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23339$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23340          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23341$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23342          BOOT_JDK_FOUND=no
23343        else
23344          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23345          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23346            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23347$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23348            BOOT_JDK_FOUND=no
23349          else
23350            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23351            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23352
23353            # Extra M4 quote needed to protect [] in grep expression.
23354            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23355            if test "x$FOUND_CORRECT_VERSION" = x; then
23356              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23357$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23358              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23359$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23360              BOOT_JDK_FOUND=no
23361            else
23362              # We're done! :-)
23363              BOOT_JDK_FOUND=yes
23364
23365  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23366
23367  # Input might be given as Windows format, start by converting to
23368  # unix format.
23369  path="$BOOT_JDK"
23370  new_path=`$CYGPATH -u "$path"`
23371
23372  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23373  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23374  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23375  # "foo.exe" is OK but "foo" is an error.
23376  #
23377  # This test is therefore slightly more accurate than "test -f" to check for file precense.
23378  # It is also a way to make sure we got the proper file name for the real test later on.
23379  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23380  if test "x$test_shortpath" = x; then
23381    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23382$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23383    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23384  fi
23385
23386  # Call helper function which possibly converts this using DOS-style short mode.
23387  # If so, the updated path is stored in $new_path.
23388
23389  input_path="$new_path"
23390  # Check if we need to convert this using DOS-style short mode. If the path
23391  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23392  # take no chances and rewrite it.
23393  # Note: m4 eats our [], so we need to use [ and ] instead.
23394  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23395  if test "x$has_forbidden_chars" != x; then
23396    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23397    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23398    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23399    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23400      # Going to short mode and back again did indeed matter. Since short mode is
23401      # case insensitive, let's make it lowercase to improve readability.
23402      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23403      # Now convert it back to Unix-stile (cygpath)
23404      input_path=`$CYGPATH -u "$shortmode_path"`
23405      new_path="$input_path"
23406    fi
23407  fi
23408
23409  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23410  if test "x$test_cygdrive_prefix" = x; then
23411    # As a simple fix, exclude /usr/bin since it's not a real path.
23412    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23413      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23414      # a path prefixed by /cygdrive for fixpath to work.
23415      new_path="$CYGWIN_ROOT_PATH$input_path"
23416    fi
23417  fi
23418
23419
23420  if test "x$path" != "x$new_path"; then
23421    BOOT_JDK="$new_path"
23422    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23423$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23424  fi
23425
23426  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23427
23428  path="$BOOT_JDK"
23429  has_colon=`$ECHO $path | $GREP ^.:`
23430  new_path="$path"
23431  if test "x$has_colon" = x; then
23432    # Not in mixed or Windows style, start by that.
23433    new_path=`cmd //c echo $path`
23434  fi
23435
23436
23437  input_path="$new_path"
23438  # Check if we need to convert this using DOS-style short mode. If the path
23439  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23440  # take no chances and rewrite it.
23441  # Note: m4 eats our [], so we need to use [ and ] instead.
23442  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23443  if test "x$has_forbidden_chars" != x; then
23444    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23445    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23446  fi
23447
23448
23449  windows_path="$new_path"
23450  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23451    unix_path=`$CYGPATH -u "$windows_path"`
23452    new_path="$unix_path"
23453  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23454    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23455    new_path="$unix_path"
23456  fi
23457
23458  if test "x$path" != "x$new_path"; then
23459    BOOT_JDK="$new_path"
23460    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23461$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23462  fi
23463
23464  # Save the first 10 bytes of this path to the storage, so fixpath can work.
23465  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23466
23467  else
23468    # We're on a posix platform. Hooray! :)
23469    path="$BOOT_JDK"
23470    has_space=`$ECHO "$path" | $GREP " "`
23471    if test "x$has_space" != x; then
23472      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23473$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23474      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23475    fi
23476
23477    # Use eval to expand a potential ~
23478    eval path="$path"
23479    if test ! -f "$path" && test ! -d "$path"; then
23480      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23481    fi
23482
23483    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23484  fi
23485
23486              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23487$as_echo_n "checking for Boot JDK... " >&6; }
23488              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23489$as_echo "$BOOT_JDK" >&6; }
23490              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23491$as_echo_n "checking Boot JDK version... " >&6; }
23492              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23493              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23494$as_echo "$BOOT_JDK_VERSION" >&6; }
23495            fi # end check jdk version
23496          fi # end check rt.jar
23497        fi # end check javac
23498      fi # end check java
23499    fi # end check boot jdk found
23500  fi
23501
23502
23503  if test "x$BOOT_JDK_FOUND" = xno; then
23504    # Now execute the test
23505
23506  BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23507  BOOT_JDK_SUFFIX=""
23508  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23509  if test "x$ALL_JDKS_FOUND" != x; then
23510    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23511
23512  if test "x$BOOT_JDK_FOUND" = xno; then
23513    # Now execute the test
23514
23515        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23516        if test -d "$BOOT_JDK"; then
23517          BOOT_JDK_FOUND=maybe
23518          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23519$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23520        fi
23521
23522
23523    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23524    if test "x$BOOT_JDK_FOUND" = xmaybe; then
23525      # Do we have a bin/java?
23526      if test ! -x "$BOOT_JDK/bin/java"; then
23527        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23528$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23529        BOOT_JDK_FOUND=no
23530      else
23531        # Do we have a bin/javac?
23532        if test ! -x "$BOOT_JDK/bin/javac"; then
23533          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23534$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23535          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23536$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23537          BOOT_JDK_FOUND=no
23538        else
23539          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23540          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23541            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23542$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23543            BOOT_JDK_FOUND=no
23544          else
23545            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23546            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23547
23548            # Extra M4 quote needed to protect [] in grep expression.
23549            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23550            if test "x$FOUND_CORRECT_VERSION" = x; then
23551              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23552$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23553              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23554$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23555              BOOT_JDK_FOUND=no
23556            else
23557              # We're done! :-)
23558              BOOT_JDK_FOUND=yes
23559
23560  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23561
23562  # Input might be given as Windows format, start by converting to
23563  # unix format.
23564  path="$BOOT_JDK"
23565  new_path=`$CYGPATH -u "$path"`
23566
23567  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23568  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23569  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23570  # "foo.exe" is OK but "foo" is an error.
23571  #
23572  # This test is therefore slightly more accurate than "test -f" to check for file precense.
23573  # It is also a way to make sure we got the proper file name for the real test later on.
23574  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23575  if test "x$test_shortpath" = x; then
23576    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23577$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23578    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23579  fi
23580
23581  # Call helper function which possibly converts this using DOS-style short mode.
23582  # If so, the updated path is stored in $new_path.
23583
23584  input_path="$new_path"
23585  # Check if we need to convert this using DOS-style short mode. If the path
23586  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23587  # take no chances and rewrite it.
23588  # Note: m4 eats our [], so we need to use [ and ] instead.
23589  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23590  if test "x$has_forbidden_chars" != x; then
23591    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23592    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23593    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23594    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23595      # Going to short mode and back again did indeed matter. Since short mode is
23596      # case insensitive, let's make it lowercase to improve readability.
23597      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23598      # Now convert it back to Unix-stile (cygpath)
23599      input_path=`$CYGPATH -u "$shortmode_path"`
23600      new_path="$input_path"
23601    fi
23602  fi
23603
23604  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23605  if test "x$test_cygdrive_prefix" = x; then
23606    # As a simple fix, exclude /usr/bin since it's not a real path.
23607    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23608      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23609      # a path prefixed by /cygdrive for fixpath to work.
23610      new_path="$CYGWIN_ROOT_PATH$input_path"
23611    fi
23612  fi
23613
23614
23615  if test "x$path" != "x$new_path"; then
23616    BOOT_JDK="$new_path"
23617    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23618$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23619  fi
23620
23621  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23622
23623  path="$BOOT_JDK"
23624  has_colon=`$ECHO $path | $GREP ^.:`
23625  new_path="$path"
23626  if test "x$has_colon" = x; then
23627    # Not in mixed or Windows style, start by that.
23628    new_path=`cmd //c echo $path`
23629  fi
23630
23631
23632  input_path="$new_path"
23633  # Check if we need to convert this using DOS-style short mode. If the path
23634  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23635  # take no chances and rewrite it.
23636  # Note: m4 eats our [], so we need to use [ and ] instead.
23637  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23638  if test "x$has_forbidden_chars" != x; then
23639    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23640    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23641  fi
23642
23643
23644  windows_path="$new_path"
23645  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23646    unix_path=`$CYGPATH -u "$windows_path"`
23647    new_path="$unix_path"
23648  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23649    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23650    new_path="$unix_path"
23651  fi
23652
23653  if test "x$path" != "x$new_path"; then
23654    BOOT_JDK="$new_path"
23655    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23656$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23657  fi
23658
23659  # Save the first 10 bytes of this path to the storage, so fixpath can work.
23660  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23661
23662  else
23663    # We're on a posix platform. Hooray! :)
23664    path="$BOOT_JDK"
23665    has_space=`$ECHO "$path" | $GREP " "`
23666    if test "x$has_space" != x; then
23667      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23668$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23669      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23670    fi
23671
23672    # Use eval to expand a potential ~
23673    eval path="$path"
23674    if test ! -f "$path" && test ! -d "$path"; then
23675      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23676    fi
23677
23678    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23679  fi
23680
23681              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23682$as_echo_n "checking for Boot JDK... " >&6; }
23683              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23684$as_echo "$BOOT_JDK" >&6; }
23685              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23686$as_echo_n "checking Boot JDK version... " >&6; }
23687              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23688              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23689$as_echo "$BOOT_JDK_VERSION" >&6; }
23690            fi # end check jdk version
23691          fi # end check rt.jar
23692        fi # end check javac
23693      fi # end check java
23694    fi # end check boot jdk found
23695  fi
23696
23697    done
23698  fi
23699
23700
23701    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23702    if test "x$BOOT_JDK_FOUND" = xmaybe; then
23703      # Do we have a bin/java?
23704      if test ! -x "$BOOT_JDK/bin/java"; then
23705        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23706$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23707        BOOT_JDK_FOUND=no
23708      else
23709        # Do we have a bin/javac?
23710        if test ! -x "$BOOT_JDK/bin/javac"; then
23711          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23712$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23713          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23714$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23715          BOOT_JDK_FOUND=no
23716        else
23717          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23718          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23719            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23720$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23721            BOOT_JDK_FOUND=no
23722          else
23723            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23724            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23725
23726            # Extra M4 quote needed to protect [] in grep expression.
23727            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23728            if test "x$FOUND_CORRECT_VERSION" = x; then
23729              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23730$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23731              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23732$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23733              BOOT_JDK_FOUND=no
23734            else
23735              # We're done! :-)
23736              BOOT_JDK_FOUND=yes
23737
23738  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23739
23740  # Input might be given as Windows format, start by converting to
23741  # unix format.
23742  path="$BOOT_JDK"
23743  new_path=`$CYGPATH -u "$path"`
23744
23745  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23746  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23747  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23748  # "foo.exe" is OK but "foo" is an error.
23749  #
23750  # This test is therefore slightly more accurate than "test -f" to check for file precense.
23751  # It is also a way to make sure we got the proper file name for the real test later on.
23752  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23753  if test "x$test_shortpath" = x; then
23754    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23755$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23756    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23757  fi
23758
23759  # Call helper function which possibly converts this using DOS-style short mode.
23760  # If so, the updated path is stored in $new_path.
23761
23762  input_path="$new_path"
23763  # Check if we need to convert this using DOS-style short mode. If the path
23764  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23765  # take no chances and rewrite it.
23766  # Note: m4 eats our [], so we need to use [ and ] instead.
23767  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23768  if test "x$has_forbidden_chars" != x; then
23769    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23770    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23771    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23772    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23773      # Going to short mode and back again did indeed matter. Since short mode is
23774      # case insensitive, let's make it lowercase to improve readability.
23775      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23776      # Now convert it back to Unix-stile (cygpath)
23777      input_path=`$CYGPATH -u "$shortmode_path"`
23778      new_path="$input_path"
23779    fi
23780  fi
23781
23782  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23783  if test "x$test_cygdrive_prefix" = x; then
23784    # As a simple fix, exclude /usr/bin since it's not a real path.
23785    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23786      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23787      # a path prefixed by /cygdrive for fixpath to work.
23788      new_path="$CYGWIN_ROOT_PATH$input_path"
23789    fi
23790  fi
23791
23792
23793  if test "x$path" != "x$new_path"; then
23794    BOOT_JDK="$new_path"
23795    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23796$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23797  fi
23798
23799  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23800
23801  path="$BOOT_JDK"
23802  has_colon=`$ECHO $path | $GREP ^.:`
23803  new_path="$path"
23804  if test "x$has_colon" = x; then
23805    # Not in mixed or Windows style, start by that.
23806    new_path=`cmd //c echo $path`
23807  fi
23808
23809
23810  input_path="$new_path"
23811  # Check if we need to convert this using DOS-style short mode. If the path
23812  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23813  # take no chances and rewrite it.
23814  # Note: m4 eats our [], so we need to use [ and ] instead.
23815  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23816  if test "x$has_forbidden_chars" != x; then
23817    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23818    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23819  fi
23820
23821
23822  windows_path="$new_path"
23823  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23824    unix_path=`$CYGPATH -u "$windows_path"`
23825    new_path="$unix_path"
23826  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23827    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23828    new_path="$unix_path"
23829  fi
23830
23831  if test "x$path" != "x$new_path"; then
23832    BOOT_JDK="$new_path"
23833    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23834$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23835  fi
23836
23837  # Save the first 10 bytes of this path to the storage, so fixpath can work.
23838  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23839
23840  else
23841    # We're on a posix platform. Hooray! :)
23842    path="$BOOT_JDK"
23843    has_space=`$ECHO "$path" | $GREP " "`
23844    if test "x$has_space" != x; then
23845      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23846$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23847      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23848    fi
23849
23850    # Use eval to expand a potential ~
23851    eval path="$path"
23852    if test ! -f "$path" && test ! -d "$path"; then
23853      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23854    fi
23855
23856    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23857  fi
23858
23859              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23860$as_echo_n "checking for Boot JDK... " >&6; }
23861              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23862$as_echo "$BOOT_JDK" >&6; }
23863              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23864$as_echo_n "checking Boot JDK version... " >&6; }
23865              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23866              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23867$as_echo "$BOOT_JDK_VERSION" >&6; }
23868            fi # end check jdk version
23869          fi # end check rt.jar
23870        fi # end check javac
23871      fi # end check java
23872    fi # end check boot jdk found
23873  fi
23874
23875  elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23876
23877  if test "x$BOOT_JDK_FOUND" = xno; then
23878    # Now execute the test
23879
23880  BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23881  BOOT_JDK_SUFFIX="/Contents/Home"
23882  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23883  if test "x$ALL_JDKS_FOUND" != x; then
23884    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23885
23886  if test "x$BOOT_JDK_FOUND" = xno; then
23887    # Now execute the test
23888
23889        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23890        if test -d "$BOOT_JDK"; then
23891          BOOT_JDK_FOUND=maybe
23892          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23893$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23894        fi
23895
23896
23897    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23898    if test "x$BOOT_JDK_FOUND" = xmaybe; then
23899      # Do we have a bin/java?
23900      if test ! -x "$BOOT_JDK/bin/java"; then
23901        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23902$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23903        BOOT_JDK_FOUND=no
23904      else
23905        # Do we have a bin/javac?
23906        if test ! -x "$BOOT_JDK/bin/javac"; then
23907          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23908$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23909          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23910$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23911          BOOT_JDK_FOUND=no
23912        else
23913          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23914          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23915            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23916$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23917            BOOT_JDK_FOUND=no
23918          else
23919            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23920            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23921
23922            # Extra M4 quote needed to protect [] in grep expression.
23923            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23924            if test "x$FOUND_CORRECT_VERSION" = x; then
23925              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23926$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23927              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23928$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23929              BOOT_JDK_FOUND=no
23930            else
23931              # We're done! :-)
23932              BOOT_JDK_FOUND=yes
23933
23934  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23935
23936  # Input might be given as Windows format, start by converting to
23937  # unix format.
23938  path="$BOOT_JDK"
23939  new_path=`$CYGPATH -u "$path"`
23940
23941  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23942  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23943  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23944  # "foo.exe" is OK but "foo" is an error.
23945  #
23946  # This test is therefore slightly more accurate than "test -f" to check for file precense.
23947  # It is also a way to make sure we got the proper file name for the real test later on.
23948  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23949  if test "x$test_shortpath" = x; then
23950    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23951$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23952    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23953  fi
23954
23955  # Call helper function which possibly converts this using DOS-style short mode.
23956  # If so, the updated path is stored in $new_path.
23957
23958  input_path="$new_path"
23959  # Check if we need to convert this using DOS-style short mode. If the path
23960  # contains just simple characters, use it. Otherwise (spaces, weird characters),
23961  # take no chances and rewrite it.
23962  # Note: m4 eats our [], so we need to use [ and ] instead.
23963  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23964  if test "x$has_forbidden_chars" != x; then
23965    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23966    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23967    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23968    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23969      # Going to short mode and back again did indeed matter. Since short mode is
23970      # case insensitive, let's make it lowercase to improve readability.
23971      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23972      # Now convert it back to Unix-stile (cygpath)
23973      input_path=`$CYGPATH -u "$shortmode_path"`
23974      new_path="$input_path"
23975    fi
23976  fi
23977
23978  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23979  if test "x$test_cygdrive_prefix" = x; then
23980    # As a simple fix, exclude /usr/bin since it's not a real path.
23981    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23982      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23983      # a path prefixed by /cygdrive for fixpath to work.
23984      new_path="$CYGWIN_ROOT_PATH$input_path"
23985    fi
23986  fi
23987
23988
23989  if test "x$path" != "x$new_path"; then
23990    BOOT_JDK="$new_path"
23991    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23992$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23993  fi
23994
23995  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23996
23997  path="$BOOT_JDK"
23998  has_colon=`$ECHO $path | $GREP ^.:`
23999  new_path="$path"
24000  if test "x$has_colon" = x; then
24001    # Not in mixed or Windows style, start by that.
24002    new_path=`cmd //c echo $path`
24003  fi
24004
24005
24006  input_path="$new_path"
24007  # Check if we need to convert this using DOS-style short mode. If the path
24008  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24009  # take no chances and rewrite it.
24010  # Note: m4 eats our [], so we need to use [ and ] instead.
24011  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24012  if test "x$has_forbidden_chars" != x; then
24013    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24014    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24015  fi
24016
24017
24018  windows_path="$new_path"
24019  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24020    unix_path=`$CYGPATH -u "$windows_path"`
24021    new_path="$unix_path"
24022  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24023    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24024    new_path="$unix_path"
24025  fi
24026
24027  if test "x$path" != "x$new_path"; then
24028    BOOT_JDK="$new_path"
24029    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24030$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24031  fi
24032
24033  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24034  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24035
24036  else
24037    # We're on a posix platform. Hooray! :)
24038    path="$BOOT_JDK"
24039    has_space=`$ECHO "$path" | $GREP " "`
24040    if test "x$has_space" != x; then
24041      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24042$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24043      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24044    fi
24045
24046    # Use eval to expand a potential ~
24047    eval path="$path"
24048    if test ! -f "$path" && test ! -d "$path"; then
24049      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24050    fi
24051
24052    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24053  fi
24054
24055              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24056$as_echo_n "checking for Boot JDK... " >&6; }
24057              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24058$as_echo "$BOOT_JDK" >&6; }
24059              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24060$as_echo_n "checking Boot JDK version... " >&6; }
24061              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24062              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24063$as_echo "$BOOT_JDK_VERSION" >&6; }
24064            fi # end check jdk version
24065          fi # end check rt.jar
24066        fi # end check javac
24067      fi # end check java
24068    fi # end check boot jdk found
24069  fi
24070
24071    done
24072  fi
24073
24074
24075    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24076    if test "x$BOOT_JDK_FOUND" = xmaybe; then
24077      # Do we have a bin/java?
24078      if test ! -x "$BOOT_JDK/bin/java"; then
24079        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24080$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24081        BOOT_JDK_FOUND=no
24082      else
24083        # Do we have a bin/javac?
24084        if test ! -x "$BOOT_JDK/bin/javac"; then
24085          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24086$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24087          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24088$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24089          BOOT_JDK_FOUND=no
24090        else
24091          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24092          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24093            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24094$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24095            BOOT_JDK_FOUND=no
24096          else
24097            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24098            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24099
24100            # Extra M4 quote needed to protect [] in grep expression.
24101            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24102            if test "x$FOUND_CORRECT_VERSION" = x; then
24103              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24104$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24105              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24106$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24107              BOOT_JDK_FOUND=no
24108            else
24109              # We're done! :-)
24110              BOOT_JDK_FOUND=yes
24111
24112  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24113
24114  # Input might be given as Windows format, start by converting to
24115  # unix format.
24116  path="$BOOT_JDK"
24117  new_path=`$CYGPATH -u "$path"`
24118
24119  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24120  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24121  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24122  # "foo.exe" is OK but "foo" is an error.
24123  #
24124  # This test is therefore slightly more accurate than "test -f" to check for file precense.
24125  # It is also a way to make sure we got the proper file name for the real test later on.
24126  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24127  if test "x$test_shortpath" = x; then
24128    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24129$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24130    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24131  fi
24132
24133  # Call helper function which possibly converts this using DOS-style short mode.
24134  # If so, the updated path is stored in $new_path.
24135
24136  input_path="$new_path"
24137  # Check if we need to convert this using DOS-style short mode. If the path
24138  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24139  # take no chances and rewrite it.
24140  # Note: m4 eats our [], so we need to use [ and ] instead.
24141  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24142  if test "x$has_forbidden_chars" != x; then
24143    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24144    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24145    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24146    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24147      # Going to short mode and back again did indeed matter. Since short mode is
24148      # case insensitive, let's make it lowercase to improve readability.
24149      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24150      # Now convert it back to Unix-stile (cygpath)
24151      input_path=`$CYGPATH -u "$shortmode_path"`
24152      new_path="$input_path"
24153    fi
24154  fi
24155
24156  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24157  if test "x$test_cygdrive_prefix" = x; then
24158    # As a simple fix, exclude /usr/bin since it's not a real path.
24159    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24160      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24161      # a path prefixed by /cygdrive for fixpath to work.
24162      new_path="$CYGWIN_ROOT_PATH$input_path"
24163    fi
24164  fi
24165
24166
24167  if test "x$path" != "x$new_path"; then
24168    BOOT_JDK="$new_path"
24169    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24170$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24171  fi
24172
24173  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24174
24175  path="$BOOT_JDK"
24176  has_colon=`$ECHO $path | $GREP ^.:`
24177  new_path="$path"
24178  if test "x$has_colon" = x; then
24179    # Not in mixed or Windows style, start by that.
24180    new_path=`cmd //c echo $path`
24181  fi
24182
24183
24184  input_path="$new_path"
24185  # Check if we need to convert this using DOS-style short mode. If the path
24186  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24187  # take no chances and rewrite it.
24188  # Note: m4 eats our [], so we need to use [ and ] instead.
24189  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24190  if test "x$has_forbidden_chars" != x; then
24191    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24192    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24193  fi
24194
24195
24196  windows_path="$new_path"
24197  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24198    unix_path=`$CYGPATH -u "$windows_path"`
24199    new_path="$unix_path"
24200  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24201    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24202    new_path="$unix_path"
24203  fi
24204
24205  if test "x$path" != "x$new_path"; then
24206    BOOT_JDK="$new_path"
24207    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24208$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24209  fi
24210
24211  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24212  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24213
24214  else
24215    # We're on a posix platform. Hooray! :)
24216    path="$BOOT_JDK"
24217    has_space=`$ECHO "$path" | $GREP " "`
24218    if test "x$has_space" != x; then
24219      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24220$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24221      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24222    fi
24223
24224    # Use eval to expand a potential ~
24225    eval path="$path"
24226    if test ! -f "$path" && test ! -d "$path"; then
24227      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24228    fi
24229
24230    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24231  fi
24232
24233              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24234$as_echo_n "checking for Boot JDK... " >&6; }
24235              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24236$as_echo "$BOOT_JDK" >&6; }
24237              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24238$as_echo_n "checking Boot JDK version... " >&6; }
24239              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24240              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24241$as_echo "$BOOT_JDK_VERSION" >&6; }
24242            fi # end check jdk version
24243          fi # end check rt.jar
24244        fi # end check javac
24245      fi # end check java
24246    fi # end check boot jdk found
24247  fi
24248
24249
24250  if test "x$BOOT_JDK_FOUND" = xno; then
24251    # Now execute the test
24252
24253  BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24254  BOOT_JDK_SUFFIX="/Contents/Home"
24255  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24256  if test "x$ALL_JDKS_FOUND" != x; then
24257    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24258
24259  if test "x$BOOT_JDK_FOUND" = xno; then
24260    # Now execute the test
24261
24262        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24263        if test -d "$BOOT_JDK"; then
24264          BOOT_JDK_FOUND=maybe
24265          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24266$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24267        fi
24268
24269
24270    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24271    if test "x$BOOT_JDK_FOUND" = xmaybe; then
24272      # Do we have a bin/java?
24273      if test ! -x "$BOOT_JDK/bin/java"; then
24274        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24275$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24276        BOOT_JDK_FOUND=no
24277      else
24278        # Do we have a bin/javac?
24279        if test ! -x "$BOOT_JDK/bin/javac"; then
24280          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24281$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24282          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24283$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24284          BOOT_JDK_FOUND=no
24285        else
24286          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24287          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24288            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24289$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24290            BOOT_JDK_FOUND=no
24291          else
24292            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24293            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24294
24295            # Extra M4 quote needed to protect [] in grep expression.
24296            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24297            if test "x$FOUND_CORRECT_VERSION" = x; then
24298              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24299$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24300              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24301$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24302              BOOT_JDK_FOUND=no
24303            else
24304              # We're done! :-)
24305              BOOT_JDK_FOUND=yes
24306
24307  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24308
24309  # Input might be given as Windows format, start by converting to
24310  # unix format.
24311  path="$BOOT_JDK"
24312  new_path=`$CYGPATH -u "$path"`
24313
24314  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24315  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24316  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24317  # "foo.exe" is OK but "foo" is an error.
24318  #
24319  # This test is therefore slightly more accurate than "test -f" to check for file precense.
24320  # It is also a way to make sure we got the proper file name for the real test later on.
24321  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24322  if test "x$test_shortpath" = x; then
24323    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24324$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24325    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24326  fi
24327
24328  # Call helper function which possibly converts this using DOS-style short mode.
24329  # If so, the updated path is stored in $new_path.
24330
24331  input_path="$new_path"
24332  # Check if we need to convert this using DOS-style short mode. If the path
24333  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24334  # take no chances and rewrite it.
24335  # Note: m4 eats our [], so we need to use [ and ] instead.
24336  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24337  if test "x$has_forbidden_chars" != x; then
24338    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24339    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24340    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24341    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24342      # Going to short mode and back again did indeed matter. Since short mode is
24343      # case insensitive, let's make it lowercase to improve readability.
24344      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24345      # Now convert it back to Unix-stile (cygpath)
24346      input_path=`$CYGPATH -u "$shortmode_path"`
24347      new_path="$input_path"
24348    fi
24349  fi
24350
24351  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24352  if test "x$test_cygdrive_prefix" = x; then
24353    # As a simple fix, exclude /usr/bin since it's not a real path.
24354    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24355      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24356      # a path prefixed by /cygdrive for fixpath to work.
24357      new_path="$CYGWIN_ROOT_PATH$input_path"
24358    fi
24359  fi
24360
24361
24362  if test "x$path" != "x$new_path"; then
24363    BOOT_JDK="$new_path"
24364    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24365$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24366  fi
24367
24368  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24369
24370  path="$BOOT_JDK"
24371  has_colon=`$ECHO $path | $GREP ^.:`
24372  new_path="$path"
24373  if test "x$has_colon" = x; then
24374    # Not in mixed or Windows style, start by that.
24375    new_path=`cmd //c echo $path`
24376  fi
24377
24378
24379  input_path="$new_path"
24380  # Check if we need to convert this using DOS-style short mode. If the path
24381  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24382  # take no chances and rewrite it.
24383  # Note: m4 eats our [], so we need to use [ and ] instead.
24384  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24385  if test "x$has_forbidden_chars" != x; then
24386    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24387    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24388  fi
24389
24390
24391  windows_path="$new_path"
24392  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24393    unix_path=`$CYGPATH -u "$windows_path"`
24394    new_path="$unix_path"
24395  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24396    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24397    new_path="$unix_path"
24398  fi
24399
24400  if test "x$path" != "x$new_path"; then
24401    BOOT_JDK="$new_path"
24402    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24403$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24404  fi
24405
24406  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24407  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24408
24409  else
24410    # We're on a posix platform. Hooray! :)
24411    path="$BOOT_JDK"
24412    has_space=`$ECHO "$path" | $GREP " "`
24413    if test "x$has_space" != x; then
24414      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24415$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24416      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24417    fi
24418
24419    # Use eval to expand a potential ~
24420    eval path="$path"
24421    if test ! -f "$path" && test ! -d "$path"; then
24422      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24423    fi
24424
24425    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24426  fi
24427
24428              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24429$as_echo_n "checking for Boot JDK... " >&6; }
24430              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24431$as_echo "$BOOT_JDK" >&6; }
24432              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24433$as_echo_n "checking Boot JDK version... " >&6; }
24434              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24435              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24436$as_echo "$BOOT_JDK_VERSION" >&6; }
24437            fi # end check jdk version
24438          fi # end check rt.jar
24439        fi # end check javac
24440      fi # end check java
24441    fi # end check boot jdk found
24442  fi
24443
24444    done
24445  fi
24446
24447
24448    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24449    if test "x$BOOT_JDK_FOUND" = xmaybe; then
24450      # Do we have a bin/java?
24451      if test ! -x "$BOOT_JDK/bin/java"; then
24452        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24453$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24454        BOOT_JDK_FOUND=no
24455      else
24456        # Do we have a bin/javac?
24457        if test ! -x "$BOOT_JDK/bin/javac"; then
24458          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24459$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24460          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24461$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24462          BOOT_JDK_FOUND=no
24463        else
24464          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24465          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24466            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24467$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24468            BOOT_JDK_FOUND=no
24469          else
24470            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24471            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24472
24473            # Extra M4 quote needed to protect [] in grep expression.
24474            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24475            if test "x$FOUND_CORRECT_VERSION" = x; then
24476              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24477$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24478              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24479$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24480              BOOT_JDK_FOUND=no
24481            else
24482              # We're done! :-)
24483              BOOT_JDK_FOUND=yes
24484
24485  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24486
24487  # Input might be given as Windows format, start by converting to
24488  # unix format.
24489  path="$BOOT_JDK"
24490  new_path=`$CYGPATH -u "$path"`
24491
24492  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24493  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24494  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24495  # "foo.exe" is OK but "foo" is an error.
24496  #
24497  # This test is therefore slightly more accurate than "test -f" to check for file precense.
24498  # It is also a way to make sure we got the proper file name for the real test later on.
24499  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24500  if test "x$test_shortpath" = x; then
24501    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24502$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24503    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24504  fi
24505
24506  # Call helper function which possibly converts this using DOS-style short mode.
24507  # If so, the updated path is stored in $new_path.
24508
24509  input_path="$new_path"
24510  # Check if we need to convert this using DOS-style short mode. If the path
24511  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24512  # take no chances and rewrite it.
24513  # Note: m4 eats our [], so we need to use [ and ] instead.
24514  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24515  if test "x$has_forbidden_chars" != x; then
24516    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24517    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24518    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24519    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24520      # Going to short mode and back again did indeed matter. Since short mode is
24521      # case insensitive, let's make it lowercase to improve readability.
24522      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24523      # Now convert it back to Unix-stile (cygpath)
24524      input_path=`$CYGPATH -u "$shortmode_path"`
24525      new_path="$input_path"
24526    fi
24527  fi
24528
24529  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24530  if test "x$test_cygdrive_prefix" = x; then
24531    # As a simple fix, exclude /usr/bin since it's not a real path.
24532    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24533      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24534      # a path prefixed by /cygdrive for fixpath to work.
24535      new_path="$CYGWIN_ROOT_PATH$input_path"
24536    fi
24537  fi
24538
24539
24540  if test "x$path" != "x$new_path"; then
24541    BOOT_JDK="$new_path"
24542    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24543$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24544  fi
24545
24546  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24547
24548  path="$BOOT_JDK"
24549  has_colon=`$ECHO $path | $GREP ^.:`
24550  new_path="$path"
24551  if test "x$has_colon" = x; then
24552    # Not in mixed or Windows style, start by that.
24553    new_path=`cmd //c echo $path`
24554  fi
24555
24556
24557  input_path="$new_path"
24558  # Check if we need to convert this using DOS-style short mode. If the path
24559  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24560  # take no chances and rewrite it.
24561  # Note: m4 eats our [], so we need to use [ and ] instead.
24562  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24563  if test "x$has_forbidden_chars" != x; then
24564    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24565    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24566  fi
24567
24568
24569  windows_path="$new_path"
24570  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24571    unix_path=`$CYGPATH -u "$windows_path"`
24572    new_path="$unix_path"
24573  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24574    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24575    new_path="$unix_path"
24576  fi
24577
24578  if test "x$path" != "x$new_path"; then
24579    BOOT_JDK="$new_path"
24580    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24581$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24582  fi
24583
24584  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24585  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24586
24587  else
24588    # We're on a posix platform. Hooray! :)
24589    path="$BOOT_JDK"
24590    has_space=`$ECHO "$path" | $GREP " "`
24591    if test "x$has_space" != x; then
24592      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24593$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24594      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24595    fi
24596
24597    # Use eval to expand a potential ~
24598    eval path="$path"
24599    if test ! -f "$path" && test ! -d "$path"; then
24600      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24601    fi
24602
24603    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24604  fi
24605
24606              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24607$as_echo_n "checking for Boot JDK... " >&6; }
24608              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24609$as_echo "$BOOT_JDK" >&6; }
24610              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24611$as_echo_n "checking Boot JDK version... " >&6; }
24612              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24613              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24614$as_echo "$BOOT_JDK_VERSION" >&6; }
24615            fi # end check jdk version
24616          fi # end check rt.jar
24617        fi # end check javac
24618      fi # end check java
24619    fi # end check boot jdk found
24620  fi
24621
24622  elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24623
24624  if test "x$BOOT_JDK_FOUND" = xno; then
24625    # Now execute the test
24626
24627  BOOT_JDK_PREFIX="/usr/lib/jvm"
24628  BOOT_JDK_SUFFIX=""
24629  ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24630  if test "x$ALL_JDKS_FOUND" != x; then
24631    for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24632
24633  if test "x$BOOT_JDK_FOUND" = xno; then
24634    # Now execute the test
24635
24636        BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24637        if test -d "$BOOT_JDK"; then
24638          BOOT_JDK_FOUND=maybe
24639          { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24640$as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24641        fi
24642
24643
24644    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24645    if test "x$BOOT_JDK_FOUND" = xmaybe; then
24646      # Do we have a bin/java?
24647      if test ! -x "$BOOT_JDK/bin/java"; then
24648        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24649$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24650        BOOT_JDK_FOUND=no
24651      else
24652        # Do we have a bin/javac?
24653        if test ! -x "$BOOT_JDK/bin/javac"; then
24654          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24655$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24656          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24657$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24658          BOOT_JDK_FOUND=no
24659        else
24660          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24661          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24662            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24663$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24664            BOOT_JDK_FOUND=no
24665          else
24666            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24667            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24668
24669            # Extra M4 quote needed to protect [] in grep expression.
24670            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24671            if test "x$FOUND_CORRECT_VERSION" = x; then
24672              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24673$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24674              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24675$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24676              BOOT_JDK_FOUND=no
24677            else
24678              # We're done! :-)
24679              BOOT_JDK_FOUND=yes
24680
24681  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24682
24683  # Input might be given as Windows format, start by converting to
24684  # unix format.
24685  path="$BOOT_JDK"
24686  new_path=`$CYGPATH -u "$path"`
24687
24688  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24689  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24690  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24691  # "foo.exe" is OK but "foo" is an error.
24692  #
24693  # This test is therefore slightly more accurate than "test -f" to check for file precense.
24694  # It is also a way to make sure we got the proper file name for the real test later on.
24695  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24696  if test "x$test_shortpath" = x; then
24697    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24698$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24699    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24700  fi
24701
24702  # Call helper function which possibly converts this using DOS-style short mode.
24703  # If so, the updated path is stored in $new_path.
24704
24705  input_path="$new_path"
24706  # Check if we need to convert this using DOS-style short mode. If the path
24707  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24708  # take no chances and rewrite it.
24709  # Note: m4 eats our [], so we need to use [ and ] instead.
24710  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24711  if test "x$has_forbidden_chars" != x; then
24712    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24713    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24714    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24715    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24716      # Going to short mode and back again did indeed matter. Since short mode is
24717      # case insensitive, let's make it lowercase to improve readability.
24718      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24719      # Now convert it back to Unix-stile (cygpath)
24720      input_path=`$CYGPATH -u "$shortmode_path"`
24721      new_path="$input_path"
24722    fi
24723  fi
24724
24725  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24726  if test "x$test_cygdrive_prefix" = x; then
24727    # As a simple fix, exclude /usr/bin since it's not a real path.
24728    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24729      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24730      # a path prefixed by /cygdrive for fixpath to work.
24731      new_path="$CYGWIN_ROOT_PATH$input_path"
24732    fi
24733  fi
24734
24735
24736  if test "x$path" != "x$new_path"; then
24737    BOOT_JDK="$new_path"
24738    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24739$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24740  fi
24741
24742  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24743
24744  path="$BOOT_JDK"
24745  has_colon=`$ECHO $path | $GREP ^.:`
24746  new_path="$path"
24747  if test "x$has_colon" = x; then
24748    # Not in mixed or Windows style, start by that.
24749    new_path=`cmd //c echo $path`
24750  fi
24751
24752
24753  input_path="$new_path"
24754  # Check if we need to convert this using DOS-style short mode. If the path
24755  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24756  # take no chances and rewrite it.
24757  # Note: m4 eats our [], so we need to use [ and ] instead.
24758  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24759  if test "x$has_forbidden_chars" != x; then
24760    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24761    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24762  fi
24763
24764
24765  windows_path="$new_path"
24766  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24767    unix_path=`$CYGPATH -u "$windows_path"`
24768    new_path="$unix_path"
24769  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24770    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24771    new_path="$unix_path"
24772  fi
24773
24774  if test "x$path" != "x$new_path"; then
24775    BOOT_JDK="$new_path"
24776    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24777$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24778  fi
24779
24780  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24781  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24782
24783  else
24784    # We're on a posix platform. Hooray! :)
24785    path="$BOOT_JDK"
24786    has_space=`$ECHO "$path" | $GREP " "`
24787    if test "x$has_space" != x; then
24788      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24789$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24790      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24791    fi
24792
24793    # Use eval to expand a potential ~
24794    eval path="$path"
24795    if test ! -f "$path" && test ! -d "$path"; then
24796      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24797    fi
24798
24799    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24800  fi
24801
24802              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24803$as_echo_n "checking for Boot JDK... " >&6; }
24804              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24805$as_echo "$BOOT_JDK" >&6; }
24806              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24807$as_echo_n "checking Boot JDK version... " >&6; }
24808              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24809              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24810$as_echo "$BOOT_JDK_VERSION" >&6; }
24811            fi # end check jdk version
24812          fi # end check rt.jar
24813        fi # end check javac
24814      fi # end check java
24815    fi # end check boot jdk found
24816  fi
24817
24818    done
24819  fi
24820
24821
24822    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24823    if test "x$BOOT_JDK_FOUND" = xmaybe; then
24824      # Do we have a bin/java?
24825      if test ! -x "$BOOT_JDK/bin/java"; then
24826        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24827$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24828        BOOT_JDK_FOUND=no
24829      else
24830        # Do we have a bin/javac?
24831        if test ! -x "$BOOT_JDK/bin/javac"; then
24832          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24833$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24834          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24835$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24836          BOOT_JDK_FOUND=no
24837        else
24838          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24839          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24840            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24841$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24842            BOOT_JDK_FOUND=no
24843          else
24844            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24845            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24846
24847            # Extra M4 quote needed to protect [] in grep expression.
24848            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24849            if test "x$FOUND_CORRECT_VERSION" = x; then
24850              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24851$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24852              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24853$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24854              BOOT_JDK_FOUND=no
24855            else
24856              # We're done! :-)
24857              BOOT_JDK_FOUND=yes
24858
24859  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24860
24861  # Input might be given as Windows format, start by converting to
24862  # unix format.
24863  path="$BOOT_JDK"
24864  new_path=`$CYGPATH -u "$path"`
24865
24866  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24867  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24868  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24869  # "foo.exe" is OK but "foo" is an error.
24870  #
24871  # This test is therefore slightly more accurate than "test -f" to check for file precense.
24872  # It is also a way to make sure we got the proper file name for the real test later on.
24873  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24874  if test "x$test_shortpath" = x; then
24875    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24876$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24877    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24878  fi
24879
24880  # Call helper function which possibly converts this using DOS-style short mode.
24881  # If so, the updated path is stored in $new_path.
24882
24883  input_path="$new_path"
24884  # Check if we need to convert this using DOS-style short mode. If the path
24885  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24886  # take no chances and rewrite it.
24887  # Note: m4 eats our [], so we need to use [ and ] instead.
24888  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24889  if test "x$has_forbidden_chars" != x; then
24890    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24891    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24892    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24893    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24894      # Going to short mode and back again did indeed matter. Since short mode is
24895      # case insensitive, let's make it lowercase to improve readability.
24896      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24897      # Now convert it back to Unix-stile (cygpath)
24898      input_path=`$CYGPATH -u "$shortmode_path"`
24899      new_path="$input_path"
24900    fi
24901  fi
24902
24903  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24904  if test "x$test_cygdrive_prefix" = x; then
24905    # As a simple fix, exclude /usr/bin since it's not a real path.
24906    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24907      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24908      # a path prefixed by /cygdrive for fixpath to work.
24909      new_path="$CYGWIN_ROOT_PATH$input_path"
24910    fi
24911  fi
24912
24913
24914  if test "x$path" != "x$new_path"; then
24915    BOOT_JDK="$new_path"
24916    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24917$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24918  fi
24919
24920  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24921
24922  path="$BOOT_JDK"
24923  has_colon=`$ECHO $path | $GREP ^.:`
24924  new_path="$path"
24925  if test "x$has_colon" = x; then
24926    # Not in mixed or Windows style, start by that.
24927    new_path=`cmd //c echo $path`
24928  fi
24929
24930
24931  input_path="$new_path"
24932  # Check if we need to convert this using DOS-style short mode. If the path
24933  # contains just simple characters, use it. Otherwise (spaces, weird characters),
24934  # take no chances and rewrite it.
24935  # Note: m4 eats our [], so we need to use [ and ] instead.
24936  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24937  if test "x$has_forbidden_chars" != x; then
24938    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24939    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24940  fi
24941
24942
24943  windows_path="$new_path"
24944  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24945    unix_path=`$CYGPATH -u "$windows_path"`
24946    new_path="$unix_path"
24947  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24948    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24949    new_path="$unix_path"
24950  fi
24951
24952  if test "x$path" != "x$new_path"; then
24953    BOOT_JDK="$new_path"
24954    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24955$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24956  fi
24957
24958  # Save the first 10 bytes of this path to the storage, so fixpath can work.
24959  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24960
24961  else
24962    # We're on a posix platform. Hooray! :)
24963    path="$BOOT_JDK"
24964    has_space=`$ECHO "$path" | $GREP " "`
24965    if test "x$has_space" != x; then
24966      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24967$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24968      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24969    fi
24970
24971    # Use eval to expand a potential ~
24972    eval path="$path"
24973    if test ! -f "$path" && test ! -d "$path"; then
24974      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24975    fi
24976
24977    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24978  fi
24979
24980              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24981$as_echo_n "checking for Boot JDK... " >&6; }
24982              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24983$as_echo "$BOOT_JDK" >&6; }
24984              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24985$as_echo_n "checking Boot JDK version... " >&6; }
24986              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24987              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24988$as_echo "$BOOT_JDK_VERSION" >&6; }
24989            fi # end check jdk version
24990          fi # end check rt.jar
24991        fi # end check javac
24992      fi # end check java
24993    fi # end check boot jdk found
24994  fi
24995
24996  fi
24997
24998
24999    # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25000    if test "x$BOOT_JDK_FOUND" = xmaybe; then
25001      # Do we have a bin/java?
25002      if test ! -x "$BOOT_JDK/bin/java"; then
25003        { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25004$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25005        BOOT_JDK_FOUND=no
25006      else
25007        # Do we have a bin/javac?
25008        if test ! -x "$BOOT_JDK/bin/javac"; then
25009          { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25010$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25011          { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25012$as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25013          BOOT_JDK_FOUND=no
25014        else
25015          # Do we have an rt.jar? (On MacOSX it is called classes.jar)
25016          if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
25017            { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
25018$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
25019            BOOT_JDK_FOUND=no
25020          else
25021            # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25022            BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25023
25024            # Extra M4 quote needed to protect [] in grep expression.
25025            FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
25026            if test "x$FOUND_CORRECT_VERSION" = x; then
25027              { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25028$as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25029              { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
25030$as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
25031              BOOT_JDK_FOUND=no
25032            else
25033              # We're done! :-)
25034              BOOT_JDK_FOUND=yes
25035
25036  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25037
25038  # Input might be given as Windows format, start by converting to
25039  # unix format.
25040  path="$BOOT_JDK"
25041  new_path=`$CYGPATH -u "$path"`
25042
25043  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25044  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25045  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25046  # "foo.exe" is OK but "foo" is an error.
25047  #
25048  # This test is therefore slightly more accurate than "test -f" to check for file precense.
25049  # It is also a way to make sure we got the proper file name for the real test later on.
25050  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25051  if test "x$test_shortpath" = x; then
25052    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25053$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25054    as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25055  fi
25056
25057  # Call helper function which possibly converts this using DOS-style short mode.
25058  # If so, the updated path is stored in $new_path.
25059
25060  input_path="$new_path"
25061  # Check if we need to convert this using DOS-style short mode. If the path
25062  # contains just simple characters, use it. Otherwise (spaces, weird characters),
25063  # take no chances and rewrite it.
25064  # Note: m4 eats our [], so we need to use [ and ] instead.
25065  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25066  if test "x$has_forbidden_chars" != x; then
25067    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25068    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25069    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25070    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25071      # Going to short mode and back again did indeed matter. Since short mode is
25072      # case insensitive, let's make it lowercase to improve readability.
25073      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25074      # Now convert it back to Unix-stile (cygpath)
25075      input_path=`$CYGPATH -u "$shortmode_path"`
25076      new_path="$input_path"
25077    fi
25078  fi
25079
25080  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25081  if test "x$test_cygdrive_prefix" = x; then
25082    # As a simple fix, exclude /usr/bin since it's not a real path.
25083    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25084      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25085      # a path prefixed by /cygdrive for fixpath to work.
25086      new_path="$CYGWIN_ROOT_PATH$input_path"
25087    fi
25088  fi
25089
25090
25091  if test "x$path" != "x$new_path"; then
25092    BOOT_JDK="$new_path"
25093    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25094$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25095  fi
25096
25097  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25098
25099  path="$BOOT_JDK"
25100  has_colon=`$ECHO $path | $GREP ^.:`
25101  new_path="$path"
25102  if test "x$has_colon" = x; then
25103    # Not in mixed or Windows style, start by that.
25104    new_path=`cmd //c echo $path`
25105  fi
25106
25107
25108  input_path="$new_path"
25109  # Check if we need to convert this using DOS-style short mode. If the path
25110  # contains just simple characters, use it. Otherwise (spaces, weird characters),
25111  # take no chances and rewrite it.
25112  # Note: m4 eats our [], so we need to use [ and ] instead.
25113  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25114  if test "x$has_forbidden_chars" != x; then
25115    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25116    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25117  fi
25118
25119
25120  windows_path="$new_path"
25121  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25122    unix_path=`$CYGPATH -u "$windows_path"`
25123    new_path="$unix_path"
25124  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25125    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25126    new_path="$unix_path"
25127  fi
25128
25129  if test "x$path" != "x$new_path"; then
25130    BOOT_JDK="$new_path"
25131    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25132$as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25133  fi
25134
25135  # Save the first 10 bytes of this path to the storage, so fixpath can work.
25136  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25137
25138  else
25139    # We're on a posix platform. Hooray! :)
25140    path="$BOOT_JDK"
25141    has_space=`$ECHO "$path" | $GREP " "`
25142    if test "x$has_space" != x; then
25143      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25144$as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25145      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25146    fi
25147
25148    # Use eval to expand a potential ~
25149    eval path="$path"
25150    if test ! -f "$path" && test ! -d "$path"; then
25151      as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25152    fi
25153
25154    BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25155  fi
25156
25157              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25158$as_echo_n "checking for Boot JDK... " >&6; }
25159              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25160$as_echo "$BOOT_JDK" >&6; }
25161              { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25162$as_echo_n "checking Boot JDK version... " >&6; }
25163              BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25164              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25165$as_echo "$BOOT_JDK_VERSION" >&6; }
25166            fi # end check jdk version
25167          fi # end check rt.jar
25168        fi # end check javac
25169      fi # end check java
25170    fi # end check boot jdk found
25171  fi
25172
25173
25174  # If we haven't found anything yet, we've truly lost. Give up.
25175  if test "x$BOOT_JDK_FOUND" = xno; then
25176
25177  # Print a helpful message on how to acquire the necessary build dependency.
25178  # openjdk is the help tag: freetype, cups, pulse, alsa etc
25179  MISSING_DEPENDENCY=openjdk
25180
25181  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25182    cygwin_help $MISSING_DEPENDENCY
25183  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25184    msys_help $MISSING_DEPENDENCY
25185  else
25186    PKGHANDLER_COMMAND=
25187
25188    case $PKGHANDLER in
25189      apt-get)
25190        apt_help     $MISSING_DEPENDENCY ;;
25191      yum)
25192        yum_help     $MISSING_DEPENDENCY ;;
25193      port)
25194        port_help    $MISSING_DEPENDENCY ;;
25195      pkgutil)
25196        pkgutil_help $MISSING_DEPENDENCY ;;
25197      pkgadd)
25198        pkgadd_help  $MISSING_DEPENDENCY ;;
25199    esac
25200
25201    if test "x$PKGHANDLER_COMMAND" != x; then
25202      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
25203    fi
25204  fi
25205
25206    { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
25207$as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
25208    { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
25209$as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25210    as_fn_error $? "Cannot continue" "$LINENO" 5
25211  fi
25212
25213  # Setup proper paths for what we found
25214  BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
25215  if test ! -f "$BOOT_RTJAR"; then
25216    # On MacOSX it is called classes.jar
25217    BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
25218    if test -f "$BOOT_RTJAR"; then
25219      # Remove the ..
25220      BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
25221    fi
25222  fi
25223  BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
25224  BOOT_JDK="$BOOT_JDK"
25225
25226
25227
25228
25229  # Setup tools from the Boot JDK.
25230
25231  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25232
25233  # Publish this variable in the help.
25234
25235
25236  if test "x$JAVA" = x; then
25237    # The variable is not set by user, try to locate tool using the code snippet
25238
25239      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
25240$as_echo_n "checking for java in Boot JDK... " >&6; }
25241      JAVA=$BOOT_JDK/bin/java
25242      if test ! -x $JAVA; then
25243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25244$as_echo "not found" >&6; }
25245        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25246$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25247        as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
25248      fi
25249      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25250$as_echo "ok" >&6; }
25251
25252
25253  else
25254    # The variable is set, but is it from the command line or the environment?
25255
25256    # Try to remove the string !JAVA! from our list.
25257    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/}
25258    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25259      # If it failed, the variable was not from the command line. Ignore it,
25260      # but warn the user (except for BASH, which is always set by the calling BASH).
25261      if test "xJAVA" != xBASH; then
25262        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5
25263$as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;}
25264      fi
25265      # Try to locate tool using the code snippet
25266
25267      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
25268$as_echo_n "checking for java in Boot JDK... " >&6; }
25269      JAVA=$BOOT_JDK/bin/java
25270      if test ! -x $JAVA; then
25271        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25272$as_echo "not found" >&6; }
25273        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25274$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25275        as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
25276      fi
25277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25278$as_echo "ok" >&6; }
25279
25280
25281    else
25282      # If it succeeded, then it was overridden by the user. We will use it
25283      # for the tool.
25284
25285      # First remove it from the list of overridden variables, so we can test
25286      # for unknown variables in the end.
25287      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25288
25289      # Check if the provided tool contains a complete path.
25290      tool_specified="$JAVA"
25291      tool_basename="${tool_specified##*/}"
25292      if test "x$tool_basename" = "x$tool_specified"; then
25293        # A command without a complete path is provided, search $PATH.
25294        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5
25295$as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;}
25296        # Extract the first word of "$tool_basename", so it can be a program name with args.
25297set dummy $tool_basename; ac_word=$2
25298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25299$as_echo_n "checking for $ac_word... " >&6; }
25300if ${ac_cv_path_JAVA+:} false; then :
25301  $as_echo_n "(cached) " >&6
25302else
25303  case $JAVA in
25304  [\\/]* | ?:[\\/]*)
25305  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
25306  ;;
25307  *)
25308  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25309for as_dir in $PATH
25310do
25311  IFS=$as_save_IFS
25312  test -z "$as_dir" && as_dir=.
25313    for ac_exec_ext in '' $ac_executable_extensions; do
25314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25315    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
25316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25317    break 2
25318  fi
25319done
25320  done
25321IFS=$as_save_IFS
25322
25323  ;;
25324esac
25325fi
25326JAVA=$ac_cv_path_JAVA
25327if test -n "$JAVA"; then
25328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25329$as_echo "$JAVA" >&6; }
25330else
25331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25332$as_echo "no" >&6; }
25333fi
25334
25335
25336        if test "x$JAVA" = x; then
25337          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25338        fi
25339      else
25340        # Otherwise we believe it is a complete path. Use it as it is.
25341        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5
25342$as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;}
25343        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5
25344$as_echo_n "checking for JAVA... " >&6; }
25345        if test ! -x "$tool_specified"; then
25346          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25347$as_echo "not found" >&6; }
25348          as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5
25349        fi
25350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25351$as_echo "$tool_specified" >&6; }
25352      fi
25353    fi
25354  fi
25355
25356
25357
25358  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25359
25360  # Publish this variable in the help.
25361
25362
25363  if test "x$JAVAC" = x; then
25364    # The variable is not set by user, try to locate tool using the code snippet
25365
25366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25367$as_echo_n "checking for javac in Boot JDK... " >&6; }
25368      JAVAC=$BOOT_JDK/bin/javac
25369      if test ! -x $JAVAC; then
25370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25371$as_echo "not found" >&6; }
25372        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25373$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25374        as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25375      fi
25376      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25377$as_echo "ok" >&6; }
25378
25379
25380  else
25381    # The variable is set, but is it from the command line or the environment?
25382
25383    # Try to remove the string !JAVAC! from our list.
25384    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/}
25385    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25386      # If it failed, the variable was not from the command line. Ignore it,
25387      # but warn the user (except for BASH, which is always set by the calling BASH).
25388      if test "xJAVAC" != xBASH; then
25389        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5
25390$as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;}
25391      fi
25392      # Try to locate tool using the code snippet
25393
25394      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
25395$as_echo_n "checking for javac in Boot JDK... " >&6; }
25396      JAVAC=$BOOT_JDK/bin/javac
25397      if test ! -x $JAVAC; then
25398        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25399$as_echo "not found" >&6; }
25400        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25401$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25402        as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
25403      fi
25404      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25405$as_echo "ok" >&6; }
25406
25407
25408    else
25409      # If it succeeded, then it was overridden by the user. We will use it
25410      # for the tool.
25411
25412      # First remove it from the list of overridden variables, so we can test
25413      # for unknown variables in the end.
25414      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25415
25416      # Check if the provided tool contains a complete path.
25417      tool_specified="$JAVAC"
25418      tool_basename="${tool_specified##*/}"
25419      if test "x$tool_basename" = "x$tool_specified"; then
25420        # A command without a complete path is provided, search $PATH.
25421        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5
25422$as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;}
25423        # Extract the first word of "$tool_basename", so it can be a program name with args.
25424set dummy $tool_basename; ac_word=$2
25425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25426$as_echo_n "checking for $ac_word... " >&6; }
25427if ${ac_cv_path_JAVAC+:} false; then :
25428  $as_echo_n "(cached) " >&6
25429else
25430  case $JAVAC in
25431  [\\/]* | ?:[\\/]*)
25432  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25433  ;;
25434  *)
25435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25436for as_dir in $PATH
25437do
25438  IFS=$as_save_IFS
25439  test -z "$as_dir" && as_dir=.
25440    for ac_exec_ext in '' $ac_executable_extensions; do
25441  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25442    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
25443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25444    break 2
25445  fi
25446done
25447  done
25448IFS=$as_save_IFS
25449
25450  ;;
25451esac
25452fi
25453JAVAC=$ac_cv_path_JAVAC
25454if test -n "$JAVAC"; then
25455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25456$as_echo "$JAVAC" >&6; }
25457else
25458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25459$as_echo "no" >&6; }
25460fi
25461
25462
25463        if test "x$JAVAC" = x; then
25464          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25465        fi
25466      else
25467        # Otherwise we believe it is a complete path. Use it as it is.
25468        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5
25469$as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;}
25470        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5
25471$as_echo_n "checking for JAVAC... " >&6; }
25472        if test ! -x "$tool_specified"; then
25473          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25474$as_echo "not found" >&6; }
25475          as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5
25476        fi
25477        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25478$as_echo "$tool_specified" >&6; }
25479      fi
25480    fi
25481  fi
25482
25483
25484
25485  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25486
25487  # Publish this variable in the help.
25488
25489
25490  if test "x$JAVAH" = x; then
25491    # The variable is not set by user, try to locate tool using the code snippet
25492
25493      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25494$as_echo_n "checking for javah in Boot JDK... " >&6; }
25495      JAVAH=$BOOT_JDK/bin/javah
25496      if test ! -x $JAVAH; then
25497        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25498$as_echo "not found" >&6; }
25499        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25500$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25501        as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25502      fi
25503      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25504$as_echo "ok" >&6; }
25505
25506
25507  else
25508    # The variable is set, but is it from the command line or the environment?
25509
25510    # Try to remove the string !JAVAH! from our list.
25511    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/}
25512    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25513      # If it failed, the variable was not from the command line. Ignore it,
25514      # but warn the user (except for BASH, which is always set by the calling BASH).
25515      if test "xJAVAH" != xBASH; then
25516        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5
25517$as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;}
25518      fi
25519      # Try to locate tool using the code snippet
25520
25521      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
25522$as_echo_n "checking for javah in Boot JDK... " >&6; }
25523      JAVAH=$BOOT_JDK/bin/javah
25524      if test ! -x $JAVAH; then
25525        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25526$as_echo "not found" >&6; }
25527        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25528$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25529        as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
25530      fi
25531      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25532$as_echo "ok" >&6; }
25533
25534
25535    else
25536      # If it succeeded, then it was overridden by the user. We will use it
25537      # for the tool.
25538
25539      # First remove it from the list of overridden variables, so we can test
25540      # for unknown variables in the end.
25541      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25542
25543      # Check if the provided tool contains a complete path.
25544      tool_specified="$JAVAH"
25545      tool_basename="${tool_specified##*/}"
25546      if test "x$tool_basename" = "x$tool_specified"; then
25547        # A command without a complete path is provided, search $PATH.
25548        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5
25549$as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;}
25550        # Extract the first word of "$tool_basename", so it can be a program name with args.
25551set dummy $tool_basename; ac_word=$2
25552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25553$as_echo_n "checking for $ac_word... " >&6; }
25554if ${ac_cv_path_JAVAH+:} false; then :
25555  $as_echo_n "(cached) " >&6
25556else
25557  case $JAVAH in
25558  [\\/]* | ?:[\\/]*)
25559  ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
25560  ;;
25561  *)
25562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25563for as_dir in $PATH
25564do
25565  IFS=$as_save_IFS
25566  test -z "$as_dir" && as_dir=.
25567    for ac_exec_ext in '' $ac_executable_extensions; do
25568  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25569    ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25570    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25571    break 2
25572  fi
25573done
25574  done
25575IFS=$as_save_IFS
25576
25577  ;;
25578esac
25579fi
25580JAVAH=$ac_cv_path_JAVAH
25581if test -n "$JAVAH"; then
25582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
25583$as_echo "$JAVAH" >&6; }
25584else
25585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25586$as_echo "no" >&6; }
25587fi
25588
25589
25590        if test "x$JAVAH" = x; then
25591          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25592        fi
25593      else
25594        # Otherwise we believe it is a complete path. Use it as it is.
25595        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5
25596$as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;}
25597        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5
25598$as_echo_n "checking for JAVAH... " >&6; }
25599        if test ! -x "$tool_specified"; then
25600          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25601$as_echo "not found" >&6; }
25602          as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5
25603        fi
25604        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25605$as_echo "$tool_specified" >&6; }
25606      fi
25607    fi
25608  fi
25609
25610
25611
25612  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25613
25614  # Publish this variable in the help.
25615
25616
25617  if test "x$JAR" = x; then
25618    # The variable is not set by user, try to locate tool using the code snippet
25619
25620      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25621$as_echo_n "checking for jar in Boot JDK... " >&6; }
25622      JAR=$BOOT_JDK/bin/jar
25623      if test ! -x $JAR; then
25624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25625$as_echo "not found" >&6; }
25626        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25627$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25628        as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25629      fi
25630      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25631$as_echo "ok" >&6; }
25632
25633
25634  else
25635    # The variable is set, but is it from the command line or the environment?
25636
25637    # Try to remove the string !JAR! from our list.
25638    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/}
25639    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25640      # If it failed, the variable was not from the command line. Ignore it,
25641      # but warn the user (except for BASH, which is always set by the calling BASH).
25642      if test "xJAR" != xBASH; then
25643        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5
25644$as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;}
25645      fi
25646      # Try to locate tool using the code snippet
25647
25648      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
25649$as_echo_n "checking for jar in Boot JDK... " >&6; }
25650      JAR=$BOOT_JDK/bin/jar
25651      if test ! -x $JAR; then
25652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25653$as_echo "not found" >&6; }
25654        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25655$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25656        as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
25657      fi
25658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25659$as_echo "ok" >&6; }
25660
25661
25662    else
25663      # If it succeeded, then it was overridden by the user. We will use it
25664      # for the tool.
25665
25666      # First remove it from the list of overridden variables, so we can test
25667      # for unknown variables in the end.
25668      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25669
25670      # Check if the provided tool contains a complete path.
25671      tool_specified="$JAR"
25672      tool_basename="${tool_specified##*/}"
25673      if test "x$tool_basename" = "x$tool_specified"; then
25674        # A command without a complete path is provided, search $PATH.
25675        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5
25676$as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;}
25677        # Extract the first word of "$tool_basename", so it can be a program name with args.
25678set dummy $tool_basename; ac_word=$2
25679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25680$as_echo_n "checking for $ac_word... " >&6; }
25681if ${ac_cv_path_JAR+:} false; then :
25682  $as_echo_n "(cached) " >&6
25683else
25684  case $JAR in
25685  [\\/]* | ?:[\\/]*)
25686  ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25687  ;;
25688  *)
25689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25690for as_dir in $PATH
25691do
25692  IFS=$as_save_IFS
25693  test -z "$as_dir" && as_dir=.
25694    for ac_exec_ext in '' $ac_executable_extensions; do
25695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25696    ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25698    break 2
25699  fi
25700done
25701  done
25702IFS=$as_save_IFS
25703
25704  ;;
25705esac
25706fi
25707JAR=$ac_cv_path_JAR
25708if test -n "$JAR"; then
25709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
25710$as_echo "$JAR" >&6; }
25711else
25712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713$as_echo "no" >&6; }
25714fi
25715
25716
25717        if test "x$JAR" = x; then
25718          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25719        fi
25720      else
25721        # Otherwise we believe it is a complete path. Use it as it is.
25722        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5
25723$as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;}
25724        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5
25725$as_echo_n "checking for JAR... " >&6; }
25726        if test ! -x "$tool_specified"; then
25727          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25728$as_echo "not found" >&6; }
25729          as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5
25730        fi
25731        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25732$as_echo "$tool_specified" >&6; }
25733      fi
25734    fi
25735  fi
25736
25737
25738
25739  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25740
25741  # Publish this variable in the help.
25742
25743
25744  if test "x$NATIVE2ASCII" = x; then
25745    # The variable is not set by user, try to locate tool using the code snippet
25746
25747      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25748$as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25749      NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25750      if test ! -x $NATIVE2ASCII; then
25751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25752$as_echo "not found" >&6; }
25753        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25754$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25755        as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25756      fi
25757      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25758$as_echo "ok" >&6; }
25759
25760
25761  else
25762    # The variable is set, but is it from the command line or the environment?
25763
25764    # Try to remove the string !NATIVE2ASCII! from our list.
25765    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/}
25766    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25767      # If it failed, the variable was not from the command line. Ignore it,
25768      # but warn the user (except for BASH, which is always set by the calling BASH).
25769      if test "xNATIVE2ASCII" != xBASH; then
25770        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5
25771$as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;}
25772      fi
25773      # Try to locate tool using the code snippet
25774
25775      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
25776$as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
25777      NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
25778      if test ! -x $NATIVE2ASCII; then
25779        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25780$as_echo "not found" >&6; }
25781        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25782$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25783        as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
25784      fi
25785      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25786$as_echo "ok" >&6; }
25787
25788
25789    else
25790      # If it succeeded, then it was overridden by the user. We will use it
25791      # for the tool.
25792
25793      # First remove it from the list of overridden variables, so we can test
25794      # for unknown variables in the end.
25795      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25796
25797      # Check if the provided tool contains a complete path.
25798      tool_specified="$NATIVE2ASCII"
25799      tool_basename="${tool_specified##*/}"
25800      if test "x$tool_basename" = "x$tool_specified"; then
25801        # A command without a complete path is provided, search $PATH.
25802        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5
25803$as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;}
25804        # Extract the first word of "$tool_basename", so it can be a program name with args.
25805set dummy $tool_basename; ac_word=$2
25806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25807$as_echo_n "checking for $ac_word... " >&6; }
25808if ${ac_cv_path_NATIVE2ASCII+:} false; then :
25809  $as_echo_n "(cached) " >&6
25810else
25811  case $NATIVE2ASCII in
25812  [\\/]* | ?:[\\/]*)
25813  ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path.
25814  ;;
25815  *)
25816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25817for as_dir in $PATH
25818do
25819  IFS=$as_save_IFS
25820  test -z "$as_dir" && as_dir=.
25821    for ac_exec_ext in '' $ac_executable_extensions; do
25822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25823    ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext"
25824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25825    break 2
25826  fi
25827done
25828  done
25829IFS=$as_save_IFS
25830
25831  ;;
25832esac
25833fi
25834NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII
25835if test -n "$NATIVE2ASCII"; then
25836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5
25837$as_echo "$NATIVE2ASCII" >&6; }
25838else
25839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25840$as_echo "no" >&6; }
25841fi
25842
25843
25844        if test "x$NATIVE2ASCII" = x; then
25845          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25846        fi
25847      else
25848        # Otherwise we believe it is a complete path. Use it as it is.
25849        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5
25850$as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;}
25851        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5
25852$as_echo_n "checking for NATIVE2ASCII... " >&6; }
25853        if test ! -x "$tool_specified"; then
25854          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25855$as_echo "not found" >&6; }
25856          as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5
25857        fi
25858        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25859$as_echo "$tool_specified" >&6; }
25860      fi
25861    fi
25862  fi
25863
25864
25865
25866  # Use user overridden value if available, otherwise locate tool in the Boot JDK.
25867
25868  # Publish this variable in the help.
25869
25870
25871  if test "x$JARSIGNER" = x; then
25872    # The variable is not set by user, try to locate tool using the code snippet
25873
25874      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25875$as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25876      JARSIGNER=$BOOT_JDK/bin/jarsigner
25877      if test ! -x $JARSIGNER; then
25878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25879$as_echo "not found" >&6; }
25880        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25881$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25882        as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25883      fi
25884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25885$as_echo "ok" >&6; }
25886
25887
25888  else
25889    # The variable is set, but is it from the command line or the environment?
25890
25891    # Try to remove the string !JARSIGNER! from our list.
25892    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/}
25893    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
25894      # If it failed, the variable was not from the command line. Ignore it,
25895      # but warn the user (except for BASH, which is always set by the calling BASH).
25896      if test "xJARSIGNER" != xBASH; then
25897        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5
25898$as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;}
25899      fi
25900      # Try to locate tool using the code snippet
25901
25902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5
25903$as_echo_n "checking for jarsigner in Boot JDK... " >&6; }
25904      JARSIGNER=$BOOT_JDK/bin/jarsigner
25905      if test ! -x $JARSIGNER; then
25906        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25907$as_echo "not found" >&6; }
25908        { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
25909$as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
25910        as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5
25911      fi
25912      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
25913$as_echo "ok" >&6; }
25914
25915
25916    else
25917      # If it succeeded, then it was overridden by the user. We will use it
25918      # for the tool.
25919
25920      # First remove it from the list of overridden variables, so we can test
25921      # for unknown variables in the end.
25922      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
25923
25924      # Check if the provided tool contains a complete path.
25925      tool_specified="$JARSIGNER"
25926      tool_basename="${tool_specified##*/}"
25927      if test "x$tool_basename" = "x$tool_specified"; then
25928        # A command without a complete path is provided, search $PATH.
25929        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5
25930$as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;}
25931        # Extract the first word of "$tool_basename", so it can be a program name with args.
25932set dummy $tool_basename; ac_word=$2
25933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25934$as_echo_n "checking for $ac_word... " >&6; }
25935if ${ac_cv_path_JARSIGNER+:} false; then :
25936  $as_echo_n "(cached) " >&6
25937else
25938  case $JARSIGNER in
25939  [\\/]* | ?:[\\/]*)
25940  ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path.
25941  ;;
25942  *)
25943  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25944for as_dir in $PATH
25945do
25946  IFS=$as_save_IFS
25947  test -z "$as_dir" && as_dir=.
25948    for ac_exec_ext in '' $ac_executable_extensions; do
25949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25950    ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext"
25951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25952    break 2
25953  fi
25954done
25955  done
25956IFS=$as_save_IFS
25957
25958  ;;
25959esac
25960fi
25961JARSIGNER=$ac_cv_path_JARSIGNER
25962if test -n "$JARSIGNER"; then
25963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5
25964$as_echo "$JARSIGNER" >&6; }
25965else
25966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25967$as_echo "no" >&6; }
25968fi
25969
25970
25971        if test "x$JARSIGNER" = x; then
25972          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
25973        fi
25974      else
25975        # Otherwise we believe it is a complete path. Use it as it is.
25976        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5
25977$as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;}
25978        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5
25979$as_echo_n "checking for JARSIGNER... " >&6; }
25980        if test ! -x "$tool_specified"; then
25981          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
25982$as_echo "not found" >&6; }
25983          as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5
25984        fi
25985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
25986$as_echo "$tool_specified" >&6; }
25987      fi
25988    fi
25989  fi
25990
25991
25992
25993  # Finally, set some other options...
25994
25995  # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
25996  BOOT_JDK_SOURCETARGET="-source 7 -target 7"
25997
25998
25999
26000
26001  ##############################################################################
26002  #
26003  # Specify jvm options for anything that is run with the Boot JDK.
26004  # Not all JVM:s accept the same arguments on the command line.
26005  #
26006
26007# Check whether --with-boot-jdk-jvmargs was given.
26008if test "${with_boot_jdk_jvmargs+set}" = set; then :
26009  withval=$with_boot_jdk_jvmargs;
26010fi
26011
26012
26013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
26014$as_echo_n "checking flags for boot jdk java command ... " >&6; }
26015
26016  # Disable special log output when a debug build is used as Boot JDK...
26017
26018  $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
26019  $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
26020  OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
26021  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26022  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26023  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26024    boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
26025    JVM_ARG_OK=true
26026  else
26027    $ECHO "Arg failed:" >&5
26028    $ECHO "$OUTPUT" >&5
26029    JVM_ARG_OK=false
26030  fi
26031
26032
26033  # Apply user provided options.
26034
26035  $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
26036  $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
26037  OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
26038  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26039  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26040  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26041    boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
26042    JVM_ARG_OK=true
26043  else
26044    $ECHO "Arg failed:" >&5
26045    $ECHO "$OUTPUT" >&5
26046    JVM_ARG_OK=false
26047  fi
26048
26049
26050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
26051$as_echo "$boot_jdk_jvmargs" >&6; }
26052
26053  # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
26054  JAVA_FLAGS=$boot_jdk_jvmargs
26055
26056
26057
26058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
26059$as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
26060
26061  # Starting amount of heap memory.
26062
26063  $ECHO "Check if jvm arg is ok: -Xms64M" >&5
26064  $ECHO "Command: $JAVA -Xms64M -version" >&5
26065  OUTPUT=`$JAVA -Xms64M -version 2>&1`
26066  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26067  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26068  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26069    boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
26070    JVM_ARG_OK=true
26071  else
26072    $ECHO "Arg failed:" >&5
26073    $ECHO "$OUTPUT" >&5
26074    JVM_ARG_OK=false
26075  fi
26076
26077
26078  # Maximum amount of heap memory.
26079  # Maximum stack size.
26080  if test "x$BUILD_NUM_BITS" = x32; then
26081    JVM_MAX_HEAP=1100M
26082    STACK_SIZE=768
26083  else
26084    # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit
26085    # pointers are used. Apparently, we need to increase the heap and stack
26086    # space for the jvm. More specifically, when running javac to build huge
26087    # jdk batch
26088    JVM_MAX_HEAP=1600M
26089    STACK_SIZE=1536
26090  fi
26091
26092  $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5
26093  $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5
26094  OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1`
26095  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26096  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26097  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26098    boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP"
26099    JVM_ARG_OK=true
26100  else
26101    $ECHO "Arg failed:" >&5
26102    $ECHO "$OUTPUT" >&5
26103    JVM_ARG_OK=false
26104  fi
26105
26106
26107  $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
26108  $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
26109  OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
26110  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26111  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26112  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26113    boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE"
26114    JVM_ARG_OK=true
26115  else
26116    $ECHO "Arg failed:" >&5
26117    $ECHO "$OUTPUT" >&5
26118    JVM_ARG_OK=false
26119  fi
26120
26121
26122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5
26123$as_echo "$boot_jdk_jvmargs_big" >&6; }
26124
26125  JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big
26126
26127
26128
26129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5
26130$as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; }
26131
26132  # Use serial gc for small short lived tools if possible
26133
26134  $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5
26135  $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5
26136  OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1`
26137  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26138  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26139  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26140    boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC"
26141    JVM_ARG_OK=true
26142  else
26143    $ECHO "Arg failed:" >&5
26144    $ECHO "$OUTPUT" >&5
26145    JVM_ARG_OK=false
26146  fi
26147
26148
26149  $ECHO "Check if jvm arg is ok: -Xms32M" >&5
26150  $ECHO "Command: $JAVA -Xms32M -version" >&5
26151  OUTPUT=`$JAVA -Xms32M -version 2>&1`
26152  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26153  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26154  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26155    boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M"
26156    JVM_ARG_OK=true
26157  else
26158    $ECHO "Arg failed:" >&5
26159    $ECHO "$OUTPUT" >&5
26160    JVM_ARG_OK=false
26161  fi
26162
26163
26164  $ECHO "Check if jvm arg is ok: -Xmx512M" >&5
26165  $ECHO "Command: $JAVA -Xmx512M -version" >&5
26166  OUTPUT=`$JAVA -Xmx512M -version 2>&1`
26167  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
26168  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
26169  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
26170    boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M"
26171    JVM_ARG_OK=true
26172  else
26173    $ECHO "Arg failed:" >&5
26174    $ECHO "$OUTPUT" >&5
26175    JVM_ARG_OK=false
26176  fi
26177
26178
26179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5
26180$as_echo "$boot_jdk_jvmargs_small" >&6; }
26181
26182  JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small
26183
26184
26185
26186###############################################################################
26187#
26188# Configure the sources to use. We can add or override individual directories.
26189#
26190###############################################################################
26191
26192
26193  # Where are the sources. Any of these can be overridden
26194  # using --with-override-corba and the likes.
26195  LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
26196  CORBA_TOPDIR="$SRC_ROOT/corba"
26197  JAXP_TOPDIR="$SRC_ROOT/jaxp"
26198  JAXWS_TOPDIR="$SRC_ROOT/jaxws"
26199  HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
26200  NASHORN_TOPDIR="$SRC_ROOT/nashorn"
26201  JDK_TOPDIR="$SRC_ROOT/jdk"
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212  ###############################################################################
26213  #
26214  # Pickup additional source for a component from outside of the source root
26215  # or override source for a component.
26216  #
26217
26218# Check whether --with-add-source-root was given.
26219if test "${with_add_source_root+set}" = set; then :
26220  withval=$with_add_source_root;
26221fi
26222
26223
26224
26225# Check whether --with-override-source-root was given.
26226if test "${with_override_source_root+set}" = set; then :
26227  withval=$with_override_source_root;
26228fi
26229
26230
26231
26232# Check whether --with-adds-and-overrides was given.
26233if test "${with_adds_and_overrides+set}" = set; then :
26234  withval=$with_adds_and_overrides;
26235fi
26236
26237
26238  if test "x$with_adds_and_overrides" != x; then
26239    with_add_source_root="$with_adds_and_overrides/adds"
26240    with_override_source_root="$with_adds_and_overrides/overrides"
26241  fi
26242
26243  if test "x$with_add_source_root" != x; then
26244    if ! test -d $with_add_source_root; then
26245      as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
26246    fi
26247    CURDIR="$PWD"
26248    cd "$with_add_source_root"
26249    ADD_SRC_ROOT="`pwd`"
26250    cd "$CURDIR"
26251    # Verify that the addon source root does not have any root makefiles.
26252    # If it does, then it is usually an error, prevent this.
26253    if test -f $with_add_source_root/langtools/make/Makefile; then
26254      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
26255    fi
26256    if test -f $with_add_source_root/corba/make/Makefile; then
26257      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
26258    fi
26259    if test -f $with_add_source_root/jaxp/make/Makefile; then
26260      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
26261    fi
26262    if test -f $with_add_source_root/jaxws/make/Makefile; then
26263      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
26264    fi
26265    if test -f $with_add_source_root/hotspot/make/Makefile; then
26266      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
26267    fi
26268    if test -f $with_add_source_root/nashorn/make/Makefile; then
26269      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
26270    fi
26271    if test -f $with_add_source_root/jdk/make/Makefile; then
26272      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
26273    fi
26274  fi
26275
26276
26277  if test "x$with_override_source_root" != x; then
26278    if ! test -d $with_override_source_root; then
26279      as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
26280    fi
26281    CURDIR="$PWD"
26282    cd "$with_override_source_root"
26283    OVERRIDE_SRC_ROOT="`pwd`"
26284    cd "$CURDIR"
26285    if test -f $with_override_source_root/langtools/make/Makefile; then
26286      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
26287    fi
26288    if test -f $with_override_source_root/corba/make/Makefile; then
26289      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
26290    fi
26291    if test -f $with_override_source_root/jaxp/make/Makefile; then
26292      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
26293    fi
26294    if test -f $with_override_source_root/jaxws/make/Makefile; then
26295      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
26296    fi
26297    if test -f $with_override_source_root/hotspot/make/Makefile; then
26298      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
26299    fi
26300    if test -f $with_override_source_root/nashorn/make/Makefile; then
26301      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
26302    fi
26303    if test -f $with_override_source_root/jdk/make/Makefile; then
26304      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
26305    fi
26306  fi
26307
26308
26309  ###############################################################################
26310  #
26311  # Override a repo completely, this is used for example when you have 3 small
26312  # development sandboxes of the langtools sources and want to avoid having 3 full
26313  # OpenJDK sources checked out on disk.
26314  #
26315  # Assuming that the 3 langtools sandboxes are located here:
26316  # /home/fredrik/sandbox1/langtools
26317  # /home/fredrik/sandbox2/langtools
26318  # /home/fredrik/sandbox3/langtools
26319  #
26320  # From the source root you create build subdirs manually:
26321  #     mkdir -p build1 build2 build3
26322  # in each build directory run:
26323  #     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
26324  #     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
26325  #     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
26326  #
26327
26328
26329# Check whether --with-override-langtools was given.
26330if test "${with_override_langtools+set}" = set; then :
26331  withval=$with_override_langtools;
26332fi
26333
26334
26335
26336# Check whether --with-override-corba was given.
26337if test "${with_override_corba+set}" = set; then :
26338  withval=$with_override_corba;
26339fi
26340
26341
26342
26343# Check whether --with-override-jaxp was given.
26344if test "${with_override_jaxp+set}" = set; then :
26345  withval=$with_override_jaxp;
26346fi
26347
26348
26349
26350# Check whether --with-override-jaxws was given.
26351if test "${with_override_jaxws+set}" = set; then :
26352  withval=$with_override_jaxws;
26353fi
26354
26355
26356
26357# Check whether --with-override-hotspot was given.
26358if test "${with_override_hotspot+set}" = set; then :
26359  withval=$with_override_hotspot;
26360fi
26361
26362
26363
26364# Check whether --with-override-nashorn was given.
26365if test "${with_override_nashorn+set}" = set; then :
26366  withval=$with_override_nashorn;
26367fi
26368
26369
26370
26371# Check whether --with-override-jdk was given.
26372if test "${with_override_jdk+set}" = set; then :
26373  withval=$with_override_jdk;
26374fi
26375
26376
26377  if test "x$with_override_langtools" != x; then
26378    CURDIR="$PWD"
26379    cd "$with_override_langtools"
26380    LANGTOOLS_TOPDIR="`pwd`"
26381    cd "$CURDIR"
26382    if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then
26383      as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
26384    fi
26385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
26386$as_echo_n "checking if langtools should be overridden... " >&6; }
26387    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
26388$as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
26389  fi
26390  if test "x$with_override_corba" != x; then
26391    CURDIR="$PWD"
26392    cd "$with_override_corba"
26393    CORBA_TOPDIR="`pwd`"
26394    cd "$CURDIR"
26395    if ! test -f $CORBA_TOPDIR/make/Makefile; then
26396      as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
26397    fi
26398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
26399$as_echo_n "checking if corba should be overridden... " >&6; }
26400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
26401$as_echo "yes with $CORBA_TOPDIR" >&6; }
26402  fi
26403  if test "x$with_override_jaxp" != x; then
26404    CURDIR="$PWD"
26405    cd "$with_override_jaxp"
26406    JAXP_TOPDIR="`pwd`"
26407    cd "$CURDIR"
26408    if ! test -f $JAXP_TOPDIR/make/Makefile; then
26409      as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
26410    fi
26411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
26412$as_echo_n "checking if jaxp should be overridden... " >&6; }
26413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
26414$as_echo "yes with $JAXP_TOPDIR" >&6; }
26415  fi
26416  if test "x$with_override_jaxws" != x; then
26417    CURDIR="$PWD"
26418    cd "$with_override_jaxws"
26419    JAXWS_TOPDIR="`pwd`"
26420    cd "$CURDIR"
26421    if ! test -f $JAXWS_TOPDIR/make/Makefile; then
26422      as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
26423    fi
26424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
26425$as_echo_n "checking if jaxws should be overridden... " >&6; }
26426    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
26427$as_echo "yes with $JAXWS_TOPDIR" >&6; }
26428  fi
26429  if test "x$with_override_hotspot" != x; then
26430    CURDIR="$PWD"
26431    cd "$with_override_hotspot"
26432    HOTSPOT_TOPDIR="`pwd`"
26433    cd "$CURDIR"
26434    if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then
26435      as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
26436    fi
26437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
26438$as_echo_n "checking if hotspot should be overridden... " >&6; }
26439    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
26440$as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
26441  fi
26442  if test "x$with_override_nashorn" != x; then
26443    CURDIR="$PWD"
26444    cd "$with_override_nashorn"
26445    NASHORN_TOPDIR="`pwd`"
26446    cd "$CURDIR"
26447    if ! test -f $NASHORN_TOPDIR/make/Makefile; then
26448      as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5
26449    fi
26450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5
26451$as_echo_n "checking if nashorn should be overridden... " >&6; }
26452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5
26453$as_echo "yes with $NASHORN_TOPDIR" >&6; }
26454  fi
26455  if test "x$with_override_jdk" != x; then
26456    CURDIR="$PWD"
26457    cd "$with_override_jdk"
26458    JDK_TOPDIR="`pwd`"
26459    cd "$CURDIR"
26460    if ! test -f $JDK_TOPDIR/make/Makefile; then
26461      as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
26462    fi
26463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
26464$as_echo_n "checking if JDK should be overridden... " >&6; }
26465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
26466$as_echo "yes with $JDK_TOPDIR" >&6; }
26467  fi
26468
26469
26470  BUILD_OUTPUT="$OUTPUT_ROOT"
26471
26472
26473  HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
26474  BUILD_HOTSPOT=true
26475
26476
26477
26478# Check whether --with-import-hotspot was given.
26479if test "${with_import_hotspot+set}" = set; then :
26480  withval=$with_import_hotspot;
26481fi
26482
26483  if test "x$with_import_hotspot" != x; then
26484    CURDIR="$PWD"
26485    cd "$with_import_hotspot"
26486    HOTSPOT_DIST="`pwd`"
26487    cd "$CURDIR"
26488    if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then
26489      as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5
26490    fi
26491    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5
26492$as_echo_n "checking if hotspot should be imported... " >&6; }
26493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5
26494$as_echo "yes from $HOTSPOT_DIST" >&6; }
26495    BUILD_HOTSPOT=false
26496  fi
26497
26498  JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
26499
26500
26501###############################################################################
26502#
26503# Setup the toolchain (compilers etc), i.e. tools used to compile and process
26504# native code.
26505#
26506###############################################################################
26507
26508# First determine the toolchain type (compiler family)
26509
26510
26511# Check whether --with-toolchain-type was given.
26512if test "${with_toolchain_type+set}" = set; then :
26513  withval=$with_toolchain_type;
26514fi
26515
26516
26517  # Use indirect variable referencing
26518  toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS
26519  VALID_TOOLCHAINS=${!toolchain_var_name}
26520
26521  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
26522    # On Mac OS X, default toolchain to clang after Xcode 5
26523    XCODE_VERSION_OUTPUT=`xcodebuild -version 2>&1 | $HEAD -n 1`
26524    $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null
26525    if test $? -ne 0; then
26526      as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5
26527    fi
26528    XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \
26529        $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \
26530        $CUT -f 1 -d .`
26531    { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5
26532$as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;}
26533    if test $XCODE_MAJOR_VERSION -ge 5; then
26534        DEFAULT_TOOLCHAIN="clang"
26535    else
26536        DEFAULT_TOOLCHAIN="gcc"
26537    fi
26538  else
26539    # First toolchain type in the list is the default
26540    DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *}
26541  fi
26542
26543  if test "x$with_toolchain_type" = xlist; then
26544    # List all toolchains
26545    { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5
26546$as_echo "$as_me: The following toolchains are valid on this platform:" >&6;}
26547    for toolchain in $VALID_TOOLCHAINS; do
26548      toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
26549      TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
26550      $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
26551    done
26552
26553    exit 0
26554  elif test "x$with_toolchain_type" != x; then
26555    # User override; check that it is valid
26556    if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then
26557      { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5
26558$as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;}
26559      { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5
26560$as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;}
26561      as_fn_error $? "Cannot continue." "$LINENO" 5
26562    fi
26563    TOOLCHAIN_TYPE=$with_toolchain_type
26564  else
26565    # No flag given, use default
26566    TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN
26567  fi
26568
26569
26570  TOOLCHAIN_CC_BINARY_clang="clang"
26571  TOOLCHAIN_CC_BINARY_gcc="gcc"
26572  TOOLCHAIN_CC_BINARY_microsoft="cl"
26573  TOOLCHAIN_CC_BINARY_solstudio="cc"
26574  TOOLCHAIN_CC_BINARY_xlc="xlc_r"
26575
26576  TOOLCHAIN_CXX_BINARY_clang="clang++"
26577  TOOLCHAIN_CXX_BINARY_gcc="g++"
26578  TOOLCHAIN_CXX_BINARY_microsoft="cl"
26579  TOOLCHAIN_CXX_BINARY_solstudio="CC"
26580  TOOLCHAIN_CXX_BINARY_xlc="xlC_r"
26581
26582  # Use indirect variable referencing
26583  toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE
26584  TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
26585  toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE
26586  TOOLCHAIN_CC_BINARY=${!toolchain_var_name}
26587  toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE
26588  TOOLCHAIN_CXX_BINARY=${!toolchain_var_name}
26589
26590
26591  # Define filename patterns
26592  if test "x$OPENJDK_TARGET_OS" = xwindows; then
26593    LIBRARY_PREFIX=
26594    SHARED_LIBRARY_SUFFIX='.dll'
26595    STATIC_LIBRARY_SUFFIX='.lib'
26596    SHARED_LIBRARY='$1.dll'
26597    STATIC_LIBRARY='$1.lib'
26598    OBJ_SUFFIX='.obj'
26599    EXE_SUFFIX='.exe'
26600  else
26601    LIBRARY_PREFIX=lib
26602    SHARED_LIBRARY_SUFFIX='.so'
26603    STATIC_LIBRARY_SUFFIX='.a'
26604    SHARED_LIBRARY='lib$1.so'
26605    STATIC_LIBRARY='lib$1.a'
26606    OBJ_SUFFIX='.o'
26607    EXE_SUFFIX=''
26608    if test "x$OPENJDK_TARGET_OS" = xmacosx; then
26609      SHARED_LIBRARY='lib$1.dylib'
26610      SHARED_LIBRARY_SUFFIX='.dylib'
26611    fi
26612  fi
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623  if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then
26624    { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5
26625$as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;}
26626  else
26627    { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5
26628$as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;}
26629  fi
26630
26631
26632# Then detect the actual binaries needed
26633
26634  # FIXME: Is this needed?
26635  ac_ext=cpp
26636ac_cpp='$CXXCPP $CPPFLAGS'
26637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26640
26641
26642  # Store the CFLAGS etc passed to the configure script.
26643  ORG_CFLAGS="$CFLAGS"
26644  ORG_CXXFLAGS="$CXXFLAGS"
26645  ORG_OBJCFLAGS="$OBJCFLAGS"
26646
26647  # On Windows, we need to detect the visual studio installation first.
26648  # This will change the PATH, but we need to keep that new PATH even
26649  # after toolchain detection is done, since the compiler (on x86) uses
26650  # it for DLL resolution in runtime.
26651  if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
26652
26653  # Store path to cygwin link.exe to help excluding it when searching for
26654  # VS linker. This must be done before changing the PATH when looking for VS.
26655  # Extract the first word of "link", so it can be a program name with args.
26656set dummy link; ac_word=$2
26657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26658$as_echo_n "checking for $ac_word... " >&6; }
26659if ${ac_cv_path_CYGWIN_LINK+:} false; then :
26660  $as_echo_n "(cached) " >&6
26661else
26662  case $CYGWIN_LINK in
26663  [\\/]* | ?:[\\/]*)
26664  ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
26665  ;;
26666  *)
26667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26668for as_dir in $PATH
26669do
26670  IFS=$as_save_IFS
26671  test -z "$as_dir" && as_dir=.
26672    for ac_exec_ext in '' $ac_executable_extensions; do
26673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26674    ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
26675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26676    break 2
26677  fi
26678done
26679  done
26680IFS=$as_save_IFS
26681
26682  ;;
26683esac
26684fi
26685CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK
26686if test -n "$CYGWIN_LINK"; then
26687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5
26688$as_echo "$CYGWIN_LINK" >&6; }
26689else
26690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26691$as_echo "no" >&6; }
26692fi
26693
26694
26695  if test "x$CYGWIN_LINK" != x; then
26696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5
26697$as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; }
26698    "$CYGWIN_LINK" --version > /dev/null
26699    if test $? -eq 0 ; then
26700      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26701$as_echo "yes" >&6; }
26702    else
26703      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26704$as_echo "no" >&6; }
26705      # This might be the VS linker. Don't exclude it later on.
26706      CYGWIN_LINK=""
26707    fi
26708  fi
26709
26710  # First-hand choice is to locate and run the vsvars bat file.
26711
26712  if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26713    VCVARSFILE="vc/bin/vcvars32.bat"
26714  else
26715    VCVARSFILE="vc/bin/amd64/vcvars64.bat"
26716  fi
26717
26718  VS_ENV_CMD=""
26719  VS_ENV_ARGS=""
26720  if test "x$with_toolsdir" != x; then
26721
26722  if test "x$VS_ENV_CMD" = x; then
26723    VS100BASE="$with_toolsdir/../.."
26724    METHOD="--with-tools-dir"
26725
26726  windows_path="$VS100BASE"
26727  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26728    unix_path=`$CYGPATH -u "$windows_path"`
26729    VS100BASE="$unix_path"
26730  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26731    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26732    VS100BASE="$unix_path"
26733  fi
26734
26735    if test -d "$VS100BASE"; then
26736      if test -f "$VS100BASE/$VCVARSFILE"; then
26737        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26738$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26739        VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26740      else
26741        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26742$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26743        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26744$as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26745      fi
26746    fi
26747  fi
26748
26749  fi
26750
26751  if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then
26752    # Having specified an argument which is incorrect will produce an instant failure;
26753    # we should not go on looking
26754    { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5
26755$as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;}
26756    { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5
26757$as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;}
26758    as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5
26759  fi
26760
26761  if test "x$VS100COMNTOOLS" != x; then
26762
26763  if test "x$VS_ENV_CMD" = x; then
26764    VS100BASE="$VS100COMNTOOLS/../.."
26765    METHOD="VS100COMNTOOLS variable"
26766
26767  windows_path="$VS100BASE"
26768  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26769    unix_path=`$CYGPATH -u "$windows_path"`
26770    VS100BASE="$unix_path"
26771  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26772    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26773    VS100BASE="$unix_path"
26774  fi
26775
26776    if test -d "$VS100BASE"; then
26777      if test -f "$VS100BASE/$VCVARSFILE"; then
26778        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26779$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26780        VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26781      else
26782        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26783$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26784        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26785$as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26786      fi
26787    fi
26788  fi
26789
26790  fi
26791  if test "x$PROGRAMFILES" != x; then
26792
26793  if test "x$VS_ENV_CMD" = x; then
26794    VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0"
26795    METHOD="well-known name"
26796
26797  windows_path="$VS100BASE"
26798  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26799    unix_path=`$CYGPATH -u "$windows_path"`
26800    VS100BASE="$unix_path"
26801  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26802    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26803    VS100BASE="$unix_path"
26804  fi
26805
26806    if test -d "$VS100BASE"; then
26807      if test -f "$VS100BASE/$VCVARSFILE"; then
26808        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26809$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26810        VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26811      else
26812        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26813$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26814        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26815$as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26816      fi
26817    fi
26818  fi
26819
26820  fi
26821
26822  if test "x$VS_ENV_CMD" = x; then
26823    VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0"
26824    METHOD="well-known name"
26825
26826  windows_path="$VS100BASE"
26827  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26828    unix_path=`$CYGPATH -u "$windows_path"`
26829    VS100BASE="$unix_path"
26830  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26831    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26832    VS100BASE="$unix_path"
26833  fi
26834
26835    if test -d "$VS100BASE"; then
26836      if test -f "$VS100BASE/$VCVARSFILE"; then
26837        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26838$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26839        VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26840      else
26841        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26842$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26843        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26844$as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26845      fi
26846    fi
26847  fi
26848
26849
26850  if test "x$VS_ENV_CMD" = x; then
26851    VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0"
26852    METHOD="well-known name"
26853
26854  windows_path="$VS100BASE"
26855  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26856    unix_path=`$CYGPATH -u "$windows_path"`
26857    VS100BASE="$unix_path"
26858  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26859    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26860    VS100BASE="$unix_path"
26861  fi
26862
26863    if test -d "$VS100BASE"; then
26864      if test -f "$VS100BASE/$VCVARSFILE"; then
26865        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26866$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26867        VS_ENV_CMD="$VS100BASE/$VCVARSFILE"
26868      else
26869        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5
26870$as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;}
26871        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5
26872$as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;}
26873      fi
26874    fi
26875  fi
26876
26877
26878  if test "x$ProgramW6432" != x; then
26879
26880  if test "x$VS_ENV_CMD" = x; then
26881    WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin"
26882    METHOD="well-known name"
26883
26884  windows_path="$WIN_SDK_BASE"
26885  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26886    unix_path=`$CYGPATH -u "$windows_path"`
26887    WIN_SDK_BASE="$unix_path"
26888  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26889    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26890    WIN_SDK_BASE="$unix_path"
26891  fi
26892
26893    if test -d "$WIN_SDK_BASE"; then
26894      # There have been cases of partial or broken SDK installations. A missing
26895      # lib dir is not going to work.
26896      if test ! -d "$WIN_SDK_BASE/../lib"; then
26897        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26898$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26899        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26900$as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26901      elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26902        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26903$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26904        VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26905        if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26906          VS_ENV_ARGS="/x86"
26907        else
26908          VS_ENV_ARGS="/x64"
26909        fi
26910      else
26911        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26912$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26913        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26914$as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26915      fi
26916    fi
26917  fi
26918
26919  fi
26920  if test "x$PROGRAMW6432" != x; then
26921
26922  if test "x$VS_ENV_CMD" = x; then
26923    WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin"
26924    METHOD="well-known name"
26925
26926  windows_path="$WIN_SDK_BASE"
26927  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26928    unix_path=`$CYGPATH -u "$windows_path"`
26929    WIN_SDK_BASE="$unix_path"
26930  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26931    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26932    WIN_SDK_BASE="$unix_path"
26933  fi
26934
26935    if test -d "$WIN_SDK_BASE"; then
26936      # There have been cases of partial or broken SDK installations. A missing
26937      # lib dir is not going to work.
26938      if test ! -d "$WIN_SDK_BASE/../lib"; then
26939        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26940$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26941        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26942$as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26943      elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26944        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26945$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26946        VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26947        if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26948          VS_ENV_ARGS="/x86"
26949        else
26950          VS_ENV_ARGS="/x64"
26951        fi
26952      else
26953        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26954$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26955        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26956$as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26957      fi
26958    fi
26959  fi
26960
26961  fi
26962  if test "x$PROGRAMFILES" != x; then
26963
26964  if test "x$VS_ENV_CMD" = x; then
26965    WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin"
26966    METHOD="well-known name"
26967
26968  windows_path="$WIN_SDK_BASE"
26969  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26970    unix_path=`$CYGPATH -u "$windows_path"`
26971    WIN_SDK_BASE="$unix_path"
26972  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
26973    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
26974    WIN_SDK_BASE="$unix_path"
26975  fi
26976
26977    if test -d "$WIN_SDK_BASE"; then
26978      # There have been cases of partial or broken SDK installations. A missing
26979      # lib dir is not going to work.
26980      if test ! -d "$WIN_SDK_BASE/../lib"; then
26981        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26982$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26983        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
26984$as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
26985      elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
26986        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26987$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26988        VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
26989        if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
26990          VS_ENV_ARGS="/x86"
26991        else
26992          VS_ENV_ARGS="/x64"
26993        fi
26994      else
26995        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
26996$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
26997        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
26998$as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
26999      fi
27000    fi
27001  fi
27002
27003  fi
27004
27005  if test "x$VS_ENV_CMD" = x; then
27006    WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin"
27007    METHOD="well-known name"
27008
27009  windows_path="$WIN_SDK_BASE"
27010  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27011    unix_path=`$CYGPATH -u "$windows_path"`
27012    WIN_SDK_BASE="$unix_path"
27013  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27014    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27015    WIN_SDK_BASE="$unix_path"
27016  fi
27017
27018    if test -d "$WIN_SDK_BASE"; then
27019      # There have been cases of partial or broken SDK installations. A missing
27020      # lib dir is not going to work.
27021      if test ! -d "$WIN_SDK_BASE/../lib"; then
27022        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27023$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27024        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
27025$as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
27026      elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
27027        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27028$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27029        VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
27030        if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27031          VS_ENV_ARGS="/x86"
27032        else
27033          VS_ENV_ARGS="/x64"
27034        fi
27035      else
27036        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27037$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27038        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
27039$as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
27040      fi
27041    fi
27042  fi
27043
27044
27045  if test "x$VS_ENV_CMD" = x; then
27046    WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin"
27047    METHOD="well-known name"
27048
27049  windows_path="$WIN_SDK_BASE"
27050  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27051    unix_path=`$CYGPATH -u "$windows_path"`
27052    WIN_SDK_BASE="$unix_path"
27053  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27054    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27055    WIN_SDK_BASE="$unix_path"
27056  fi
27057
27058    if test -d "$WIN_SDK_BASE"; then
27059      # There have been cases of partial or broken SDK installations. A missing
27060      # lib dir is not going to work.
27061      if test ! -d "$WIN_SDK_BASE/../lib"; then
27062        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27063$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27064        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5
27065$as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;}
27066      elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then
27067        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27068$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27069        VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd"
27070        if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
27071          VS_ENV_ARGS="/x86"
27072        else
27073          VS_ENV_ARGS="/x64"
27074        fi
27075      else
27076        { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5
27077$as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;}
27078        { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5
27079$as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;}
27080      fi
27081    fi
27082  fi
27083
27084
27085  if test "x$VS_ENV_CMD" != x; then
27086    # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
27087
27088  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27089
27090  # First separate the path from the arguments. This will split at the first
27091  # space.
27092  complete="$VS_ENV_CMD"
27093  path="${complete%% *}"
27094  tmp="$complete EOL"
27095  arguments="${tmp#* }"
27096
27097  # Input might be given as Windows format, start by converting to
27098  # unix format.
27099  new_path=`$CYGPATH -u "$path"`
27100
27101  # Now try to locate executable using which
27102  new_path=`$WHICH "$new_path" 2> /dev/null`
27103  # bat and cmd files are not always considered executable in cygwin causing which
27104  # to not find them
27105  if test "x$new_path" = x \
27106      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27107      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27108    new_path=`$CYGPATH -u "$path"`
27109  fi
27110  if test "x$new_path" = x; then
27111    # Oops. Which didn't find the executable.
27112    # The splitting of arguments from the executable at a space might have been incorrect,
27113    # since paths with space are more likely in Windows. Give it another try with the whole
27114    # argument.
27115    path="$complete"
27116    arguments="EOL"
27117    new_path=`$CYGPATH -u "$path"`
27118    new_path=`$WHICH "$new_path" 2> /dev/null`
27119    # bat and cmd files are not always considered executable in cygwin causing which
27120    # to not find them
27121    if test "x$new_path" = x \
27122        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27123        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27124      new_path=`$CYGPATH -u "$path"`
27125    fi
27126    if test "x$new_path" = x; then
27127      # It's still not found. Now this is an unrecoverable error.
27128      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27129$as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27130      has_space=`$ECHO "$complete" | $GREP " "`
27131      if test "x$has_space" != x; then
27132        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27133$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27134      fi
27135      as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27136    fi
27137  fi
27138
27139  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27140  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27141  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27142  # "foo.exe" is OK but "foo" is an error.
27143  #
27144  # This test is therefore slightly more accurate than "test -f" to check for file presence.
27145  # It is also a way to make sure we got the proper file name for the real test later on.
27146  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27147  if test "x$test_shortpath" = x; then
27148    # Short path failed, file does not exist as specified.
27149    # Try adding .exe or .cmd
27150    if test -f "${new_path}.exe"; then
27151      input_to_shortpath="${new_path}.exe"
27152    elif test -f "${new_path}.cmd"; then
27153      input_to_shortpath="${new_path}.cmd"
27154    else
27155      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5
27156$as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;}
27157      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
27158$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
27159      as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27160    fi
27161  else
27162    input_to_shortpath="$new_path"
27163  fi
27164
27165  # Call helper function which possibly converts this using DOS-style short mode.
27166  # If so, the updated path is stored in $new_path.
27167  new_path="$input_to_shortpath"
27168
27169  input_path="$input_to_shortpath"
27170  # Check if we need to convert this using DOS-style short mode. If the path
27171  # contains just simple characters, use it. Otherwise (spaces, weird characters),
27172  # take no chances and rewrite it.
27173  # Note: m4 eats our [], so we need to use [ and ] instead.
27174  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27175  if test "x$has_forbidden_chars" != x; then
27176    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27177    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27178    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27179    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27180      # Going to short mode and back again did indeed matter. Since short mode is
27181      # case insensitive, let's make it lowercase to improve readability.
27182      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27183      # Now convert it back to Unix-stile (cygpath)
27184      input_path=`$CYGPATH -u "$shortmode_path"`
27185      new_path="$input_path"
27186    fi
27187  fi
27188
27189  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27190  if test "x$test_cygdrive_prefix" = x; then
27191    # As a simple fix, exclude /usr/bin since it's not a real path.
27192    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27193      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27194      # a path prefixed by /cygdrive for fixpath to work.
27195      new_path="$CYGWIN_ROOT_PATH$input_path"
27196    fi
27197  fi
27198
27199  # remove trailing .exe if any
27200  new_path="${new_path/%.exe/}"
27201
27202  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27203
27204  # First separate the path from the arguments. This will split at the first
27205  # space.
27206  complete="$VS_ENV_CMD"
27207  path="${complete%% *}"
27208  tmp="$complete EOL"
27209  arguments="${tmp#* }"
27210
27211  # Input might be given as Windows format, start by converting to
27212  # unix format.
27213  new_path="$path"
27214
27215  windows_path="$new_path"
27216  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27217    unix_path=`$CYGPATH -u "$windows_path"`
27218    new_path="$unix_path"
27219  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27220    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27221    new_path="$unix_path"
27222  fi
27223
27224
27225  # Now try to locate executable using which
27226  new_path=`$WHICH "$new_path" 2> /dev/null`
27227
27228  if test "x$new_path" = x; then
27229    # Oops. Which didn't find the executable.
27230    # The splitting of arguments from the executable at a space might have been incorrect,
27231    # since paths with space are more likely in Windows. Give it another try with the whole
27232    # argument.
27233    path="$complete"
27234    arguments="EOL"
27235    new_path="$path"
27236
27237  windows_path="$new_path"
27238  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27239    unix_path=`$CYGPATH -u "$windows_path"`
27240    new_path="$unix_path"
27241  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27242    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27243    new_path="$unix_path"
27244  fi
27245
27246
27247    new_path=`$WHICH "$new_path" 2> /dev/null`
27248
27249    if test "x$new_path" = x; then
27250      # It's still not found. Now this is an unrecoverable error.
27251      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27252$as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27253      has_space=`$ECHO "$complete" | $GREP " "`
27254      if test "x$has_space" != x; then
27255        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27256$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27257      fi
27258      as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27259    fi
27260  fi
27261
27262  # Now new_path has a complete unix path to the binary
27263  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27264    # Keep paths in /bin as-is, but remove trailing .exe if any
27265    new_path="${new_path/%.exe/}"
27266    # Do not save /bin paths to all_fixpath_prefixes!
27267  else
27268    # Not in mixed or Windows style, start by that.
27269    new_path=`cmd //c echo $new_path`
27270
27271  input_path="$new_path"
27272  # Check if we need to convert this using DOS-style short mode. If the path
27273  # contains just simple characters, use it. Otherwise (spaces, weird characters),
27274  # take no chances and rewrite it.
27275  # Note: m4 eats our [], so we need to use [ and ] instead.
27276  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27277  if test "x$has_forbidden_chars" != x; then
27278    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27279    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27280  fi
27281
27282    # Output is in $new_path
27283
27284  windows_path="$new_path"
27285  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27286    unix_path=`$CYGPATH -u "$windows_path"`
27287    new_path="$unix_path"
27288  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27289    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27290    new_path="$unix_path"
27291  fi
27292
27293    # remove trailing .exe if any
27294    new_path="${new_path/%.exe/}"
27295
27296    # Save the first 10 bytes of this path to the storage, so fixpath can work.
27297    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27298  fi
27299
27300  else
27301    # We're on a posix platform. Hooray! :)
27302    # First separate the path from the arguments. This will split at the first
27303    # space.
27304    complete="$VS_ENV_CMD"
27305    path="${complete%% *}"
27306    tmp="$complete EOL"
27307    arguments="${tmp#* }"
27308
27309    # Cannot rely on the command "which" here since it doesn't always work.
27310    is_absolute_path=`$ECHO "$path" | $GREP ^/`
27311    if test -z "$is_absolute_path"; then
27312      # Path to executable is not absolute. Find it.
27313      IFS_save="$IFS"
27314      IFS=:
27315      for p in $PATH; do
27316        if test -f "$p/$path" && test -x "$p/$path"; then
27317          new_path="$p/$path"
27318          break
27319        fi
27320      done
27321      IFS="$IFS_save"
27322    else
27323      # This is an absolute path, we can use it without further modifications.
27324      new_path="$path"
27325    fi
27326
27327    if test "x$new_path" = x; then
27328      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
27329$as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
27330      has_space=`$ECHO "$complete" | $GREP " "`
27331      if test "x$has_space" != x; then
27332        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27333$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27334      fi
27335      as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
27336    fi
27337  fi
27338
27339  # Now join together the path and the arguments once again
27340  if test "x$arguments" != xEOL; then
27341    new_complete="$new_path ${arguments% *}"
27342  else
27343    new_complete="$new_path"
27344  fi
27345
27346  if test "x$complete" != "x$new_complete"; then
27347    VS_ENV_CMD="$new_complete"
27348    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5
27349$as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;}
27350  fi
27351
27352
27353    # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
27354    { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5
27355$as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;}
27356
27357    # We need to create a couple of temporary files.
27358    VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env"
27359    $MKDIR -p $VS_ENV_TMP_DIR
27360
27361    # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment).
27362    # Instead create a shell script which will set the relevant variables when run.
27363    WINPATH_VS_ENV_CMD="$VS_ENV_CMD"
27364
27365  unix_path="$WINPATH_VS_ENV_CMD"
27366  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27367    windows_path=`$CYGPATH -m "$unix_path"`
27368    WINPATH_VS_ENV_CMD="$windows_path"
27369  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27370    windows_path=`cmd //c echo $unix_path`
27371    WINPATH_VS_ENV_CMD="$windows_path"
27372  fi
27373
27374    WINPATH_BASH="$BASH"
27375
27376  unix_path="$WINPATH_BASH"
27377  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27378    windows_path=`$CYGPATH -m "$unix_path"`
27379    WINPATH_BASH="$windows_path"
27380  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27381    windows_path=`cmd //c echo $unix_path`
27382    WINPATH_BASH="$windows_path"
27383  fi
27384
27385
27386    # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell
27387    # script (executable by bash) that will setup the important variables.
27388    EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat"
27389    $ECHO "@echo off" >  $EXTRACT_VC_ENV_BAT_FILE
27390    # This will end up something like:
27391    # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat
27392    $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE
27393    # These will end up something like:
27394    # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh
27395    # The trailing space for everyone except PATH is no typo, but is needed due
27396    # to trailing \ in the Windows paths. These will be stripped later.
27397    $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27398    $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27399    $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27400    $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27401    $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27402    $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE
27403
27404    # Now execute the newly created bat file.
27405    # The | cat is to stop SetEnv.Cmd to mess with system colors on msys.
27406    # Change directory so we don't need to mess with Windows paths in redirects.
27407    cd $VS_ENV_TMP_DIR
27408    cmd /c extract-vs-env.bat | $CAT
27409    cd $CURDIR
27410
27411    if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then
27412      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5
27413$as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;}
27414      { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27415$as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27416      { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27417$as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27418      as_fn_error $? "Cannot continue" "$LINENO" 5
27419    fi
27420
27421    # Now set all paths and other env variables. This will allow the rest of
27422    # the configure script to find and run the compiler in the proper way.
27423    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5
27424$as_echo "$as_me: Setting extracted environment variables" >&6;}
27425    . $VS_ENV_TMP_DIR/set-vs-env.sh
27426    # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we
27427    # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR.
27428  else
27429    # We did not find a vsvars bat file, let's hope we are run from a VS command prompt.
27430    { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5
27431$as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;}
27432  fi
27433
27434  # At this point, we should have correct variables in the environment, or we can't continue.
27435  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5
27436$as_echo_n "checking for Visual Studio variables... " >&6; }
27437
27438  if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then
27439    if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then
27440      { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5
27441$as_echo "present but broken" >&6; }
27442      as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5
27443    else
27444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
27445$as_echo "ok" >&6; }
27446      # Remove any trailing "\" and " " from the variables.
27447      VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'`
27448      VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'`
27449      VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'`
27450      WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'`
27451      WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'`
27452      # Remove any paths containing # (typically F#) as that messes up make. This
27453      # is needed if visual studio was installed with F# support.
27454      VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'`
27455
27456
27457
27458
27459    fi
27460  else
27461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27462$as_echo "not found" >&6; }
27463
27464    if test "x$VS_ENV_CMD" = x; then
27465      { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5
27466$as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;}
27467      { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5
27468$as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;}
27469    else
27470      { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5
27471$as_echo "$as_me: Running the extraction script failed." >&6;}
27472    fi
27473    { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5
27474$as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;}
27475    { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5
27476$as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;}
27477    as_fn_error $? "Cannot continue" "$LINENO" 5
27478  fi
27479
27480    # Reset path to VS_PATH. It will include everything that was on PATH at the time we
27481    # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV.
27482    PATH="$VS_PATH"
27483    # The microsoft toolchain also requires INCLUDE and LIB to be set.
27484    export INCLUDE="$VS_INCLUDE"
27485    export LIB="$VS_LIB"
27486  fi
27487
27488  # autoconf magic only relies on PATH, so update it if tools dir is specified
27489  OLD_PATH="$PATH"
27490
27491  # For solaris we really need solaris tools, and not the GNU equivalent.
27492  # The build tools on Solaris reside in /usr/ccs (C Compilation System),
27493  # so add that to path before starting to probe.
27494  # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP.
27495  if test "x$OPENJDK_BUILD_OS" = xsolaris; then
27496    PATH="/usr/ccs/bin:$PATH"
27497  fi
27498
27499  # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to
27500  # override all other locations.
27501  if test "x$TOOLCHAIN_PATH" != x; then
27502    PATH=$TOOLCHAIN_PATH:$PATH
27503  fi
27504
27505
27506  #
27507  # Setup the compilers (CC and CXX)
27508  #
27509
27510  COMPILER_NAME=C
27511  SEARCH_LIST="$TOOLCHAIN_CC_BINARY"
27512
27513  if test "x$CC" != x; then
27514    # User has supplied compiler name already, always let that override.
27515    { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5
27516$as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;}
27517    if test "x`basename $CC`" = "x$CC"; then
27518      # A command without a complete path is provided, search $PATH.
27519
27520      for ac_prog in $CC
27521do
27522  # Extract the first word of "$ac_prog", so it can be a program name with args.
27523set dummy $ac_prog; ac_word=$2
27524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27525$as_echo_n "checking for $ac_word... " >&6; }
27526if ${ac_cv_path_POTENTIAL_CC+:} false; then :
27527  $as_echo_n "(cached) " >&6
27528else
27529  case $POTENTIAL_CC in
27530  [\\/]* | ?:[\\/]*)
27531  ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
27532  ;;
27533  *)
27534  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27535for as_dir in $PATH
27536do
27537  IFS=$as_save_IFS
27538  test -z "$as_dir" && as_dir=.
27539    for ac_exec_ext in '' $ac_executable_extensions; do
27540  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27541    ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
27542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27543    break 2
27544  fi
27545done
27546  done
27547IFS=$as_save_IFS
27548
27549  ;;
27550esac
27551fi
27552POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
27553if test -n "$POTENTIAL_CC"; then
27554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
27555$as_echo "$POTENTIAL_CC" >&6; }
27556else
27557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27558$as_echo "no" >&6; }
27559fi
27560
27561
27562  test -n "$POTENTIAL_CC" && break
27563done
27564
27565      if test "x$POTENTIAL_CC" != x; then
27566        CC=$POTENTIAL_CC
27567      else
27568        as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5
27569      fi
27570    else
27571      # Otherwise it might already be a complete path
27572      if test ! -x "$CC"; then
27573        as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5
27574      fi
27575    fi
27576  else
27577    # No user supplied value. Locate compiler ourselves.
27578
27579    # If we are cross compiling, assume cross compilation tools follows the
27580    # cross compilation standard where they are prefixed with the autoconf
27581    # standard name for the target. For example the binary
27582    # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10.
27583    # If we are not cross compiling, then the default compiler name will be
27584    # used.
27585
27586    CC=
27587    # If TOOLCHAIN_PATH is set, check for all compiler names in there first
27588    # before checking the rest of the PATH.
27589    # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION
27590    # step, this should not be necessary.
27591    if test -n "$TOOLCHAIN_PATH"; then
27592      PATH_save="$PATH"
27593      PATH="$TOOLCHAIN_PATH"
27594      for ac_prog in $SEARCH_LIST
27595do
27596  # Extract the first word of "$ac_prog", so it can be a program name with args.
27597set dummy $ac_prog; ac_word=$2
27598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27599$as_echo_n "checking for $ac_word... " >&6; }
27600if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then :
27601  $as_echo_n "(cached) " >&6
27602else
27603  case $TOOLCHAIN_PATH_CC in
27604  [\\/]* | ?:[\\/]*)
27605  ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path.
27606  ;;
27607  *)
27608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27609for as_dir in $PATH
27610do
27611  IFS=$as_save_IFS
27612  test -z "$as_dir" && as_dir=.
27613    for ac_exec_ext in '' $ac_executable_extensions; do
27614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27615    ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext"
27616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27617    break 2
27618  fi
27619done
27620  done
27621IFS=$as_save_IFS
27622
27623  ;;
27624esac
27625fi
27626TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC
27627if test -n "$TOOLCHAIN_PATH_CC"; then
27628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5
27629$as_echo "$TOOLCHAIN_PATH_CC" >&6; }
27630else
27631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27632$as_echo "no" >&6; }
27633fi
27634
27635
27636  test -n "$TOOLCHAIN_PATH_CC" && break
27637done
27638
27639      CC=$TOOLCHAIN_PATH_CC
27640      PATH="$PATH_save"
27641    fi
27642
27643    # AC_PATH_PROGS can't be run multiple times with the same variable,
27644    # so create a new name for this run.
27645    if test "x$CC" = x; then
27646      for ac_prog in $SEARCH_LIST
27647do
27648  # Extract the first word of "$ac_prog", so it can be a program name with args.
27649set dummy $ac_prog; ac_word=$2
27650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27651$as_echo_n "checking for $ac_word... " >&6; }
27652if ${ac_cv_path_POTENTIAL_CC+:} false; then :
27653  $as_echo_n "(cached) " >&6
27654else
27655  case $POTENTIAL_CC in
27656  [\\/]* | ?:[\\/]*)
27657  ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
27658  ;;
27659  *)
27660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27661for as_dir in $PATH
27662do
27663  IFS=$as_save_IFS
27664  test -z "$as_dir" && as_dir=.
27665    for ac_exec_ext in '' $ac_executable_extensions; do
27666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27667    ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
27668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27669    break 2
27670  fi
27671done
27672  done
27673IFS=$as_save_IFS
27674
27675  ;;
27676esac
27677fi
27678POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC
27679if test -n "$POTENTIAL_CC"; then
27680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5
27681$as_echo "$POTENTIAL_CC" >&6; }
27682else
27683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27684$as_echo "no" >&6; }
27685fi
27686
27687
27688  test -n "$POTENTIAL_CC" && break
27689done
27690
27691      CC=$POTENTIAL_CC
27692    fi
27693
27694    if test "x$CC" = x; then
27695
27696  # Print a helpful message on how to acquire the necessary build dependency.
27697  # devkit is the help tag: freetype, cups, pulse, alsa etc
27698  MISSING_DEPENDENCY=devkit
27699
27700  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27701    cygwin_help $MISSING_DEPENDENCY
27702  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27703    msys_help $MISSING_DEPENDENCY
27704  else
27705    PKGHANDLER_COMMAND=
27706
27707    case $PKGHANDLER in
27708      apt-get)
27709        apt_help     $MISSING_DEPENDENCY ;;
27710      yum)
27711        yum_help     $MISSING_DEPENDENCY ;;
27712      port)
27713        port_help    $MISSING_DEPENDENCY ;;
27714      pkgutil)
27715        pkgutil_help $MISSING_DEPENDENCY ;;
27716      pkgadd)
27717        pkgadd_help  $MISSING_DEPENDENCY ;;
27718    esac
27719
27720    if test "x$PKGHANDLER_COMMAND" != x; then
27721      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
27722    fi
27723  fi
27724
27725      as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
27726    fi
27727  fi
27728
27729  # Now we have a compiler binary in CC. Make sure it's okay.
27730
27731  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27732
27733  # First separate the path from the arguments. This will split at the first
27734  # space.
27735  complete="$CC"
27736  path="${complete%% *}"
27737  tmp="$complete EOL"
27738  arguments="${tmp#* }"
27739
27740  # Input might be given as Windows format, start by converting to
27741  # unix format.
27742  new_path=`$CYGPATH -u "$path"`
27743
27744  # Now try to locate executable using which
27745  new_path=`$WHICH "$new_path" 2> /dev/null`
27746  # bat and cmd files are not always considered executable in cygwin causing which
27747  # to not find them
27748  if test "x$new_path" = x \
27749      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27750      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27751    new_path=`$CYGPATH -u "$path"`
27752  fi
27753  if test "x$new_path" = x; then
27754    # Oops. Which didn't find the executable.
27755    # The splitting of arguments from the executable at a space might have been incorrect,
27756    # since paths with space are more likely in Windows. Give it another try with the whole
27757    # argument.
27758    path="$complete"
27759    arguments="EOL"
27760    new_path=`$CYGPATH -u "$path"`
27761    new_path=`$WHICH "$new_path" 2> /dev/null`
27762    # bat and cmd files are not always considered executable in cygwin causing which
27763    # to not find them
27764    if test "x$new_path" = x \
27765        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27766        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27767      new_path=`$CYGPATH -u "$path"`
27768    fi
27769    if test "x$new_path" = x; then
27770      # It's still not found. Now this is an unrecoverable error.
27771      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
27772$as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
27773      has_space=`$ECHO "$complete" | $GREP " "`
27774      if test "x$has_space" != x; then
27775        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27776$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27777      fi
27778      as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
27779    fi
27780  fi
27781
27782  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27783  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27784  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27785  # "foo.exe" is OK but "foo" is an error.
27786  #
27787  # This test is therefore slightly more accurate than "test -f" to check for file presence.
27788  # It is also a way to make sure we got the proper file name for the real test later on.
27789  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
27790  if test "x$test_shortpath" = x; then
27791    # Short path failed, file does not exist as specified.
27792    # Try adding .exe or .cmd
27793    if test -f "${new_path}.exe"; then
27794      input_to_shortpath="${new_path}.exe"
27795    elif test -f "${new_path}.cmd"; then
27796      input_to_shortpath="${new_path}.cmd"
27797    else
27798      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5
27799$as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;}
27800      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
27801$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
27802      as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
27803    fi
27804  else
27805    input_to_shortpath="$new_path"
27806  fi
27807
27808  # Call helper function which possibly converts this using DOS-style short mode.
27809  # If so, the updated path is stored in $new_path.
27810  new_path="$input_to_shortpath"
27811
27812  input_path="$input_to_shortpath"
27813  # Check if we need to convert this using DOS-style short mode. If the path
27814  # contains just simple characters, use it. Otherwise (spaces, weird characters),
27815  # take no chances and rewrite it.
27816  # Note: m4 eats our [], so we need to use [ and ] instead.
27817  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
27818  if test "x$has_forbidden_chars" != x; then
27819    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27820    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
27821    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
27822    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
27823      # Going to short mode and back again did indeed matter. Since short mode is
27824      # case insensitive, let's make it lowercase to improve readability.
27825      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27826      # Now convert it back to Unix-stile (cygpath)
27827      input_path=`$CYGPATH -u "$shortmode_path"`
27828      new_path="$input_path"
27829    fi
27830  fi
27831
27832  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
27833  if test "x$test_cygdrive_prefix" = x; then
27834    # As a simple fix, exclude /usr/bin since it's not a real path.
27835    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
27836      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
27837      # a path prefixed by /cygdrive for fixpath to work.
27838      new_path="$CYGWIN_ROOT_PATH$input_path"
27839    fi
27840  fi
27841
27842  # remove trailing .exe if any
27843  new_path="${new_path/%.exe/}"
27844
27845  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27846
27847  # First separate the path from the arguments. This will split at the first
27848  # space.
27849  complete="$CC"
27850  path="${complete%% *}"
27851  tmp="$complete EOL"
27852  arguments="${tmp#* }"
27853
27854  # Input might be given as Windows format, start by converting to
27855  # unix format.
27856  new_path="$path"
27857
27858  windows_path="$new_path"
27859  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27860    unix_path=`$CYGPATH -u "$windows_path"`
27861    new_path="$unix_path"
27862  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27863    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27864    new_path="$unix_path"
27865  fi
27866
27867
27868  # Now try to locate executable using which
27869  new_path=`$WHICH "$new_path" 2> /dev/null`
27870
27871  if test "x$new_path" = x; then
27872    # Oops. Which didn't find the executable.
27873    # The splitting of arguments from the executable at a space might have been incorrect,
27874    # since paths with space are more likely in Windows. Give it another try with the whole
27875    # argument.
27876    path="$complete"
27877    arguments="EOL"
27878    new_path="$path"
27879
27880  windows_path="$new_path"
27881  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27882    unix_path=`$CYGPATH -u "$windows_path"`
27883    new_path="$unix_path"
27884  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27885    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27886    new_path="$unix_path"
27887  fi
27888
27889
27890    new_path=`$WHICH "$new_path" 2> /dev/null`
27891
27892    if test "x$new_path" = x; then
27893      # It's still not found. Now this is an unrecoverable error.
27894      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
27895$as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
27896      has_space=`$ECHO "$complete" | $GREP " "`
27897      if test "x$has_space" != x; then
27898        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27899$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27900      fi
27901      as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
27902    fi
27903  fi
27904
27905  # Now new_path has a complete unix path to the binary
27906  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
27907    # Keep paths in /bin as-is, but remove trailing .exe if any
27908    new_path="${new_path/%.exe/}"
27909    # Do not save /bin paths to all_fixpath_prefixes!
27910  else
27911    # Not in mixed or Windows style, start by that.
27912    new_path=`cmd //c echo $new_path`
27913
27914  input_path="$new_path"
27915  # Check if we need to convert this using DOS-style short mode. If the path
27916  # contains just simple characters, use it. Otherwise (spaces, weird characters),
27917  # take no chances and rewrite it.
27918  # Note: m4 eats our [], so we need to use [ and ] instead.
27919  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
27920  if test "x$has_forbidden_chars" != x; then
27921    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
27922    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
27923  fi
27924
27925    # Output is in $new_path
27926
27927  windows_path="$new_path"
27928  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27929    unix_path=`$CYGPATH -u "$windows_path"`
27930    new_path="$unix_path"
27931  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
27932    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
27933    new_path="$unix_path"
27934  fi
27935
27936    # remove trailing .exe if any
27937    new_path="${new_path/%.exe/}"
27938
27939    # Save the first 10 bytes of this path to the storage, so fixpath can work.
27940    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
27941  fi
27942
27943  else
27944    # We're on a posix platform. Hooray! :)
27945    # First separate the path from the arguments. This will split at the first
27946    # space.
27947    complete="$CC"
27948    path="${complete%% *}"
27949    tmp="$complete EOL"
27950    arguments="${tmp#* }"
27951
27952    # Cannot rely on the command "which" here since it doesn't always work.
27953    is_absolute_path=`$ECHO "$path" | $GREP ^/`
27954    if test -z "$is_absolute_path"; then
27955      # Path to executable is not absolute. Find it.
27956      IFS_save="$IFS"
27957      IFS=:
27958      for p in $PATH; do
27959        if test -f "$p/$path" && test -x "$p/$path"; then
27960          new_path="$p/$path"
27961          break
27962        fi
27963      done
27964      IFS="$IFS_save"
27965    else
27966      # This is an absolute path, we can use it without further modifications.
27967      new_path="$path"
27968    fi
27969
27970    if test "x$new_path" = x; then
27971      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
27972$as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
27973      has_space=`$ECHO "$complete" | $GREP " "`
27974      if test "x$has_space" != x; then
27975        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
27976$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
27977      fi
27978      as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
27979    fi
27980  fi
27981
27982  # Now join together the path and the arguments once again
27983  if test "x$arguments" != xEOL; then
27984    new_complete="$new_path ${arguments% *}"
27985  else
27986    new_complete="$new_path"
27987  fi
27988
27989  if test "x$complete" != "x$new_complete"; then
27990    CC="$new_complete"
27991    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5
27992$as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;}
27993  fi
27994
27995  TEST_COMPILER="$CC"
27996  # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
27997  # to 'xlc' but it is crucial that we invoke the compiler with the right name!
27998  if test "x$OPENJDK_BUILD_OS" != xaix; then
27999    # FIXME: This test should not be needed anymore; we don't do that for any platform.
28000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5
28001$as_echo_n "checking resolved symbolic links for CC... " >&6; }
28002
28003  if test "x$OPENJDK_BUILD_OS" != xwindows; then
28004    # Follow a chain of symbolic links. Use readlink
28005    # where it exists, else fall back to horribly
28006    # complicated shell code.
28007    if test "x$READLINK_TESTED" != yes; then
28008      # On MacOSX there is a readlink tool with a different
28009      # purpose than the GNU readlink tool. Check the found readlink.
28010      ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
28011      if test "x$ISGNU" = x; then
28012        # A readlink that we do not know how to use.
28013        # Are there other non-GNU readlinks out there?
28014        READLINK_TESTED=yes
28015        READLINK=
28016      fi
28017    fi
28018
28019    if test "x$READLINK" != x; then
28020      TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
28021    else
28022      # Save the current directory for restoring afterwards
28023      STARTDIR=$PWD
28024      COUNTER=0
28025      sym_link_dir=`$DIRNAME $TEST_COMPILER`
28026      sym_link_file=`$BASENAME $TEST_COMPILER`
28027      cd $sym_link_dir
28028      # Use -P flag to resolve symlinks in directories.
28029      cd `$THEPWDCMD -P`
28030      sym_link_dir=`$THEPWDCMD -P`
28031      # Resolve file symlinks
28032      while test $COUNTER -lt 20; do
28033        ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
28034        if test "x$ISLINK" == x; then
28035          # This is not a symbolic link! We are done!
28036          break
28037        fi
28038        # Again resolve directory symlinks since the target of the just found
28039        # link could be in a different directory
28040        cd `$DIRNAME $ISLINK`
28041        sym_link_dir=`$THEPWDCMD -P`
28042        sym_link_file=`$BASENAME $ISLINK`
28043        let COUNTER=COUNTER+1
28044      done
28045      cd $STARTDIR
28046      TEST_COMPILER=$sym_link_dir/$sym_link_file
28047    fi
28048  fi
28049
28050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
28051$as_echo "$TEST_COMPILER" >&6; }
28052  fi
28053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5
28054$as_echo_n "checking if CC is disguised ccache... " >&6; }
28055
28056  COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
28057  if test "x$COMPILER_BASENAME" = "xccache"; then
28058    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
28059$as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
28060    # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
28061    # We want to control ccache invocation ourselves, so ignore this cc and try
28062    # searching again.
28063
28064    # Remove the path to the fake ccache cc from the PATH
28065    RETRY_COMPILER_SAVED_PATH="$PATH"
28066    COMPILER_DIRNAME=`$DIRNAME $CC`
28067    PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
28068
28069    # Try again looking for our compiler
28070    if test -n "$ac_tool_prefix"; then
28071  for ac_prog in $TOOLCHAIN_CC_BINARY
28072  do
28073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28076$as_echo_n "checking for $ac_word... " >&6; }
28077if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
28078  $as_echo_n "(cached) " >&6
28079else
28080  if test -n "$PROPER_COMPILER_CC"; then
28081  ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
28082else
28083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28084for as_dir in $PATH
28085do
28086  IFS=$as_save_IFS
28087  test -z "$as_dir" && as_dir=.
28088    for ac_exec_ext in '' $ac_executable_extensions; do
28089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28090    ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
28091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28092    break 2
28093  fi
28094done
28095  done
28096IFS=$as_save_IFS
28097
28098fi
28099fi
28100PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC
28101if test -n "$PROPER_COMPILER_CC"; then
28102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
28103$as_echo "$PROPER_COMPILER_CC" >&6; }
28104else
28105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28106$as_echo "no" >&6; }
28107fi
28108
28109
28110    test -n "$PROPER_COMPILER_CC" && break
28111  done
28112fi
28113if test -z "$PROPER_COMPILER_CC"; then
28114  ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
28115  for ac_prog in $TOOLCHAIN_CC_BINARY
28116do
28117  # Extract the first word of "$ac_prog", so it can be a program name with args.
28118set dummy $ac_prog; ac_word=$2
28119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28120$as_echo_n "checking for $ac_word... " >&6; }
28121if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
28122  $as_echo_n "(cached) " >&6
28123else
28124  if test -n "$ac_ct_PROPER_COMPILER_CC"; then
28125  ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
28126else
28127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28128for as_dir in $PATH
28129do
28130  IFS=$as_save_IFS
28131  test -z "$as_dir" && as_dir=.
28132    for ac_exec_ext in '' $ac_executable_extensions; do
28133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28134    ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
28135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28136    break 2
28137  fi
28138done
28139  done
28140IFS=$as_save_IFS
28141
28142fi
28143fi
28144ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC
28145if test -n "$ac_ct_PROPER_COMPILER_CC"; then
28146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5
28147$as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; }
28148else
28149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28150$as_echo "no" >&6; }
28151fi
28152
28153
28154  test -n "$ac_ct_PROPER_COMPILER_CC" && break
28155done
28156
28157  if test "x$ac_ct_PROPER_COMPILER_CC" = x; then
28158    PROPER_COMPILER_CC=""
28159  else
28160    case $cross_compiling:$ac_tool_warned in
28161yes:)
28162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28164ac_tool_warned=yes ;;
28165esac
28166    PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC
28167  fi
28168fi
28169
28170
28171  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28172
28173  # First separate the path from the arguments. This will split at the first
28174  # space.
28175  complete="$PROPER_COMPILER_CC"
28176  path="${complete%% *}"
28177  tmp="$complete EOL"
28178  arguments="${tmp#* }"
28179
28180  # Input might be given as Windows format, start by converting to
28181  # unix format.
28182  new_path=`$CYGPATH -u "$path"`
28183
28184  # Now try to locate executable using which
28185  new_path=`$WHICH "$new_path" 2> /dev/null`
28186  # bat and cmd files are not always considered executable in cygwin causing which
28187  # to not find them
28188  if test "x$new_path" = x \
28189      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28190      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28191    new_path=`$CYGPATH -u "$path"`
28192  fi
28193  if test "x$new_path" = x; then
28194    # Oops. Which didn't find the executable.
28195    # The splitting of arguments from the executable at a space might have been incorrect,
28196    # since paths with space are more likely in Windows. Give it another try with the whole
28197    # argument.
28198    path="$complete"
28199    arguments="EOL"
28200    new_path=`$CYGPATH -u "$path"`
28201    new_path=`$WHICH "$new_path" 2> /dev/null`
28202    # bat and cmd files are not always considered executable in cygwin causing which
28203    # to not find them
28204    if test "x$new_path" = x \
28205        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
28206        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
28207      new_path=`$CYGPATH -u "$path"`
28208    fi
28209    if test "x$new_path" = x; then
28210      # It's still not found. Now this is an unrecoverable error.
28211      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28212$as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28213      has_space=`$ECHO "$complete" | $GREP " "`
28214      if test "x$has_space" != x; then
28215        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28216$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28217      fi
28218      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28219    fi
28220  fi
28221
28222  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
28223  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
28224  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
28225  # "foo.exe" is OK but "foo" is an error.
28226  #
28227  # This test is therefore slightly more accurate than "test -f" to check for file presence.
28228  # It is also a way to make sure we got the proper file name for the real test later on.
28229  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
28230  if test "x$test_shortpath" = x; then
28231    # Short path failed, file does not exist as specified.
28232    # Try adding .exe or .cmd
28233    if test -f "${new_path}.exe"; then
28234      input_to_shortpath="${new_path}.exe"
28235    elif test -f "${new_path}.cmd"; then
28236      input_to_shortpath="${new_path}.cmd"
28237    else
28238      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5
28239$as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;}
28240      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
28241$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
28242      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28243    fi
28244  else
28245    input_to_shortpath="$new_path"
28246  fi
28247
28248  # Call helper function which possibly converts this using DOS-style short mode.
28249  # If so, the updated path is stored in $new_path.
28250  new_path="$input_to_shortpath"
28251
28252  input_path="$input_to_shortpath"
28253  # Check if we need to convert this using DOS-style short mode. If the path
28254  # contains just simple characters, use it. Otherwise (spaces, weird characters),
28255  # take no chances and rewrite it.
28256  # Note: m4 eats our [], so we need to use [ and ] instead.
28257  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
28258  if test "x$has_forbidden_chars" != x; then
28259    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28260    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
28261    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
28262    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
28263      # Going to short mode and back again did indeed matter. Since short mode is
28264      # case insensitive, let's make it lowercase to improve readability.
28265      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28266      # Now convert it back to Unix-stile (cygpath)
28267      input_path=`$CYGPATH -u "$shortmode_path"`
28268      new_path="$input_path"
28269    fi
28270  fi
28271
28272  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
28273  if test "x$test_cygdrive_prefix" = x; then
28274    # As a simple fix, exclude /usr/bin since it's not a real path.
28275    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
28276      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
28277      # a path prefixed by /cygdrive for fixpath to work.
28278      new_path="$CYGWIN_ROOT_PATH$input_path"
28279    fi
28280  fi
28281
28282  # remove trailing .exe if any
28283  new_path="${new_path/%.exe/}"
28284
28285  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28286
28287  # First separate the path from the arguments. This will split at the first
28288  # space.
28289  complete="$PROPER_COMPILER_CC"
28290  path="${complete%% *}"
28291  tmp="$complete EOL"
28292  arguments="${tmp#* }"
28293
28294  # Input might be given as Windows format, start by converting to
28295  # unix format.
28296  new_path="$path"
28297
28298  windows_path="$new_path"
28299  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28300    unix_path=`$CYGPATH -u "$windows_path"`
28301    new_path="$unix_path"
28302  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28303    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28304    new_path="$unix_path"
28305  fi
28306
28307
28308  # Now try to locate executable using which
28309  new_path=`$WHICH "$new_path" 2> /dev/null`
28310
28311  if test "x$new_path" = x; then
28312    # Oops. Which didn't find the executable.
28313    # The splitting of arguments from the executable at a space might have been incorrect,
28314    # since paths with space are more likely in Windows. Give it another try with the whole
28315    # argument.
28316    path="$complete"
28317    arguments="EOL"
28318    new_path="$path"
28319
28320  windows_path="$new_path"
28321  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28322    unix_path=`$CYGPATH -u "$windows_path"`
28323    new_path="$unix_path"
28324  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28325    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28326    new_path="$unix_path"
28327  fi
28328
28329
28330    new_path=`$WHICH "$new_path" 2> /dev/null`
28331
28332    if test "x$new_path" = x; then
28333      # It's still not found. Now this is an unrecoverable error.
28334      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28335$as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28336      has_space=`$ECHO "$complete" | $GREP " "`
28337      if test "x$has_space" != x; then
28338        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
28339$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
28340      fi
28341      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28342    fi
28343  fi
28344
28345  # Now new_path has a complete unix path to the binary
28346  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
28347    # Keep paths in /bin as-is, but remove trailing .exe if any
28348    new_path="${new_path/%.exe/}"
28349    # Do not save /bin paths to all_fixpath_prefixes!
28350  else
28351    # Not in mixed or Windows style, start by that.
28352    new_path=`cmd //c echo $new_path`
28353
28354  input_path="$new_path"
28355  # Check if we need to convert this using DOS-style short mode. If the path
28356  # contains just simple characters, use it. Otherwise (spaces, weird characters),
28357  # take no chances and rewrite it.
28358  # Note: m4 eats our [], so we need to use [ and ] instead.
28359  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
28360  if test "x$has_forbidden_chars" != x; then
28361    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
28362    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
28363  fi
28364
28365    # Output is in $new_path
28366
28367  windows_path="$new_path"
28368  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
28369    unix_path=`$CYGPATH -u "$windows_path"`
28370    new_path="$unix_path"
28371  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
28372    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
28373    new_path="$unix_path"
28374  fi
28375
28376    # remove trailing .exe if any
28377    new_path="${new_path/%.exe/}"
28378
28379    # Save the first 10 bytes of this path to the storage, so fixpath can work.
28380    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
28381  fi
28382
28383  else
28384    # We're on a posix platform. Hooray! :)
28385    # First separate the path from the arguments. This will split at the first
28386    # space.
28387    complete="$PROPER_COMPILER_CC"
28388    path="${complete%% *}"
28389    tmp="$complete EOL"
28390    arguments="${tmp#* }"
28391
28392    # Cannot rely on the command "which" here since it doesn't always work.
28393    is_absolute_path=`$ECHO "$path" | $GREP ^/`
28394    if test -z "$is_absolute_path"; then
28395      # Path to executable is not absolute. Find it.
28396      IFS_save="$IFS"
28397      IFS=:
28398      for p in $PATH; do
28399        if test -f "$p/$path" && test -x "$p/$path"; then
28400          new_path="$p/$path"
28401          break
28402        fi
28403      done
28404      IFS="$IFS_save"
28405    else
28406      # This is an absolute path, we can use it without further modifications.
28407      new_path="$path"
28408    fi
28409
28410    if test "x$new_path" = x; then
28411      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
28412$as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
28413      has_space=`$ECHO "$complete" | $GREP " "`
28414      if test "x$has_space" != x; then
28415        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
28416$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
28417      fi
28418      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
28419    fi
28420  fi
28421
28422  # Now join together the path and the arguments once again
28423  if test "x$arguments" != xEOL; then
28424    new_complete="$new_path ${arguments% *}"
28425  else
28426    new_complete="$new_path"
28427  fi
28428
28429  if test "x$complete" != "x$new_complete"; then
28430    PROPER_COMPILER_CC="$new_complete"
28431    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5
28432$as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;}
28433  fi
28434
28435    PATH="$RETRY_COMPILER_SAVED_PATH"
28436
28437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5
28438$as_echo_n "checking for resolved symbolic links for CC... " >&6; }
28439
28440  if test "x$OPENJDK_BUILD_OS" != xwindows; then
28441    # Follow a chain of symbolic links. Use readlink
28442    # where it exists, else fall back to horribly
28443    # complicated shell code.
28444    if test "x$READLINK_TESTED" != yes; then
28445      # On MacOSX there is a readlink tool with a different
28446      # purpose than the GNU readlink tool. Check the found readlink.
28447      ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
28448      if test "x$ISGNU" = x; then
28449        # A readlink that we do not know how to use.
28450        # Are there other non-GNU readlinks out there?
28451        READLINK_TESTED=yes
28452        READLINK=
28453      fi
28454    fi
28455
28456    if test "x$READLINK" != x; then
28457      PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC`
28458    else
28459      # Save the current directory for restoring afterwards
28460      STARTDIR=$PWD
28461      COUNTER=0
28462      sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC`
28463      sym_link_file=`$BASENAME $PROPER_COMPILER_CC`
28464      cd $sym_link_dir
28465      # Use -P flag to resolve symlinks in directories.
28466      cd `$THEPWDCMD -P`
28467      sym_link_dir=`$THEPWDCMD -P`
28468      # Resolve file symlinks
28469      while test $COUNTER -lt 20; do
28470        ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
28471        if test "x$ISLINK" == x; then
28472          # This is not a symbolic link! We are done!
28473          break
28474        fi
28475        # Again resolve directory symlinks since the target of the just found
28476        # link could be in a different directory
28477        cd `$DIRNAME $ISLINK`
28478        sym_link_dir=`$THEPWDCMD -P`
28479        sym_link_file=`$BASENAME $ISLINK`
28480        let COUNTER=COUNTER+1
28481      done
28482      cd $STARTDIR
28483      PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file
28484    fi
28485  fi
28486
28487    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
28488$as_echo "$PROPER_COMPILER_CC" >&6; }
28489    CC="$PROPER_COMPILER_CC"
28490  else
28491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5
28492$as_echo "no, keeping CC" >&6; }
28493  fi
28494
28495
28496  COMPILER=$CC
28497  COMPILER_NAME=$COMPILER_NAME
28498
28499  if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
28500    # cc -V output typically looks like
28501    #     cc: Sun C 5.12 Linux_i386 2011/11/16
28502    COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1`
28503    # Check that this is likely to be the Solaris Studio cc.
28504    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
28505    if test $? -ne 0; then
28506      ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1`
28507      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
28508$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
28509      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5
28510$as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
28511      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5
28512$as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;}
28513      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28514    fi
28515    # Remove usage instructions (if present), and
28516    # collapse compiler output into a single line
28517    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
28518        $SED -e 's/ *[Uu]sage:.*//'`
28519    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
28520        $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"`
28521  elif test  "x$TOOLCHAIN_TYPE" = xxlc; then
28522    # xlc -qversion output typically looks like
28523    #     IBM XL C/C++ for AIX, V11.1 (5724-X13)
28524    #     Version: 11.01.0000.0015
28525    COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1`
28526    # Check that this is likely to be the IBM XL C compiler.
28527    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null
28528    if test $? -ne 0; then
28529      ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1`
28530      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
28531$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
28532      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5
28533$as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
28534      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5
28535$as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;}
28536      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28537    fi
28538    # Collapse compiler output into a single line
28539    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
28540    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
28541        $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'`
28542  elif test  "x$TOOLCHAIN_TYPE" = xmicrosoft; then
28543    # There is no specific version flag, but all output starts with a version string.
28544    # First line typically looks something like:
28545    # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
28546    COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
28547    # Check that this is likely to be Microsoft CL.EXE.
28548    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null
28549    if test $? -ne 0; then
28550      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
28551$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
28552      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5
28553$as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
28554      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28555    fi
28556    # Collapse compiler output into a single line
28557    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
28558    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
28559        $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'`
28560  elif test  "x$TOOLCHAIN_TYPE" = xgcc; then
28561    # gcc --version output typically looks like
28562    #     gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
28563    #     Copyright (C) 2013 Free Software Foundation, Inc.
28564    #     This is free software; see the source for copying conditions.  There is NO
28565    #     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28566    COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
28567    # Check that this is likely to be GCC.
28568    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null
28569    if test $? -ne 0; then
28570      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
28571$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
28572      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5
28573$as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;}
28574      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28575    fi
28576    # Remove Copyright and legalese from version string, and
28577    # collapse into a single line
28578    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
28579        $SED -e 's/ *Copyright .*//'`
28580    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
28581        $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'`
28582  elif test  "x$TOOLCHAIN_TYPE" = xclang; then
28583    # clang --version output typically looks like
28584    #    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
28585    #    clang version 3.3 (tags/RELEASE_33/final)
28586    # or
28587    #    Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
28588    #    Target: x86_64-pc-linux-gnu
28589    #    Thread model: posix
28590    COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
28591    # Check that this is likely to be clang
28592    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null
28593    if test $? -ne 0; then
28594      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
28595$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
28596      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5
28597$as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
28598      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
28599    fi
28600    # Collapse compiler output into a single line
28601    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
28602    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
28603        $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'`
28604  else
28605      as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5
28606  fi
28607  # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker)
28608  CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER"
28609  # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker)
28610  CC_VERSION_STRING="$COMPILER_VERSION_STRING"
28611
28612  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5
28613$as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;}
28614
28615
28616  # Now that we have resolved CC ourself, let autoconf have its go at it
28617  ac_ext=c
28618ac_cpp='$CPP $CPPFLAGS'
28619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28621ac_compiler_gnu=$ac_cv_c_compiler_gnu
28622if test -n "$ac_tool_prefix"; then
28623  for ac_prog in $CC
28624  do
28625    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28628$as_echo_n "checking for $ac_word... " >&6; }
28629if ${ac_cv_prog_CC+:} false; then :
28630  $as_echo_n "(cached) " >&6
28631else
28632  if test -n "$CC"; then
28633  ac_cv_prog_CC="$CC" # Let the user override the test.
28634else
28635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28636for as_dir in $PATH
28637do
28638  IFS=$as_save_IFS
28639  test -z "$as_dir" && as_dir=.
28640    for ac_exec_ext in '' $ac_executable_extensions; do
28641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28642    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
28643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28644    break 2
28645  fi
28646done
28647  done
28648IFS=$as_save_IFS
28649
28650fi
28651fi
28652CC=$ac_cv_prog_CC
28653if test -n "$CC"; then
28654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28655$as_echo "$CC" >&6; }
28656else
28657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28658$as_echo "no" >&6; }
28659fi
28660
28661
28662    test -n "$CC" && break
28663  done
28664fi
28665if test -z "$CC"; then
28666  ac_ct_CC=$CC
28667  for ac_prog in $CC
28668do
28669  # Extract the first word of "$ac_prog", so it can be a program name with args.
28670set dummy $ac_prog; ac_word=$2
28671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28672$as_echo_n "checking for $ac_word... " >&6; }
28673if ${ac_cv_prog_ac_ct_CC+:} false; then :
28674  $as_echo_n "(cached) " >&6
28675else
28676  if test -n "$ac_ct_CC"; then
28677  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
28678else
28679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28680for as_dir in $PATH
28681do
28682  IFS=$as_save_IFS
28683  test -z "$as_dir" && as_dir=.
28684    for ac_exec_ext in '' $ac_executable_extensions; do
28685  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28686    ac_cv_prog_ac_ct_CC="$ac_prog"
28687    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28688    break 2
28689  fi
28690done
28691  done
28692IFS=$as_save_IFS
28693
28694fi
28695fi
28696ac_ct_CC=$ac_cv_prog_ac_ct_CC
28697if test -n "$ac_ct_CC"; then
28698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28699$as_echo "$ac_ct_CC" >&6; }
28700else
28701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28702$as_echo "no" >&6; }
28703fi
28704
28705
28706  test -n "$ac_ct_CC" && break
28707done
28708
28709  if test "x$ac_ct_CC" = x; then
28710    CC=""
28711  else
28712    case $cross_compiling:$ac_tool_warned in
28713yes:)
28714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28716ac_tool_warned=yes ;;
28717esac
28718    CC=$ac_ct_CC
28719  fi
28720fi
28721
28722
28723test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28725as_fn_error $? "no acceptable C compiler found in \$PATH
28726See \`config.log' for more details" "$LINENO" 5; }
28727
28728# Provide some information about the compiler.
28729$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
28730set X $ac_compile
28731ac_compiler=$2
28732for ac_option in --version -v -V -qversion; do
28733  { { ac_try="$ac_compiler $ac_option >&5"
28734case "(($ac_try" in
28735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28736  *) ac_try_echo=$ac_try;;
28737esac
28738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28739$as_echo "$ac_try_echo"; } >&5
28740  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28741  ac_status=$?
28742  if test -s conftest.err; then
28743    sed '10a\
28744... rest of stderr output deleted ...
28745         10q' conftest.err >conftest.er1
28746    cat conftest.er1 >&5
28747  fi
28748  rm -f conftest.er1 conftest.err
28749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750  test $ac_status = 0; }
28751done
28752
28753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28754/* end confdefs.h.  */
28755
28756int
28757main ()
28758{
28759
28760  ;
28761  return 0;
28762}
28763_ACEOF
28764ac_clean_files_save=$ac_clean_files
28765ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28766# Try to create an executable without -o first, disregard a.out.
28767# It will help us diagnose broken compilers, and finding out an intuition
28768# of exeext.
28769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
28770$as_echo_n "checking whether the C compiler works... " >&6; }
28771ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
28772
28773# The possible output files:
28774ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
28775
28776ac_rmfiles=
28777for ac_file in $ac_files
28778do
28779  case $ac_file in
28780    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28781    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28782  esac
28783done
28784rm -f $ac_rmfiles
28785
28786if { { ac_try="$ac_link_default"
28787case "(($ac_try" in
28788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789  *) ac_try_echo=$ac_try;;
28790esac
28791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28792$as_echo "$ac_try_echo"; } >&5
28793  (eval "$ac_link_default") 2>&5
28794  ac_status=$?
28795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28796  test $ac_status = 0; }; then :
28797  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28798# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28799# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28800# so that the user can short-circuit this test for compilers unknown to
28801# Autoconf.
28802for ac_file in $ac_files ''
28803do
28804  test -f "$ac_file" || continue
28805  case $ac_file in
28806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28807	;;
28808    [ab].out )
28809	# We found the default executable, but exeext='' is most
28810	# certainly right.
28811	break;;
28812    *.* )
28813	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28814	then :; else
28815	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28816	fi
28817	# We set ac_cv_exeext here because the later test for it is not
28818	# safe: cross compilers may not add the suffix if given an `-o'
28819	# argument, so we may need to know it at that point already.
28820	# Even if this section looks crufty: it has the advantage of
28821	# actually working.
28822	break;;
28823    * )
28824	break;;
28825  esac
28826done
28827test "$ac_cv_exeext" = no && ac_cv_exeext=
28828
28829else
28830  ac_file=''
28831fi
28832if test -z "$ac_file"; then :
28833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834$as_echo "no" >&6; }
28835$as_echo "$as_me: failed program was:" >&5
28836sed 's/^/| /' conftest.$ac_ext >&5
28837
28838{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28840as_fn_error 77 "C compiler cannot create executables
28841See \`config.log' for more details" "$LINENO" 5; }
28842else
28843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28844$as_echo "yes" >&6; }
28845fi
28846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
28847$as_echo_n "checking for C compiler default output file name... " >&6; }
28848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
28849$as_echo "$ac_file" >&6; }
28850ac_exeext=$ac_cv_exeext
28851
28852rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
28853ac_clean_files=$ac_clean_files_save
28854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
28855$as_echo_n "checking for suffix of executables... " >&6; }
28856if { { ac_try="$ac_link"
28857case "(($ac_try" in
28858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28859  *) ac_try_echo=$ac_try;;
28860esac
28861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28862$as_echo "$ac_try_echo"; } >&5
28863  (eval "$ac_link") 2>&5
28864  ac_status=$?
28865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28866  test $ac_status = 0; }; then :
28867  # If both `conftest.exe' and `conftest' are `present' (well, observable)
28868# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
28869# work properly (i.e., refer to `conftest.exe'), while it won't with
28870# `rm'.
28871for ac_file in conftest.exe conftest conftest.*; do
28872  test -f "$ac_file" || continue
28873  case $ac_file in
28874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28875    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28876	  break;;
28877    * ) break;;
28878  esac
28879done
28880else
28881  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28883as_fn_error $? "cannot compute suffix of executables: cannot compile and link
28884See \`config.log' for more details" "$LINENO" 5; }
28885fi
28886rm -f conftest conftest$ac_cv_exeext
28887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
28888$as_echo "$ac_cv_exeext" >&6; }
28889
28890rm -f conftest.$ac_ext
28891EXEEXT=$ac_cv_exeext
28892ac_exeext=$EXEEXT
28893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28894/* end confdefs.h.  */
28895#include <stdio.h>
28896int
28897main ()
28898{
28899FILE *f = fopen ("conftest.out", "w");
28900 return ferror (f) || fclose (f) != 0;
28901
28902  ;
28903  return 0;
28904}
28905_ACEOF
28906ac_clean_files="$ac_clean_files conftest.out"
28907# Check that the compiler produces executables we can run.  If not, either
28908# the compiler is broken, or we cross compile.
28909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
28910$as_echo_n "checking whether we are cross compiling... " >&6; }
28911if test "$cross_compiling" != yes; then
28912  { { ac_try="$ac_link"
28913case "(($ac_try" in
28914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28915  *) ac_try_echo=$ac_try;;
28916esac
28917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28918$as_echo "$ac_try_echo"; } >&5
28919  (eval "$ac_link") 2>&5
28920  ac_status=$?
28921  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28922  test $ac_status = 0; }
28923  if { ac_try='./conftest$ac_cv_exeext'
28924  { { case "(($ac_try" in
28925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926  *) ac_try_echo=$ac_try;;
28927esac
28928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28929$as_echo "$ac_try_echo"; } >&5
28930  (eval "$ac_try") 2>&5
28931  ac_status=$?
28932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28933  test $ac_status = 0; }; }; then
28934    cross_compiling=no
28935  else
28936    if test "$cross_compiling" = maybe; then
28937	cross_compiling=yes
28938    else
28939	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28941as_fn_error $? "cannot run C compiled programs.
28942If you meant to cross compile, use \`--host'.
28943See \`config.log' for more details" "$LINENO" 5; }
28944    fi
28945  fi
28946fi
28947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
28948$as_echo "$cross_compiling" >&6; }
28949
28950rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
28951ac_clean_files=$ac_clean_files_save
28952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
28953$as_echo_n "checking for suffix of object files... " >&6; }
28954if ${ac_cv_objext+:} false; then :
28955  $as_echo_n "(cached) " >&6
28956else
28957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28958/* end confdefs.h.  */
28959
28960int
28961main ()
28962{
28963
28964  ;
28965  return 0;
28966}
28967_ACEOF
28968rm -f conftest.o conftest.obj
28969if { { ac_try="$ac_compile"
28970case "(($ac_try" in
28971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972  *) ac_try_echo=$ac_try;;
28973esac
28974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28975$as_echo "$ac_try_echo"; } >&5
28976  (eval "$ac_compile") 2>&5
28977  ac_status=$?
28978  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28979  test $ac_status = 0; }; then :
28980  for ac_file in conftest.o conftest.obj conftest.*; do
28981  test -f "$ac_file" || continue;
28982  case $ac_file in
28983    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
28984    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
28985       break;;
28986  esac
28987done
28988else
28989  $as_echo "$as_me: failed program was:" >&5
28990sed 's/^/| /' conftest.$ac_ext >&5
28991
28992{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28994as_fn_error $? "cannot compute suffix of object files: cannot compile
28995See \`config.log' for more details" "$LINENO" 5; }
28996fi
28997rm -f conftest.$ac_cv_objext conftest.$ac_ext
28998fi
28999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
29000$as_echo "$ac_cv_objext" >&6; }
29001OBJEXT=$ac_cv_objext
29002ac_objext=$OBJEXT
29003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
29004$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
29005if ${ac_cv_c_compiler_gnu+:} false; then :
29006  $as_echo_n "(cached) " >&6
29007else
29008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29009/* end confdefs.h.  */
29010
29011int
29012main ()
29013{
29014#ifndef __GNUC__
29015       choke me
29016#endif
29017
29018  ;
29019  return 0;
29020}
29021_ACEOF
29022if ac_fn_c_try_compile "$LINENO"; then :
29023  ac_compiler_gnu=yes
29024else
29025  ac_compiler_gnu=no
29026fi
29027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29028ac_cv_c_compiler_gnu=$ac_compiler_gnu
29029
29030fi
29031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
29032$as_echo "$ac_cv_c_compiler_gnu" >&6; }
29033if test $ac_compiler_gnu = yes; then
29034  GCC=yes
29035else
29036  GCC=
29037fi
29038ac_test_CFLAGS=${CFLAGS+set}
29039ac_save_CFLAGS=$CFLAGS
29040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
29041$as_echo_n "checking whether $CC accepts -g... " >&6; }
29042if ${ac_cv_prog_cc_g+:} false; then :
29043  $as_echo_n "(cached) " >&6
29044else
29045  ac_save_c_werror_flag=$ac_c_werror_flag
29046   ac_c_werror_flag=yes
29047   ac_cv_prog_cc_g=no
29048   CFLAGS="-g"
29049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050/* end confdefs.h.  */
29051
29052int
29053main ()
29054{
29055
29056  ;
29057  return 0;
29058}
29059_ACEOF
29060if ac_fn_c_try_compile "$LINENO"; then :
29061  ac_cv_prog_cc_g=yes
29062else
29063  CFLAGS=""
29064      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29065/* end confdefs.h.  */
29066
29067int
29068main ()
29069{
29070
29071  ;
29072  return 0;
29073}
29074_ACEOF
29075if ac_fn_c_try_compile "$LINENO"; then :
29076
29077else
29078  ac_c_werror_flag=$ac_save_c_werror_flag
29079	 CFLAGS="-g"
29080	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29081/* end confdefs.h.  */
29082
29083int
29084main ()
29085{
29086
29087  ;
29088  return 0;
29089}
29090_ACEOF
29091if ac_fn_c_try_compile "$LINENO"; then :
29092  ac_cv_prog_cc_g=yes
29093fi
29094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29095fi
29096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29097fi
29098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29099   ac_c_werror_flag=$ac_save_c_werror_flag
29100fi
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
29102$as_echo "$ac_cv_prog_cc_g" >&6; }
29103if test "$ac_test_CFLAGS" = set; then
29104  CFLAGS=$ac_save_CFLAGS
29105elif test $ac_cv_prog_cc_g = yes; then
29106  if test "$GCC" = yes; then
29107    CFLAGS="-g -O2"
29108  else
29109    CFLAGS="-g"
29110  fi
29111else
29112  if test "$GCC" = yes; then
29113    CFLAGS="-O2"
29114  else
29115    CFLAGS=
29116  fi
29117fi
29118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
29119$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
29120if ${ac_cv_prog_cc_c89+:} false; then :
29121  $as_echo_n "(cached) " >&6
29122else
29123  ac_cv_prog_cc_c89=no
29124ac_save_CC=$CC
29125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29126/* end confdefs.h.  */
29127#include <stdarg.h>
29128#include <stdio.h>
29129struct stat;
29130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
29131struct buf { int x; };
29132FILE * (*rcsopen) (struct buf *, struct stat *, int);
29133static char *e (p, i)
29134     char **p;
29135     int i;
29136{
29137  return p[i];
29138}
29139static char *f (char * (*g) (char **, int), char **p, ...)
29140{
29141  char *s;
29142  va_list v;
29143  va_start (v,p);
29144  s = g (p, va_arg (v,int));
29145  va_end (v);
29146  return s;
29147}
29148
29149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
29150   function prototypes and stuff, but not '\xHH' hex character constants.
29151   These don't provoke an error unfortunately, instead are silently treated
29152   as 'x'.  The following induces an error, until -std is added to get
29153   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
29154   array size at least.  It's necessary to write '\x00'==0 to get something
29155   that's true only with -std.  */
29156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
29157
29158/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
29159   inside strings and character constants.  */
29160#define FOO(x) 'x'
29161int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
29162
29163int test (int i, double x);
29164struct s1 {int (*f) (int a);};
29165struct s2 {int (*f) (double a);};
29166int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
29167int argc;
29168char **argv;
29169int
29170main ()
29171{
29172return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
29173  ;
29174  return 0;
29175}
29176_ACEOF
29177for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
29178	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
29179do
29180  CC="$ac_save_CC $ac_arg"
29181  if ac_fn_c_try_compile "$LINENO"; then :
29182  ac_cv_prog_cc_c89=$ac_arg
29183fi
29184rm -f core conftest.err conftest.$ac_objext
29185  test "x$ac_cv_prog_cc_c89" != "xno" && break
29186done
29187rm -f conftest.$ac_ext
29188CC=$ac_save_CC
29189
29190fi
29191# AC_CACHE_VAL
29192case "x$ac_cv_prog_cc_c89" in
29193  x)
29194    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
29195$as_echo "none needed" >&6; } ;;
29196  xno)
29197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
29198$as_echo "unsupported" >&6; } ;;
29199  *)
29200    CC="$CC $ac_cv_prog_cc_c89"
29201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
29202$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
29203esac
29204if test "x$ac_cv_prog_cc_c89" != xno; then :
29205
29206fi
29207
29208ac_ext=cpp
29209ac_cpp='$CXXCPP $CPPFLAGS'
29210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29213
29214
29215
29216  COMPILER_NAME=C++
29217  SEARCH_LIST="$TOOLCHAIN_CXX_BINARY"
29218
29219  if test "x$CXX" != x; then
29220    # User has supplied compiler name already, always let that override.
29221    { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5
29222$as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;}
29223    if test "x`basename $CXX`" = "x$CXX"; then
29224      # A command without a complete path is provided, search $PATH.
29225
29226      for ac_prog in $CXX
29227do
29228  # Extract the first word of "$ac_prog", so it can be a program name with args.
29229set dummy $ac_prog; ac_word=$2
29230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29231$as_echo_n "checking for $ac_word... " >&6; }
29232if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
29233  $as_echo_n "(cached) " >&6
29234else
29235  case $POTENTIAL_CXX in
29236  [\\/]* | ?:[\\/]*)
29237  ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
29238  ;;
29239  *)
29240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29241for as_dir in $PATH
29242do
29243  IFS=$as_save_IFS
29244  test -z "$as_dir" && as_dir=.
29245    for ac_exec_ext in '' $ac_executable_extensions; do
29246  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29247    ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
29248    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29249    break 2
29250  fi
29251done
29252  done
29253IFS=$as_save_IFS
29254
29255  ;;
29256esac
29257fi
29258POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
29259if test -n "$POTENTIAL_CXX"; then
29260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
29261$as_echo "$POTENTIAL_CXX" >&6; }
29262else
29263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29264$as_echo "no" >&6; }
29265fi
29266
29267
29268  test -n "$POTENTIAL_CXX" && break
29269done
29270
29271      if test "x$POTENTIAL_CXX" != x; then
29272        CXX=$POTENTIAL_CXX
29273      else
29274        as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5
29275      fi
29276    else
29277      # Otherwise it might already be a complete path
29278      if test ! -x "$CXX"; then
29279        as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5
29280      fi
29281    fi
29282  else
29283    # No user supplied value. Locate compiler ourselves.
29284
29285    # If we are cross compiling, assume cross compilation tools follows the
29286    # cross compilation standard where they are prefixed with the autoconf
29287    # standard name for the target. For example the binary
29288    # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10.
29289    # If we are not cross compiling, then the default compiler name will be
29290    # used.
29291
29292    CXX=
29293    # If TOOLCHAIN_PATH is set, check for all compiler names in there first
29294    # before checking the rest of the PATH.
29295    # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION
29296    # step, this should not be necessary.
29297    if test -n "$TOOLCHAIN_PATH"; then
29298      PATH_save="$PATH"
29299      PATH="$TOOLCHAIN_PATH"
29300      for ac_prog in $SEARCH_LIST
29301do
29302  # Extract the first word of "$ac_prog", so it can be a program name with args.
29303set dummy $ac_prog; ac_word=$2
29304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29305$as_echo_n "checking for $ac_word... " >&6; }
29306if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then :
29307  $as_echo_n "(cached) " >&6
29308else
29309  case $TOOLCHAIN_PATH_CXX in
29310  [\\/]* | ?:[\\/]*)
29311  ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path.
29312  ;;
29313  *)
29314  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29315for as_dir in $PATH
29316do
29317  IFS=$as_save_IFS
29318  test -z "$as_dir" && as_dir=.
29319    for ac_exec_ext in '' $ac_executable_extensions; do
29320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29321    ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext"
29322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29323    break 2
29324  fi
29325done
29326  done
29327IFS=$as_save_IFS
29328
29329  ;;
29330esac
29331fi
29332TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX
29333if test -n "$TOOLCHAIN_PATH_CXX"; then
29334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5
29335$as_echo "$TOOLCHAIN_PATH_CXX" >&6; }
29336else
29337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29338$as_echo "no" >&6; }
29339fi
29340
29341
29342  test -n "$TOOLCHAIN_PATH_CXX" && break
29343done
29344
29345      CXX=$TOOLCHAIN_PATH_CXX
29346      PATH="$PATH_save"
29347    fi
29348
29349    # AC_PATH_PROGS can't be run multiple times with the same variable,
29350    # so create a new name for this run.
29351    if test "x$CXX" = x; then
29352      for ac_prog in $SEARCH_LIST
29353do
29354  # Extract the first word of "$ac_prog", so it can be a program name with args.
29355set dummy $ac_prog; ac_word=$2
29356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29357$as_echo_n "checking for $ac_word... " >&6; }
29358if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
29359  $as_echo_n "(cached) " >&6
29360else
29361  case $POTENTIAL_CXX in
29362  [\\/]* | ?:[\\/]*)
29363  ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
29364  ;;
29365  *)
29366  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29367for as_dir in $PATH
29368do
29369  IFS=$as_save_IFS
29370  test -z "$as_dir" && as_dir=.
29371    for ac_exec_ext in '' $ac_executable_extensions; do
29372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29373    ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
29374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29375    break 2
29376  fi
29377done
29378  done
29379IFS=$as_save_IFS
29380
29381  ;;
29382esac
29383fi
29384POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX
29385if test -n "$POTENTIAL_CXX"; then
29386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5
29387$as_echo "$POTENTIAL_CXX" >&6; }
29388else
29389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29390$as_echo "no" >&6; }
29391fi
29392
29393
29394  test -n "$POTENTIAL_CXX" && break
29395done
29396
29397      CXX=$POTENTIAL_CXX
29398    fi
29399
29400    if test "x$CXX" = x; then
29401
29402  # Print a helpful message on how to acquire the necessary build dependency.
29403  # devkit is the help tag: freetype, cups, pulse, alsa etc
29404  MISSING_DEPENDENCY=devkit
29405
29406  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29407    cygwin_help $MISSING_DEPENDENCY
29408  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29409    msys_help $MISSING_DEPENDENCY
29410  else
29411    PKGHANDLER_COMMAND=
29412
29413    case $PKGHANDLER in
29414      apt-get)
29415        apt_help     $MISSING_DEPENDENCY ;;
29416      yum)
29417        yum_help     $MISSING_DEPENDENCY ;;
29418      port)
29419        port_help    $MISSING_DEPENDENCY ;;
29420      pkgutil)
29421        pkgutil_help $MISSING_DEPENDENCY ;;
29422      pkgadd)
29423        pkgadd_help  $MISSING_DEPENDENCY ;;
29424    esac
29425
29426    if test "x$PKGHANDLER_COMMAND" != x; then
29427      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
29428    fi
29429  fi
29430
29431      as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5
29432    fi
29433  fi
29434
29435  # Now we have a compiler binary in CXX. Make sure it's okay.
29436
29437  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29438
29439  # First separate the path from the arguments. This will split at the first
29440  # space.
29441  complete="$CXX"
29442  path="${complete%% *}"
29443  tmp="$complete EOL"
29444  arguments="${tmp#* }"
29445
29446  # Input might be given as Windows format, start by converting to
29447  # unix format.
29448  new_path=`$CYGPATH -u "$path"`
29449
29450  # Now try to locate executable using which
29451  new_path=`$WHICH "$new_path" 2> /dev/null`
29452  # bat and cmd files are not always considered executable in cygwin causing which
29453  # to not find them
29454  if test "x$new_path" = x \
29455      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29456      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29457    new_path=`$CYGPATH -u "$path"`
29458  fi
29459  if test "x$new_path" = x; then
29460    # Oops. Which didn't find the executable.
29461    # The splitting of arguments from the executable at a space might have been incorrect,
29462    # since paths with space are more likely in Windows. Give it another try with the whole
29463    # argument.
29464    path="$complete"
29465    arguments="EOL"
29466    new_path=`$CYGPATH -u "$path"`
29467    new_path=`$WHICH "$new_path" 2> /dev/null`
29468    # bat and cmd files are not always considered executable in cygwin causing which
29469    # to not find them
29470    if test "x$new_path" = x \
29471        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29472        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29473      new_path=`$CYGPATH -u "$path"`
29474    fi
29475    if test "x$new_path" = x; then
29476      # It's still not found. Now this is an unrecoverable error.
29477      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29478$as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29479      has_space=`$ECHO "$complete" | $GREP " "`
29480      if test "x$has_space" != x; then
29481        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29482$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29483      fi
29484      as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29485    fi
29486  fi
29487
29488  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
29489  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
29490  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
29491  # "foo.exe" is OK but "foo" is an error.
29492  #
29493  # This test is therefore slightly more accurate than "test -f" to check for file presence.
29494  # It is also a way to make sure we got the proper file name for the real test later on.
29495  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
29496  if test "x$test_shortpath" = x; then
29497    # Short path failed, file does not exist as specified.
29498    # Try adding .exe or .cmd
29499    if test -f "${new_path}.exe"; then
29500      input_to_shortpath="${new_path}.exe"
29501    elif test -f "${new_path}.cmd"; then
29502      input_to_shortpath="${new_path}.cmd"
29503    else
29504      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5
29505$as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;}
29506      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
29507$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
29508      as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29509    fi
29510  else
29511    input_to_shortpath="$new_path"
29512  fi
29513
29514  # Call helper function which possibly converts this using DOS-style short mode.
29515  # If so, the updated path is stored in $new_path.
29516  new_path="$input_to_shortpath"
29517
29518  input_path="$input_to_shortpath"
29519  # Check if we need to convert this using DOS-style short mode. If the path
29520  # contains just simple characters, use it. Otherwise (spaces, weird characters),
29521  # take no chances and rewrite it.
29522  # Note: m4 eats our [], so we need to use [ and ] instead.
29523  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
29524  if test "x$has_forbidden_chars" != x; then
29525    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29526    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
29527    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
29528    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
29529      # Going to short mode and back again did indeed matter. Since short mode is
29530      # case insensitive, let's make it lowercase to improve readability.
29531      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29532      # Now convert it back to Unix-stile (cygpath)
29533      input_path=`$CYGPATH -u "$shortmode_path"`
29534      new_path="$input_path"
29535    fi
29536  fi
29537
29538  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
29539  if test "x$test_cygdrive_prefix" = x; then
29540    # As a simple fix, exclude /usr/bin since it's not a real path.
29541    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
29542      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
29543      # a path prefixed by /cygdrive for fixpath to work.
29544      new_path="$CYGWIN_ROOT_PATH$input_path"
29545    fi
29546  fi
29547
29548  # remove trailing .exe if any
29549  new_path="${new_path/%.exe/}"
29550
29551  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29552
29553  # First separate the path from the arguments. This will split at the first
29554  # space.
29555  complete="$CXX"
29556  path="${complete%% *}"
29557  tmp="$complete EOL"
29558  arguments="${tmp#* }"
29559
29560  # Input might be given as Windows format, start by converting to
29561  # unix format.
29562  new_path="$path"
29563
29564  windows_path="$new_path"
29565  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29566    unix_path=`$CYGPATH -u "$windows_path"`
29567    new_path="$unix_path"
29568  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29569    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29570    new_path="$unix_path"
29571  fi
29572
29573
29574  # Now try to locate executable using which
29575  new_path=`$WHICH "$new_path" 2> /dev/null`
29576
29577  if test "x$new_path" = x; then
29578    # Oops. Which didn't find the executable.
29579    # The splitting of arguments from the executable at a space might have been incorrect,
29580    # since paths with space are more likely in Windows. Give it another try with the whole
29581    # argument.
29582    path="$complete"
29583    arguments="EOL"
29584    new_path="$path"
29585
29586  windows_path="$new_path"
29587  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29588    unix_path=`$CYGPATH -u "$windows_path"`
29589    new_path="$unix_path"
29590  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29591    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29592    new_path="$unix_path"
29593  fi
29594
29595
29596    new_path=`$WHICH "$new_path" 2> /dev/null`
29597
29598    if test "x$new_path" = x; then
29599      # It's still not found. Now this is an unrecoverable error.
29600      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29601$as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29602      has_space=`$ECHO "$complete" | $GREP " "`
29603      if test "x$has_space" != x; then
29604        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29605$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29606      fi
29607      as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29608    fi
29609  fi
29610
29611  # Now new_path has a complete unix path to the binary
29612  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
29613    # Keep paths in /bin as-is, but remove trailing .exe if any
29614    new_path="${new_path/%.exe/}"
29615    # Do not save /bin paths to all_fixpath_prefixes!
29616  else
29617    # Not in mixed or Windows style, start by that.
29618    new_path=`cmd //c echo $new_path`
29619
29620  input_path="$new_path"
29621  # Check if we need to convert this using DOS-style short mode. If the path
29622  # contains just simple characters, use it. Otherwise (spaces, weird characters),
29623  # take no chances and rewrite it.
29624  # Note: m4 eats our [], so we need to use [ and ] instead.
29625  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
29626  if test "x$has_forbidden_chars" != x; then
29627    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29628    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29629  fi
29630
29631    # Output is in $new_path
29632
29633  windows_path="$new_path"
29634  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29635    unix_path=`$CYGPATH -u "$windows_path"`
29636    new_path="$unix_path"
29637  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29638    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
29639    new_path="$unix_path"
29640  fi
29641
29642    # remove trailing .exe if any
29643    new_path="${new_path/%.exe/}"
29644
29645    # Save the first 10 bytes of this path to the storage, so fixpath can work.
29646    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
29647  fi
29648
29649  else
29650    # We're on a posix platform. Hooray! :)
29651    # First separate the path from the arguments. This will split at the first
29652    # space.
29653    complete="$CXX"
29654    path="${complete%% *}"
29655    tmp="$complete EOL"
29656    arguments="${tmp#* }"
29657
29658    # Cannot rely on the command "which" here since it doesn't always work.
29659    is_absolute_path=`$ECHO "$path" | $GREP ^/`
29660    if test -z "$is_absolute_path"; then
29661      # Path to executable is not absolute. Find it.
29662      IFS_save="$IFS"
29663      IFS=:
29664      for p in $PATH; do
29665        if test -f "$p/$path" && test -x "$p/$path"; then
29666          new_path="$p/$path"
29667          break
29668        fi
29669      done
29670      IFS="$IFS_save"
29671    else
29672      # This is an absolute path, we can use it without further modifications.
29673      new_path="$path"
29674    fi
29675
29676    if test "x$new_path" = x; then
29677      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
29678$as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
29679      has_space=`$ECHO "$complete" | $GREP " "`
29680      if test "x$has_space" != x; then
29681        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
29682$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
29683      fi
29684      as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
29685    fi
29686  fi
29687
29688  # Now join together the path and the arguments once again
29689  if test "x$arguments" != xEOL; then
29690    new_complete="$new_path ${arguments% *}"
29691  else
29692    new_complete="$new_path"
29693  fi
29694
29695  if test "x$complete" != "x$new_complete"; then
29696    CXX="$new_complete"
29697    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5
29698$as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;}
29699  fi
29700
29701  TEST_COMPILER="$CXX"
29702  # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links
29703  # to 'xlc' but it is crucial that we invoke the compiler with the right name!
29704  if test "x$OPENJDK_BUILD_OS" != xaix; then
29705    # FIXME: This test should not be needed anymore; we don't do that for any platform.
29706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5
29707$as_echo_n "checking resolved symbolic links for CXX... " >&6; }
29708
29709  if test "x$OPENJDK_BUILD_OS" != xwindows; then
29710    # Follow a chain of symbolic links. Use readlink
29711    # where it exists, else fall back to horribly
29712    # complicated shell code.
29713    if test "x$READLINK_TESTED" != yes; then
29714      # On MacOSX there is a readlink tool with a different
29715      # purpose than the GNU readlink tool. Check the found readlink.
29716      ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
29717      if test "x$ISGNU" = x; then
29718        # A readlink that we do not know how to use.
29719        # Are there other non-GNU readlinks out there?
29720        READLINK_TESTED=yes
29721        READLINK=
29722      fi
29723    fi
29724
29725    if test "x$READLINK" != x; then
29726      TEST_COMPILER=`$READLINK -f $TEST_COMPILER`
29727    else
29728      # Save the current directory for restoring afterwards
29729      STARTDIR=$PWD
29730      COUNTER=0
29731      sym_link_dir=`$DIRNAME $TEST_COMPILER`
29732      sym_link_file=`$BASENAME $TEST_COMPILER`
29733      cd $sym_link_dir
29734      # Use -P flag to resolve symlinks in directories.
29735      cd `$THEPWDCMD -P`
29736      sym_link_dir=`$THEPWDCMD -P`
29737      # Resolve file symlinks
29738      while test $COUNTER -lt 20; do
29739        ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
29740        if test "x$ISLINK" == x; then
29741          # This is not a symbolic link! We are done!
29742          break
29743        fi
29744        # Again resolve directory symlinks since the target of the just found
29745        # link could be in a different directory
29746        cd `$DIRNAME $ISLINK`
29747        sym_link_dir=`$THEPWDCMD -P`
29748        sym_link_file=`$BASENAME $ISLINK`
29749        let COUNTER=COUNTER+1
29750      done
29751      cd $STARTDIR
29752      TEST_COMPILER=$sym_link_dir/$sym_link_file
29753    fi
29754  fi
29755
29756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5
29757$as_echo "$TEST_COMPILER" >&6; }
29758  fi
29759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5
29760$as_echo_n "checking if CXX is disguised ccache... " >&6; }
29761
29762  COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"`
29763  if test "x$COMPILER_BASENAME" = "xccache"; then
29764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
29765$as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
29766    # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
29767    # We want to control ccache invocation ourselves, so ignore this cc and try
29768    # searching again.
29769
29770    # Remove the path to the fake ccache cc from the PATH
29771    RETRY_COMPILER_SAVED_PATH="$PATH"
29772    COMPILER_DIRNAME=`$DIRNAME $CXX`
29773    PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
29774
29775    # Try again looking for our compiler
29776    if test -n "$ac_tool_prefix"; then
29777  for ac_prog in $TOOLCHAIN_CXX_BINARY
29778  do
29779    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29782$as_echo_n "checking for $ac_word... " >&6; }
29783if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
29784  $as_echo_n "(cached) " >&6
29785else
29786  if test -n "$PROPER_COMPILER_CXX"; then
29787  ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
29788else
29789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29790for as_dir in $PATH
29791do
29792  IFS=$as_save_IFS
29793  test -z "$as_dir" && as_dir=.
29794    for ac_exec_ext in '' $ac_executable_extensions; do
29795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29796    ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
29797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29798    break 2
29799  fi
29800done
29801  done
29802IFS=$as_save_IFS
29803
29804fi
29805fi
29806PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX
29807if test -n "$PROPER_COMPILER_CXX"; then
29808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
29809$as_echo "$PROPER_COMPILER_CXX" >&6; }
29810else
29811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29812$as_echo "no" >&6; }
29813fi
29814
29815
29816    test -n "$PROPER_COMPILER_CXX" && break
29817  done
29818fi
29819if test -z "$PROPER_COMPILER_CXX"; then
29820  ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
29821  for ac_prog in $TOOLCHAIN_CXX_BINARY
29822do
29823  # Extract the first word of "$ac_prog", so it can be a program name with args.
29824set dummy $ac_prog; ac_word=$2
29825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29826$as_echo_n "checking for $ac_word... " >&6; }
29827if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
29828  $as_echo_n "(cached) " >&6
29829else
29830  if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
29831  ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
29832else
29833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29834for as_dir in $PATH
29835do
29836  IFS=$as_save_IFS
29837  test -z "$as_dir" && as_dir=.
29838    for ac_exec_ext in '' $ac_executable_extensions; do
29839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29840    ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
29841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29842    break 2
29843  fi
29844done
29845  done
29846IFS=$as_save_IFS
29847
29848fi
29849fi
29850ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX
29851if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
29852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5
29853$as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; }
29854else
29855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29856$as_echo "no" >&6; }
29857fi
29858
29859
29860  test -n "$ac_ct_PROPER_COMPILER_CXX" && break
29861done
29862
29863  if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then
29864    PROPER_COMPILER_CXX=""
29865  else
29866    case $cross_compiling:$ac_tool_warned in
29867yes:)
29868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29870ac_tool_warned=yes ;;
29871esac
29872    PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX
29873  fi
29874fi
29875
29876
29877  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
29878
29879  # First separate the path from the arguments. This will split at the first
29880  # space.
29881  complete="$PROPER_COMPILER_CXX"
29882  path="${complete%% *}"
29883  tmp="$complete EOL"
29884  arguments="${tmp#* }"
29885
29886  # Input might be given as Windows format, start by converting to
29887  # unix format.
29888  new_path=`$CYGPATH -u "$path"`
29889
29890  # Now try to locate executable using which
29891  new_path=`$WHICH "$new_path" 2> /dev/null`
29892  # bat and cmd files are not always considered executable in cygwin causing which
29893  # to not find them
29894  if test "x$new_path" = x \
29895      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29896      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29897    new_path=`$CYGPATH -u "$path"`
29898  fi
29899  if test "x$new_path" = x; then
29900    # Oops. Which didn't find the executable.
29901    # The splitting of arguments from the executable at a space might have been incorrect,
29902    # since paths with space are more likely in Windows. Give it another try with the whole
29903    # argument.
29904    path="$complete"
29905    arguments="EOL"
29906    new_path=`$CYGPATH -u "$path"`
29907    new_path=`$WHICH "$new_path" 2> /dev/null`
29908    # bat and cmd files are not always considered executable in cygwin causing which
29909    # to not find them
29910    if test "x$new_path" = x \
29911        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
29912        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
29913      new_path=`$CYGPATH -u "$path"`
29914    fi
29915    if test "x$new_path" = x; then
29916      # It's still not found. Now this is an unrecoverable error.
29917      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
29918$as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
29919      has_space=`$ECHO "$complete" | $GREP " "`
29920      if test "x$has_space" != x; then
29921        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
29922$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
29923      fi
29924      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
29925    fi
29926  fi
29927
29928  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
29929  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
29930  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
29931  # "foo.exe" is OK but "foo" is an error.
29932  #
29933  # This test is therefore slightly more accurate than "test -f" to check for file presence.
29934  # It is also a way to make sure we got the proper file name for the real test later on.
29935  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
29936  if test "x$test_shortpath" = x; then
29937    # Short path failed, file does not exist as specified.
29938    # Try adding .exe or .cmd
29939    if test -f "${new_path}.exe"; then
29940      input_to_shortpath="${new_path}.exe"
29941    elif test -f "${new_path}.cmd"; then
29942      input_to_shortpath="${new_path}.cmd"
29943    else
29944      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5
29945$as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;}
29946      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
29947$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
29948      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
29949    fi
29950  else
29951    input_to_shortpath="$new_path"
29952  fi
29953
29954  # Call helper function which possibly converts this using DOS-style short mode.
29955  # If so, the updated path is stored in $new_path.
29956  new_path="$input_to_shortpath"
29957
29958  input_path="$input_to_shortpath"
29959  # Check if we need to convert this using DOS-style short mode. If the path
29960  # contains just simple characters, use it. Otherwise (spaces, weird characters),
29961  # take no chances and rewrite it.
29962  # Note: m4 eats our [], so we need to use [ and ] instead.
29963  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
29964  if test "x$has_forbidden_chars" != x; then
29965    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
29966    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
29967    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
29968    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
29969      # Going to short mode and back again did indeed matter. Since short mode is
29970      # case insensitive, let's make it lowercase to improve readability.
29971      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
29972      # Now convert it back to Unix-stile (cygpath)
29973      input_path=`$CYGPATH -u "$shortmode_path"`
29974      new_path="$input_path"
29975    fi
29976  fi
29977
29978  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
29979  if test "x$test_cygdrive_prefix" = x; then
29980    # As a simple fix, exclude /usr/bin since it's not a real path.
29981    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
29982      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
29983      # a path prefixed by /cygdrive for fixpath to work.
29984      new_path="$CYGWIN_ROOT_PATH$input_path"
29985    fi
29986  fi
29987
29988  # remove trailing .exe if any
29989  new_path="${new_path/%.exe/}"
29990
29991  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
29992
29993  # First separate the path from the arguments. This will split at the first
29994  # space.
29995  complete="$PROPER_COMPILER_CXX"
29996  path="${complete%% *}"
29997  tmp="$complete EOL"
29998  arguments="${tmp#* }"
29999
30000  # Input might be given as Windows format, start by converting to
30001  # unix format.
30002  new_path="$path"
30003
30004  windows_path="$new_path"
30005  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30006    unix_path=`$CYGPATH -u "$windows_path"`
30007    new_path="$unix_path"
30008  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30009    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30010    new_path="$unix_path"
30011  fi
30012
30013
30014  # Now try to locate executable using which
30015  new_path=`$WHICH "$new_path" 2> /dev/null`
30016
30017  if test "x$new_path" = x; then
30018    # Oops. Which didn't find the executable.
30019    # The splitting of arguments from the executable at a space might have been incorrect,
30020    # since paths with space are more likely in Windows. Give it another try with the whole
30021    # argument.
30022    path="$complete"
30023    arguments="EOL"
30024    new_path="$path"
30025
30026  windows_path="$new_path"
30027  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30028    unix_path=`$CYGPATH -u "$windows_path"`
30029    new_path="$unix_path"
30030  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30031    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30032    new_path="$unix_path"
30033  fi
30034
30035
30036    new_path=`$WHICH "$new_path" 2> /dev/null`
30037
30038    if test "x$new_path" = x; then
30039      # It's still not found. Now this is an unrecoverable error.
30040      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
30041$as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
30042      has_space=`$ECHO "$complete" | $GREP " "`
30043      if test "x$has_space" != x; then
30044        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30045$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30046      fi
30047      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30048    fi
30049  fi
30050
30051  # Now new_path has a complete unix path to the binary
30052  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
30053    # Keep paths in /bin as-is, but remove trailing .exe if any
30054    new_path="${new_path/%.exe/}"
30055    # Do not save /bin paths to all_fixpath_prefixes!
30056  else
30057    # Not in mixed or Windows style, start by that.
30058    new_path=`cmd //c echo $new_path`
30059
30060  input_path="$new_path"
30061  # Check if we need to convert this using DOS-style short mode. If the path
30062  # contains just simple characters, use it. Otherwise (spaces, weird characters),
30063  # take no chances and rewrite it.
30064  # Note: m4 eats our [], so we need to use [ and ] instead.
30065  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
30066  if test "x$has_forbidden_chars" != x; then
30067    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30068    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30069  fi
30070
30071    # Output is in $new_path
30072
30073  windows_path="$new_path"
30074  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30075    unix_path=`$CYGPATH -u "$windows_path"`
30076    new_path="$unix_path"
30077  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30078    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30079    new_path="$unix_path"
30080  fi
30081
30082    # remove trailing .exe if any
30083    new_path="${new_path/%.exe/}"
30084
30085    # Save the first 10 bytes of this path to the storage, so fixpath can work.
30086    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
30087  fi
30088
30089  else
30090    # We're on a posix platform. Hooray! :)
30091    # First separate the path from the arguments. This will split at the first
30092    # space.
30093    complete="$PROPER_COMPILER_CXX"
30094    path="${complete%% *}"
30095    tmp="$complete EOL"
30096    arguments="${tmp#* }"
30097
30098    # Cannot rely on the command "which" here since it doesn't always work.
30099    is_absolute_path=`$ECHO "$path" | $GREP ^/`
30100    if test -z "$is_absolute_path"; then
30101      # Path to executable is not absolute. Find it.
30102      IFS_save="$IFS"
30103      IFS=:
30104      for p in $PATH; do
30105        if test -f "$p/$path" && test -x "$p/$path"; then
30106          new_path="$p/$path"
30107          break
30108        fi
30109      done
30110      IFS="$IFS_save"
30111    else
30112      # This is an absolute path, we can use it without further modifications.
30113      new_path="$path"
30114    fi
30115
30116    if test "x$new_path" = x; then
30117      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
30118$as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
30119      has_space=`$ECHO "$complete" | $GREP " "`
30120      if test "x$has_space" != x; then
30121        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
30122$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
30123      fi
30124      as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
30125    fi
30126  fi
30127
30128  # Now join together the path and the arguments once again
30129  if test "x$arguments" != xEOL; then
30130    new_complete="$new_path ${arguments% *}"
30131  else
30132    new_complete="$new_path"
30133  fi
30134
30135  if test "x$complete" != "x$new_complete"; then
30136    PROPER_COMPILER_CXX="$new_complete"
30137    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5
30138$as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;}
30139  fi
30140
30141    PATH="$RETRY_COMPILER_SAVED_PATH"
30142
30143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5
30144$as_echo_n "checking for resolved symbolic links for CXX... " >&6; }
30145
30146  if test "x$OPENJDK_BUILD_OS" != xwindows; then
30147    # Follow a chain of symbolic links. Use readlink
30148    # where it exists, else fall back to horribly
30149    # complicated shell code.
30150    if test "x$READLINK_TESTED" != yes; then
30151      # On MacOSX there is a readlink tool with a different
30152      # purpose than the GNU readlink tool. Check the found readlink.
30153      ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
30154      if test "x$ISGNU" = x; then
30155        # A readlink that we do not know how to use.
30156        # Are there other non-GNU readlinks out there?
30157        READLINK_TESTED=yes
30158        READLINK=
30159      fi
30160    fi
30161
30162    if test "x$READLINK" != x; then
30163      PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX`
30164    else
30165      # Save the current directory for restoring afterwards
30166      STARTDIR=$PWD
30167      COUNTER=0
30168      sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX`
30169      sym_link_file=`$BASENAME $PROPER_COMPILER_CXX`
30170      cd $sym_link_dir
30171      # Use -P flag to resolve symlinks in directories.
30172      cd `$THEPWDCMD -P`
30173      sym_link_dir=`$THEPWDCMD -P`
30174      # Resolve file symlinks
30175      while test $COUNTER -lt 20; do
30176        ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
30177        if test "x$ISLINK" == x; then
30178          # This is not a symbolic link! We are done!
30179          break
30180        fi
30181        # Again resolve directory symlinks since the target of the just found
30182        # link could be in a different directory
30183        cd `$DIRNAME $ISLINK`
30184        sym_link_dir=`$THEPWDCMD -P`
30185        sym_link_file=`$BASENAME $ISLINK`
30186        let COUNTER=COUNTER+1
30187      done
30188      cd $STARTDIR
30189      PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file
30190    fi
30191  fi
30192
30193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
30194$as_echo "$PROPER_COMPILER_CXX" >&6; }
30195    CXX="$PROPER_COMPILER_CXX"
30196  else
30197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5
30198$as_echo "no, keeping CXX" >&6; }
30199  fi
30200
30201
30202  COMPILER=$CXX
30203  COMPILER_NAME=$COMPILER_NAME
30204
30205  if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
30206    # cc -V output typically looks like
30207    #     cc: Sun C 5.12 Linux_i386 2011/11/16
30208    COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1`
30209    # Check that this is likely to be the Solaris Studio cc.
30210    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null
30211    if test $? -ne 0; then
30212      ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1`
30213      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
30214$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
30215      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5
30216$as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
30217      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5
30218$as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;}
30219      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30220    fi
30221    # Remove usage instructions (if present), and
30222    # collapse compiler output into a single line
30223    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
30224        $SED -e 's/ *[Uu]sage:.*//'`
30225    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
30226        $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"`
30227  elif test  "x$TOOLCHAIN_TYPE" = xxlc; then
30228    # xlc -qversion output typically looks like
30229    #     IBM XL C/C++ for AIX, V11.1 (5724-X13)
30230    #     Version: 11.01.0000.0015
30231    COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1`
30232    # Check that this is likely to be the IBM XL C compiler.
30233    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null
30234    if test $? -ne 0; then
30235      ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1`
30236      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
30237$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
30238      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5
30239$as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
30240      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5
30241$as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;}
30242      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30243    fi
30244    # Collapse compiler output into a single line
30245    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
30246    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
30247        $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'`
30248  elif test  "x$TOOLCHAIN_TYPE" = xmicrosoft; then
30249    # There is no specific version flag, but all output starts with a version string.
30250    # First line typically looks something like:
30251    # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
30252    COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'`
30253    # Check that this is likely to be Microsoft CL.EXE.
30254    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null
30255    if test $? -ne 0; then
30256      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
30257$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
30258      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5
30259$as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
30260      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30261    fi
30262    # Collapse compiler output into a single line
30263    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
30264    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
30265        $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'`
30266  elif test  "x$TOOLCHAIN_TYPE" = xgcc; then
30267    # gcc --version output typically looks like
30268    #     gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
30269    #     Copyright (C) 2013 Free Software Foundation, Inc.
30270    #     This is free software; see the source for copying conditions.  There is NO
30271    #     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30272    COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
30273    # Check that this is likely to be GCC.
30274    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null
30275    if test $? -ne 0; then
30276      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
30277$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
30278      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5
30279$as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;}
30280      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30281    fi
30282    # Remove Copyright and legalese from version string, and
30283    # collapse into a single line
30284    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \
30285        $SED -e 's/ *Copyright .*//'`
30286    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
30287        $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'`
30288  elif test  "x$TOOLCHAIN_TYPE" = xclang; then
30289    # clang --version output typically looks like
30290    #    Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
30291    #    clang version 3.3 (tags/RELEASE_33/final)
30292    # or
30293    #    Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
30294    #    Target: x86_64-pc-linux-gnu
30295    #    Thread model: posix
30296    COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1`
30297    # Check that this is likely to be clang
30298    $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null
30299    if test $? -ne 0; then
30300      { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5
30301$as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;}
30302      { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5
30303$as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;}
30304      as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5
30305    fi
30306    # Collapse compiler output into a single line
30307    COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT`
30308    COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \
30309        $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'`
30310  else
30311      as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5
30312  fi
30313  # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker)
30314  CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER"
30315  # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker)
30316  CXX_VERSION_STRING="$COMPILER_VERSION_STRING"
30317
30318  { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5
30319$as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;}
30320
30321
30322  # Now that we have resolved CXX ourself, let autoconf have its go at it
30323  ac_ext=cpp
30324ac_cpp='$CXXCPP $CPPFLAGS'
30325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30328if test -z "$CXX"; then
30329  if test -n "$CCC"; then
30330    CXX=$CCC
30331  else
30332    if test -n "$ac_tool_prefix"; then
30333  for ac_prog in $CXX
30334  do
30335    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30338$as_echo_n "checking for $ac_word... " >&6; }
30339if ${ac_cv_prog_CXX+:} false; then :
30340  $as_echo_n "(cached) " >&6
30341else
30342  if test -n "$CXX"; then
30343  ac_cv_prog_CXX="$CXX" # Let the user override the test.
30344else
30345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30346for as_dir in $PATH
30347do
30348  IFS=$as_save_IFS
30349  test -z "$as_dir" && as_dir=.
30350    for ac_exec_ext in '' $ac_executable_extensions; do
30351  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30352    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30353    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30354    break 2
30355  fi
30356done
30357  done
30358IFS=$as_save_IFS
30359
30360fi
30361fi
30362CXX=$ac_cv_prog_CXX
30363if test -n "$CXX"; then
30364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
30365$as_echo "$CXX" >&6; }
30366else
30367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368$as_echo "no" >&6; }
30369fi
30370
30371
30372    test -n "$CXX" && break
30373  done
30374fi
30375if test -z "$CXX"; then
30376  ac_ct_CXX=$CXX
30377  for ac_prog in $CXX
30378do
30379  # Extract the first word of "$ac_prog", so it can be a program name with args.
30380set dummy $ac_prog; ac_word=$2
30381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30382$as_echo_n "checking for $ac_word... " >&6; }
30383if ${ac_cv_prog_ac_ct_CXX+:} false; then :
30384  $as_echo_n "(cached) " >&6
30385else
30386  if test -n "$ac_ct_CXX"; then
30387  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30388else
30389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30390for as_dir in $PATH
30391do
30392  IFS=$as_save_IFS
30393  test -z "$as_dir" && as_dir=.
30394    for ac_exec_ext in '' $ac_executable_extensions; do
30395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30396    ac_cv_prog_ac_ct_CXX="$ac_prog"
30397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30398    break 2
30399  fi
30400done
30401  done
30402IFS=$as_save_IFS
30403
30404fi
30405fi
30406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30407if test -n "$ac_ct_CXX"; then
30408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
30409$as_echo "$ac_ct_CXX" >&6; }
30410else
30411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412$as_echo "no" >&6; }
30413fi
30414
30415
30416  test -n "$ac_ct_CXX" && break
30417done
30418
30419  if test "x$ac_ct_CXX" = x; then
30420    CXX="g++"
30421  else
30422    case $cross_compiling:$ac_tool_warned in
30423yes:)
30424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30426ac_tool_warned=yes ;;
30427esac
30428    CXX=$ac_ct_CXX
30429  fi
30430fi
30431
30432  fi
30433fi
30434# Provide some information about the compiler.
30435$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
30436set X $ac_compile
30437ac_compiler=$2
30438for ac_option in --version -v -V -qversion; do
30439  { { ac_try="$ac_compiler $ac_option >&5"
30440case "(($ac_try" in
30441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442  *) ac_try_echo=$ac_try;;
30443esac
30444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30445$as_echo "$ac_try_echo"; } >&5
30446  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30447  ac_status=$?
30448  if test -s conftest.err; then
30449    sed '10a\
30450... rest of stderr output deleted ...
30451         10q' conftest.err >conftest.er1
30452    cat conftest.er1 >&5
30453  fi
30454  rm -f conftest.er1 conftest.err
30455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30456  test $ac_status = 0; }
30457done
30458
30459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
30460$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
30461if ${ac_cv_cxx_compiler_gnu+:} false; then :
30462  $as_echo_n "(cached) " >&6
30463else
30464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465/* end confdefs.h.  */
30466
30467int
30468main ()
30469{
30470#ifndef __GNUC__
30471       choke me
30472#endif
30473
30474  ;
30475  return 0;
30476}
30477_ACEOF
30478if ac_fn_cxx_try_compile "$LINENO"; then :
30479  ac_compiler_gnu=yes
30480else
30481  ac_compiler_gnu=no
30482fi
30483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30484ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
30485
30486fi
30487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
30488$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
30489if test $ac_compiler_gnu = yes; then
30490  GXX=yes
30491else
30492  GXX=
30493fi
30494ac_test_CXXFLAGS=${CXXFLAGS+set}
30495ac_save_CXXFLAGS=$CXXFLAGS
30496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
30497$as_echo_n "checking whether $CXX accepts -g... " >&6; }
30498if ${ac_cv_prog_cxx_g+:} false; then :
30499  $as_echo_n "(cached) " >&6
30500else
30501  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
30502   ac_cxx_werror_flag=yes
30503   ac_cv_prog_cxx_g=no
30504   CXXFLAGS="-g"
30505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30506/* end confdefs.h.  */
30507
30508int
30509main ()
30510{
30511
30512  ;
30513  return 0;
30514}
30515_ACEOF
30516if ac_fn_cxx_try_compile "$LINENO"; then :
30517  ac_cv_prog_cxx_g=yes
30518else
30519  CXXFLAGS=""
30520      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30521/* end confdefs.h.  */
30522
30523int
30524main ()
30525{
30526
30527  ;
30528  return 0;
30529}
30530_ACEOF
30531if ac_fn_cxx_try_compile "$LINENO"; then :
30532
30533else
30534  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30535	 CXXFLAGS="-g"
30536	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30537/* end confdefs.h.  */
30538
30539int
30540main ()
30541{
30542
30543  ;
30544  return 0;
30545}
30546_ACEOF
30547if ac_fn_cxx_try_compile "$LINENO"; then :
30548  ac_cv_prog_cxx_g=yes
30549fi
30550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30551fi
30552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553fi
30554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30555   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
30556fi
30557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
30558$as_echo "$ac_cv_prog_cxx_g" >&6; }
30559if test "$ac_test_CXXFLAGS" = set; then
30560  CXXFLAGS=$ac_save_CXXFLAGS
30561elif test $ac_cv_prog_cxx_g = yes; then
30562  if test "$GXX" = yes; then
30563    CXXFLAGS="-g -O2"
30564  else
30565    CXXFLAGS="-g"
30566  fi
30567else
30568  if test "$GXX" = yes; then
30569    CXXFLAGS="-O2"
30570  else
30571    CXXFLAGS=
30572  fi
30573fi
30574ac_ext=cpp
30575ac_cpp='$CXXCPP $CPPFLAGS'
30576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30579
30580
30581  #
30582  # Setup the preprocessor (CPP and CXXCPP)
30583  #
30584  ac_ext=c
30585ac_cpp='$CPP $CPPFLAGS'
30586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30588ac_compiler_gnu=$ac_cv_c_compiler_gnu
30589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
30590$as_echo_n "checking how to run the C preprocessor... " >&6; }
30591# On Suns, sometimes $CPP names a directory.
30592if test -n "$CPP" && test -d "$CPP"; then
30593  CPP=
30594fi
30595if test -z "$CPP"; then
30596  if ${ac_cv_prog_CPP+:} false; then :
30597  $as_echo_n "(cached) " >&6
30598else
30599      # Double quotes because CPP needs to be expanded
30600    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
30601    do
30602      ac_preproc_ok=false
30603for ac_c_preproc_warn_flag in '' yes
30604do
30605  # Use a header file that comes with gcc, so configuring glibc
30606  # with a fresh cross-compiler works.
30607  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30608  # <limits.h> exists even on freestanding compilers.
30609  # On the NeXT, cc -E runs the code through the compiler's parser,
30610  # not just through cpp. "Syntax error" is here to catch this case.
30611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30612/* end confdefs.h.  */
30613#ifdef __STDC__
30614# include <limits.h>
30615#else
30616# include <assert.h>
30617#endif
30618		     Syntax error
30619_ACEOF
30620if ac_fn_c_try_cpp "$LINENO"; then :
30621
30622else
30623  # Broken: fails on valid input.
30624continue
30625fi
30626rm -f conftest.err conftest.i conftest.$ac_ext
30627
30628  # OK, works on sane cases.  Now check whether nonexistent headers
30629  # can be detected and how.
30630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30631/* end confdefs.h.  */
30632#include <ac_nonexistent.h>
30633_ACEOF
30634if ac_fn_c_try_cpp "$LINENO"; then :
30635  # Broken: success on invalid input.
30636continue
30637else
30638  # Passes both tests.
30639ac_preproc_ok=:
30640break
30641fi
30642rm -f conftest.err conftest.i conftest.$ac_ext
30643
30644done
30645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
30646rm -f conftest.i conftest.err conftest.$ac_ext
30647if $ac_preproc_ok; then :
30648  break
30649fi
30650
30651    done
30652    ac_cv_prog_CPP=$CPP
30653
30654fi
30655  CPP=$ac_cv_prog_CPP
30656else
30657  ac_cv_prog_CPP=$CPP
30658fi
30659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
30660$as_echo "$CPP" >&6; }
30661ac_preproc_ok=false
30662for ac_c_preproc_warn_flag in '' yes
30663do
30664  # Use a header file that comes with gcc, so configuring glibc
30665  # with a fresh cross-compiler works.
30666  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30667  # <limits.h> exists even on freestanding compilers.
30668  # On the NeXT, cc -E runs the code through the compiler's parser,
30669  # not just through cpp. "Syntax error" is here to catch this case.
30670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30671/* end confdefs.h.  */
30672#ifdef __STDC__
30673# include <limits.h>
30674#else
30675# include <assert.h>
30676#endif
30677		     Syntax error
30678_ACEOF
30679if ac_fn_c_try_cpp "$LINENO"; then :
30680
30681else
30682  # Broken: fails on valid input.
30683continue
30684fi
30685rm -f conftest.err conftest.i conftest.$ac_ext
30686
30687  # OK, works on sane cases.  Now check whether nonexistent headers
30688  # can be detected and how.
30689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30690/* end confdefs.h.  */
30691#include <ac_nonexistent.h>
30692_ACEOF
30693if ac_fn_c_try_cpp "$LINENO"; then :
30694  # Broken: success on invalid input.
30695continue
30696else
30697  # Passes both tests.
30698ac_preproc_ok=:
30699break
30700fi
30701rm -f conftest.err conftest.i conftest.$ac_ext
30702
30703done
30704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
30705rm -f conftest.i conftest.err conftest.$ac_ext
30706if $ac_preproc_ok; then :
30707
30708else
30709  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30711as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
30712See \`config.log' for more details" "$LINENO" 5; }
30713fi
30714
30715ac_ext=cpp
30716ac_cpp='$CXXCPP $CPPFLAGS'
30717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30720
30721
30722  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30723
30724  # First separate the path from the arguments. This will split at the first
30725  # space.
30726  complete="$CPP"
30727  path="${complete%% *}"
30728  tmp="$complete EOL"
30729  arguments="${tmp#* }"
30730
30731  # Input might be given as Windows format, start by converting to
30732  # unix format.
30733  new_path=`$CYGPATH -u "$path"`
30734
30735  # Now try to locate executable using which
30736  new_path=`$WHICH "$new_path" 2> /dev/null`
30737  # bat and cmd files are not always considered executable in cygwin causing which
30738  # to not find them
30739  if test "x$new_path" = x \
30740      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
30741      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
30742    new_path=`$CYGPATH -u "$path"`
30743  fi
30744  if test "x$new_path" = x; then
30745    # Oops. Which didn't find the executable.
30746    # The splitting of arguments from the executable at a space might have been incorrect,
30747    # since paths with space are more likely in Windows. Give it another try with the whole
30748    # argument.
30749    path="$complete"
30750    arguments="EOL"
30751    new_path=`$CYGPATH -u "$path"`
30752    new_path=`$WHICH "$new_path" 2> /dev/null`
30753    # bat and cmd files are not always considered executable in cygwin causing which
30754    # to not find them
30755    if test "x$new_path" = x \
30756        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
30757        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
30758      new_path=`$CYGPATH -u "$path"`
30759    fi
30760    if test "x$new_path" = x; then
30761      # It's still not found. Now this is an unrecoverable error.
30762      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
30763$as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
30764      has_space=`$ECHO "$complete" | $GREP " "`
30765      if test "x$has_space" != x; then
30766        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30767$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30768      fi
30769      as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
30770    fi
30771  fi
30772
30773  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
30774  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
30775  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
30776  # "foo.exe" is OK but "foo" is an error.
30777  #
30778  # This test is therefore slightly more accurate than "test -f" to check for file presence.
30779  # It is also a way to make sure we got the proper file name for the real test later on.
30780  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
30781  if test "x$test_shortpath" = x; then
30782    # Short path failed, file does not exist as specified.
30783    # Try adding .exe or .cmd
30784    if test -f "${new_path}.exe"; then
30785      input_to_shortpath="${new_path}.exe"
30786    elif test -f "${new_path}.cmd"; then
30787      input_to_shortpath="${new_path}.cmd"
30788    else
30789      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5
30790$as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;}
30791      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
30792$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
30793      as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
30794    fi
30795  else
30796    input_to_shortpath="$new_path"
30797  fi
30798
30799  # Call helper function which possibly converts this using DOS-style short mode.
30800  # If so, the updated path is stored in $new_path.
30801  new_path="$input_to_shortpath"
30802
30803  input_path="$input_to_shortpath"
30804  # Check if we need to convert this using DOS-style short mode. If the path
30805  # contains just simple characters, use it. Otherwise (spaces, weird characters),
30806  # take no chances and rewrite it.
30807  # Note: m4 eats our [], so we need to use [ and ] instead.
30808  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
30809  if test "x$has_forbidden_chars" != x; then
30810    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30811    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
30812    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
30813    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
30814      # Going to short mode and back again did indeed matter. Since short mode is
30815      # case insensitive, let's make it lowercase to improve readability.
30816      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30817      # Now convert it back to Unix-stile (cygpath)
30818      input_path=`$CYGPATH -u "$shortmode_path"`
30819      new_path="$input_path"
30820    fi
30821  fi
30822
30823  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
30824  if test "x$test_cygdrive_prefix" = x; then
30825    # As a simple fix, exclude /usr/bin since it's not a real path.
30826    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
30827      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
30828      # a path prefixed by /cygdrive for fixpath to work.
30829      new_path="$CYGWIN_ROOT_PATH$input_path"
30830    fi
30831  fi
30832
30833  # remove trailing .exe if any
30834  new_path="${new_path/%.exe/}"
30835
30836  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30837
30838  # First separate the path from the arguments. This will split at the first
30839  # space.
30840  complete="$CPP"
30841  path="${complete%% *}"
30842  tmp="$complete EOL"
30843  arguments="${tmp#* }"
30844
30845  # Input might be given as Windows format, start by converting to
30846  # unix format.
30847  new_path="$path"
30848
30849  windows_path="$new_path"
30850  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30851    unix_path=`$CYGPATH -u "$windows_path"`
30852    new_path="$unix_path"
30853  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30854    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30855    new_path="$unix_path"
30856  fi
30857
30858
30859  # Now try to locate executable using which
30860  new_path=`$WHICH "$new_path" 2> /dev/null`
30861
30862  if test "x$new_path" = x; then
30863    # Oops. Which didn't find the executable.
30864    # The splitting of arguments from the executable at a space might have been incorrect,
30865    # since paths with space are more likely in Windows. Give it another try with the whole
30866    # argument.
30867    path="$complete"
30868    arguments="EOL"
30869    new_path="$path"
30870
30871  windows_path="$new_path"
30872  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30873    unix_path=`$CYGPATH -u "$windows_path"`
30874    new_path="$unix_path"
30875  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30876    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30877    new_path="$unix_path"
30878  fi
30879
30880
30881    new_path=`$WHICH "$new_path" 2> /dev/null`
30882
30883    if test "x$new_path" = x; then
30884      # It's still not found. Now this is an unrecoverable error.
30885      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
30886$as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
30887      has_space=`$ECHO "$complete" | $GREP " "`
30888      if test "x$has_space" != x; then
30889        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
30890$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
30891      fi
30892      as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
30893    fi
30894  fi
30895
30896  # Now new_path has a complete unix path to the binary
30897  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
30898    # Keep paths in /bin as-is, but remove trailing .exe if any
30899    new_path="${new_path/%.exe/}"
30900    # Do not save /bin paths to all_fixpath_prefixes!
30901  else
30902    # Not in mixed or Windows style, start by that.
30903    new_path=`cmd //c echo $new_path`
30904
30905  input_path="$new_path"
30906  # Check if we need to convert this using DOS-style short mode. If the path
30907  # contains just simple characters, use it. Otherwise (spaces, weird characters),
30908  # take no chances and rewrite it.
30909  # Note: m4 eats our [], so we need to use [ and ] instead.
30910  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
30911  if test "x$has_forbidden_chars" != x; then
30912    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
30913    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
30914  fi
30915
30916    # Output is in $new_path
30917
30918  windows_path="$new_path"
30919  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
30920    unix_path=`$CYGPATH -u "$windows_path"`
30921    new_path="$unix_path"
30922  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
30923    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
30924    new_path="$unix_path"
30925  fi
30926
30927    # remove trailing .exe if any
30928    new_path="${new_path/%.exe/}"
30929
30930    # Save the first 10 bytes of this path to the storage, so fixpath can work.
30931    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
30932  fi
30933
30934  else
30935    # We're on a posix platform. Hooray! :)
30936    # First separate the path from the arguments. This will split at the first
30937    # space.
30938    complete="$CPP"
30939    path="${complete%% *}"
30940    tmp="$complete EOL"
30941    arguments="${tmp#* }"
30942
30943    # Cannot rely on the command "which" here since it doesn't always work.
30944    is_absolute_path=`$ECHO "$path" | $GREP ^/`
30945    if test -z "$is_absolute_path"; then
30946      # Path to executable is not absolute. Find it.
30947      IFS_save="$IFS"
30948      IFS=:
30949      for p in $PATH; do
30950        if test -f "$p/$path" && test -x "$p/$path"; then
30951          new_path="$p/$path"
30952          break
30953        fi
30954      done
30955      IFS="$IFS_save"
30956    else
30957      # This is an absolute path, we can use it without further modifications.
30958      new_path="$path"
30959    fi
30960
30961    if test "x$new_path" = x; then
30962      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
30963$as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
30964      has_space=`$ECHO "$complete" | $GREP " "`
30965      if test "x$has_space" != x; then
30966        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
30967$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
30968      fi
30969      as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
30970    fi
30971  fi
30972
30973  # Now join together the path and the arguments once again
30974  if test "x$arguments" != xEOL; then
30975    new_complete="$new_path ${arguments% *}"
30976  else
30977    new_complete="$new_path"
30978  fi
30979
30980  if test "x$complete" != "x$new_complete"; then
30981    CPP="$new_complete"
30982    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
30983$as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
30984  fi
30985
30986  ac_ext=cpp
30987ac_cpp='$CXXCPP $CPPFLAGS'
30988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
30992$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
30993if test -z "$CXXCPP"; then
30994  if ${ac_cv_prog_CXXCPP+:} false; then :
30995  $as_echo_n "(cached) " >&6
30996else
30997      # Double quotes because CXXCPP needs to be expanded
30998    for CXXCPP in "$CXX -E" "/lib/cpp"
30999    do
31000      ac_preproc_ok=false
31001for ac_cxx_preproc_warn_flag in '' yes
31002do
31003  # Use a header file that comes with gcc, so configuring glibc
31004  # with a fresh cross-compiler works.
31005  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31006  # <limits.h> exists even on freestanding compilers.
31007  # On the NeXT, cc -E runs the code through the compiler's parser,
31008  # not just through cpp. "Syntax error" is here to catch this case.
31009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31010/* end confdefs.h.  */
31011#ifdef __STDC__
31012# include <limits.h>
31013#else
31014# include <assert.h>
31015#endif
31016		     Syntax error
31017_ACEOF
31018if ac_fn_cxx_try_cpp "$LINENO"; then :
31019
31020else
31021  # Broken: fails on valid input.
31022continue
31023fi
31024rm -f conftest.err conftest.i conftest.$ac_ext
31025
31026  # OK, works on sane cases.  Now check whether nonexistent headers
31027  # can be detected and how.
31028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31029/* end confdefs.h.  */
31030#include <ac_nonexistent.h>
31031_ACEOF
31032if ac_fn_cxx_try_cpp "$LINENO"; then :
31033  # Broken: success on invalid input.
31034continue
31035else
31036  # Passes both tests.
31037ac_preproc_ok=:
31038break
31039fi
31040rm -f conftest.err conftest.i conftest.$ac_ext
31041
31042done
31043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31044rm -f conftest.i conftest.err conftest.$ac_ext
31045if $ac_preproc_ok; then :
31046  break
31047fi
31048
31049    done
31050    ac_cv_prog_CXXCPP=$CXXCPP
31051
31052fi
31053  CXXCPP=$ac_cv_prog_CXXCPP
31054else
31055  ac_cv_prog_CXXCPP=$CXXCPP
31056fi
31057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
31058$as_echo "$CXXCPP" >&6; }
31059ac_preproc_ok=false
31060for ac_cxx_preproc_warn_flag in '' yes
31061do
31062  # Use a header file that comes with gcc, so configuring glibc
31063  # with a fresh cross-compiler works.
31064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31065  # <limits.h> exists even on freestanding compilers.
31066  # On the NeXT, cc -E runs the code through the compiler's parser,
31067  # not just through cpp. "Syntax error" is here to catch this case.
31068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31069/* end confdefs.h.  */
31070#ifdef __STDC__
31071# include <limits.h>
31072#else
31073# include <assert.h>
31074#endif
31075		     Syntax error
31076_ACEOF
31077if ac_fn_cxx_try_cpp "$LINENO"; then :
31078
31079else
31080  # Broken: fails on valid input.
31081continue
31082fi
31083rm -f conftest.err conftest.i conftest.$ac_ext
31084
31085  # OK, works on sane cases.  Now check whether nonexistent headers
31086  # can be detected and how.
31087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31088/* end confdefs.h.  */
31089#include <ac_nonexistent.h>
31090_ACEOF
31091if ac_fn_cxx_try_cpp "$LINENO"; then :
31092  # Broken: success on invalid input.
31093continue
31094else
31095  # Passes both tests.
31096ac_preproc_ok=:
31097break
31098fi
31099rm -f conftest.err conftest.i conftest.$ac_ext
31100
31101done
31102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
31103rm -f conftest.i conftest.err conftest.$ac_ext
31104if $ac_preproc_ok; then :
31105
31106else
31107  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31109as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
31110See \`config.log' for more details" "$LINENO" 5; }
31111fi
31112
31113ac_ext=cpp
31114ac_cpp='$CXXCPP $CPPFLAGS'
31115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31118
31119
31120  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31121
31122  # First separate the path from the arguments. This will split at the first
31123  # space.
31124  complete="$CXXCPP"
31125  path="${complete%% *}"
31126  tmp="$complete EOL"
31127  arguments="${tmp#* }"
31128
31129  # Input might be given as Windows format, start by converting to
31130  # unix format.
31131  new_path=`$CYGPATH -u "$path"`
31132
31133  # Now try to locate executable using which
31134  new_path=`$WHICH "$new_path" 2> /dev/null`
31135  # bat and cmd files are not always considered executable in cygwin causing which
31136  # to not find them
31137  if test "x$new_path" = x \
31138      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31139      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31140    new_path=`$CYGPATH -u "$path"`
31141  fi
31142  if test "x$new_path" = x; then
31143    # Oops. Which didn't find the executable.
31144    # The splitting of arguments from the executable at a space might have been incorrect,
31145    # since paths with space are more likely in Windows. Give it another try with the whole
31146    # argument.
31147    path="$complete"
31148    arguments="EOL"
31149    new_path=`$CYGPATH -u "$path"`
31150    new_path=`$WHICH "$new_path" 2> /dev/null`
31151    # bat and cmd files are not always considered executable in cygwin causing which
31152    # to not find them
31153    if test "x$new_path" = x \
31154        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31155        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31156      new_path=`$CYGPATH -u "$path"`
31157    fi
31158    if test "x$new_path" = x; then
31159      # It's still not found. Now this is an unrecoverable error.
31160      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
31161$as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
31162      has_space=`$ECHO "$complete" | $GREP " "`
31163      if test "x$has_space" != x; then
31164        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31165$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31166      fi
31167      as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
31168    fi
31169  fi
31170
31171  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31172  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31173  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31174  # "foo.exe" is OK but "foo" is an error.
31175  #
31176  # This test is therefore slightly more accurate than "test -f" to check for file presence.
31177  # It is also a way to make sure we got the proper file name for the real test later on.
31178  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31179  if test "x$test_shortpath" = x; then
31180    # Short path failed, file does not exist as specified.
31181    # Try adding .exe or .cmd
31182    if test -f "${new_path}.exe"; then
31183      input_to_shortpath="${new_path}.exe"
31184    elif test -f "${new_path}.cmd"; then
31185      input_to_shortpath="${new_path}.cmd"
31186    else
31187      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5
31188$as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;}
31189      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31190$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31191      as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
31192    fi
31193  else
31194    input_to_shortpath="$new_path"
31195  fi
31196
31197  # Call helper function which possibly converts this using DOS-style short mode.
31198  # If so, the updated path is stored in $new_path.
31199  new_path="$input_to_shortpath"
31200
31201  input_path="$input_to_shortpath"
31202  # Check if we need to convert this using DOS-style short mode. If the path
31203  # contains just simple characters, use it. Otherwise (spaces, weird characters),
31204  # take no chances and rewrite it.
31205  # Note: m4 eats our [], so we need to use [ and ] instead.
31206  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31207  if test "x$has_forbidden_chars" != x; then
31208    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31209    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31210    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31211    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31212      # Going to short mode and back again did indeed matter. Since short mode is
31213      # case insensitive, let's make it lowercase to improve readability.
31214      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31215      # Now convert it back to Unix-stile (cygpath)
31216      input_path=`$CYGPATH -u "$shortmode_path"`
31217      new_path="$input_path"
31218    fi
31219  fi
31220
31221  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31222  if test "x$test_cygdrive_prefix" = x; then
31223    # As a simple fix, exclude /usr/bin since it's not a real path.
31224    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31225      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31226      # a path prefixed by /cygdrive for fixpath to work.
31227      new_path="$CYGWIN_ROOT_PATH$input_path"
31228    fi
31229  fi
31230
31231  # remove trailing .exe if any
31232  new_path="${new_path/%.exe/}"
31233
31234  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31235
31236  # First separate the path from the arguments. This will split at the first
31237  # space.
31238  complete="$CXXCPP"
31239  path="${complete%% *}"
31240  tmp="$complete EOL"
31241  arguments="${tmp#* }"
31242
31243  # Input might be given as Windows format, start by converting to
31244  # unix format.
31245  new_path="$path"
31246
31247  windows_path="$new_path"
31248  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31249    unix_path=`$CYGPATH -u "$windows_path"`
31250    new_path="$unix_path"
31251  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31252    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31253    new_path="$unix_path"
31254  fi
31255
31256
31257  # Now try to locate executable using which
31258  new_path=`$WHICH "$new_path" 2> /dev/null`
31259
31260  if test "x$new_path" = x; then
31261    # Oops. Which didn't find the executable.
31262    # The splitting of arguments from the executable at a space might have been incorrect,
31263    # since paths with space are more likely in Windows. Give it another try with the whole
31264    # argument.
31265    path="$complete"
31266    arguments="EOL"
31267    new_path="$path"
31268
31269  windows_path="$new_path"
31270  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31271    unix_path=`$CYGPATH -u "$windows_path"`
31272    new_path="$unix_path"
31273  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31274    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31275    new_path="$unix_path"
31276  fi
31277
31278
31279    new_path=`$WHICH "$new_path" 2> /dev/null`
31280
31281    if test "x$new_path" = x; then
31282      # It's still not found. Now this is an unrecoverable error.
31283      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
31284$as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
31285      has_space=`$ECHO "$complete" | $GREP " "`
31286      if test "x$has_space" != x; then
31287        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31288$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31289      fi
31290      as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
31291    fi
31292  fi
31293
31294  # Now new_path has a complete unix path to the binary
31295  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31296    # Keep paths in /bin as-is, but remove trailing .exe if any
31297    new_path="${new_path/%.exe/}"
31298    # Do not save /bin paths to all_fixpath_prefixes!
31299  else
31300    # Not in mixed or Windows style, start by that.
31301    new_path=`cmd //c echo $new_path`
31302
31303  input_path="$new_path"
31304  # Check if we need to convert this using DOS-style short mode. If the path
31305  # contains just simple characters, use it. Otherwise (spaces, weird characters),
31306  # take no chances and rewrite it.
31307  # Note: m4 eats our [], so we need to use [ and ] instead.
31308  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31309  if test "x$has_forbidden_chars" != x; then
31310    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31311    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31312  fi
31313
31314    # Output is in $new_path
31315
31316  windows_path="$new_path"
31317  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31318    unix_path=`$CYGPATH -u "$windows_path"`
31319    new_path="$unix_path"
31320  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31321    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31322    new_path="$unix_path"
31323  fi
31324
31325    # remove trailing .exe if any
31326    new_path="${new_path/%.exe/}"
31327
31328    # Save the first 10 bytes of this path to the storage, so fixpath can work.
31329    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31330  fi
31331
31332  else
31333    # We're on a posix platform. Hooray! :)
31334    # First separate the path from the arguments. This will split at the first
31335    # space.
31336    complete="$CXXCPP"
31337    path="${complete%% *}"
31338    tmp="$complete EOL"
31339    arguments="${tmp#* }"
31340
31341    # Cannot rely on the command "which" here since it doesn't always work.
31342    is_absolute_path=`$ECHO "$path" | $GREP ^/`
31343    if test -z "$is_absolute_path"; then
31344      # Path to executable is not absolute. Find it.
31345      IFS_save="$IFS"
31346      IFS=:
31347      for p in $PATH; do
31348        if test -f "$p/$path" && test -x "$p/$path"; then
31349          new_path="$p/$path"
31350          break
31351        fi
31352      done
31353      IFS="$IFS_save"
31354    else
31355      # This is an absolute path, we can use it without further modifications.
31356      new_path="$path"
31357    fi
31358
31359    if test "x$new_path" = x; then
31360      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
31361$as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
31362      has_space=`$ECHO "$complete" | $GREP " "`
31363      if test "x$has_space" != x; then
31364        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31365$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31366      fi
31367      as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
31368    fi
31369  fi
31370
31371  # Now join together the path and the arguments once again
31372  if test "x$arguments" != xEOL; then
31373    new_complete="$new_path ${arguments% *}"
31374  else
31375    new_complete="$new_path"
31376  fi
31377
31378  if test "x$complete" != "x$new_complete"; then
31379    CXXCPP="$new_complete"
31380    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5
31381$as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;}
31382  fi
31383
31384
31385  #
31386  # Setup the linker (LD)
31387  #
31388  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
31389    # In the Microsoft toolchain we have a separate LD command "link".
31390    # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is
31391    # a cygwin program for something completely different.
31392    # Extract the first word of "link", so it can be a program name with args.
31393set dummy link; ac_word=$2
31394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31395$as_echo_n "checking for $ac_word... " >&6; }
31396if ${ac_cv_prog_LD+:} false; then :
31397  $as_echo_n "(cached) " >&6
31398else
31399  if test -n "$LD"; then
31400  ac_cv_prog_LD="$LD" # Let the user override the test.
31401else
31402  ac_prog_rejected=no
31403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31404for as_dir in $PATH
31405do
31406  IFS=$as_save_IFS
31407  test -z "$as_dir" && as_dir=.
31408    for ac_exec_ext in '' $ac_executable_extensions; do
31409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31410    if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
31411       ac_prog_rejected=yes
31412       continue
31413     fi
31414    ac_cv_prog_LD="link"
31415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31416    break 2
31417  fi
31418done
31419  done
31420IFS=$as_save_IFS
31421
31422if test $ac_prog_rejected = yes; then
31423  # We found a bogon in the path, so make sure we never use it.
31424  set dummy $ac_cv_prog_LD
31425  shift
31426  if test $# != 0; then
31427    # We chose a different compiler from the bogus one.
31428    # However, it has the same basename, so the bogon will be chosen
31429    # first if we set LD to just the basename; use the full file name.
31430    shift
31431    ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@"
31432  fi
31433fi
31434fi
31435fi
31436LD=$ac_cv_prog_LD
31437if test -n "$LD"; then
31438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
31439$as_echo "$LD" >&6; }
31440else
31441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31442$as_echo "no" >&6; }
31443fi
31444
31445
31446
31447  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31448
31449  # First separate the path from the arguments. This will split at the first
31450  # space.
31451  complete="$LD"
31452  path="${complete%% *}"
31453  tmp="$complete EOL"
31454  arguments="${tmp#* }"
31455
31456  # Input might be given as Windows format, start by converting to
31457  # unix format.
31458  new_path=`$CYGPATH -u "$path"`
31459
31460  # Now try to locate executable using which
31461  new_path=`$WHICH "$new_path" 2> /dev/null`
31462  # bat and cmd files are not always considered executable in cygwin causing which
31463  # to not find them
31464  if test "x$new_path" = x \
31465      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31466      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31467    new_path=`$CYGPATH -u "$path"`
31468  fi
31469  if test "x$new_path" = x; then
31470    # Oops. Which didn't find the executable.
31471    # The splitting of arguments from the executable at a space might have been incorrect,
31472    # since paths with space are more likely in Windows. Give it another try with the whole
31473    # argument.
31474    path="$complete"
31475    arguments="EOL"
31476    new_path=`$CYGPATH -u "$path"`
31477    new_path=`$WHICH "$new_path" 2> /dev/null`
31478    # bat and cmd files are not always considered executable in cygwin causing which
31479    # to not find them
31480    if test "x$new_path" = x \
31481        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31482        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31483      new_path=`$CYGPATH -u "$path"`
31484    fi
31485    if test "x$new_path" = x; then
31486      # It's still not found. Now this is an unrecoverable error.
31487      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5
31488$as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;}
31489      has_space=`$ECHO "$complete" | $GREP " "`
31490      if test "x$has_space" != x; then
31491        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31492$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31493      fi
31494      as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5
31495    fi
31496  fi
31497
31498  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31499  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31500  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31501  # "foo.exe" is OK but "foo" is an error.
31502  #
31503  # This test is therefore slightly more accurate than "test -f" to check for file presence.
31504  # It is also a way to make sure we got the proper file name for the real test later on.
31505  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31506  if test "x$test_shortpath" = x; then
31507    # Short path failed, file does not exist as specified.
31508    # Try adding .exe or .cmd
31509    if test -f "${new_path}.exe"; then
31510      input_to_shortpath="${new_path}.exe"
31511    elif test -f "${new_path}.cmd"; then
31512      input_to_shortpath="${new_path}.cmd"
31513    else
31514      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5
31515$as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;}
31516      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31517$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31518      as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5
31519    fi
31520  else
31521    input_to_shortpath="$new_path"
31522  fi
31523
31524  # Call helper function which possibly converts this using DOS-style short mode.
31525  # If so, the updated path is stored in $new_path.
31526  new_path="$input_to_shortpath"
31527
31528  input_path="$input_to_shortpath"
31529  # Check if we need to convert this using DOS-style short mode. If the path
31530  # contains just simple characters, use it. Otherwise (spaces, weird characters),
31531  # take no chances and rewrite it.
31532  # Note: m4 eats our [], so we need to use [ and ] instead.
31533  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
31534  if test "x$has_forbidden_chars" != x; then
31535    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31536    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
31537    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
31538    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
31539      # Going to short mode and back again did indeed matter. Since short mode is
31540      # case insensitive, let's make it lowercase to improve readability.
31541      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31542      # Now convert it back to Unix-stile (cygpath)
31543      input_path=`$CYGPATH -u "$shortmode_path"`
31544      new_path="$input_path"
31545    fi
31546  fi
31547
31548  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
31549  if test "x$test_cygdrive_prefix" = x; then
31550    # As a simple fix, exclude /usr/bin since it's not a real path.
31551    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
31552      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
31553      # a path prefixed by /cygdrive for fixpath to work.
31554      new_path="$CYGWIN_ROOT_PATH$input_path"
31555    fi
31556  fi
31557
31558  # remove trailing .exe if any
31559  new_path="${new_path/%.exe/}"
31560
31561  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31562
31563  # First separate the path from the arguments. This will split at the first
31564  # space.
31565  complete="$LD"
31566  path="${complete%% *}"
31567  tmp="$complete EOL"
31568  arguments="${tmp#* }"
31569
31570  # Input might be given as Windows format, start by converting to
31571  # unix format.
31572  new_path="$path"
31573
31574  windows_path="$new_path"
31575  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31576    unix_path=`$CYGPATH -u "$windows_path"`
31577    new_path="$unix_path"
31578  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31579    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31580    new_path="$unix_path"
31581  fi
31582
31583
31584  # Now try to locate executable using which
31585  new_path=`$WHICH "$new_path" 2> /dev/null`
31586
31587  if test "x$new_path" = x; then
31588    # Oops. Which didn't find the executable.
31589    # The splitting of arguments from the executable at a space might have been incorrect,
31590    # since paths with space are more likely in Windows. Give it another try with the whole
31591    # argument.
31592    path="$complete"
31593    arguments="EOL"
31594    new_path="$path"
31595
31596  windows_path="$new_path"
31597  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31598    unix_path=`$CYGPATH -u "$windows_path"`
31599    new_path="$unix_path"
31600  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31601    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31602    new_path="$unix_path"
31603  fi
31604
31605
31606    new_path=`$WHICH "$new_path" 2> /dev/null`
31607
31608    if test "x$new_path" = x; then
31609      # It's still not found. Now this is an unrecoverable error.
31610      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5
31611$as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;}
31612      has_space=`$ECHO "$complete" | $GREP " "`
31613      if test "x$has_space" != x; then
31614        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31615$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31616      fi
31617      as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5
31618    fi
31619  fi
31620
31621  # Now new_path has a complete unix path to the binary
31622  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
31623    # Keep paths in /bin as-is, but remove trailing .exe if any
31624    new_path="${new_path/%.exe/}"
31625    # Do not save /bin paths to all_fixpath_prefixes!
31626  else
31627    # Not in mixed or Windows style, start by that.
31628    new_path=`cmd //c echo $new_path`
31629
31630  input_path="$new_path"
31631  # Check if we need to convert this using DOS-style short mode. If the path
31632  # contains just simple characters, use it. Otherwise (spaces, weird characters),
31633  # take no chances and rewrite it.
31634  # Note: m4 eats our [], so we need to use [ and ] instead.
31635  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
31636  if test "x$has_forbidden_chars" != x; then
31637    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
31638    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
31639  fi
31640
31641    # Output is in $new_path
31642
31643  windows_path="$new_path"
31644  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31645    unix_path=`$CYGPATH -u "$windows_path"`
31646    new_path="$unix_path"
31647  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
31648    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
31649    new_path="$unix_path"
31650  fi
31651
31652    # remove trailing .exe if any
31653    new_path="${new_path/%.exe/}"
31654
31655    # Save the first 10 bytes of this path to the storage, so fixpath can work.
31656    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
31657  fi
31658
31659  else
31660    # We're on a posix platform. Hooray! :)
31661    # First separate the path from the arguments. This will split at the first
31662    # space.
31663    complete="$LD"
31664    path="${complete%% *}"
31665    tmp="$complete EOL"
31666    arguments="${tmp#* }"
31667
31668    # Cannot rely on the command "which" here since it doesn't always work.
31669    is_absolute_path=`$ECHO "$path" | $GREP ^/`
31670    if test -z "$is_absolute_path"; then
31671      # Path to executable is not absolute. Find it.
31672      IFS_save="$IFS"
31673      IFS=:
31674      for p in $PATH; do
31675        if test -f "$p/$path" && test -x "$p/$path"; then
31676          new_path="$p/$path"
31677          break
31678        fi
31679      done
31680      IFS="$IFS_save"
31681    else
31682      # This is an absolute path, we can use it without further modifications.
31683      new_path="$path"
31684    fi
31685
31686    if test "x$new_path" = x; then
31687      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5
31688$as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;}
31689      has_space=`$ECHO "$complete" | $GREP " "`
31690      if test "x$has_space" != x; then
31691        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
31692$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
31693      fi
31694      as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5
31695    fi
31696  fi
31697
31698  # Now join together the path and the arguments once again
31699  if test "x$arguments" != xEOL; then
31700    new_complete="$new_path ${arguments% *}"
31701  else
31702    new_complete="$new_path"
31703  fi
31704
31705  if test "x$complete" != "x$new_complete"; then
31706    LD="$new_complete"
31707    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5
31708$as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;}
31709  fi
31710
31711    # Verify that we indeed succeeded with this trick.
31712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
31713$as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
31714    "$LD" --version > /dev/null
31715    if test $? -eq 0 ; then
31716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31717$as_echo "no" >&6; }
31718      as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
31719    else
31720      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31721$as_echo "yes" >&6; }
31722    fi
31723    LDCXX="$LD"
31724  else
31725    # All other toolchains use the compiler to link.
31726    LD="$CC"
31727    LDCXX="$CXX"
31728  fi
31729
31730  # FIXME: it should be CXXLD, according to standard (cf CXXCPP)
31731
31732
31733  #
31734  # Setup the assembler (AS)
31735  #
31736  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
31737    # FIXME: should this really be solaris, or solstudio?
31738
31739
31740  # Publish this variable in the help.
31741
31742
31743  if test "x$AS" = x; then
31744    # The variable is not set by user, try to locate tool using the code snippet
31745    for ac_prog in as
31746do
31747  # Extract the first word of "$ac_prog", so it can be a program name with args.
31748set dummy $ac_prog; ac_word=$2
31749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31750$as_echo_n "checking for $ac_word... " >&6; }
31751if ${ac_cv_path_AS+:} false; then :
31752  $as_echo_n "(cached) " >&6
31753else
31754  case $AS in
31755  [\\/]* | ?:[\\/]*)
31756  ac_cv_path_AS="$AS" # Let the user override the test with a path.
31757  ;;
31758  *)
31759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31760for as_dir in $PATH
31761do
31762  IFS=$as_save_IFS
31763  test -z "$as_dir" && as_dir=.
31764    for ac_exec_ext in '' $ac_executable_extensions; do
31765  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31766    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
31767    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31768    break 2
31769  fi
31770done
31771  done
31772IFS=$as_save_IFS
31773
31774  ;;
31775esac
31776fi
31777AS=$ac_cv_path_AS
31778if test -n "$AS"; then
31779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
31780$as_echo "$AS" >&6; }
31781else
31782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31783$as_echo "no" >&6; }
31784fi
31785
31786
31787  test -n "$AS" && break
31788done
31789
31790  else
31791    # The variable is set, but is it from the command line or the environment?
31792
31793    # Try to remove the string !AS! from our list.
31794    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/}
31795    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
31796      # If it failed, the variable was not from the command line. Ignore it,
31797      # but warn the user (except for BASH, which is always set by the calling BASH).
31798      if test "xAS" != xBASH; then
31799        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5
31800$as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;}
31801      fi
31802      # Try to locate tool using the code snippet
31803      for ac_prog in as
31804do
31805  # Extract the first word of "$ac_prog", so it can be a program name with args.
31806set dummy $ac_prog; ac_word=$2
31807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31808$as_echo_n "checking for $ac_word... " >&6; }
31809if ${ac_cv_path_AS+:} false; then :
31810  $as_echo_n "(cached) " >&6
31811else
31812  case $AS in
31813  [\\/]* | ?:[\\/]*)
31814  ac_cv_path_AS="$AS" # Let the user override the test with a path.
31815  ;;
31816  *)
31817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31818for as_dir in $PATH
31819do
31820  IFS=$as_save_IFS
31821  test -z "$as_dir" && as_dir=.
31822    for ac_exec_ext in '' $ac_executable_extensions; do
31823  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31824    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
31825    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31826    break 2
31827  fi
31828done
31829  done
31830IFS=$as_save_IFS
31831
31832  ;;
31833esac
31834fi
31835AS=$ac_cv_path_AS
31836if test -n "$AS"; then
31837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
31838$as_echo "$AS" >&6; }
31839else
31840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841$as_echo "no" >&6; }
31842fi
31843
31844
31845  test -n "$AS" && break
31846done
31847
31848    else
31849      # If it succeeded, then it was overridden by the user. We will use it
31850      # for the tool.
31851
31852      # First remove it from the list of overridden variables, so we can test
31853      # for unknown variables in the end.
31854      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
31855
31856      # Check if the provided tool contains a complete path.
31857      tool_specified="$AS"
31858      tool_basename="${tool_specified##*/}"
31859      if test "x$tool_basename" = "x$tool_specified"; then
31860        # A command without a complete path is provided, search $PATH.
31861        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5
31862$as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;}
31863        # Extract the first word of "$tool_basename", so it can be a program name with args.
31864set dummy $tool_basename; ac_word=$2
31865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31866$as_echo_n "checking for $ac_word... " >&6; }
31867if ${ac_cv_path_AS+:} false; then :
31868  $as_echo_n "(cached) " >&6
31869else
31870  case $AS in
31871  [\\/]* | ?:[\\/]*)
31872  ac_cv_path_AS="$AS" # Let the user override the test with a path.
31873  ;;
31874  *)
31875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31876for as_dir in $PATH
31877do
31878  IFS=$as_save_IFS
31879  test -z "$as_dir" && as_dir=.
31880    for ac_exec_ext in '' $ac_executable_extensions; do
31881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31882    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
31883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31884    break 2
31885  fi
31886done
31887  done
31888IFS=$as_save_IFS
31889
31890  ;;
31891esac
31892fi
31893AS=$ac_cv_path_AS
31894if test -n "$AS"; then
31895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
31896$as_echo "$AS" >&6; }
31897else
31898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31899$as_echo "no" >&6; }
31900fi
31901
31902
31903        if test "x$AS" = x; then
31904          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
31905        fi
31906      else
31907        # Otherwise we believe it is a complete path. Use it as it is.
31908        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5
31909$as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;}
31910        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5
31911$as_echo_n "checking for AS... " >&6; }
31912        if test ! -x "$tool_specified"; then
31913          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
31914$as_echo "not found" >&6; }
31915          as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5
31916        fi
31917        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
31918$as_echo "$tool_specified" >&6; }
31919      fi
31920    fi
31921  fi
31922
31923
31924
31925  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
31926
31927  # First separate the path from the arguments. This will split at the first
31928  # space.
31929  complete="$AS"
31930  path="${complete%% *}"
31931  tmp="$complete EOL"
31932  arguments="${tmp#* }"
31933
31934  # Input might be given as Windows format, start by converting to
31935  # unix format.
31936  new_path=`$CYGPATH -u "$path"`
31937
31938  # Now try to locate executable using which
31939  new_path=`$WHICH "$new_path" 2> /dev/null`
31940  # bat and cmd files are not always considered executable in cygwin causing which
31941  # to not find them
31942  if test "x$new_path" = x \
31943      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31944      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31945    new_path=`$CYGPATH -u "$path"`
31946  fi
31947  if test "x$new_path" = x; then
31948    # Oops. Which didn't find the executable.
31949    # The splitting of arguments from the executable at a space might have been incorrect,
31950    # since paths with space are more likely in Windows. Give it another try with the whole
31951    # argument.
31952    path="$complete"
31953    arguments="EOL"
31954    new_path=`$CYGPATH -u "$path"`
31955    new_path=`$WHICH "$new_path" 2> /dev/null`
31956    # bat and cmd files are not always considered executable in cygwin causing which
31957    # to not find them
31958    if test "x$new_path" = x \
31959        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
31960        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
31961      new_path=`$CYGPATH -u "$path"`
31962    fi
31963    if test "x$new_path" = x; then
31964      # It's still not found. Now this is an unrecoverable error.
31965      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
31966$as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
31967      has_space=`$ECHO "$complete" | $GREP " "`
31968      if test "x$has_space" != x; then
31969        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
31970$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
31971      fi
31972      as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
31973    fi
31974  fi
31975
31976  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
31977  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
31978  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
31979  # "foo.exe" is OK but "foo" is an error.
31980  #
31981  # This test is therefore slightly more accurate than "test -f" to check for file presence.
31982  # It is also a way to make sure we got the proper file name for the real test later on.
31983  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
31984  if test "x$test_shortpath" = x; then
31985    # Short path failed, file does not exist as specified.
31986    # Try adding .exe or .cmd
31987    if test -f "${new_path}.exe"; then
31988      input_to_shortpath="${new_path}.exe"
31989    elif test -f "${new_path}.cmd"; then
31990      input_to_shortpath="${new_path}.cmd"
31991    else
31992      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5
31993$as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;}
31994      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
31995$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
31996      as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
31997    fi
31998  else
31999    input_to_shortpath="$new_path"
32000  fi
32001
32002  # Call helper function which possibly converts this using DOS-style short mode.
32003  # If so, the updated path is stored in $new_path.
32004  new_path="$input_to_shortpath"
32005
32006  input_path="$input_to_shortpath"
32007  # Check if we need to convert this using DOS-style short mode. If the path
32008  # contains just simple characters, use it. Otherwise (spaces, weird characters),
32009  # take no chances and rewrite it.
32010  # Note: m4 eats our [], so we need to use [ and ] instead.
32011  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32012  if test "x$has_forbidden_chars" != x; then
32013    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32014    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32015    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32016    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32017      # Going to short mode and back again did indeed matter. Since short mode is
32018      # case insensitive, let's make it lowercase to improve readability.
32019      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32020      # Now convert it back to Unix-stile (cygpath)
32021      input_path=`$CYGPATH -u "$shortmode_path"`
32022      new_path="$input_path"
32023    fi
32024  fi
32025
32026  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32027  if test "x$test_cygdrive_prefix" = x; then
32028    # As a simple fix, exclude /usr/bin since it's not a real path.
32029    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32030      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32031      # a path prefixed by /cygdrive for fixpath to work.
32032      new_path="$CYGWIN_ROOT_PATH$input_path"
32033    fi
32034  fi
32035
32036  # remove trailing .exe if any
32037  new_path="${new_path/%.exe/}"
32038
32039  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32040
32041  # First separate the path from the arguments. This will split at the first
32042  # space.
32043  complete="$AS"
32044  path="${complete%% *}"
32045  tmp="$complete EOL"
32046  arguments="${tmp#* }"
32047
32048  # Input might be given as Windows format, start by converting to
32049  # unix format.
32050  new_path="$path"
32051
32052  windows_path="$new_path"
32053  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32054    unix_path=`$CYGPATH -u "$windows_path"`
32055    new_path="$unix_path"
32056  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32057    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32058    new_path="$unix_path"
32059  fi
32060
32061
32062  # Now try to locate executable using which
32063  new_path=`$WHICH "$new_path" 2> /dev/null`
32064
32065  if test "x$new_path" = x; then
32066    # Oops. Which didn't find the executable.
32067    # The splitting of arguments from the executable at a space might have been incorrect,
32068    # since paths with space are more likely in Windows. Give it another try with the whole
32069    # argument.
32070    path="$complete"
32071    arguments="EOL"
32072    new_path="$path"
32073
32074  windows_path="$new_path"
32075  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32076    unix_path=`$CYGPATH -u "$windows_path"`
32077    new_path="$unix_path"
32078  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32079    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32080    new_path="$unix_path"
32081  fi
32082
32083
32084    new_path=`$WHICH "$new_path" 2> /dev/null`
32085
32086    if test "x$new_path" = x; then
32087      # It's still not found. Now this is an unrecoverable error.
32088      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
32089$as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
32090      has_space=`$ECHO "$complete" | $GREP " "`
32091      if test "x$has_space" != x; then
32092        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32093$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32094      fi
32095      as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
32096    fi
32097  fi
32098
32099  # Now new_path has a complete unix path to the binary
32100  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32101    # Keep paths in /bin as-is, but remove trailing .exe if any
32102    new_path="${new_path/%.exe/}"
32103    # Do not save /bin paths to all_fixpath_prefixes!
32104  else
32105    # Not in mixed or Windows style, start by that.
32106    new_path=`cmd //c echo $new_path`
32107
32108  input_path="$new_path"
32109  # Check if we need to convert this using DOS-style short mode. If the path
32110  # contains just simple characters, use it. Otherwise (spaces, weird characters),
32111  # take no chances and rewrite it.
32112  # Note: m4 eats our [], so we need to use [ and ] instead.
32113  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32114  if test "x$has_forbidden_chars" != x; then
32115    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32116    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32117  fi
32118
32119    # Output is in $new_path
32120
32121  windows_path="$new_path"
32122  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32123    unix_path=`$CYGPATH -u "$windows_path"`
32124    new_path="$unix_path"
32125  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32126    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32127    new_path="$unix_path"
32128  fi
32129
32130    # remove trailing .exe if any
32131    new_path="${new_path/%.exe/}"
32132
32133    # Save the first 10 bytes of this path to the storage, so fixpath can work.
32134    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32135  fi
32136
32137  else
32138    # We're on a posix platform. Hooray! :)
32139    # First separate the path from the arguments. This will split at the first
32140    # space.
32141    complete="$AS"
32142    path="${complete%% *}"
32143    tmp="$complete EOL"
32144    arguments="${tmp#* }"
32145
32146    # Cannot rely on the command "which" here since it doesn't always work.
32147    is_absolute_path=`$ECHO "$path" | $GREP ^/`
32148    if test -z "$is_absolute_path"; then
32149      # Path to executable is not absolute. Find it.
32150      IFS_save="$IFS"
32151      IFS=:
32152      for p in $PATH; do
32153        if test -f "$p/$path" && test -x "$p/$path"; then
32154          new_path="$p/$path"
32155          break
32156        fi
32157      done
32158      IFS="$IFS_save"
32159    else
32160      # This is an absolute path, we can use it without further modifications.
32161      new_path="$path"
32162    fi
32163
32164    if test "x$new_path" = x; then
32165      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
32166$as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
32167      has_space=`$ECHO "$complete" | $GREP " "`
32168      if test "x$has_space" != x; then
32169        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32170$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32171      fi
32172      as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
32173    fi
32174  fi
32175
32176  # Now join together the path and the arguments once again
32177  if test "x$arguments" != xEOL; then
32178    new_complete="$new_path ${arguments% *}"
32179  else
32180    new_complete="$new_path"
32181  fi
32182
32183  if test "x$complete" != "x$new_complete"; then
32184    AS="$new_complete"
32185    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
32186$as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
32187  fi
32188
32189  else
32190    # FIXME: is this correct for microsoft?
32191    AS="$CC -c"
32192  fi
32193
32194
32195  #
32196  # Setup the archiver (AR)
32197  #
32198  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
32199    # The corresponding ar tool is lib.exe (used to create static libraries)
32200    # Extract the first word of "lib", so it can be a program name with args.
32201set dummy lib; ac_word=$2
32202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32203$as_echo_n "checking for $ac_word... " >&6; }
32204if ${ac_cv_prog_AR+:} false; then :
32205  $as_echo_n "(cached) " >&6
32206else
32207  if test -n "$AR"; then
32208  ac_cv_prog_AR="$AR" # Let the user override the test.
32209else
32210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32211for as_dir in $PATH
32212do
32213  IFS=$as_save_IFS
32214  test -z "$as_dir" && as_dir=.
32215    for ac_exec_ext in '' $ac_executable_extensions; do
32216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32217    ac_cv_prog_AR="lib"
32218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32219    break 2
32220  fi
32221done
32222  done
32223IFS=$as_save_IFS
32224
32225fi
32226fi
32227AR=$ac_cv_prog_AR
32228if test -n "$AR"; then
32229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32230$as_echo "$AR" >&6; }
32231else
32232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32233$as_echo "no" >&6; }
32234fi
32235
32236
32237  else
32238
32239
32240  # Publish this variable in the help.
32241
32242
32243  if test "x$AR" = x; then
32244    # The variable is not set by user, try to locate tool using the code snippet
32245    if test -n "$ac_tool_prefix"; then
32246  for ac_prog in ar
32247  do
32248    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32251$as_echo_n "checking for $ac_word... " >&6; }
32252if ${ac_cv_prog_AR+:} false; then :
32253  $as_echo_n "(cached) " >&6
32254else
32255  if test -n "$AR"; then
32256  ac_cv_prog_AR="$AR" # Let the user override the test.
32257else
32258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32259for as_dir in $PATH
32260do
32261  IFS=$as_save_IFS
32262  test -z "$as_dir" && as_dir=.
32263    for ac_exec_ext in '' $ac_executable_extensions; do
32264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32265    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32267    break 2
32268  fi
32269done
32270  done
32271IFS=$as_save_IFS
32272
32273fi
32274fi
32275AR=$ac_cv_prog_AR
32276if test -n "$AR"; then
32277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32278$as_echo "$AR" >&6; }
32279else
32280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32281$as_echo "no" >&6; }
32282fi
32283
32284
32285    test -n "$AR" && break
32286  done
32287fi
32288if test -z "$AR"; then
32289  ac_ct_AR=$AR
32290  for ac_prog in ar
32291do
32292  # Extract the first word of "$ac_prog", so it can be a program name with args.
32293set dummy $ac_prog; ac_word=$2
32294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32295$as_echo_n "checking for $ac_word... " >&6; }
32296if ${ac_cv_prog_ac_ct_AR+:} false; then :
32297  $as_echo_n "(cached) " >&6
32298else
32299  if test -n "$ac_ct_AR"; then
32300  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
32301else
32302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32303for as_dir in $PATH
32304do
32305  IFS=$as_save_IFS
32306  test -z "$as_dir" && as_dir=.
32307    for ac_exec_ext in '' $ac_executable_extensions; do
32308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32309    ac_cv_prog_ac_ct_AR="$ac_prog"
32310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32311    break 2
32312  fi
32313done
32314  done
32315IFS=$as_save_IFS
32316
32317fi
32318fi
32319ac_ct_AR=$ac_cv_prog_ac_ct_AR
32320if test -n "$ac_ct_AR"; then
32321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
32322$as_echo "$ac_ct_AR" >&6; }
32323else
32324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32325$as_echo "no" >&6; }
32326fi
32327
32328
32329  test -n "$ac_ct_AR" && break
32330done
32331
32332  if test "x$ac_ct_AR" = x; then
32333    AR=""
32334  else
32335    case $cross_compiling:$ac_tool_warned in
32336yes:)
32337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32339ac_tool_warned=yes ;;
32340esac
32341    AR=$ac_ct_AR
32342  fi
32343fi
32344
32345  else
32346    # The variable is set, but is it from the command line or the environment?
32347
32348    # Try to remove the string !AR! from our list.
32349    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/}
32350    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
32351      # If it failed, the variable was not from the command line. Ignore it,
32352      # but warn the user (except for BASH, which is always set by the calling BASH).
32353      if test "xAR" != xBASH; then
32354        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5
32355$as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;}
32356      fi
32357      # Try to locate tool using the code snippet
32358      if test -n "$ac_tool_prefix"; then
32359  for ac_prog in ar
32360  do
32361    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32364$as_echo_n "checking for $ac_word... " >&6; }
32365if ${ac_cv_prog_AR+:} false; then :
32366  $as_echo_n "(cached) " >&6
32367else
32368  if test -n "$AR"; then
32369  ac_cv_prog_AR="$AR" # Let the user override the test.
32370else
32371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32372for as_dir in $PATH
32373do
32374  IFS=$as_save_IFS
32375  test -z "$as_dir" && as_dir=.
32376    for ac_exec_ext in '' $ac_executable_extensions; do
32377  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32378    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
32379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32380    break 2
32381  fi
32382done
32383  done
32384IFS=$as_save_IFS
32385
32386fi
32387fi
32388AR=$ac_cv_prog_AR
32389if test -n "$AR"; then
32390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32391$as_echo "$AR" >&6; }
32392else
32393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32394$as_echo "no" >&6; }
32395fi
32396
32397
32398    test -n "$AR" && break
32399  done
32400fi
32401if test -z "$AR"; then
32402  ac_ct_AR=$AR
32403  for ac_prog in ar
32404do
32405  # Extract the first word of "$ac_prog", so it can be a program name with args.
32406set dummy $ac_prog; ac_word=$2
32407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32408$as_echo_n "checking for $ac_word... " >&6; }
32409if ${ac_cv_prog_ac_ct_AR+:} false; then :
32410  $as_echo_n "(cached) " >&6
32411else
32412  if test -n "$ac_ct_AR"; then
32413  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
32414else
32415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32416for as_dir in $PATH
32417do
32418  IFS=$as_save_IFS
32419  test -z "$as_dir" && as_dir=.
32420    for ac_exec_ext in '' $ac_executable_extensions; do
32421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32422    ac_cv_prog_ac_ct_AR="$ac_prog"
32423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32424    break 2
32425  fi
32426done
32427  done
32428IFS=$as_save_IFS
32429
32430fi
32431fi
32432ac_ct_AR=$ac_cv_prog_ac_ct_AR
32433if test -n "$ac_ct_AR"; then
32434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
32435$as_echo "$ac_ct_AR" >&6; }
32436else
32437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32438$as_echo "no" >&6; }
32439fi
32440
32441
32442  test -n "$ac_ct_AR" && break
32443done
32444
32445  if test "x$ac_ct_AR" = x; then
32446    AR=""
32447  else
32448    case $cross_compiling:$ac_tool_warned in
32449yes:)
32450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32452ac_tool_warned=yes ;;
32453esac
32454    AR=$ac_ct_AR
32455  fi
32456fi
32457
32458    else
32459      # If it succeeded, then it was overridden by the user. We will use it
32460      # for the tool.
32461
32462      # First remove it from the list of overridden variables, so we can test
32463      # for unknown variables in the end.
32464      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
32465
32466      # Check if the provided tool contains a complete path.
32467      tool_specified="$AR"
32468      tool_basename="${tool_specified##*/}"
32469      if test "x$tool_basename" = "x$tool_specified"; then
32470        # A command without a complete path is provided, search $PATH.
32471        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5
32472$as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;}
32473        # Extract the first word of "$tool_basename", so it can be a program name with args.
32474set dummy $tool_basename; ac_word=$2
32475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32476$as_echo_n "checking for $ac_word... " >&6; }
32477if ${ac_cv_path_AR+:} false; then :
32478  $as_echo_n "(cached) " >&6
32479else
32480  case $AR in
32481  [\\/]* | ?:[\\/]*)
32482  ac_cv_path_AR="$AR" # Let the user override the test with a path.
32483  ;;
32484  *)
32485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32486for as_dir in $PATH
32487do
32488  IFS=$as_save_IFS
32489  test -z "$as_dir" && as_dir=.
32490    for ac_exec_ext in '' $ac_executable_extensions; do
32491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32492    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
32493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32494    break 2
32495  fi
32496done
32497  done
32498IFS=$as_save_IFS
32499
32500  ;;
32501esac
32502fi
32503AR=$ac_cv_path_AR
32504if test -n "$AR"; then
32505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
32506$as_echo "$AR" >&6; }
32507else
32508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32509$as_echo "no" >&6; }
32510fi
32511
32512
32513        if test "x$AR" = x; then
32514          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
32515        fi
32516      else
32517        # Otherwise we believe it is a complete path. Use it as it is.
32518        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5
32519$as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;}
32520        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5
32521$as_echo_n "checking for AR... " >&6; }
32522        if test ! -x "$tool_specified"; then
32523          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
32524$as_echo "not found" >&6; }
32525          as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5
32526        fi
32527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
32528$as_echo "$tool_specified" >&6; }
32529      fi
32530    fi
32531  fi
32532
32533
32534  fi
32535
32536  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32537
32538  # First separate the path from the arguments. This will split at the first
32539  # space.
32540  complete="$AR"
32541  path="${complete%% *}"
32542  tmp="$complete EOL"
32543  arguments="${tmp#* }"
32544
32545  # Input might be given as Windows format, start by converting to
32546  # unix format.
32547  new_path=`$CYGPATH -u "$path"`
32548
32549  # Now try to locate executable using which
32550  new_path=`$WHICH "$new_path" 2> /dev/null`
32551  # bat and cmd files are not always considered executable in cygwin causing which
32552  # to not find them
32553  if test "x$new_path" = x \
32554      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32555      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32556    new_path=`$CYGPATH -u "$path"`
32557  fi
32558  if test "x$new_path" = x; then
32559    # Oops. Which didn't find the executable.
32560    # The splitting of arguments from the executable at a space might have been incorrect,
32561    # since paths with space are more likely in Windows. Give it another try with the whole
32562    # argument.
32563    path="$complete"
32564    arguments="EOL"
32565    new_path=`$CYGPATH -u "$path"`
32566    new_path=`$WHICH "$new_path" 2> /dev/null`
32567    # bat and cmd files are not always considered executable in cygwin causing which
32568    # to not find them
32569    if test "x$new_path" = x \
32570        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
32571        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
32572      new_path=`$CYGPATH -u "$path"`
32573    fi
32574    if test "x$new_path" = x; then
32575      # It's still not found. Now this is an unrecoverable error.
32576      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
32577$as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
32578      has_space=`$ECHO "$complete" | $GREP " "`
32579      if test "x$has_space" != x; then
32580        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32581$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32582      fi
32583      as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
32584    fi
32585  fi
32586
32587  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
32588  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
32589  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
32590  # "foo.exe" is OK but "foo" is an error.
32591  #
32592  # This test is therefore slightly more accurate than "test -f" to check for file presence.
32593  # It is also a way to make sure we got the proper file name for the real test later on.
32594  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
32595  if test "x$test_shortpath" = x; then
32596    # Short path failed, file does not exist as specified.
32597    # Try adding .exe or .cmd
32598    if test -f "${new_path}.exe"; then
32599      input_to_shortpath="${new_path}.exe"
32600    elif test -f "${new_path}.cmd"; then
32601      input_to_shortpath="${new_path}.cmd"
32602    else
32603      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5
32604$as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;}
32605      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
32606$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
32607      as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
32608    fi
32609  else
32610    input_to_shortpath="$new_path"
32611  fi
32612
32613  # Call helper function which possibly converts this using DOS-style short mode.
32614  # If so, the updated path is stored in $new_path.
32615  new_path="$input_to_shortpath"
32616
32617  input_path="$input_to_shortpath"
32618  # Check if we need to convert this using DOS-style short mode. If the path
32619  # contains just simple characters, use it. Otherwise (spaces, weird characters),
32620  # take no chances and rewrite it.
32621  # Note: m4 eats our [], so we need to use [ and ] instead.
32622  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
32623  if test "x$has_forbidden_chars" != x; then
32624    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32625    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
32626    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
32627    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
32628      # Going to short mode and back again did indeed matter. Since short mode is
32629      # case insensitive, let's make it lowercase to improve readability.
32630      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32631      # Now convert it back to Unix-stile (cygpath)
32632      input_path=`$CYGPATH -u "$shortmode_path"`
32633      new_path="$input_path"
32634    fi
32635  fi
32636
32637  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
32638  if test "x$test_cygdrive_prefix" = x; then
32639    # As a simple fix, exclude /usr/bin since it's not a real path.
32640    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
32641      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
32642      # a path prefixed by /cygdrive for fixpath to work.
32643      new_path="$CYGWIN_ROOT_PATH$input_path"
32644    fi
32645  fi
32646
32647  # remove trailing .exe if any
32648  new_path="${new_path/%.exe/}"
32649
32650  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32651
32652  # First separate the path from the arguments. This will split at the first
32653  # space.
32654  complete="$AR"
32655  path="${complete%% *}"
32656  tmp="$complete EOL"
32657  arguments="${tmp#* }"
32658
32659  # Input might be given as Windows format, start by converting to
32660  # unix format.
32661  new_path="$path"
32662
32663  windows_path="$new_path"
32664  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32665    unix_path=`$CYGPATH -u "$windows_path"`
32666    new_path="$unix_path"
32667  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32668    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32669    new_path="$unix_path"
32670  fi
32671
32672
32673  # Now try to locate executable using which
32674  new_path=`$WHICH "$new_path" 2> /dev/null`
32675
32676  if test "x$new_path" = x; then
32677    # Oops. Which didn't find the executable.
32678    # The splitting of arguments from the executable at a space might have been incorrect,
32679    # since paths with space are more likely in Windows. Give it another try with the whole
32680    # argument.
32681    path="$complete"
32682    arguments="EOL"
32683    new_path="$path"
32684
32685  windows_path="$new_path"
32686  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32687    unix_path=`$CYGPATH -u "$windows_path"`
32688    new_path="$unix_path"
32689  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32690    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32691    new_path="$unix_path"
32692  fi
32693
32694
32695    new_path=`$WHICH "$new_path" 2> /dev/null`
32696
32697    if test "x$new_path" = x; then
32698      # It's still not found. Now this is an unrecoverable error.
32699      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
32700$as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
32701      has_space=`$ECHO "$complete" | $GREP " "`
32702      if test "x$has_space" != x; then
32703        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
32704$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
32705      fi
32706      as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
32707    fi
32708  fi
32709
32710  # Now new_path has a complete unix path to the binary
32711  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
32712    # Keep paths in /bin as-is, but remove trailing .exe if any
32713    new_path="${new_path/%.exe/}"
32714    # Do not save /bin paths to all_fixpath_prefixes!
32715  else
32716    # Not in mixed or Windows style, start by that.
32717    new_path=`cmd //c echo $new_path`
32718
32719  input_path="$new_path"
32720  # Check if we need to convert this using DOS-style short mode. If the path
32721  # contains just simple characters, use it. Otherwise (spaces, weird characters),
32722  # take no chances and rewrite it.
32723  # Note: m4 eats our [], so we need to use [ and ] instead.
32724  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
32725  if test "x$has_forbidden_chars" != x; then
32726    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
32727    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
32728  fi
32729
32730    # Output is in $new_path
32731
32732  windows_path="$new_path"
32733  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
32734    unix_path=`$CYGPATH -u "$windows_path"`
32735    new_path="$unix_path"
32736  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
32737    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
32738    new_path="$unix_path"
32739  fi
32740
32741    # remove trailing .exe if any
32742    new_path="${new_path/%.exe/}"
32743
32744    # Save the first 10 bytes of this path to the storage, so fixpath can work.
32745    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
32746  fi
32747
32748  else
32749    # We're on a posix platform. Hooray! :)
32750    # First separate the path from the arguments. This will split at the first
32751    # space.
32752    complete="$AR"
32753    path="${complete%% *}"
32754    tmp="$complete EOL"
32755    arguments="${tmp#* }"
32756
32757    # Cannot rely on the command "which" here since it doesn't always work.
32758    is_absolute_path=`$ECHO "$path" | $GREP ^/`
32759    if test -z "$is_absolute_path"; then
32760      # Path to executable is not absolute. Find it.
32761      IFS_save="$IFS"
32762      IFS=:
32763      for p in $PATH; do
32764        if test -f "$p/$path" && test -x "$p/$path"; then
32765          new_path="$p/$path"
32766          break
32767        fi
32768      done
32769      IFS="$IFS_save"
32770    else
32771      # This is an absolute path, we can use it without further modifications.
32772      new_path="$path"
32773    fi
32774
32775    if test "x$new_path" = x; then
32776      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
32777$as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
32778      has_space=`$ECHO "$complete" | $GREP " "`
32779      if test "x$has_space" != x; then
32780        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
32781$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
32782      fi
32783      as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
32784    fi
32785  fi
32786
32787  # Now join together the path and the arguments once again
32788  if test "x$arguments" != xEOL; then
32789    new_complete="$new_path ${arguments% *}"
32790  else
32791    new_complete="$new_path"
32792  fi
32793
32794  if test "x$complete" != "x$new_complete"; then
32795    AR="$new_complete"
32796    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5
32797$as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;}
32798  fi
32799
32800
32801
32802  if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
32803    ac_ext=m
32804ac_cpp='$OBJCPP $CPPFLAGS'
32805ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32806ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32807ac_compiler_gnu=$ac_cv_objc_compiler_gnu
32808if test -n "$ac_tool_prefix"; then
32809  for ac_prog in gcc objcc objc cc CC
32810  do
32811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32814$as_echo_n "checking for $ac_word... " >&6; }
32815if ${ac_cv_prog_OBJC+:} false; then :
32816  $as_echo_n "(cached) " >&6
32817else
32818  if test -n "$OBJC"; then
32819  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
32820else
32821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822for as_dir in $PATH
32823do
32824  IFS=$as_save_IFS
32825  test -z "$as_dir" && as_dir=.
32826    for ac_exec_ext in '' $ac_executable_extensions; do
32827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32828    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
32829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32830    break 2
32831  fi
32832done
32833  done
32834IFS=$as_save_IFS
32835
32836fi
32837fi
32838OBJC=$ac_cv_prog_OBJC
32839if test -n "$OBJC"; then
32840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
32841$as_echo "$OBJC" >&6; }
32842else
32843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844$as_echo "no" >&6; }
32845fi
32846
32847
32848    test -n "$OBJC" && break
32849  done
32850fi
32851if test -z "$OBJC"; then
32852  ac_ct_OBJC=$OBJC
32853  for ac_prog in gcc objcc objc cc CC
32854do
32855  # Extract the first word of "$ac_prog", so it can be a program name with args.
32856set dummy $ac_prog; ac_word=$2
32857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32858$as_echo_n "checking for $ac_word... " >&6; }
32859if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
32860  $as_echo_n "(cached) " >&6
32861else
32862  if test -n "$ac_ct_OBJC"; then
32863  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
32864else
32865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32866for as_dir in $PATH
32867do
32868  IFS=$as_save_IFS
32869  test -z "$as_dir" && as_dir=.
32870    for ac_exec_ext in '' $ac_executable_extensions; do
32871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32872    ac_cv_prog_ac_ct_OBJC="$ac_prog"
32873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32874    break 2
32875  fi
32876done
32877  done
32878IFS=$as_save_IFS
32879
32880fi
32881fi
32882ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
32883if test -n "$ac_ct_OBJC"; then
32884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
32885$as_echo "$ac_ct_OBJC" >&6; }
32886else
32887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32888$as_echo "no" >&6; }
32889fi
32890
32891
32892  test -n "$ac_ct_OBJC" && break
32893done
32894
32895  if test "x$ac_ct_OBJC" = x; then
32896    OBJC="gcc"
32897  else
32898    case $cross_compiling:$ac_tool_warned in
32899yes:)
32900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32902ac_tool_warned=yes ;;
32903esac
32904    OBJC=$ac_ct_OBJC
32905  fi
32906fi
32907
32908# Provide some information about the compiler.
32909$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
32910set X $ac_compile
32911ac_compiler=$2
32912for ac_option in --version -v -V -qversion; do
32913  { { ac_try="$ac_compiler $ac_option >&5"
32914case "(($ac_try" in
32915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916  *) ac_try_echo=$ac_try;;
32917esac
32918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32919$as_echo "$ac_try_echo"; } >&5
32920  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32921  ac_status=$?
32922  if test -s conftest.err; then
32923    sed '10a\
32924... rest of stderr output deleted ...
32925         10q' conftest.err >conftest.er1
32926    cat conftest.er1 >&5
32927  fi
32928  rm -f conftest.er1 conftest.err
32929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32930  test $ac_status = 0; }
32931done
32932
32933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
32934$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
32935if ${ac_cv_objc_compiler_gnu+:} false; then :
32936  $as_echo_n "(cached) " >&6
32937else
32938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32939/* end confdefs.h.  */
32940
32941int
32942main ()
32943{
32944#ifndef __GNUC__
32945       choke me
32946#endif
32947
32948  ;
32949  return 0;
32950}
32951_ACEOF
32952if ac_fn_objc_try_compile "$LINENO"; then :
32953  ac_compiler_gnu=yes
32954else
32955  ac_compiler_gnu=no
32956fi
32957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32958ac_cv_objc_compiler_gnu=$ac_compiler_gnu
32959
32960fi
32961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
32962$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
32963if test $ac_compiler_gnu = yes; then
32964  GOBJC=yes
32965else
32966  GOBJC=
32967fi
32968ac_test_OBJCFLAGS=${OBJCFLAGS+set}
32969ac_save_OBJCFLAGS=$OBJCFLAGS
32970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
32971$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
32972if ${ac_cv_prog_objc_g+:} false; then :
32973  $as_echo_n "(cached) " >&6
32974else
32975  ac_save_objc_werror_flag=$ac_objc_werror_flag
32976   ac_objc_werror_flag=yes
32977   ac_cv_prog_objc_g=no
32978   OBJCFLAGS="-g"
32979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32980/* end confdefs.h.  */
32981
32982int
32983main ()
32984{
32985
32986  ;
32987  return 0;
32988}
32989_ACEOF
32990if ac_fn_objc_try_compile "$LINENO"; then :
32991  ac_cv_prog_objc_g=yes
32992else
32993  OBJCFLAGS=""
32994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32995/* end confdefs.h.  */
32996
32997int
32998main ()
32999{
33000
33001  ;
33002  return 0;
33003}
33004_ACEOF
33005if ac_fn_objc_try_compile "$LINENO"; then :
33006
33007else
33008  ac_objc_werror_flag=$ac_save_objc_werror_flag
33009	 OBJCFLAGS="-g"
33010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33011/* end confdefs.h.  */
33012
33013int
33014main ()
33015{
33016
33017  ;
33018  return 0;
33019}
33020_ACEOF
33021if ac_fn_objc_try_compile "$LINENO"; then :
33022  ac_cv_prog_objc_g=yes
33023fi
33024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33025fi
33026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33027fi
33028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33029   ac_objc_werror_flag=$ac_save_objc_werror_flag
33030fi
33031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
33032$as_echo "$ac_cv_prog_objc_g" >&6; }
33033if test "$ac_test_OBJCFLAGS" = set; then
33034  OBJCFLAGS=$ac_save_OBJCFLAGS
33035elif test $ac_cv_prog_objc_g = yes; then
33036  if test "$GOBJC" = yes; then
33037    OBJCFLAGS="-g -O2"
33038  else
33039    OBJCFLAGS="-g"
33040  fi
33041else
33042  if test "$GOBJC" = yes; then
33043    OBJCFLAGS="-O2"
33044  else
33045    OBJCFLAGS=
33046  fi
33047fi
33048ac_ext=cpp
33049ac_cpp='$CXXCPP $CPPFLAGS'
33050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33053
33054
33055  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33056
33057  # First separate the path from the arguments. This will split at the first
33058  # space.
33059  complete="$OBJC"
33060  path="${complete%% *}"
33061  tmp="$complete EOL"
33062  arguments="${tmp#* }"
33063
33064  # Input might be given as Windows format, start by converting to
33065  # unix format.
33066  new_path=`$CYGPATH -u "$path"`
33067
33068  # Now try to locate executable using which
33069  new_path=`$WHICH "$new_path" 2> /dev/null`
33070  # bat and cmd files are not always considered executable in cygwin causing which
33071  # to not find them
33072  if test "x$new_path" = x \
33073      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33074      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33075    new_path=`$CYGPATH -u "$path"`
33076  fi
33077  if test "x$new_path" = x; then
33078    # Oops. Which didn't find the executable.
33079    # The splitting of arguments from the executable at a space might have been incorrect,
33080    # since paths with space are more likely in Windows. Give it another try with the whole
33081    # argument.
33082    path="$complete"
33083    arguments="EOL"
33084    new_path=`$CYGPATH -u "$path"`
33085    new_path=`$WHICH "$new_path" 2> /dev/null`
33086    # bat and cmd files are not always considered executable in cygwin causing which
33087    # to not find them
33088    if test "x$new_path" = x \
33089        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33090        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33091      new_path=`$CYGPATH -u "$path"`
33092    fi
33093    if test "x$new_path" = x; then
33094      # It's still not found. Now this is an unrecoverable error.
33095      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
33096$as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
33097      has_space=`$ECHO "$complete" | $GREP " "`
33098      if test "x$has_space" != x; then
33099        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33100$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33101      fi
33102      as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
33103    fi
33104  fi
33105
33106  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33107  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33108  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33109  # "foo.exe" is OK but "foo" is an error.
33110  #
33111  # This test is therefore slightly more accurate than "test -f" to check for file presence.
33112  # It is also a way to make sure we got the proper file name for the real test later on.
33113  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33114  if test "x$test_shortpath" = x; then
33115    # Short path failed, file does not exist as specified.
33116    # Try adding .exe or .cmd
33117    if test -f "${new_path}.exe"; then
33118      input_to_shortpath="${new_path}.exe"
33119    elif test -f "${new_path}.cmd"; then
33120      input_to_shortpath="${new_path}.cmd"
33121    else
33122      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5
33123$as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;}
33124      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33125$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33126      as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
33127    fi
33128  else
33129    input_to_shortpath="$new_path"
33130  fi
33131
33132  # Call helper function which possibly converts this using DOS-style short mode.
33133  # If so, the updated path is stored in $new_path.
33134  new_path="$input_to_shortpath"
33135
33136  input_path="$input_to_shortpath"
33137  # Check if we need to convert this using DOS-style short mode. If the path
33138  # contains just simple characters, use it. Otherwise (spaces, weird characters),
33139  # take no chances and rewrite it.
33140  # Note: m4 eats our [], so we need to use [ and ] instead.
33141  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33142  if test "x$has_forbidden_chars" != x; then
33143    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33144    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33145    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33146    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33147      # Going to short mode and back again did indeed matter. Since short mode is
33148      # case insensitive, let's make it lowercase to improve readability.
33149      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33150      # Now convert it back to Unix-stile (cygpath)
33151      input_path=`$CYGPATH -u "$shortmode_path"`
33152      new_path="$input_path"
33153    fi
33154  fi
33155
33156  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33157  if test "x$test_cygdrive_prefix" = x; then
33158    # As a simple fix, exclude /usr/bin since it's not a real path.
33159    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33160      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33161      # a path prefixed by /cygdrive for fixpath to work.
33162      new_path="$CYGWIN_ROOT_PATH$input_path"
33163    fi
33164  fi
33165
33166  # remove trailing .exe if any
33167  new_path="${new_path/%.exe/}"
33168
33169  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33170
33171  # First separate the path from the arguments. This will split at the first
33172  # space.
33173  complete="$OBJC"
33174  path="${complete%% *}"
33175  tmp="$complete EOL"
33176  arguments="${tmp#* }"
33177
33178  # Input might be given as Windows format, start by converting to
33179  # unix format.
33180  new_path="$path"
33181
33182  windows_path="$new_path"
33183  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33184    unix_path=`$CYGPATH -u "$windows_path"`
33185    new_path="$unix_path"
33186  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33187    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33188    new_path="$unix_path"
33189  fi
33190
33191
33192  # Now try to locate executable using which
33193  new_path=`$WHICH "$new_path" 2> /dev/null`
33194
33195  if test "x$new_path" = x; then
33196    # Oops. Which didn't find the executable.
33197    # The splitting of arguments from the executable at a space might have been incorrect,
33198    # since paths with space are more likely in Windows. Give it another try with the whole
33199    # argument.
33200    path="$complete"
33201    arguments="EOL"
33202    new_path="$path"
33203
33204  windows_path="$new_path"
33205  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33206    unix_path=`$CYGPATH -u "$windows_path"`
33207    new_path="$unix_path"
33208  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33209    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33210    new_path="$unix_path"
33211  fi
33212
33213
33214    new_path=`$WHICH "$new_path" 2> /dev/null`
33215
33216    if test "x$new_path" = x; then
33217      # It's still not found. Now this is an unrecoverable error.
33218      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
33219$as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
33220      has_space=`$ECHO "$complete" | $GREP " "`
33221      if test "x$has_space" != x; then
33222        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33223$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33224      fi
33225      as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
33226    fi
33227  fi
33228
33229  # Now new_path has a complete unix path to the binary
33230  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33231    # Keep paths in /bin as-is, but remove trailing .exe if any
33232    new_path="${new_path/%.exe/}"
33233    # Do not save /bin paths to all_fixpath_prefixes!
33234  else
33235    # Not in mixed or Windows style, start by that.
33236    new_path=`cmd //c echo $new_path`
33237
33238  input_path="$new_path"
33239  # Check if we need to convert this using DOS-style short mode. If the path
33240  # contains just simple characters, use it. Otherwise (spaces, weird characters),
33241  # take no chances and rewrite it.
33242  # Note: m4 eats our [], so we need to use [ and ] instead.
33243  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33244  if test "x$has_forbidden_chars" != x; then
33245    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33246    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33247  fi
33248
33249    # Output is in $new_path
33250
33251  windows_path="$new_path"
33252  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33253    unix_path=`$CYGPATH -u "$windows_path"`
33254    new_path="$unix_path"
33255  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33256    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33257    new_path="$unix_path"
33258  fi
33259
33260    # remove trailing .exe if any
33261    new_path="${new_path/%.exe/}"
33262
33263    # Save the first 10 bytes of this path to the storage, so fixpath can work.
33264    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33265  fi
33266
33267  else
33268    # We're on a posix platform. Hooray! :)
33269    # First separate the path from the arguments. This will split at the first
33270    # space.
33271    complete="$OBJC"
33272    path="${complete%% *}"
33273    tmp="$complete EOL"
33274    arguments="${tmp#* }"
33275
33276    # Cannot rely on the command "which" here since it doesn't always work.
33277    is_absolute_path=`$ECHO "$path" | $GREP ^/`
33278    if test -z "$is_absolute_path"; then
33279      # Path to executable is not absolute. Find it.
33280      IFS_save="$IFS"
33281      IFS=:
33282      for p in $PATH; do
33283        if test -f "$p/$path" && test -x "$p/$path"; then
33284          new_path="$p/$path"
33285          break
33286        fi
33287      done
33288      IFS="$IFS_save"
33289    else
33290      # This is an absolute path, we can use it without further modifications.
33291      new_path="$path"
33292    fi
33293
33294    if test "x$new_path" = x; then
33295      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
33296$as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
33297      has_space=`$ECHO "$complete" | $GREP " "`
33298      if test "x$has_space" != x; then
33299        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33300$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33301      fi
33302      as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
33303    fi
33304  fi
33305
33306  # Now join together the path and the arguments once again
33307  if test "x$arguments" != xEOL; then
33308    new_complete="$new_path ${arguments% *}"
33309  else
33310    new_complete="$new_path"
33311  fi
33312
33313  if test "x$complete" != "x$new_complete"; then
33314    OBJC="$new_complete"
33315    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5
33316$as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;}
33317  fi
33318
33319
33320
33321  # Publish this variable in the help.
33322
33323
33324  if test "x$LIPO" = x; then
33325    # The variable is not set by user, try to locate tool using the code snippet
33326    for ac_prog in lipo
33327do
33328  # Extract the first word of "$ac_prog", so it can be a program name with args.
33329set dummy $ac_prog; ac_word=$2
33330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33331$as_echo_n "checking for $ac_word... " >&6; }
33332if ${ac_cv_path_LIPO+:} false; then :
33333  $as_echo_n "(cached) " >&6
33334else
33335  case $LIPO in
33336  [\\/]* | ?:[\\/]*)
33337  ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
33338  ;;
33339  *)
33340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343  IFS=$as_save_IFS
33344  test -z "$as_dir" && as_dir=.
33345    for ac_exec_ext in '' $ac_executable_extensions; do
33346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33347    ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
33348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33349    break 2
33350  fi
33351done
33352  done
33353IFS=$as_save_IFS
33354
33355  ;;
33356esac
33357fi
33358LIPO=$ac_cv_path_LIPO
33359if test -n "$LIPO"; then
33360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
33361$as_echo "$LIPO" >&6; }
33362else
33363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33364$as_echo "no" >&6; }
33365fi
33366
33367
33368  test -n "$LIPO" && break
33369done
33370
33371  else
33372    # The variable is set, but is it from the command line or the environment?
33373
33374    # Try to remove the string !LIPO! from our list.
33375    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/}
33376    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
33377      # If it failed, the variable was not from the command line. Ignore it,
33378      # but warn the user (except for BASH, which is always set by the calling BASH).
33379      if test "xLIPO" != xBASH; then
33380        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5
33381$as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;}
33382      fi
33383      # Try to locate tool using the code snippet
33384      for ac_prog in lipo
33385do
33386  # Extract the first word of "$ac_prog", so it can be a program name with args.
33387set dummy $ac_prog; ac_word=$2
33388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33389$as_echo_n "checking for $ac_word... " >&6; }
33390if ${ac_cv_path_LIPO+:} false; then :
33391  $as_echo_n "(cached) " >&6
33392else
33393  case $LIPO in
33394  [\\/]* | ?:[\\/]*)
33395  ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
33396  ;;
33397  *)
33398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33399for as_dir in $PATH
33400do
33401  IFS=$as_save_IFS
33402  test -z "$as_dir" && as_dir=.
33403    for ac_exec_ext in '' $ac_executable_extensions; do
33404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33405    ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
33406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33407    break 2
33408  fi
33409done
33410  done
33411IFS=$as_save_IFS
33412
33413  ;;
33414esac
33415fi
33416LIPO=$ac_cv_path_LIPO
33417if test -n "$LIPO"; then
33418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
33419$as_echo "$LIPO" >&6; }
33420else
33421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33422$as_echo "no" >&6; }
33423fi
33424
33425
33426  test -n "$LIPO" && break
33427done
33428
33429    else
33430      # If it succeeded, then it was overridden by the user. We will use it
33431      # for the tool.
33432
33433      # First remove it from the list of overridden variables, so we can test
33434      # for unknown variables in the end.
33435      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
33436
33437      # Check if the provided tool contains a complete path.
33438      tool_specified="$LIPO"
33439      tool_basename="${tool_specified##*/}"
33440      if test "x$tool_basename" = "x$tool_specified"; then
33441        # A command without a complete path is provided, search $PATH.
33442        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5
33443$as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;}
33444        # Extract the first word of "$tool_basename", so it can be a program name with args.
33445set dummy $tool_basename; ac_word=$2
33446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33447$as_echo_n "checking for $ac_word... " >&6; }
33448if ${ac_cv_path_LIPO+:} false; then :
33449  $as_echo_n "(cached) " >&6
33450else
33451  case $LIPO in
33452  [\\/]* | ?:[\\/]*)
33453  ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
33454  ;;
33455  *)
33456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33457for as_dir in $PATH
33458do
33459  IFS=$as_save_IFS
33460  test -z "$as_dir" && as_dir=.
33461    for ac_exec_ext in '' $ac_executable_extensions; do
33462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33463    ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
33464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33465    break 2
33466  fi
33467done
33468  done
33469IFS=$as_save_IFS
33470
33471  ;;
33472esac
33473fi
33474LIPO=$ac_cv_path_LIPO
33475if test -n "$LIPO"; then
33476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
33477$as_echo "$LIPO" >&6; }
33478else
33479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33480$as_echo "no" >&6; }
33481fi
33482
33483
33484        if test "x$LIPO" = x; then
33485          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
33486        fi
33487      else
33488        # Otherwise we believe it is a complete path. Use it as it is.
33489        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5
33490$as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;}
33491        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5
33492$as_echo_n "checking for LIPO... " >&6; }
33493        if test ! -x "$tool_specified"; then
33494          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
33495$as_echo "not found" >&6; }
33496          as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5
33497        fi
33498        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
33499$as_echo "$tool_specified" >&6; }
33500      fi
33501    fi
33502  fi
33503
33504
33505
33506  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33507
33508  # First separate the path from the arguments. This will split at the first
33509  # space.
33510  complete="$LIPO"
33511  path="${complete%% *}"
33512  tmp="$complete EOL"
33513  arguments="${tmp#* }"
33514
33515  # Input might be given as Windows format, start by converting to
33516  # unix format.
33517  new_path=`$CYGPATH -u "$path"`
33518
33519  # Now try to locate executable using which
33520  new_path=`$WHICH "$new_path" 2> /dev/null`
33521  # bat and cmd files are not always considered executable in cygwin causing which
33522  # to not find them
33523  if test "x$new_path" = x \
33524      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33525      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33526    new_path=`$CYGPATH -u "$path"`
33527  fi
33528  if test "x$new_path" = x; then
33529    # Oops. Which didn't find the executable.
33530    # The splitting of arguments from the executable at a space might have been incorrect,
33531    # since paths with space are more likely in Windows. Give it another try with the whole
33532    # argument.
33533    path="$complete"
33534    arguments="EOL"
33535    new_path=`$CYGPATH -u "$path"`
33536    new_path=`$WHICH "$new_path" 2> /dev/null`
33537    # bat and cmd files are not always considered executable in cygwin causing which
33538    # to not find them
33539    if test "x$new_path" = x \
33540        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33541        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33542      new_path=`$CYGPATH -u "$path"`
33543    fi
33544    if test "x$new_path" = x; then
33545      # It's still not found. Now this is an unrecoverable error.
33546      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
33547$as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
33548      has_space=`$ECHO "$complete" | $GREP " "`
33549      if test "x$has_space" != x; then
33550        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33551$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33552      fi
33553      as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
33554    fi
33555  fi
33556
33557  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33558  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33559  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33560  # "foo.exe" is OK but "foo" is an error.
33561  #
33562  # This test is therefore slightly more accurate than "test -f" to check for file presence.
33563  # It is also a way to make sure we got the proper file name for the real test later on.
33564  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33565  if test "x$test_shortpath" = x; then
33566    # Short path failed, file does not exist as specified.
33567    # Try adding .exe or .cmd
33568    if test -f "${new_path}.exe"; then
33569      input_to_shortpath="${new_path}.exe"
33570    elif test -f "${new_path}.cmd"; then
33571      input_to_shortpath="${new_path}.cmd"
33572    else
33573      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5
33574$as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;}
33575      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33576$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33577      as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
33578    fi
33579  else
33580    input_to_shortpath="$new_path"
33581  fi
33582
33583  # Call helper function which possibly converts this using DOS-style short mode.
33584  # If so, the updated path is stored in $new_path.
33585  new_path="$input_to_shortpath"
33586
33587  input_path="$input_to_shortpath"
33588  # Check if we need to convert this using DOS-style short mode. If the path
33589  # contains just simple characters, use it. Otherwise (spaces, weird characters),
33590  # take no chances and rewrite it.
33591  # Note: m4 eats our [], so we need to use [ and ] instead.
33592  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33593  if test "x$has_forbidden_chars" != x; then
33594    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33595    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33596    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33597    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33598      # Going to short mode and back again did indeed matter. Since short mode is
33599      # case insensitive, let's make it lowercase to improve readability.
33600      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33601      # Now convert it back to Unix-stile (cygpath)
33602      input_path=`$CYGPATH -u "$shortmode_path"`
33603      new_path="$input_path"
33604    fi
33605  fi
33606
33607  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33608  if test "x$test_cygdrive_prefix" = x; then
33609    # As a simple fix, exclude /usr/bin since it's not a real path.
33610    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33611      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33612      # a path prefixed by /cygdrive for fixpath to work.
33613      new_path="$CYGWIN_ROOT_PATH$input_path"
33614    fi
33615  fi
33616
33617  # remove trailing .exe if any
33618  new_path="${new_path/%.exe/}"
33619
33620  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33621
33622  # First separate the path from the arguments. This will split at the first
33623  # space.
33624  complete="$LIPO"
33625  path="${complete%% *}"
33626  tmp="$complete EOL"
33627  arguments="${tmp#* }"
33628
33629  # Input might be given as Windows format, start by converting to
33630  # unix format.
33631  new_path="$path"
33632
33633  windows_path="$new_path"
33634  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33635    unix_path=`$CYGPATH -u "$windows_path"`
33636    new_path="$unix_path"
33637  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33638    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33639    new_path="$unix_path"
33640  fi
33641
33642
33643  # Now try to locate executable using which
33644  new_path=`$WHICH "$new_path" 2> /dev/null`
33645
33646  if test "x$new_path" = x; then
33647    # Oops. Which didn't find the executable.
33648    # The splitting of arguments from the executable at a space might have been incorrect,
33649    # since paths with space are more likely in Windows. Give it another try with the whole
33650    # argument.
33651    path="$complete"
33652    arguments="EOL"
33653    new_path="$path"
33654
33655  windows_path="$new_path"
33656  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33657    unix_path=`$CYGPATH -u "$windows_path"`
33658    new_path="$unix_path"
33659  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33660    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33661    new_path="$unix_path"
33662  fi
33663
33664
33665    new_path=`$WHICH "$new_path" 2> /dev/null`
33666
33667    if test "x$new_path" = x; then
33668      # It's still not found. Now this is an unrecoverable error.
33669      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
33670$as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
33671      has_space=`$ECHO "$complete" | $GREP " "`
33672      if test "x$has_space" != x; then
33673        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33674$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33675      fi
33676      as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
33677    fi
33678  fi
33679
33680  # Now new_path has a complete unix path to the binary
33681  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
33682    # Keep paths in /bin as-is, but remove trailing .exe if any
33683    new_path="${new_path/%.exe/}"
33684    # Do not save /bin paths to all_fixpath_prefixes!
33685  else
33686    # Not in mixed or Windows style, start by that.
33687    new_path=`cmd //c echo $new_path`
33688
33689  input_path="$new_path"
33690  # Check if we need to convert this using DOS-style short mode. If the path
33691  # contains just simple characters, use it. Otherwise (spaces, weird characters),
33692  # take no chances and rewrite it.
33693  # Note: m4 eats our [], so we need to use [ and ] instead.
33694  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
33695  if test "x$has_forbidden_chars" != x; then
33696    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33697    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33698  fi
33699
33700    # Output is in $new_path
33701
33702  windows_path="$new_path"
33703  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33704    unix_path=`$CYGPATH -u "$windows_path"`
33705    new_path="$unix_path"
33706  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33707    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33708    new_path="$unix_path"
33709  fi
33710
33711    # remove trailing .exe if any
33712    new_path="${new_path/%.exe/}"
33713
33714    # Save the first 10 bytes of this path to the storage, so fixpath can work.
33715    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
33716  fi
33717
33718  else
33719    # We're on a posix platform. Hooray! :)
33720    # First separate the path from the arguments. This will split at the first
33721    # space.
33722    complete="$LIPO"
33723    path="${complete%% *}"
33724    tmp="$complete EOL"
33725    arguments="${tmp#* }"
33726
33727    # Cannot rely on the command "which" here since it doesn't always work.
33728    is_absolute_path=`$ECHO "$path" | $GREP ^/`
33729    if test -z "$is_absolute_path"; then
33730      # Path to executable is not absolute. Find it.
33731      IFS_save="$IFS"
33732      IFS=:
33733      for p in $PATH; do
33734        if test -f "$p/$path" && test -x "$p/$path"; then
33735          new_path="$p/$path"
33736          break
33737        fi
33738      done
33739      IFS="$IFS_save"
33740    else
33741      # This is an absolute path, we can use it without further modifications.
33742      new_path="$path"
33743    fi
33744
33745    if test "x$new_path" = x; then
33746      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
33747$as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
33748      has_space=`$ECHO "$complete" | $GREP " "`
33749      if test "x$has_space" != x; then
33750        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
33751$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
33752      fi
33753      as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
33754    fi
33755  fi
33756
33757  # Now join together the path and the arguments once again
33758  if test "x$arguments" != xEOL; then
33759    new_complete="$new_path ${arguments% *}"
33760  else
33761    new_complete="$new_path"
33762  fi
33763
33764  if test "x$complete" != "x$new_complete"; then
33765    LIPO="$new_complete"
33766    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
33767$as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
33768  fi
33769
33770  else
33771    OBJC=
33772  fi
33773
33774  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
33775    # Extract the first word of "mt", so it can be a program name with args.
33776set dummy mt; ac_word=$2
33777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33778$as_echo_n "checking for $ac_word... " >&6; }
33779if ${ac_cv_prog_MT+:} false; then :
33780  $as_echo_n "(cached) " >&6
33781else
33782  if test -n "$MT"; then
33783  ac_cv_prog_MT="$MT" # Let the user override the test.
33784else
33785  ac_prog_rejected=no
33786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33787for as_dir in $PATH
33788do
33789  IFS=$as_save_IFS
33790  test -z "$as_dir" && as_dir=.
33791    for ac_exec_ext in '' $ac_executable_extensions; do
33792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33793    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
33794       ac_prog_rejected=yes
33795       continue
33796     fi
33797    ac_cv_prog_MT="mt"
33798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33799    break 2
33800  fi
33801done
33802  done
33803IFS=$as_save_IFS
33804
33805if test $ac_prog_rejected = yes; then
33806  # We found a bogon in the path, so make sure we never use it.
33807  set dummy $ac_cv_prog_MT
33808  shift
33809  if test $# != 0; then
33810    # We chose a different compiler from the bogus one.
33811    # However, it has the same basename, so the bogon will be chosen
33812    # first if we set MT to just the basename; use the full file name.
33813    shift
33814    ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
33815  fi
33816fi
33817fi
33818fi
33819MT=$ac_cv_prog_MT
33820if test -n "$MT"; then
33821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
33822$as_echo "$MT" >&6; }
33823else
33824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33825$as_echo "no" >&6; }
33826fi
33827
33828
33829
33830  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33831
33832  # First separate the path from the arguments. This will split at the first
33833  # space.
33834  complete="$MT"
33835  path="${complete%% *}"
33836  tmp="$complete EOL"
33837  arguments="${tmp#* }"
33838
33839  # Input might be given as Windows format, start by converting to
33840  # unix format.
33841  new_path=`$CYGPATH -u "$path"`
33842
33843  # Now try to locate executable using which
33844  new_path=`$WHICH "$new_path" 2> /dev/null`
33845  # bat and cmd files are not always considered executable in cygwin causing which
33846  # to not find them
33847  if test "x$new_path" = x \
33848      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33849      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33850    new_path=`$CYGPATH -u "$path"`
33851  fi
33852  if test "x$new_path" = x; then
33853    # Oops. Which didn't find the executable.
33854    # The splitting of arguments from the executable at a space might have been incorrect,
33855    # since paths with space are more likely in Windows. Give it another try with the whole
33856    # argument.
33857    path="$complete"
33858    arguments="EOL"
33859    new_path=`$CYGPATH -u "$path"`
33860    new_path=`$WHICH "$new_path" 2> /dev/null`
33861    # bat and cmd files are not always considered executable in cygwin causing which
33862    # to not find them
33863    if test "x$new_path" = x \
33864        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
33865        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
33866      new_path=`$CYGPATH -u "$path"`
33867    fi
33868    if test "x$new_path" = x; then
33869      # It's still not found. Now this is an unrecoverable error.
33870      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33871$as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33872      has_space=`$ECHO "$complete" | $GREP " "`
33873      if test "x$has_space" != x; then
33874        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33875$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33876      fi
33877      as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33878    fi
33879  fi
33880
33881  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
33882  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
33883  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
33884  # "foo.exe" is OK but "foo" is an error.
33885  #
33886  # This test is therefore slightly more accurate than "test -f" to check for file presence.
33887  # It is also a way to make sure we got the proper file name for the real test later on.
33888  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
33889  if test "x$test_shortpath" = x; then
33890    # Short path failed, file does not exist as specified.
33891    # Try adding .exe or .cmd
33892    if test -f "${new_path}.exe"; then
33893      input_to_shortpath="${new_path}.exe"
33894    elif test -f "${new_path}.cmd"; then
33895      input_to_shortpath="${new_path}.cmd"
33896    else
33897      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5
33898$as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;}
33899      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
33900$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
33901      as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
33902    fi
33903  else
33904    input_to_shortpath="$new_path"
33905  fi
33906
33907  # Call helper function which possibly converts this using DOS-style short mode.
33908  # If so, the updated path is stored in $new_path.
33909  new_path="$input_to_shortpath"
33910
33911  input_path="$input_to_shortpath"
33912  # Check if we need to convert this using DOS-style short mode. If the path
33913  # contains just simple characters, use it. Otherwise (spaces, weird characters),
33914  # take no chances and rewrite it.
33915  # Note: m4 eats our [], so we need to use [ and ] instead.
33916  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
33917  if test "x$has_forbidden_chars" != x; then
33918    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
33919    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
33920    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
33921    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
33922      # Going to short mode and back again did indeed matter. Since short mode is
33923      # case insensitive, let's make it lowercase to improve readability.
33924      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
33925      # Now convert it back to Unix-stile (cygpath)
33926      input_path=`$CYGPATH -u "$shortmode_path"`
33927      new_path="$input_path"
33928    fi
33929  fi
33930
33931  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
33932  if test "x$test_cygdrive_prefix" = x; then
33933    # As a simple fix, exclude /usr/bin since it's not a real path.
33934    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
33935      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
33936      # a path prefixed by /cygdrive for fixpath to work.
33937      new_path="$CYGWIN_ROOT_PATH$input_path"
33938    fi
33939  fi
33940
33941  # remove trailing .exe if any
33942  new_path="${new_path/%.exe/}"
33943
33944  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33945
33946  # First separate the path from the arguments. This will split at the first
33947  # space.
33948  complete="$MT"
33949  path="${complete%% *}"
33950  tmp="$complete EOL"
33951  arguments="${tmp#* }"
33952
33953  # Input might be given as Windows format, start by converting to
33954  # unix format.
33955  new_path="$path"
33956
33957  windows_path="$new_path"
33958  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33959    unix_path=`$CYGPATH -u "$windows_path"`
33960    new_path="$unix_path"
33961  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33962    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33963    new_path="$unix_path"
33964  fi
33965
33966
33967  # Now try to locate executable using which
33968  new_path=`$WHICH "$new_path" 2> /dev/null`
33969
33970  if test "x$new_path" = x; then
33971    # Oops. Which didn't find the executable.
33972    # The splitting of arguments from the executable at a space might have been incorrect,
33973    # since paths with space are more likely in Windows. Give it another try with the whole
33974    # argument.
33975    path="$complete"
33976    arguments="EOL"
33977    new_path="$path"
33978
33979  windows_path="$new_path"
33980  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
33981    unix_path=`$CYGPATH -u "$windows_path"`
33982    new_path="$unix_path"
33983  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
33984    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
33985    new_path="$unix_path"
33986  fi
33987
33988
33989    new_path=`$WHICH "$new_path" 2> /dev/null`
33990
33991    if test "x$new_path" = x; then
33992      # It's still not found. Now this is an unrecoverable error.
33993      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
33994$as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
33995      has_space=`$ECHO "$complete" | $GREP " "`
33996      if test "x$has_space" != x; then
33997        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
33998$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
33999      fi
34000      as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
34001    fi
34002  fi
34003
34004  # Now new_path has a complete unix path to the binary
34005  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34006    # Keep paths in /bin as-is, but remove trailing .exe if any
34007    new_path="${new_path/%.exe/}"
34008    # Do not save /bin paths to all_fixpath_prefixes!
34009  else
34010    # Not in mixed or Windows style, start by that.
34011    new_path=`cmd //c echo $new_path`
34012
34013  input_path="$new_path"
34014  # Check if we need to convert this using DOS-style short mode. If the path
34015  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34016  # take no chances and rewrite it.
34017  # Note: m4 eats our [], so we need to use [ and ] instead.
34018  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34019  if test "x$has_forbidden_chars" != x; then
34020    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34021    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34022  fi
34023
34024    # Output is in $new_path
34025
34026  windows_path="$new_path"
34027  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34028    unix_path=`$CYGPATH -u "$windows_path"`
34029    new_path="$unix_path"
34030  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34031    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34032    new_path="$unix_path"
34033  fi
34034
34035    # remove trailing .exe if any
34036    new_path="${new_path/%.exe/}"
34037
34038    # Save the first 10 bytes of this path to the storage, so fixpath can work.
34039    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34040  fi
34041
34042  else
34043    # We're on a posix platform. Hooray! :)
34044    # First separate the path from the arguments. This will split at the first
34045    # space.
34046    complete="$MT"
34047    path="${complete%% *}"
34048    tmp="$complete EOL"
34049    arguments="${tmp#* }"
34050
34051    # Cannot rely on the command "which" here since it doesn't always work.
34052    is_absolute_path=`$ECHO "$path" | $GREP ^/`
34053    if test -z "$is_absolute_path"; then
34054      # Path to executable is not absolute. Find it.
34055      IFS_save="$IFS"
34056      IFS=:
34057      for p in $PATH; do
34058        if test -f "$p/$path" && test -x "$p/$path"; then
34059          new_path="$p/$path"
34060          break
34061        fi
34062      done
34063      IFS="$IFS_save"
34064    else
34065      # This is an absolute path, we can use it without further modifications.
34066      new_path="$path"
34067    fi
34068
34069    if test "x$new_path" = x; then
34070      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
34071$as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
34072      has_space=`$ECHO "$complete" | $GREP " "`
34073      if test "x$has_space" != x; then
34074        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34075$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34076      fi
34077      as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
34078    fi
34079  fi
34080
34081  # Now join together the path and the arguments once again
34082  if test "x$arguments" != xEOL; then
34083    new_complete="$new_path ${arguments% *}"
34084  else
34085    new_complete="$new_path"
34086  fi
34087
34088  if test "x$complete" != "x$new_complete"; then
34089    MT="$new_complete"
34090    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
34091$as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
34092  fi
34093
34094    # Setup the resource compiler (RC)
34095    # Extract the first word of "rc", so it can be a program name with args.
34096set dummy rc; ac_word=$2
34097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34098$as_echo_n "checking for $ac_word... " >&6; }
34099if ${ac_cv_prog_RC+:} false; then :
34100  $as_echo_n "(cached) " >&6
34101else
34102  if test -n "$RC"; then
34103  ac_cv_prog_RC="$RC" # Let the user override the test.
34104else
34105  ac_prog_rejected=no
34106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34107for as_dir in $PATH
34108do
34109  IFS=$as_save_IFS
34110  test -z "$as_dir" && as_dir=.
34111    for ac_exec_ext in '' $ac_executable_extensions; do
34112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34113    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
34114       ac_prog_rejected=yes
34115       continue
34116     fi
34117    ac_cv_prog_RC="rc"
34118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34119    break 2
34120  fi
34121done
34122  done
34123IFS=$as_save_IFS
34124
34125if test $ac_prog_rejected = yes; then
34126  # We found a bogon in the path, so make sure we never use it.
34127  set dummy $ac_cv_prog_RC
34128  shift
34129  if test $# != 0; then
34130    # We chose a different compiler from the bogus one.
34131    # However, it has the same basename, so the bogon will be chosen
34132    # first if we set RC to just the basename; use the full file name.
34133    shift
34134    ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
34135  fi
34136fi
34137fi
34138fi
34139RC=$ac_cv_prog_RC
34140if test -n "$RC"; then
34141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
34142$as_echo "$RC" >&6; }
34143else
34144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34145$as_echo "no" >&6; }
34146fi
34147
34148
34149
34150  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34151
34152  # First separate the path from the arguments. This will split at the first
34153  # space.
34154  complete="$RC"
34155  path="${complete%% *}"
34156  tmp="$complete EOL"
34157  arguments="${tmp#* }"
34158
34159  # Input might be given as Windows format, start by converting to
34160  # unix format.
34161  new_path=`$CYGPATH -u "$path"`
34162
34163  # Now try to locate executable using which
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    # Oops. Which didn't find the executable.
34174    # The splitting of arguments from the executable at a space might have been incorrect,
34175    # since paths with space are more likely in Windows. Give it another try with the whole
34176    # argument.
34177    path="$complete"
34178    arguments="EOL"
34179    new_path=`$CYGPATH -u "$path"`
34180    new_path=`$WHICH "$new_path" 2> /dev/null`
34181    # bat and cmd files are not always considered executable in cygwin causing which
34182    # to not find them
34183    if test "x$new_path" = x \
34184        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34185        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34186      new_path=`$CYGPATH -u "$path"`
34187    fi
34188    if test "x$new_path" = x; then
34189      # It's still not found. Now this is an unrecoverable error.
34190      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34191$as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34192      has_space=`$ECHO "$complete" | $GREP " "`
34193      if test "x$has_space" != x; then
34194        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34195$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34196      fi
34197      as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34198    fi
34199  fi
34200
34201  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34202  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34203  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34204  # "foo.exe" is OK but "foo" is an error.
34205  #
34206  # This test is therefore slightly more accurate than "test -f" to check for file presence.
34207  # It is also a way to make sure we got the proper file name for the real test later on.
34208  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34209  if test "x$test_shortpath" = x; then
34210    # Short path failed, file does not exist as specified.
34211    # Try adding .exe or .cmd
34212    if test -f "${new_path}.exe"; then
34213      input_to_shortpath="${new_path}.exe"
34214    elif test -f "${new_path}.cmd"; then
34215      input_to_shortpath="${new_path}.cmd"
34216    else
34217      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5
34218$as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;}
34219      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34220$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34221      as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34222    fi
34223  else
34224    input_to_shortpath="$new_path"
34225  fi
34226
34227  # Call helper function which possibly converts this using DOS-style short mode.
34228  # If so, the updated path is stored in $new_path.
34229  new_path="$input_to_shortpath"
34230
34231  input_path="$input_to_shortpath"
34232  # Check if we need to convert this using DOS-style short mode. If the path
34233  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34234  # take no chances and rewrite it.
34235  # Note: m4 eats our [], so we need to use [ and ] instead.
34236  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34237  if test "x$has_forbidden_chars" != x; then
34238    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34239    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34240    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34241    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34242      # Going to short mode and back again did indeed matter. Since short mode is
34243      # case insensitive, let's make it lowercase to improve readability.
34244      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34245      # Now convert it back to Unix-stile (cygpath)
34246      input_path=`$CYGPATH -u "$shortmode_path"`
34247      new_path="$input_path"
34248    fi
34249  fi
34250
34251  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34252  if test "x$test_cygdrive_prefix" = x; then
34253    # As a simple fix, exclude /usr/bin since it's not a real path.
34254    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34255      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34256      # a path prefixed by /cygdrive for fixpath to work.
34257      new_path="$CYGWIN_ROOT_PATH$input_path"
34258    fi
34259  fi
34260
34261  # remove trailing .exe if any
34262  new_path="${new_path/%.exe/}"
34263
34264  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34265
34266  # First separate the path from the arguments. This will split at the first
34267  # space.
34268  complete="$RC"
34269  path="${complete%% *}"
34270  tmp="$complete EOL"
34271  arguments="${tmp#* }"
34272
34273  # Input might be given as Windows format, start by converting to
34274  # unix format.
34275  new_path="$path"
34276
34277  windows_path="$new_path"
34278  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34279    unix_path=`$CYGPATH -u "$windows_path"`
34280    new_path="$unix_path"
34281  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34282    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34283    new_path="$unix_path"
34284  fi
34285
34286
34287  # Now try to locate executable using which
34288  new_path=`$WHICH "$new_path" 2> /dev/null`
34289
34290  if test "x$new_path" = x; then
34291    # Oops. Which didn't find the executable.
34292    # The splitting of arguments from the executable at a space might have been incorrect,
34293    # since paths with space are more likely in Windows. Give it another try with the whole
34294    # argument.
34295    path="$complete"
34296    arguments="EOL"
34297    new_path="$path"
34298
34299  windows_path="$new_path"
34300  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34301    unix_path=`$CYGPATH -u "$windows_path"`
34302    new_path="$unix_path"
34303  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34304    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34305    new_path="$unix_path"
34306  fi
34307
34308
34309    new_path=`$WHICH "$new_path" 2> /dev/null`
34310
34311    if test "x$new_path" = x; then
34312      # It's still not found. Now this is an unrecoverable error.
34313      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34314$as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34315      has_space=`$ECHO "$complete" | $GREP " "`
34316      if test "x$has_space" != x; then
34317        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34318$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34319      fi
34320      as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34321    fi
34322  fi
34323
34324  # Now new_path has a complete unix path to the binary
34325  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34326    # Keep paths in /bin as-is, but remove trailing .exe if any
34327    new_path="${new_path/%.exe/}"
34328    # Do not save /bin paths to all_fixpath_prefixes!
34329  else
34330    # Not in mixed or Windows style, start by that.
34331    new_path=`cmd //c echo $new_path`
34332
34333  input_path="$new_path"
34334  # Check if we need to convert this using DOS-style short mode. If the path
34335  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34336  # take no chances and rewrite it.
34337  # Note: m4 eats our [], so we need to use [ and ] instead.
34338  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34339  if test "x$has_forbidden_chars" != x; then
34340    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34341    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34342  fi
34343
34344    # Output is in $new_path
34345
34346  windows_path="$new_path"
34347  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34348    unix_path=`$CYGPATH -u "$windows_path"`
34349    new_path="$unix_path"
34350  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34351    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34352    new_path="$unix_path"
34353  fi
34354
34355    # remove trailing .exe if any
34356    new_path="${new_path/%.exe/}"
34357
34358    # Save the first 10 bytes of this path to the storage, so fixpath can work.
34359    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34360  fi
34361
34362  else
34363    # We're on a posix platform. Hooray! :)
34364    # First separate the path from the arguments. This will split at the first
34365    # space.
34366    complete="$RC"
34367    path="${complete%% *}"
34368    tmp="$complete EOL"
34369    arguments="${tmp#* }"
34370
34371    # Cannot rely on the command "which" here since it doesn't always work.
34372    is_absolute_path=`$ECHO "$path" | $GREP ^/`
34373    if test -z "$is_absolute_path"; then
34374      # Path to executable is not absolute. Find it.
34375      IFS_save="$IFS"
34376      IFS=:
34377      for p in $PATH; do
34378        if test -f "$p/$path" && test -x "$p/$path"; then
34379          new_path="$p/$path"
34380          break
34381        fi
34382      done
34383      IFS="$IFS_save"
34384    else
34385      # This is an absolute path, we can use it without further modifications.
34386      new_path="$path"
34387    fi
34388
34389    if test "x$new_path" = x; then
34390      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
34391$as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
34392      has_space=`$ECHO "$complete" | $GREP " "`
34393      if test "x$has_space" != x; then
34394        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34395$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34396      fi
34397      as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
34398    fi
34399  fi
34400
34401  # Now join together the path and the arguments once again
34402  if test "x$arguments" != xEOL; then
34403    new_complete="$new_path ${arguments% *}"
34404  else
34405    new_complete="$new_path"
34406  fi
34407
34408  if test "x$complete" != "x$new_complete"; then
34409    RC="$new_complete"
34410    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5
34411$as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;}
34412  fi
34413
34414    # Extract the first word of "dumpbin", so it can be a program name with args.
34415set dummy dumpbin; ac_word=$2
34416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34417$as_echo_n "checking for $ac_word... " >&6; }
34418if ${ac_cv_prog_DUMPBIN+:} false; then :
34419  $as_echo_n "(cached) " >&6
34420else
34421  if test -n "$DUMPBIN"; then
34422  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
34423else
34424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34425for as_dir in $PATH
34426do
34427  IFS=$as_save_IFS
34428  test -z "$as_dir" && as_dir=.
34429    for ac_exec_ext in '' $ac_executable_extensions; do
34430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34431    ac_cv_prog_DUMPBIN="dumpbin"
34432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34433    break 2
34434  fi
34435done
34436  done
34437IFS=$as_save_IFS
34438
34439fi
34440fi
34441DUMPBIN=$ac_cv_prog_DUMPBIN
34442if test -n "$DUMPBIN"; then
34443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
34444$as_echo "$DUMPBIN" >&6; }
34445else
34446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34447$as_echo "no" >&6; }
34448fi
34449
34450
34451
34452  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34453
34454  # First separate the path from the arguments. This will split at the first
34455  # space.
34456  complete="$DUMPBIN"
34457  path="${complete%% *}"
34458  tmp="$complete EOL"
34459  arguments="${tmp#* }"
34460
34461  # Input might be given as Windows format, start by converting to
34462  # unix format.
34463  new_path=`$CYGPATH -u "$path"`
34464
34465  # Now try to locate executable using which
34466  new_path=`$WHICH "$new_path" 2> /dev/null`
34467  # bat and cmd files are not always considered executable in cygwin causing which
34468  # to not find them
34469  if test "x$new_path" = x \
34470      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34471      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34472    new_path=`$CYGPATH -u "$path"`
34473  fi
34474  if test "x$new_path" = x; then
34475    # Oops. Which didn't find the executable.
34476    # The splitting of arguments from the executable at a space might have been incorrect,
34477    # since paths with space are more likely in Windows. Give it another try with the whole
34478    # argument.
34479    path="$complete"
34480    arguments="EOL"
34481    new_path=`$CYGPATH -u "$path"`
34482    new_path=`$WHICH "$new_path" 2> /dev/null`
34483    # bat and cmd files are not always considered executable in cygwin causing which
34484    # to not find them
34485    if test "x$new_path" = x \
34486        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34487        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34488      new_path=`$CYGPATH -u "$path"`
34489    fi
34490    if test "x$new_path" = x; then
34491      # It's still not found. Now this is an unrecoverable error.
34492      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34493$as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34494      has_space=`$ECHO "$complete" | $GREP " "`
34495      if test "x$has_space" != x; then
34496        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34497$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34498      fi
34499      as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34500    fi
34501  fi
34502
34503  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34504  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34505  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34506  # "foo.exe" is OK but "foo" is an error.
34507  #
34508  # This test is therefore slightly more accurate than "test -f" to check for file presence.
34509  # It is also a way to make sure we got the proper file name for the real test later on.
34510  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34511  if test "x$test_shortpath" = x; then
34512    # Short path failed, file does not exist as specified.
34513    # Try adding .exe or .cmd
34514    if test -f "${new_path}.exe"; then
34515      input_to_shortpath="${new_path}.exe"
34516    elif test -f "${new_path}.cmd"; then
34517      input_to_shortpath="${new_path}.cmd"
34518    else
34519      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5
34520$as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;}
34521      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34522$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34523      as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34524    fi
34525  else
34526    input_to_shortpath="$new_path"
34527  fi
34528
34529  # Call helper function which possibly converts this using DOS-style short mode.
34530  # If so, the updated path is stored in $new_path.
34531  new_path="$input_to_shortpath"
34532
34533  input_path="$input_to_shortpath"
34534  # Check if we need to convert this using DOS-style short mode. If the path
34535  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34536  # take no chances and rewrite it.
34537  # Note: m4 eats our [], so we need to use [ and ] instead.
34538  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34539  if test "x$has_forbidden_chars" != x; then
34540    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34541    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34542    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34543    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34544      # Going to short mode and back again did indeed matter. Since short mode is
34545      # case insensitive, let's make it lowercase to improve readability.
34546      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34547      # Now convert it back to Unix-stile (cygpath)
34548      input_path=`$CYGPATH -u "$shortmode_path"`
34549      new_path="$input_path"
34550    fi
34551  fi
34552
34553  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
34554  if test "x$test_cygdrive_prefix" = x; then
34555    # As a simple fix, exclude /usr/bin since it's not a real path.
34556    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
34557      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
34558      # a path prefixed by /cygdrive for fixpath to work.
34559      new_path="$CYGWIN_ROOT_PATH$input_path"
34560    fi
34561  fi
34562
34563  # remove trailing .exe if any
34564  new_path="${new_path/%.exe/}"
34565
34566  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34567
34568  # First separate the path from the arguments. This will split at the first
34569  # space.
34570  complete="$DUMPBIN"
34571  path="${complete%% *}"
34572  tmp="$complete EOL"
34573  arguments="${tmp#* }"
34574
34575  # Input might be given as Windows format, start by converting to
34576  # unix format.
34577  new_path="$path"
34578
34579  windows_path="$new_path"
34580  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34581    unix_path=`$CYGPATH -u "$windows_path"`
34582    new_path="$unix_path"
34583  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34584    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34585    new_path="$unix_path"
34586  fi
34587
34588
34589  # Now try to locate executable using which
34590  new_path=`$WHICH "$new_path" 2> /dev/null`
34591
34592  if test "x$new_path" = x; then
34593    # Oops. Which didn't find the executable.
34594    # The splitting of arguments from the executable at a space might have been incorrect,
34595    # since paths with space are more likely in Windows. Give it another try with the whole
34596    # argument.
34597    path="$complete"
34598    arguments="EOL"
34599    new_path="$path"
34600
34601  windows_path="$new_path"
34602  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34603    unix_path=`$CYGPATH -u "$windows_path"`
34604    new_path="$unix_path"
34605  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34606    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34607    new_path="$unix_path"
34608  fi
34609
34610
34611    new_path=`$WHICH "$new_path" 2> /dev/null`
34612
34613    if test "x$new_path" = x; then
34614      # It's still not found. Now this is an unrecoverable error.
34615      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34616$as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34617      has_space=`$ECHO "$complete" | $GREP " "`
34618      if test "x$has_space" != x; then
34619        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34620$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34621      fi
34622      as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34623    fi
34624  fi
34625
34626  # Now new_path has a complete unix path to the binary
34627  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
34628    # Keep paths in /bin as-is, but remove trailing .exe if any
34629    new_path="${new_path/%.exe/}"
34630    # Do not save /bin paths to all_fixpath_prefixes!
34631  else
34632    # Not in mixed or Windows style, start by that.
34633    new_path=`cmd //c echo $new_path`
34634
34635  input_path="$new_path"
34636  # Check if we need to convert this using DOS-style short mode. If the path
34637  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34638  # take no chances and rewrite it.
34639  # Note: m4 eats our [], so we need to use [ and ] instead.
34640  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
34641  if test "x$has_forbidden_chars" != x; then
34642    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34643    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
34644  fi
34645
34646    # Output is in $new_path
34647
34648  windows_path="$new_path"
34649  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34650    unix_path=`$CYGPATH -u "$windows_path"`
34651    new_path="$unix_path"
34652  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
34653    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
34654    new_path="$unix_path"
34655  fi
34656
34657    # remove trailing .exe if any
34658    new_path="${new_path/%.exe/}"
34659
34660    # Save the first 10 bytes of this path to the storage, so fixpath can work.
34661    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
34662  fi
34663
34664  else
34665    # We're on a posix platform. Hooray! :)
34666    # First separate the path from the arguments. This will split at the first
34667    # space.
34668    complete="$DUMPBIN"
34669    path="${complete%% *}"
34670    tmp="$complete EOL"
34671    arguments="${tmp#* }"
34672
34673    # Cannot rely on the command "which" here since it doesn't always work.
34674    is_absolute_path=`$ECHO "$path" | $GREP ^/`
34675    if test -z "$is_absolute_path"; then
34676      # Path to executable is not absolute. Find it.
34677      IFS_save="$IFS"
34678      IFS=:
34679      for p in $PATH; do
34680        if test -f "$p/$path" && test -x "$p/$path"; then
34681          new_path="$p/$path"
34682          break
34683        fi
34684      done
34685      IFS="$IFS_save"
34686    else
34687      # This is an absolute path, we can use it without further modifications.
34688      new_path="$path"
34689    fi
34690
34691    if test "x$new_path" = x; then
34692      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
34693$as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
34694      has_space=`$ECHO "$complete" | $GREP " "`
34695      if test "x$has_space" != x; then
34696        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
34697$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
34698      fi
34699      as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
34700    fi
34701  fi
34702
34703  # Now join together the path and the arguments once again
34704  if test "x$arguments" != xEOL; then
34705    new_complete="$new_path ${arguments% *}"
34706  else
34707    new_complete="$new_path"
34708  fi
34709
34710  if test "x$complete" != "x$new_complete"; then
34711    DUMPBIN="$new_complete"
34712    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5
34713$as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;}
34714  fi
34715
34716  fi
34717
34718  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
34719
34720
34721  # Publish this variable in the help.
34722
34723
34724  if test "x$STRIP" = x; then
34725    # The variable is not set by user, try to locate tool using the code snippet
34726    for ac_prog in strip
34727do
34728  # Extract the first word of "$ac_prog", so it can be a program name with args.
34729set dummy $ac_prog; ac_word=$2
34730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34731$as_echo_n "checking for $ac_word... " >&6; }
34732if ${ac_cv_path_STRIP+:} false; then :
34733  $as_echo_n "(cached) " >&6
34734else
34735  case $STRIP in
34736  [\\/]* | ?:[\\/]*)
34737  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
34738  ;;
34739  *)
34740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34741for as_dir in $PATH
34742do
34743  IFS=$as_save_IFS
34744  test -z "$as_dir" && as_dir=.
34745    for ac_exec_ext in '' $ac_executable_extensions; do
34746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34747    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
34748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34749    break 2
34750  fi
34751done
34752  done
34753IFS=$as_save_IFS
34754
34755  ;;
34756esac
34757fi
34758STRIP=$ac_cv_path_STRIP
34759if test -n "$STRIP"; then
34760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
34761$as_echo "$STRIP" >&6; }
34762else
34763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34764$as_echo "no" >&6; }
34765fi
34766
34767
34768  test -n "$STRIP" && break
34769done
34770
34771  else
34772    # The variable is set, but is it from the command line or the environment?
34773
34774    # Try to remove the string !STRIP! from our list.
34775    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
34776    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
34777      # If it failed, the variable was not from the command line. Ignore it,
34778      # but warn the user (except for BASH, which is always set by the calling BASH).
34779      if test "xSTRIP" != xBASH; then
34780        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
34781$as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
34782      fi
34783      # Try to locate tool using the code snippet
34784      for ac_prog in strip
34785do
34786  # Extract the first word of "$ac_prog", so it can be a program name with args.
34787set dummy $ac_prog; ac_word=$2
34788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34789$as_echo_n "checking for $ac_word... " >&6; }
34790if ${ac_cv_path_STRIP+:} false; then :
34791  $as_echo_n "(cached) " >&6
34792else
34793  case $STRIP in
34794  [\\/]* | ?:[\\/]*)
34795  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
34796  ;;
34797  *)
34798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34799for as_dir in $PATH
34800do
34801  IFS=$as_save_IFS
34802  test -z "$as_dir" && as_dir=.
34803    for ac_exec_ext in '' $ac_executable_extensions; do
34804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34805    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
34806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34807    break 2
34808  fi
34809done
34810  done
34811IFS=$as_save_IFS
34812
34813  ;;
34814esac
34815fi
34816STRIP=$ac_cv_path_STRIP
34817if test -n "$STRIP"; then
34818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
34819$as_echo "$STRIP" >&6; }
34820else
34821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34822$as_echo "no" >&6; }
34823fi
34824
34825
34826  test -n "$STRIP" && break
34827done
34828
34829    else
34830      # If it succeeded, then it was overridden by the user. We will use it
34831      # for the tool.
34832
34833      # First remove it from the list of overridden variables, so we can test
34834      # for unknown variables in the end.
34835      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
34836
34837      # Check if the provided tool contains a complete path.
34838      tool_specified="$STRIP"
34839      tool_basename="${tool_specified##*/}"
34840      if test "x$tool_basename" = "x$tool_specified"; then
34841        # A command without a complete path is provided, search $PATH.
34842        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
34843$as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
34844        # Extract the first word of "$tool_basename", so it can be a program name with args.
34845set dummy $tool_basename; ac_word=$2
34846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34847$as_echo_n "checking for $ac_word... " >&6; }
34848if ${ac_cv_path_STRIP+:} false; then :
34849  $as_echo_n "(cached) " >&6
34850else
34851  case $STRIP in
34852  [\\/]* | ?:[\\/]*)
34853  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
34854  ;;
34855  *)
34856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34857for as_dir in $PATH
34858do
34859  IFS=$as_save_IFS
34860  test -z "$as_dir" && as_dir=.
34861    for ac_exec_ext in '' $ac_executable_extensions; do
34862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34863    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
34864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34865    break 2
34866  fi
34867done
34868  done
34869IFS=$as_save_IFS
34870
34871  ;;
34872esac
34873fi
34874STRIP=$ac_cv_path_STRIP
34875if test -n "$STRIP"; then
34876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
34877$as_echo "$STRIP" >&6; }
34878else
34879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34880$as_echo "no" >&6; }
34881fi
34882
34883
34884        if test "x$STRIP" = x; then
34885          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
34886        fi
34887      else
34888        # Otherwise we believe it is a complete path. Use it as it is.
34889        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
34890$as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
34891        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
34892$as_echo_n "checking for STRIP... " >&6; }
34893        if test ! -x "$tool_specified"; then
34894          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
34895$as_echo "not found" >&6; }
34896          as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
34897        fi
34898        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
34899$as_echo "$tool_specified" >&6; }
34900      fi
34901    fi
34902  fi
34903
34904
34905
34906  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
34907
34908  # First separate the path from the arguments. This will split at the first
34909  # space.
34910  complete="$STRIP"
34911  path="${complete%% *}"
34912  tmp="$complete EOL"
34913  arguments="${tmp#* }"
34914
34915  # Input might be given as Windows format, start by converting to
34916  # unix format.
34917  new_path=`$CYGPATH -u "$path"`
34918
34919  # Now try to locate executable using which
34920  new_path=`$WHICH "$new_path" 2> /dev/null`
34921  # bat and cmd files are not always considered executable in cygwin causing which
34922  # to not find them
34923  if test "x$new_path" = x \
34924      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34925      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34926    new_path=`$CYGPATH -u "$path"`
34927  fi
34928  if test "x$new_path" = x; then
34929    # Oops. Which didn't find the executable.
34930    # The splitting of arguments from the executable at a space might have been incorrect,
34931    # since paths with space are more likely in Windows. Give it another try with the whole
34932    # argument.
34933    path="$complete"
34934    arguments="EOL"
34935    new_path=`$CYGPATH -u "$path"`
34936    new_path=`$WHICH "$new_path" 2> /dev/null`
34937    # bat and cmd files are not always considered executable in cygwin causing which
34938    # to not find them
34939    if test "x$new_path" = x \
34940        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
34941        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
34942      new_path=`$CYGPATH -u "$path"`
34943    fi
34944    if test "x$new_path" = x; then
34945      # It's still not found. Now this is an unrecoverable error.
34946      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
34947$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
34948      has_space=`$ECHO "$complete" | $GREP " "`
34949      if test "x$has_space" != x; then
34950        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
34951$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
34952      fi
34953      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
34954    fi
34955  fi
34956
34957  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
34958  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
34959  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
34960  # "foo.exe" is OK but "foo" is an error.
34961  #
34962  # This test is therefore slightly more accurate than "test -f" to check for file presence.
34963  # It is also a way to make sure we got the proper file name for the real test later on.
34964  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
34965  if test "x$test_shortpath" = x; then
34966    # Short path failed, file does not exist as specified.
34967    # Try adding .exe or .cmd
34968    if test -f "${new_path}.exe"; then
34969      input_to_shortpath="${new_path}.exe"
34970    elif test -f "${new_path}.cmd"; then
34971      input_to_shortpath="${new_path}.cmd"
34972    else
34973      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
34974$as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
34975      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
34976$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
34977      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
34978    fi
34979  else
34980    input_to_shortpath="$new_path"
34981  fi
34982
34983  # Call helper function which possibly converts this using DOS-style short mode.
34984  # If so, the updated path is stored in $new_path.
34985  new_path="$input_to_shortpath"
34986
34987  input_path="$input_to_shortpath"
34988  # Check if we need to convert this using DOS-style short mode. If the path
34989  # contains just simple characters, use it. Otherwise (spaces, weird characters),
34990  # take no chances and rewrite it.
34991  # Note: m4 eats our [], so we need to use [ and ] instead.
34992  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
34993  if test "x$has_forbidden_chars" != x; then
34994    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
34995    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
34996    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
34997    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
34998      # Going to short mode and back again did indeed matter. Since short mode is
34999      # case insensitive, let's make it lowercase to improve readability.
35000      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35001      # Now convert it back to Unix-stile (cygpath)
35002      input_path=`$CYGPATH -u "$shortmode_path"`
35003      new_path="$input_path"
35004    fi
35005  fi
35006
35007  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35008  if test "x$test_cygdrive_prefix" = x; then
35009    # As a simple fix, exclude /usr/bin since it's not a real path.
35010    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35011      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35012      # a path prefixed by /cygdrive for fixpath to work.
35013      new_path="$CYGWIN_ROOT_PATH$input_path"
35014    fi
35015  fi
35016
35017  # remove trailing .exe if any
35018  new_path="${new_path/%.exe/}"
35019
35020  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35021
35022  # First separate the path from the arguments. This will split at the first
35023  # space.
35024  complete="$STRIP"
35025  path="${complete%% *}"
35026  tmp="$complete EOL"
35027  arguments="${tmp#* }"
35028
35029  # Input might be given as Windows format, start by converting to
35030  # unix format.
35031  new_path="$path"
35032
35033  windows_path="$new_path"
35034  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35035    unix_path=`$CYGPATH -u "$windows_path"`
35036    new_path="$unix_path"
35037  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35038    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35039    new_path="$unix_path"
35040  fi
35041
35042
35043  # Now try to locate executable using which
35044  new_path=`$WHICH "$new_path" 2> /dev/null`
35045
35046  if test "x$new_path" = x; then
35047    # Oops. Which didn't find the executable.
35048    # The splitting of arguments from the executable at a space might have been incorrect,
35049    # since paths with space are more likely in Windows. Give it another try with the whole
35050    # argument.
35051    path="$complete"
35052    arguments="EOL"
35053    new_path="$path"
35054
35055  windows_path="$new_path"
35056  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35057    unix_path=`$CYGPATH -u "$windows_path"`
35058    new_path="$unix_path"
35059  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35060    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35061    new_path="$unix_path"
35062  fi
35063
35064
35065    new_path=`$WHICH "$new_path" 2> /dev/null`
35066
35067    if test "x$new_path" = x; then
35068      # It's still not found. Now this is an unrecoverable error.
35069      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
35070$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
35071      has_space=`$ECHO "$complete" | $GREP " "`
35072      if test "x$has_space" != x; then
35073        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35074$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35075      fi
35076      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
35077    fi
35078  fi
35079
35080  # Now new_path has a complete unix path to the binary
35081  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35082    # Keep paths in /bin as-is, but remove trailing .exe if any
35083    new_path="${new_path/%.exe/}"
35084    # Do not save /bin paths to all_fixpath_prefixes!
35085  else
35086    # Not in mixed or Windows style, start by that.
35087    new_path=`cmd //c echo $new_path`
35088
35089  input_path="$new_path"
35090  # Check if we need to convert this using DOS-style short mode. If the path
35091  # contains just simple characters, use it. Otherwise (spaces, weird characters),
35092  # take no chances and rewrite it.
35093  # Note: m4 eats our [], so we need to use [ and ] instead.
35094  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35095  if test "x$has_forbidden_chars" != x; then
35096    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35097    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35098  fi
35099
35100    # Output is in $new_path
35101
35102  windows_path="$new_path"
35103  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35104    unix_path=`$CYGPATH -u "$windows_path"`
35105    new_path="$unix_path"
35106  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35107    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35108    new_path="$unix_path"
35109  fi
35110
35111    # remove trailing .exe if any
35112    new_path="${new_path/%.exe/}"
35113
35114    # Save the first 10 bytes of this path to the storage, so fixpath can work.
35115    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35116  fi
35117
35118  else
35119    # We're on a posix platform. Hooray! :)
35120    # First separate the path from the arguments. This will split at the first
35121    # space.
35122    complete="$STRIP"
35123    path="${complete%% *}"
35124    tmp="$complete EOL"
35125    arguments="${tmp#* }"
35126
35127    # Cannot rely on the command "which" here since it doesn't always work.
35128    is_absolute_path=`$ECHO "$path" | $GREP ^/`
35129    if test -z "$is_absolute_path"; then
35130      # Path to executable is not absolute. Find it.
35131      IFS_save="$IFS"
35132      IFS=:
35133      for p in $PATH; do
35134        if test -f "$p/$path" && test -x "$p/$path"; then
35135          new_path="$p/$path"
35136          break
35137        fi
35138      done
35139      IFS="$IFS_save"
35140    else
35141      # This is an absolute path, we can use it without further modifications.
35142      new_path="$path"
35143    fi
35144
35145    if test "x$new_path" = x; then
35146      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
35147$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
35148      has_space=`$ECHO "$complete" | $GREP " "`
35149      if test "x$has_space" != x; then
35150        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35151$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35152      fi
35153      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
35154    fi
35155  fi
35156
35157  # Now join together the path and the arguments once again
35158  if test "x$arguments" != xEOL; then
35159    new_complete="$new_path ${arguments% *}"
35160  else
35161    new_complete="$new_path"
35162  fi
35163
35164  if test "x$complete" != "x$new_complete"; then
35165    STRIP="$new_complete"
35166    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
35167$as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
35168  fi
35169
35170
35171
35172  # Publish this variable in the help.
35173
35174
35175  if test "x$NM" = x; then
35176    # The variable is not set by user, try to locate tool using the code snippet
35177    for ac_prog in nm
35178do
35179  # Extract the first word of "$ac_prog", so it can be a program name with args.
35180set dummy $ac_prog; ac_word=$2
35181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35182$as_echo_n "checking for $ac_word... " >&6; }
35183if ${ac_cv_path_NM+:} false; then :
35184  $as_echo_n "(cached) " >&6
35185else
35186  case $NM in
35187  [\\/]* | ?:[\\/]*)
35188  ac_cv_path_NM="$NM" # Let the user override the test with a path.
35189  ;;
35190  *)
35191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35192for as_dir in $PATH
35193do
35194  IFS=$as_save_IFS
35195  test -z "$as_dir" && as_dir=.
35196    for ac_exec_ext in '' $ac_executable_extensions; do
35197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35198    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
35199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35200    break 2
35201  fi
35202done
35203  done
35204IFS=$as_save_IFS
35205
35206  ;;
35207esac
35208fi
35209NM=$ac_cv_path_NM
35210if test -n "$NM"; then
35211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
35212$as_echo "$NM" >&6; }
35213else
35214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35215$as_echo "no" >&6; }
35216fi
35217
35218
35219  test -n "$NM" && break
35220done
35221
35222  else
35223    # The variable is set, but is it from the command line or the environment?
35224
35225    # Try to remove the string !NM! from our list.
35226    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
35227    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35228      # If it failed, the variable was not from the command line. Ignore it,
35229      # but warn the user (except for BASH, which is always set by the calling BASH).
35230      if test "xNM" != xBASH; then
35231        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
35232$as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
35233      fi
35234      # Try to locate tool using the code snippet
35235      for ac_prog in nm
35236do
35237  # Extract the first word of "$ac_prog", so it can be a program name with args.
35238set dummy $ac_prog; ac_word=$2
35239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35240$as_echo_n "checking for $ac_word... " >&6; }
35241if ${ac_cv_path_NM+:} false; then :
35242  $as_echo_n "(cached) " >&6
35243else
35244  case $NM in
35245  [\\/]* | ?:[\\/]*)
35246  ac_cv_path_NM="$NM" # Let the user override the test with a path.
35247  ;;
35248  *)
35249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35250for as_dir in $PATH
35251do
35252  IFS=$as_save_IFS
35253  test -z "$as_dir" && as_dir=.
35254    for ac_exec_ext in '' $ac_executable_extensions; do
35255  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35256    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
35257    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35258    break 2
35259  fi
35260done
35261  done
35262IFS=$as_save_IFS
35263
35264  ;;
35265esac
35266fi
35267NM=$ac_cv_path_NM
35268if test -n "$NM"; then
35269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
35270$as_echo "$NM" >&6; }
35271else
35272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35273$as_echo "no" >&6; }
35274fi
35275
35276
35277  test -n "$NM" && break
35278done
35279
35280    else
35281      # If it succeeded, then it was overridden by the user. We will use it
35282      # for the tool.
35283
35284      # First remove it from the list of overridden variables, so we can test
35285      # for unknown variables in the end.
35286      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
35287
35288      # Check if the provided tool contains a complete path.
35289      tool_specified="$NM"
35290      tool_basename="${tool_specified##*/}"
35291      if test "x$tool_basename" = "x$tool_specified"; then
35292        # A command without a complete path is provided, search $PATH.
35293        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
35294$as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
35295        # Extract the first word of "$tool_basename", so it can be a program name with args.
35296set dummy $tool_basename; ac_word=$2
35297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35298$as_echo_n "checking for $ac_word... " >&6; }
35299if ${ac_cv_path_NM+:} false; then :
35300  $as_echo_n "(cached) " >&6
35301else
35302  case $NM in
35303  [\\/]* | ?:[\\/]*)
35304  ac_cv_path_NM="$NM" # Let the user override the test with a path.
35305  ;;
35306  *)
35307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35308for as_dir in $PATH
35309do
35310  IFS=$as_save_IFS
35311  test -z "$as_dir" && as_dir=.
35312    for ac_exec_ext in '' $ac_executable_extensions; do
35313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35314    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
35315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35316    break 2
35317  fi
35318done
35319  done
35320IFS=$as_save_IFS
35321
35322  ;;
35323esac
35324fi
35325NM=$ac_cv_path_NM
35326if test -n "$NM"; then
35327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
35328$as_echo "$NM" >&6; }
35329else
35330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35331$as_echo "no" >&6; }
35332fi
35333
35334
35335        if test "x$NM" = x; then
35336          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
35337        fi
35338      else
35339        # Otherwise we believe it is a complete path. Use it as it is.
35340        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
35341$as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
35342        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
35343$as_echo_n "checking for NM... " >&6; }
35344        if test ! -x "$tool_specified"; then
35345          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35346$as_echo "not found" >&6; }
35347          as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
35348        fi
35349        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
35350$as_echo "$tool_specified" >&6; }
35351      fi
35352    fi
35353  fi
35354
35355
35356
35357  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35358
35359  # First separate the path from the arguments. This will split at the first
35360  # space.
35361  complete="$NM"
35362  path="${complete%% *}"
35363  tmp="$complete EOL"
35364  arguments="${tmp#* }"
35365
35366  # Input might be given as Windows format, start by converting to
35367  # unix format.
35368  new_path=`$CYGPATH -u "$path"`
35369
35370  # Now try to locate executable using which
35371  new_path=`$WHICH "$new_path" 2> /dev/null`
35372  # bat and cmd files are not always considered executable in cygwin causing which
35373  # to not find them
35374  if test "x$new_path" = x \
35375      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35376      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35377    new_path=`$CYGPATH -u "$path"`
35378  fi
35379  if test "x$new_path" = x; then
35380    # Oops. Which didn't find the executable.
35381    # The splitting of arguments from the executable at a space might have been incorrect,
35382    # since paths with space are more likely in Windows. Give it another try with the whole
35383    # argument.
35384    path="$complete"
35385    arguments="EOL"
35386    new_path=`$CYGPATH -u "$path"`
35387    new_path=`$WHICH "$new_path" 2> /dev/null`
35388    # bat and cmd files are not always considered executable in cygwin causing which
35389    # to not find them
35390    if test "x$new_path" = x \
35391        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35392        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35393      new_path=`$CYGPATH -u "$path"`
35394    fi
35395    if test "x$new_path" = x; then
35396      # It's still not found. Now this is an unrecoverable error.
35397      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35398$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35399      has_space=`$ECHO "$complete" | $GREP " "`
35400      if test "x$has_space" != x; then
35401        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35402$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35403      fi
35404      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35405    fi
35406  fi
35407
35408  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35409  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35410  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35411  # "foo.exe" is OK but "foo" is an error.
35412  #
35413  # This test is therefore slightly more accurate than "test -f" to check for file presence.
35414  # It is also a way to make sure we got the proper file name for the real test later on.
35415  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35416  if test "x$test_shortpath" = x; then
35417    # Short path failed, file does not exist as specified.
35418    # Try adding .exe or .cmd
35419    if test -f "${new_path}.exe"; then
35420      input_to_shortpath="${new_path}.exe"
35421    elif test -f "${new_path}.cmd"; then
35422      input_to_shortpath="${new_path}.cmd"
35423    else
35424      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
35425$as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
35426      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35427$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35428      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35429    fi
35430  else
35431    input_to_shortpath="$new_path"
35432  fi
35433
35434  # Call helper function which possibly converts this using DOS-style short mode.
35435  # If so, the updated path is stored in $new_path.
35436  new_path="$input_to_shortpath"
35437
35438  input_path="$input_to_shortpath"
35439  # Check if we need to convert this using DOS-style short mode. If the path
35440  # contains just simple characters, use it. Otherwise (spaces, weird characters),
35441  # take no chances and rewrite it.
35442  # Note: m4 eats our [], so we need to use [ and ] instead.
35443  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35444  if test "x$has_forbidden_chars" != x; then
35445    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35446    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35447    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35448    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35449      # Going to short mode and back again did indeed matter. Since short mode is
35450      # case insensitive, let's make it lowercase to improve readability.
35451      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35452      # Now convert it back to Unix-stile (cygpath)
35453      input_path=`$CYGPATH -u "$shortmode_path"`
35454      new_path="$input_path"
35455    fi
35456  fi
35457
35458  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35459  if test "x$test_cygdrive_prefix" = x; then
35460    # As a simple fix, exclude /usr/bin since it's not a real path.
35461    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35462      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35463      # a path prefixed by /cygdrive for fixpath to work.
35464      new_path="$CYGWIN_ROOT_PATH$input_path"
35465    fi
35466  fi
35467
35468  # remove trailing .exe if any
35469  new_path="${new_path/%.exe/}"
35470
35471  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35472
35473  # First separate the path from the arguments. This will split at the first
35474  # space.
35475  complete="$NM"
35476  path="${complete%% *}"
35477  tmp="$complete EOL"
35478  arguments="${tmp#* }"
35479
35480  # Input might be given as Windows format, start by converting to
35481  # unix format.
35482  new_path="$path"
35483
35484  windows_path="$new_path"
35485  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35486    unix_path=`$CYGPATH -u "$windows_path"`
35487    new_path="$unix_path"
35488  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35489    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35490    new_path="$unix_path"
35491  fi
35492
35493
35494  # Now try to locate executable using which
35495  new_path=`$WHICH "$new_path" 2> /dev/null`
35496
35497  if test "x$new_path" = x; then
35498    # Oops. Which didn't find the executable.
35499    # The splitting of arguments from the executable at a space might have been incorrect,
35500    # since paths with space are more likely in Windows. Give it another try with the whole
35501    # argument.
35502    path="$complete"
35503    arguments="EOL"
35504    new_path="$path"
35505
35506  windows_path="$new_path"
35507  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35508    unix_path=`$CYGPATH -u "$windows_path"`
35509    new_path="$unix_path"
35510  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35511    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35512    new_path="$unix_path"
35513  fi
35514
35515
35516    new_path=`$WHICH "$new_path" 2> /dev/null`
35517
35518    if test "x$new_path" = x; then
35519      # It's still not found. Now this is an unrecoverable error.
35520      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35521$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35522      has_space=`$ECHO "$complete" | $GREP " "`
35523      if test "x$has_space" != x; then
35524        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35525$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35526      fi
35527      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35528    fi
35529  fi
35530
35531  # Now new_path has a complete unix path to the binary
35532  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35533    # Keep paths in /bin as-is, but remove trailing .exe if any
35534    new_path="${new_path/%.exe/}"
35535    # Do not save /bin paths to all_fixpath_prefixes!
35536  else
35537    # Not in mixed or Windows style, start by that.
35538    new_path=`cmd //c echo $new_path`
35539
35540  input_path="$new_path"
35541  # Check if we need to convert this using DOS-style short mode. If the path
35542  # contains just simple characters, use it. Otherwise (spaces, weird characters),
35543  # take no chances and rewrite it.
35544  # Note: m4 eats our [], so we need to use [ and ] instead.
35545  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35546  if test "x$has_forbidden_chars" != x; then
35547    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35548    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35549  fi
35550
35551    # Output is in $new_path
35552
35553  windows_path="$new_path"
35554  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35555    unix_path=`$CYGPATH -u "$windows_path"`
35556    new_path="$unix_path"
35557  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35558    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35559    new_path="$unix_path"
35560  fi
35561
35562    # remove trailing .exe if any
35563    new_path="${new_path/%.exe/}"
35564
35565    # Save the first 10 bytes of this path to the storage, so fixpath can work.
35566    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
35567  fi
35568
35569  else
35570    # We're on a posix platform. Hooray! :)
35571    # First separate the path from the arguments. This will split at the first
35572    # space.
35573    complete="$NM"
35574    path="${complete%% *}"
35575    tmp="$complete EOL"
35576    arguments="${tmp#* }"
35577
35578    # Cannot rely on the command "which" here since it doesn't always work.
35579    is_absolute_path=`$ECHO "$path" | $GREP ^/`
35580    if test -z "$is_absolute_path"; then
35581      # Path to executable is not absolute. Find it.
35582      IFS_save="$IFS"
35583      IFS=:
35584      for p in $PATH; do
35585        if test -f "$p/$path" && test -x "$p/$path"; then
35586          new_path="$p/$path"
35587          break
35588        fi
35589      done
35590      IFS="$IFS_save"
35591    else
35592      # This is an absolute path, we can use it without further modifications.
35593      new_path="$path"
35594    fi
35595
35596    if test "x$new_path" = x; then
35597      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
35598$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
35599      has_space=`$ECHO "$complete" | $GREP " "`
35600      if test "x$has_space" != x; then
35601        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
35602$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
35603      fi
35604      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
35605    fi
35606  fi
35607
35608  # Now join together the path and the arguments once again
35609  if test "x$arguments" != xEOL; then
35610    new_complete="$new_path ${arguments% *}"
35611  else
35612    new_complete="$new_path"
35613  fi
35614
35615  if test "x$complete" != "x$new_complete"; then
35616    NM="$new_complete"
35617    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
35618$as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
35619  fi
35620
35621
35622
35623  # Publish this variable in the help.
35624
35625
35626  if test "x$GNM" = x; then
35627    # The variable is not set by user, try to locate tool using the code snippet
35628    for ac_prog in gnm
35629do
35630  # Extract the first word of "$ac_prog", so it can be a program name with args.
35631set dummy $ac_prog; ac_word=$2
35632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35633$as_echo_n "checking for $ac_word... " >&6; }
35634if ${ac_cv_path_GNM+:} false; then :
35635  $as_echo_n "(cached) " >&6
35636else
35637  case $GNM in
35638  [\\/]* | ?:[\\/]*)
35639  ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35640  ;;
35641  *)
35642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35643for as_dir in $PATH
35644do
35645  IFS=$as_save_IFS
35646  test -z "$as_dir" && as_dir=.
35647    for ac_exec_ext in '' $ac_executable_extensions; do
35648  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35649    ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35651    break 2
35652  fi
35653done
35654  done
35655IFS=$as_save_IFS
35656
35657  ;;
35658esac
35659fi
35660GNM=$ac_cv_path_GNM
35661if test -n "$GNM"; then
35662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35663$as_echo "$GNM" >&6; }
35664else
35665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35666$as_echo "no" >&6; }
35667fi
35668
35669
35670  test -n "$GNM" && break
35671done
35672
35673  else
35674    # The variable is set, but is it from the command line or the environment?
35675
35676    # Try to remove the string !GNM! from our list.
35677    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/}
35678    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
35679      # If it failed, the variable was not from the command line. Ignore it,
35680      # but warn the user (except for BASH, which is always set by the calling BASH).
35681      if test "xGNM" != xBASH; then
35682        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5
35683$as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;}
35684      fi
35685      # Try to locate tool using the code snippet
35686      for ac_prog in gnm
35687do
35688  # Extract the first word of "$ac_prog", so it can be a program name with args.
35689set dummy $ac_prog; ac_word=$2
35690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35691$as_echo_n "checking for $ac_word... " >&6; }
35692if ${ac_cv_path_GNM+:} false; then :
35693  $as_echo_n "(cached) " >&6
35694else
35695  case $GNM in
35696  [\\/]* | ?:[\\/]*)
35697  ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35698  ;;
35699  *)
35700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35701for as_dir in $PATH
35702do
35703  IFS=$as_save_IFS
35704  test -z "$as_dir" && as_dir=.
35705    for ac_exec_ext in '' $ac_executable_extensions; do
35706  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35707    ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35708    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35709    break 2
35710  fi
35711done
35712  done
35713IFS=$as_save_IFS
35714
35715  ;;
35716esac
35717fi
35718GNM=$ac_cv_path_GNM
35719if test -n "$GNM"; then
35720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35721$as_echo "$GNM" >&6; }
35722else
35723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35724$as_echo "no" >&6; }
35725fi
35726
35727
35728  test -n "$GNM" && break
35729done
35730
35731    else
35732      # If it succeeded, then it was overridden by the user. We will use it
35733      # for the tool.
35734
35735      # First remove it from the list of overridden variables, so we can test
35736      # for unknown variables in the end.
35737      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
35738
35739      # Check if the provided tool contains a complete path.
35740      tool_specified="$GNM"
35741      tool_basename="${tool_specified##*/}"
35742      if test "x$tool_basename" = "x$tool_specified"; then
35743        # A command without a complete path is provided, search $PATH.
35744        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5
35745$as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;}
35746        # Extract the first word of "$tool_basename", so it can be a program name with args.
35747set dummy $tool_basename; ac_word=$2
35748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35749$as_echo_n "checking for $ac_word... " >&6; }
35750if ${ac_cv_path_GNM+:} false; then :
35751  $as_echo_n "(cached) " >&6
35752else
35753  case $GNM in
35754  [\\/]* | ?:[\\/]*)
35755  ac_cv_path_GNM="$GNM" # Let the user override the test with a path.
35756  ;;
35757  *)
35758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35759for as_dir in $PATH
35760do
35761  IFS=$as_save_IFS
35762  test -z "$as_dir" && as_dir=.
35763    for ac_exec_ext in '' $ac_executable_extensions; do
35764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35765    ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext"
35766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35767    break 2
35768  fi
35769done
35770  done
35771IFS=$as_save_IFS
35772
35773  ;;
35774esac
35775fi
35776GNM=$ac_cv_path_GNM
35777if test -n "$GNM"; then
35778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5
35779$as_echo "$GNM" >&6; }
35780else
35781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35782$as_echo "no" >&6; }
35783fi
35784
35785
35786        if test "x$GNM" = x; then
35787          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
35788        fi
35789      else
35790        # Otherwise we believe it is a complete path. Use it as it is.
35791        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5
35792$as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;}
35793        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5
35794$as_echo_n "checking for GNM... " >&6; }
35795        if test ! -x "$tool_specified"; then
35796          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35797$as_echo "not found" >&6; }
35798          as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5
35799        fi
35800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
35801$as_echo "$tool_specified" >&6; }
35802      fi
35803    fi
35804  fi
35805
35806
35807
35808  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35809
35810  # First separate the path from the arguments. This will split at the first
35811  # space.
35812  complete="$GNM"
35813  path="${complete%% *}"
35814  tmp="$complete EOL"
35815  arguments="${tmp#* }"
35816
35817  # Input might be given as Windows format, start by converting to
35818  # unix format.
35819  new_path=`$CYGPATH -u "$path"`
35820
35821  # Now try to locate executable using which
35822  new_path=`$WHICH "$new_path" 2> /dev/null`
35823  # bat and cmd files are not always considered executable in cygwin causing which
35824  # to not find them
35825  if test "x$new_path" = x \
35826      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35827      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35828    new_path=`$CYGPATH -u "$path"`
35829  fi
35830  if test "x$new_path" = x; then
35831    # Oops. Which didn't find the executable.
35832    # The splitting of arguments from the executable at a space might have been incorrect,
35833    # since paths with space are more likely in Windows. Give it another try with the whole
35834    # argument.
35835    path="$complete"
35836    arguments="EOL"
35837    new_path=`$CYGPATH -u "$path"`
35838    new_path=`$WHICH "$new_path" 2> /dev/null`
35839    # bat and cmd files are not always considered executable in cygwin causing which
35840    # to not find them
35841    if test "x$new_path" = x \
35842        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
35843        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
35844      new_path=`$CYGPATH -u "$path"`
35845    fi
35846    if test "x$new_path" = x; then
35847      # It's still not found. Now this is an unrecoverable error.
35848      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
35849$as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
35850      has_space=`$ECHO "$complete" | $GREP " "`
35851      if test "x$has_space" != x; then
35852        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35853$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35854      fi
35855      as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35856    fi
35857  fi
35858
35859  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
35860  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
35861  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
35862  # "foo.exe" is OK but "foo" is an error.
35863  #
35864  # This test is therefore slightly more accurate than "test -f" to check for file presence.
35865  # It is also a way to make sure we got the proper file name for the real test later on.
35866  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
35867  if test "x$test_shortpath" = x; then
35868    # Short path failed, file does not exist as specified.
35869    # Try adding .exe or .cmd
35870    if test -f "${new_path}.exe"; then
35871      input_to_shortpath="${new_path}.exe"
35872    elif test -f "${new_path}.cmd"; then
35873      input_to_shortpath="${new_path}.cmd"
35874    else
35875      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5
35876$as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;}
35877      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
35878$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
35879      as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35880    fi
35881  else
35882    input_to_shortpath="$new_path"
35883  fi
35884
35885  # Call helper function which possibly converts this using DOS-style short mode.
35886  # If so, the updated path is stored in $new_path.
35887  new_path="$input_to_shortpath"
35888
35889  input_path="$input_to_shortpath"
35890  # Check if we need to convert this using DOS-style short mode. If the path
35891  # contains just simple characters, use it. Otherwise (spaces, weird characters),
35892  # take no chances and rewrite it.
35893  # Note: m4 eats our [], so we need to use [ and ] instead.
35894  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
35895  if test "x$has_forbidden_chars" != x; then
35896    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35897    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
35898    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
35899    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
35900      # Going to short mode and back again did indeed matter. Since short mode is
35901      # case insensitive, let's make it lowercase to improve readability.
35902      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
35903      # Now convert it back to Unix-stile (cygpath)
35904      input_path=`$CYGPATH -u "$shortmode_path"`
35905      new_path="$input_path"
35906    fi
35907  fi
35908
35909  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
35910  if test "x$test_cygdrive_prefix" = x; then
35911    # As a simple fix, exclude /usr/bin since it's not a real path.
35912    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
35913      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
35914      # a path prefixed by /cygdrive for fixpath to work.
35915      new_path="$CYGWIN_ROOT_PATH$input_path"
35916    fi
35917  fi
35918
35919  # remove trailing .exe if any
35920  new_path="${new_path/%.exe/}"
35921
35922  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35923
35924  # First separate the path from the arguments. This will split at the first
35925  # space.
35926  complete="$GNM"
35927  path="${complete%% *}"
35928  tmp="$complete EOL"
35929  arguments="${tmp#* }"
35930
35931  # Input might be given as Windows format, start by converting to
35932  # unix format.
35933  new_path="$path"
35934
35935  windows_path="$new_path"
35936  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35937    unix_path=`$CYGPATH -u "$windows_path"`
35938    new_path="$unix_path"
35939  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35940    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35941    new_path="$unix_path"
35942  fi
35943
35944
35945  # Now try to locate executable using which
35946  new_path=`$WHICH "$new_path" 2> /dev/null`
35947
35948  if test "x$new_path" = x; then
35949    # Oops. Which didn't find the executable.
35950    # The splitting of arguments from the executable at a space might have been incorrect,
35951    # since paths with space are more likely in Windows. Give it another try with the whole
35952    # argument.
35953    path="$complete"
35954    arguments="EOL"
35955    new_path="$path"
35956
35957  windows_path="$new_path"
35958  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
35959    unix_path=`$CYGPATH -u "$windows_path"`
35960    new_path="$unix_path"
35961  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
35962    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
35963    new_path="$unix_path"
35964  fi
35965
35966
35967    new_path=`$WHICH "$new_path" 2> /dev/null`
35968
35969    if test "x$new_path" = x; then
35970      # It's still not found. Now this is an unrecoverable error.
35971      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
35972$as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
35973      has_space=`$ECHO "$complete" | $GREP " "`
35974      if test "x$has_space" != x; then
35975        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
35976$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
35977      fi
35978      as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
35979    fi
35980  fi
35981
35982  # Now new_path has a complete unix path to the binary
35983  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
35984    # Keep paths in /bin as-is, but remove trailing .exe if any
35985    new_path="${new_path/%.exe/}"
35986    # Do not save /bin paths to all_fixpath_prefixes!
35987  else
35988    # Not in mixed or Windows style, start by that.
35989    new_path=`cmd //c echo $new_path`
35990
35991  input_path="$new_path"
35992  # Check if we need to convert this using DOS-style short mode. If the path
35993  # contains just simple characters, use it. Otherwise (spaces, weird characters),
35994  # take no chances and rewrite it.
35995  # Note: m4 eats our [], so we need to use [ and ] instead.
35996  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
35997  if test "x$has_forbidden_chars" != x; then
35998    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
35999    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36000  fi
36001
36002    # Output is in $new_path
36003
36004  windows_path="$new_path"
36005  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36006    unix_path=`$CYGPATH -u "$windows_path"`
36007    new_path="$unix_path"
36008  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36009    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36010    new_path="$unix_path"
36011  fi
36012
36013    # remove trailing .exe if any
36014    new_path="${new_path/%.exe/}"
36015
36016    # Save the first 10 bytes of this path to the storage, so fixpath can work.
36017    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36018  fi
36019
36020  else
36021    # We're on a posix platform. Hooray! :)
36022    # First separate the path from the arguments. This will split at the first
36023    # space.
36024    complete="$GNM"
36025    path="${complete%% *}"
36026    tmp="$complete EOL"
36027    arguments="${tmp#* }"
36028
36029    # Cannot rely on the command "which" here since it doesn't always work.
36030    is_absolute_path=`$ECHO "$path" | $GREP ^/`
36031    if test -z "$is_absolute_path"; then
36032      # Path to executable is not absolute. Find it.
36033      IFS_save="$IFS"
36034      IFS=:
36035      for p in $PATH; do
36036        if test -f "$p/$path" && test -x "$p/$path"; then
36037          new_path="$p/$path"
36038          break
36039        fi
36040      done
36041      IFS="$IFS_save"
36042    else
36043      # This is an absolute path, we can use it without further modifications.
36044      new_path="$path"
36045    fi
36046
36047    if test "x$new_path" = x; then
36048      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5
36049$as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;}
36050      has_space=`$ECHO "$complete" | $GREP " "`
36051      if test "x$has_space" != x; then
36052        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36053$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36054      fi
36055      as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5
36056    fi
36057  fi
36058
36059  # Now join together the path and the arguments once again
36060  if test "x$arguments" != xEOL; then
36061    new_complete="$new_path ${arguments% *}"
36062  else
36063    new_complete="$new_path"
36064  fi
36065
36066  if test "x$complete" != "x$new_complete"; then
36067    GNM="$new_complete"
36068    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5
36069$as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;}
36070  fi
36071
36072
36073
36074
36075  # Publish this variable in the help.
36076
36077
36078  if test "x$MCS" = x; then
36079    # The variable is not set by user, try to locate tool using the code snippet
36080    for ac_prog in mcs
36081do
36082  # Extract the first word of "$ac_prog", so it can be a program name with args.
36083set dummy $ac_prog; ac_word=$2
36084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36085$as_echo_n "checking for $ac_word... " >&6; }
36086if ${ac_cv_path_MCS+:} false; then :
36087  $as_echo_n "(cached) " >&6
36088else
36089  case $MCS in
36090  [\\/]* | ?:[\\/]*)
36091  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36092  ;;
36093  *)
36094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36095for as_dir in $PATH
36096do
36097  IFS=$as_save_IFS
36098  test -z "$as_dir" && as_dir=.
36099    for ac_exec_ext in '' $ac_executable_extensions; do
36100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36101    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36103    break 2
36104  fi
36105done
36106  done
36107IFS=$as_save_IFS
36108
36109  ;;
36110esac
36111fi
36112MCS=$ac_cv_path_MCS
36113if test -n "$MCS"; then
36114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36115$as_echo "$MCS" >&6; }
36116else
36117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36118$as_echo "no" >&6; }
36119fi
36120
36121
36122  test -n "$MCS" && break
36123done
36124
36125  else
36126    # The variable is set, but is it from the command line or the environment?
36127
36128    # Try to remove the string !MCS! from our list.
36129    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/}
36130    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36131      # If it failed, the variable was not from the command line. Ignore it,
36132      # but warn the user (except for BASH, which is always set by the calling BASH).
36133      if test "xMCS" != xBASH; then
36134        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5
36135$as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;}
36136      fi
36137      # Try to locate tool using the code snippet
36138      for ac_prog in mcs
36139do
36140  # Extract the first word of "$ac_prog", so it can be a program name with args.
36141set dummy $ac_prog; ac_word=$2
36142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36143$as_echo_n "checking for $ac_word... " >&6; }
36144if ${ac_cv_path_MCS+:} false; then :
36145  $as_echo_n "(cached) " >&6
36146else
36147  case $MCS in
36148  [\\/]* | ?:[\\/]*)
36149  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36150  ;;
36151  *)
36152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36153for as_dir in $PATH
36154do
36155  IFS=$as_save_IFS
36156  test -z "$as_dir" && as_dir=.
36157    for ac_exec_ext in '' $ac_executable_extensions; do
36158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36159    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36161    break 2
36162  fi
36163done
36164  done
36165IFS=$as_save_IFS
36166
36167  ;;
36168esac
36169fi
36170MCS=$ac_cv_path_MCS
36171if test -n "$MCS"; then
36172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36173$as_echo "$MCS" >&6; }
36174else
36175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36176$as_echo "no" >&6; }
36177fi
36178
36179
36180  test -n "$MCS" && break
36181done
36182
36183    else
36184      # If it succeeded, then it was overridden by the user. We will use it
36185      # for the tool.
36186
36187      # First remove it from the list of overridden variables, so we can test
36188      # for unknown variables in the end.
36189      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36190
36191      # Check if the provided tool contains a complete path.
36192      tool_specified="$MCS"
36193      tool_basename="${tool_specified##*/}"
36194      if test "x$tool_basename" = "x$tool_specified"; then
36195        # A command without a complete path is provided, search $PATH.
36196        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5
36197$as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;}
36198        # Extract the first word of "$tool_basename", so it can be a program name with args.
36199set dummy $tool_basename; ac_word=$2
36200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36201$as_echo_n "checking for $ac_word... " >&6; }
36202if ${ac_cv_path_MCS+:} false; then :
36203  $as_echo_n "(cached) " >&6
36204else
36205  case $MCS in
36206  [\\/]* | ?:[\\/]*)
36207  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
36208  ;;
36209  *)
36210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36211for as_dir in $PATH
36212do
36213  IFS=$as_save_IFS
36214  test -z "$as_dir" && as_dir=.
36215    for ac_exec_ext in '' $ac_executable_extensions; do
36216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36217    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
36218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36219    break 2
36220  fi
36221done
36222  done
36223IFS=$as_save_IFS
36224
36225  ;;
36226esac
36227fi
36228MCS=$ac_cv_path_MCS
36229if test -n "$MCS"; then
36230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
36231$as_echo "$MCS" >&6; }
36232else
36233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36234$as_echo "no" >&6; }
36235fi
36236
36237
36238        if test "x$MCS" = x; then
36239          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36240        fi
36241      else
36242        # Otherwise we believe it is a complete path. Use it as it is.
36243        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5
36244$as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;}
36245        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5
36246$as_echo_n "checking for MCS... " >&6; }
36247        if test ! -x "$tool_specified"; then
36248          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36249$as_echo "not found" >&6; }
36250          as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5
36251        fi
36252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36253$as_echo "$tool_specified" >&6; }
36254      fi
36255    fi
36256  fi
36257
36258
36259
36260  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36261
36262  # First separate the path from the arguments. This will split at the first
36263  # space.
36264  complete="$MCS"
36265  path="${complete%% *}"
36266  tmp="$complete EOL"
36267  arguments="${tmp#* }"
36268
36269  # Input might be given as Windows format, start by converting to
36270  # unix format.
36271  new_path=`$CYGPATH -u "$path"`
36272
36273  # Now try to locate executable using which
36274  new_path=`$WHICH "$new_path" 2> /dev/null`
36275  # bat and cmd files are not always considered executable in cygwin causing which
36276  # to not find them
36277  if test "x$new_path" = x \
36278      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36279      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36280    new_path=`$CYGPATH -u "$path"`
36281  fi
36282  if test "x$new_path" = x; then
36283    # Oops. Which didn't find the executable.
36284    # The splitting of arguments from the executable at a space might have been incorrect,
36285    # since paths with space are more likely in Windows. Give it another try with the whole
36286    # argument.
36287    path="$complete"
36288    arguments="EOL"
36289    new_path=`$CYGPATH -u "$path"`
36290    new_path=`$WHICH "$new_path" 2> /dev/null`
36291    # bat and cmd files are not always considered executable in cygwin causing which
36292    # to not find them
36293    if test "x$new_path" = x \
36294        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36295        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36296      new_path=`$CYGPATH -u "$path"`
36297    fi
36298    if test "x$new_path" = x; then
36299      # It's still not found. Now this is an unrecoverable error.
36300      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36301$as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36302      has_space=`$ECHO "$complete" | $GREP " "`
36303      if test "x$has_space" != x; then
36304        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36305$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36306      fi
36307      as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36308    fi
36309  fi
36310
36311  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36312  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36313  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36314  # "foo.exe" is OK but "foo" is an error.
36315  #
36316  # This test is therefore slightly more accurate than "test -f" to check for file presence.
36317  # It is also a way to make sure we got the proper file name for the real test later on.
36318  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36319  if test "x$test_shortpath" = x; then
36320    # Short path failed, file does not exist as specified.
36321    # Try adding .exe or .cmd
36322    if test -f "${new_path}.exe"; then
36323      input_to_shortpath="${new_path}.exe"
36324    elif test -f "${new_path}.cmd"; then
36325      input_to_shortpath="${new_path}.cmd"
36326    else
36327      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5
36328$as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;}
36329      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36330$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36331      as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36332    fi
36333  else
36334    input_to_shortpath="$new_path"
36335  fi
36336
36337  # Call helper function which possibly converts this using DOS-style short mode.
36338  # If so, the updated path is stored in $new_path.
36339  new_path="$input_to_shortpath"
36340
36341  input_path="$input_to_shortpath"
36342  # Check if we need to convert this using DOS-style short mode. If the path
36343  # contains just simple characters, use it. Otherwise (spaces, weird characters),
36344  # take no chances and rewrite it.
36345  # Note: m4 eats our [], so we need to use [ and ] instead.
36346  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36347  if test "x$has_forbidden_chars" != x; then
36348    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36349    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36350    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36351    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36352      # Going to short mode and back again did indeed matter. Since short mode is
36353      # case insensitive, let's make it lowercase to improve readability.
36354      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36355      # Now convert it back to Unix-stile (cygpath)
36356      input_path=`$CYGPATH -u "$shortmode_path"`
36357      new_path="$input_path"
36358    fi
36359  fi
36360
36361  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36362  if test "x$test_cygdrive_prefix" = x; then
36363    # As a simple fix, exclude /usr/bin since it's not a real path.
36364    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36365      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36366      # a path prefixed by /cygdrive for fixpath to work.
36367      new_path="$CYGWIN_ROOT_PATH$input_path"
36368    fi
36369  fi
36370
36371  # remove trailing .exe if any
36372  new_path="${new_path/%.exe/}"
36373
36374  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36375
36376  # First separate the path from the arguments. This will split at the first
36377  # space.
36378  complete="$MCS"
36379  path="${complete%% *}"
36380  tmp="$complete EOL"
36381  arguments="${tmp#* }"
36382
36383  # Input might be given as Windows format, start by converting to
36384  # unix format.
36385  new_path="$path"
36386
36387  windows_path="$new_path"
36388  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36389    unix_path=`$CYGPATH -u "$windows_path"`
36390    new_path="$unix_path"
36391  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36392    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36393    new_path="$unix_path"
36394  fi
36395
36396
36397  # Now try to locate executable using which
36398  new_path=`$WHICH "$new_path" 2> /dev/null`
36399
36400  if test "x$new_path" = x; then
36401    # Oops. Which didn't find the executable.
36402    # The splitting of arguments from the executable at a space might have been incorrect,
36403    # since paths with space are more likely in Windows. Give it another try with the whole
36404    # argument.
36405    path="$complete"
36406    arguments="EOL"
36407    new_path="$path"
36408
36409  windows_path="$new_path"
36410  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36411    unix_path=`$CYGPATH -u "$windows_path"`
36412    new_path="$unix_path"
36413  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36414    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36415    new_path="$unix_path"
36416  fi
36417
36418
36419    new_path=`$WHICH "$new_path" 2> /dev/null`
36420
36421    if test "x$new_path" = x; then
36422      # It's still not found. Now this is an unrecoverable error.
36423      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36424$as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36425      has_space=`$ECHO "$complete" | $GREP " "`
36426      if test "x$has_space" != x; then
36427        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36428$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36429      fi
36430      as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36431    fi
36432  fi
36433
36434  # Now new_path has a complete unix path to the binary
36435  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36436    # Keep paths in /bin as-is, but remove trailing .exe if any
36437    new_path="${new_path/%.exe/}"
36438    # Do not save /bin paths to all_fixpath_prefixes!
36439  else
36440    # Not in mixed or Windows style, start by that.
36441    new_path=`cmd //c echo $new_path`
36442
36443  input_path="$new_path"
36444  # Check if we need to convert this using DOS-style short mode. If the path
36445  # contains just simple characters, use it. Otherwise (spaces, weird characters),
36446  # take no chances and rewrite it.
36447  # Note: m4 eats our [], so we need to use [ and ] instead.
36448  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
36449  if test "x$has_forbidden_chars" != x; then
36450    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36451    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36452  fi
36453
36454    # Output is in $new_path
36455
36456  windows_path="$new_path"
36457  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36458    unix_path=`$CYGPATH -u "$windows_path"`
36459    new_path="$unix_path"
36460  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36461    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36462    new_path="$unix_path"
36463  fi
36464
36465    # remove trailing .exe if any
36466    new_path="${new_path/%.exe/}"
36467
36468    # Save the first 10 bytes of this path to the storage, so fixpath can work.
36469    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
36470  fi
36471
36472  else
36473    # We're on a posix platform. Hooray! :)
36474    # First separate the path from the arguments. This will split at the first
36475    # space.
36476    complete="$MCS"
36477    path="${complete%% *}"
36478    tmp="$complete EOL"
36479    arguments="${tmp#* }"
36480
36481    # Cannot rely on the command "which" here since it doesn't always work.
36482    is_absolute_path=`$ECHO "$path" | $GREP ^/`
36483    if test -z "$is_absolute_path"; then
36484      # Path to executable is not absolute. Find it.
36485      IFS_save="$IFS"
36486      IFS=:
36487      for p in $PATH; do
36488        if test -f "$p/$path" && test -x "$p/$path"; then
36489          new_path="$p/$path"
36490          break
36491        fi
36492      done
36493      IFS="$IFS_save"
36494    else
36495      # This is an absolute path, we can use it without further modifications.
36496      new_path="$path"
36497    fi
36498
36499    if test "x$new_path" = x; then
36500      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
36501$as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
36502      has_space=`$ECHO "$complete" | $GREP " "`
36503      if test "x$has_space" != x; then
36504        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
36505$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
36506      fi
36507      as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
36508    fi
36509  fi
36510
36511  # Now join together the path and the arguments once again
36512  if test "x$arguments" != xEOL; then
36513    new_complete="$new_path ${arguments% *}"
36514  else
36515    new_complete="$new_path"
36516  fi
36517
36518  if test "x$complete" != "x$new_complete"; then
36519    MCS="$new_complete"
36520    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
36521$as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
36522  fi
36523
36524  elif test "x$OPENJDK_TARGET_OS" != xwindows; then
36525    # FIXME: we should unify this with the solaris case above.
36526
36527
36528  # Publish this variable in the help.
36529
36530
36531  if test "x$STRIP" = x; then
36532    # The variable is not set by user, try to locate tool using the code snippet
36533    if test -n "$ac_tool_prefix"; then
36534  for ac_prog in strip
36535  do
36536    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36539$as_echo_n "checking for $ac_word... " >&6; }
36540if ${ac_cv_prog_STRIP+:} false; then :
36541  $as_echo_n "(cached) " >&6
36542else
36543  if test -n "$STRIP"; then
36544  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36545else
36546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36547for as_dir in $PATH
36548do
36549  IFS=$as_save_IFS
36550  test -z "$as_dir" && as_dir=.
36551    for ac_exec_ext in '' $ac_executable_extensions; do
36552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36553    ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
36554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36555    break 2
36556  fi
36557done
36558  done
36559IFS=$as_save_IFS
36560
36561fi
36562fi
36563STRIP=$ac_cv_prog_STRIP
36564if test -n "$STRIP"; then
36565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
36566$as_echo "$STRIP" >&6; }
36567else
36568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36569$as_echo "no" >&6; }
36570fi
36571
36572
36573    test -n "$STRIP" && break
36574  done
36575fi
36576if test -z "$STRIP"; then
36577  ac_ct_STRIP=$STRIP
36578  for ac_prog in strip
36579do
36580  # Extract the first word of "$ac_prog", so it can be a program name with args.
36581set dummy $ac_prog; ac_word=$2
36582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36583$as_echo_n "checking for $ac_word... " >&6; }
36584if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
36585  $as_echo_n "(cached) " >&6
36586else
36587  if test -n "$ac_ct_STRIP"; then
36588  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
36589else
36590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36591for as_dir in $PATH
36592do
36593  IFS=$as_save_IFS
36594  test -z "$as_dir" && as_dir=.
36595    for ac_exec_ext in '' $ac_executable_extensions; do
36596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36597    ac_cv_prog_ac_ct_STRIP="$ac_prog"
36598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36599    break 2
36600  fi
36601done
36602  done
36603IFS=$as_save_IFS
36604
36605fi
36606fi
36607ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
36608if test -n "$ac_ct_STRIP"; then
36609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
36610$as_echo "$ac_ct_STRIP" >&6; }
36611else
36612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36613$as_echo "no" >&6; }
36614fi
36615
36616
36617  test -n "$ac_ct_STRIP" && break
36618done
36619
36620  if test "x$ac_ct_STRIP" = x; then
36621    STRIP=""
36622  else
36623    case $cross_compiling:$ac_tool_warned in
36624yes:)
36625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36627ac_tool_warned=yes ;;
36628esac
36629    STRIP=$ac_ct_STRIP
36630  fi
36631fi
36632
36633  else
36634    # The variable is set, but is it from the command line or the environment?
36635
36636    # Try to remove the string !STRIP! from our list.
36637    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/}
36638    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
36639      # If it failed, the variable was not from the command line. Ignore it,
36640      # but warn the user (except for BASH, which is always set by the calling BASH).
36641      if test "xSTRIP" != xBASH; then
36642        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5
36643$as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;}
36644      fi
36645      # Try to locate tool using the code snippet
36646      if test -n "$ac_tool_prefix"; then
36647  for ac_prog in strip
36648  do
36649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36652$as_echo_n "checking for $ac_word... " >&6; }
36653if ${ac_cv_prog_STRIP+:} false; then :
36654  $as_echo_n "(cached) " >&6
36655else
36656  if test -n "$STRIP"; then
36657  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
36658else
36659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36660for as_dir in $PATH
36661do
36662  IFS=$as_save_IFS
36663  test -z "$as_dir" && as_dir=.
36664    for ac_exec_ext in '' $ac_executable_extensions; do
36665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36666    ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
36667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36668    break 2
36669  fi
36670done
36671  done
36672IFS=$as_save_IFS
36673
36674fi
36675fi
36676STRIP=$ac_cv_prog_STRIP
36677if test -n "$STRIP"; then
36678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
36679$as_echo "$STRIP" >&6; }
36680else
36681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36682$as_echo "no" >&6; }
36683fi
36684
36685
36686    test -n "$STRIP" && break
36687  done
36688fi
36689if test -z "$STRIP"; then
36690  ac_ct_STRIP=$STRIP
36691  for ac_prog in strip
36692do
36693  # Extract the first word of "$ac_prog", so it can be a program name with args.
36694set dummy $ac_prog; ac_word=$2
36695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36696$as_echo_n "checking for $ac_word... " >&6; }
36697if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
36698  $as_echo_n "(cached) " >&6
36699else
36700  if test -n "$ac_ct_STRIP"; then
36701  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
36702else
36703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36704for as_dir in $PATH
36705do
36706  IFS=$as_save_IFS
36707  test -z "$as_dir" && as_dir=.
36708    for ac_exec_ext in '' $ac_executable_extensions; do
36709  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36710    ac_cv_prog_ac_ct_STRIP="$ac_prog"
36711    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36712    break 2
36713  fi
36714done
36715  done
36716IFS=$as_save_IFS
36717
36718fi
36719fi
36720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
36721if test -n "$ac_ct_STRIP"; then
36722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
36723$as_echo "$ac_ct_STRIP" >&6; }
36724else
36725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726$as_echo "no" >&6; }
36727fi
36728
36729
36730  test -n "$ac_ct_STRIP" && break
36731done
36732
36733  if test "x$ac_ct_STRIP" = x; then
36734    STRIP=""
36735  else
36736    case $cross_compiling:$ac_tool_warned in
36737yes:)
36738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36740ac_tool_warned=yes ;;
36741esac
36742    STRIP=$ac_ct_STRIP
36743  fi
36744fi
36745
36746    else
36747      # If it succeeded, then it was overridden by the user. We will use it
36748      # for the tool.
36749
36750      # First remove it from the list of overridden variables, so we can test
36751      # for unknown variables in the end.
36752      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
36753
36754      # Check if the provided tool contains a complete path.
36755      tool_specified="$STRIP"
36756      tool_basename="${tool_specified##*/}"
36757      if test "x$tool_basename" = "x$tool_specified"; then
36758        # A command without a complete path is provided, search $PATH.
36759        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5
36760$as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;}
36761        # Extract the first word of "$tool_basename", so it can be a program name with args.
36762set dummy $tool_basename; ac_word=$2
36763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36764$as_echo_n "checking for $ac_word... " >&6; }
36765if ${ac_cv_path_STRIP+:} false; then :
36766  $as_echo_n "(cached) " >&6
36767else
36768  case $STRIP in
36769  [\\/]* | ?:[\\/]*)
36770  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
36771  ;;
36772  *)
36773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36774for as_dir in $PATH
36775do
36776  IFS=$as_save_IFS
36777  test -z "$as_dir" && as_dir=.
36778    for ac_exec_ext in '' $ac_executable_extensions; do
36779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36780    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
36781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36782    break 2
36783  fi
36784done
36785  done
36786IFS=$as_save_IFS
36787
36788  ;;
36789esac
36790fi
36791STRIP=$ac_cv_path_STRIP
36792if test -n "$STRIP"; then
36793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
36794$as_echo "$STRIP" >&6; }
36795else
36796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36797$as_echo "no" >&6; }
36798fi
36799
36800
36801        if test "x$STRIP" = x; then
36802          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
36803        fi
36804      else
36805        # Otherwise we believe it is a complete path. Use it as it is.
36806        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5
36807$as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;}
36808        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5
36809$as_echo_n "checking for STRIP... " >&6; }
36810        if test ! -x "$tool_specified"; then
36811          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
36812$as_echo "not found" >&6; }
36813          as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5
36814        fi
36815        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
36816$as_echo "$tool_specified" >&6; }
36817      fi
36818    fi
36819  fi
36820
36821
36822
36823  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36824
36825  # First separate the path from the arguments. This will split at the first
36826  # space.
36827  complete="$STRIP"
36828  path="${complete%% *}"
36829  tmp="$complete EOL"
36830  arguments="${tmp#* }"
36831
36832  # Input might be given as Windows format, start by converting to
36833  # unix format.
36834  new_path=`$CYGPATH -u "$path"`
36835
36836  # Now try to locate executable using which
36837  new_path=`$WHICH "$new_path" 2> /dev/null`
36838  # bat and cmd files are not always considered executable in cygwin causing which
36839  # to not find them
36840  if test "x$new_path" = x \
36841      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36842      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36843    new_path=`$CYGPATH -u "$path"`
36844  fi
36845  if test "x$new_path" = x; then
36846    # Oops. Which didn't find the executable.
36847    # The splitting of arguments from the executable at a space might have been incorrect,
36848    # since paths with space are more likely in Windows. Give it another try with the whole
36849    # argument.
36850    path="$complete"
36851    arguments="EOL"
36852    new_path=`$CYGPATH -u "$path"`
36853    new_path=`$WHICH "$new_path" 2> /dev/null`
36854    # bat and cmd files are not always considered executable in cygwin causing which
36855    # to not find them
36856    if test "x$new_path" = x \
36857        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
36858        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
36859      new_path=`$CYGPATH -u "$path"`
36860    fi
36861    if test "x$new_path" = x; then
36862      # It's still not found. Now this is an unrecoverable error.
36863      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
36864$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
36865      has_space=`$ECHO "$complete" | $GREP " "`
36866      if test "x$has_space" != x; then
36867        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36868$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36869      fi
36870      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36871    fi
36872  fi
36873
36874  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
36875  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
36876  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
36877  # "foo.exe" is OK but "foo" is an error.
36878  #
36879  # This test is therefore slightly more accurate than "test -f" to check for file presence.
36880  # It is also a way to make sure we got the proper file name for the real test later on.
36881  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
36882  if test "x$test_shortpath" = x; then
36883    # Short path failed, file does not exist as specified.
36884    # Try adding .exe or .cmd
36885    if test -f "${new_path}.exe"; then
36886      input_to_shortpath="${new_path}.exe"
36887    elif test -f "${new_path}.cmd"; then
36888      input_to_shortpath="${new_path}.cmd"
36889    else
36890      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5
36891$as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;}
36892      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
36893$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
36894      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36895    fi
36896  else
36897    input_to_shortpath="$new_path"
36898  fi
36899
36900  # Call helper function which possibly converts this using DOS-style short mode.
36901  # If so, the updated path is stored in $new_path.
36902  new_path="$input_to_shortpath"
36903
36904  input_path="$input_to_shortpath"
36905  # Check if we need to convert this using DOS-style short mode. If the path
36906  # contains just simple characters, use it. Otherwise (spaces, weird characters),
36907  # take no chances and rewrite it.
36908  # Note: m4 eats our [], so we need to use [ and ] instead.
36909  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
36910  if test "x$has_forbidden_chars" != x; then
36911    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
36912    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
36913    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
36914    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
36915      # Going to short mode and back again did indeed matter. Since short mode is
36916      # case insensitive, let's make it lowercase to improve readability.
36917      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36918      # Now convert it back to Unix-stile (cygpath)
36919      input_path=`$CYGPATH -u "$shortmode_path"`
36920      new_path="$input_path"
36921    fi
36922  fi
36923
36924  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
36925  if test "x$test_cygdrive_prefix" = x; then
36926    # As a simple fix, exclude /usr/bin since it's not a real path.
36927    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
36928      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
36929      # a path prefixed by /cygdrive for fixpath to work.
36930      new_path="$CYGWIN_ROOT_PATH$input_path"
36931    fi
36932  fi
36933
36934  # remove trailing .exe if any
36935  new_path="${new_path/%.exe/}"
36936
36937  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36938
36939  # First separate the path from the arguments. This will split at the first
36940  # space.
36941  complete="$STRIP"
36942  path="${complete%% *}"
36943  tmp="$complete EOL"
36944  arguments="${tmp#* }"
36945
36946  # Input might be given as Windows format, start by converting to
36947  # unix format.
36948  new_path="$path"
36949
36950  windows_path="$new_path"
36951  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36952    unix_path=`$CYGPATH -u "$windows_path"`
36953    new_path="$unix_path"
36954  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36955    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36956    new_path="$unix_path"
36957  fi
36958
36959
36960  # Now try to locate executable using which
36961  new_path=`$WHICH "$new_path" 2> /dev/null`
36962
36963  if test "x$new_path" = x; then
36964    # Oops. Which didn't find the executable.
36965    # The splitting of arguments from the executable at a space might have been incorrect,
36966    # since paths with space are more likely in Windows. Give it another try with the whole
36967    # argument.
36968    path="$complete"
36969    arguments="EOL"
36970    new_path="$path"
36971
36972  windows_path="$new_path"
36973  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
36974    unix_path=`$CYGPATH -u "$windows_path"`
36975    new_path="$unix_path"
36976  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
36977    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
36978    new_path="$unix_path"
36979  fi
36980
36981
36982    new_path=`$WHICH "$new_path" 2> /dev/null`
36983
36984    if test "x$new_path" = x; then
36985      # It's still not found. Now this is an unrecoverable error.
36986      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
36987$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
36988      has_space=`$ECHO "$complete" | $GREP " "`
36989      if test "x$has_space" != x; then
36990        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
36991$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
36992      fi
36993      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
36994    fi
36995  fi
36996
36997  # Now new_path has a complete unix path to the binary
36998  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
36999    # Keep paths in /bin as-is, but remove trailing .exe if any
37000    new_path="${new_path/%.exe/}"
37001    # Do not save /bin paths to all_fixpath_prefixes!
37002  else
37003    # Not in mixed or Windows style, start by that.
37004    new_path=`cmd //c echo $new_path`
37005
37006  input_path="$new_path"
37007  # Check if we need to convert this using DOS-style short mode. If the path
37008  # contains just simple characters, use it. Otherwise (spaces, weird characters),
37009  # take no chances and rewrite it.
37010  # Note: m4 eats our [], so we need to use [ and ] instead.
37011  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37012  if test "x$has_forbidden_chars" != x; then
37013    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37014    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37015  fi
37016
37017    # Output is in $new_path
37018
37019  windows_path="$new_path"
37020  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37021    unix_path=`$CYGPATH -u "$windows_path"`
37022    new_path="$unix_path"
37023  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37024    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37025    new_path="$unix_path"
37026  fi
37027
37028    # remove trailing .exe if any
37029    new_path="${new_path/%.exe/}"
37030
37031    # Save the first 10 bytes of this path to the storage, so fixpath can work.
37032    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37033  fi
37034
37035  else
37036    # We're on a posix platform. Hooray! :)
37037    # First separate the path from the arguments. This will split at the first
37038    # space.
37039    complete="$STRIP"
37040    path="${complete%% *}"
37041    tmp="$complete EOL"
37042    arguments="${tmp#* }"
37043
37044    # Cannot rely on the command "which" here since it doesn't always work.
37045    is_absolute_path=`$ECHO "$path" | $GREP ^/`
37046    if test -z "$is_absolute_path"; then
37047      # Path to executable is not absolute. Find it.
37048      IFS_save="$IFS"
37049      IFS=:
37050      for p in $PATH; do
37051        if test -f "$p/$path" && test -x "$p/$path"; then
37052          new_path="$p/$path"
37053          break
37054        fi
37055      done
37056      IFS="$IFS_save"
37057    else
37058      # This is an absolute path, we can use it without further modifications.
37059      new_path="$path"
37060    fi
37061
37062    if test "x$new_path" = x; then
37063      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
37064$as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
37065      has_space=`$ECHO "$complete" | $GREP " "`
37066      if test "x$has_space" != x; then
37067        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37068$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37069      fi
37070      as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
37071    fi
37072  fi
37073
37074  # Now join together the path and the arguments once again
37075  if test "x$arguments" != xEOL; then
37076    new_complete="$new_path ${arguments% *}"
37077  else
37078    new_complete="$new_path"
37079  fi
37080
37081  if test "x$complete" != "x$new_complete"; then
37082    STRIP="$new_complete"
37083    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
37084$as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
37085  fi
37086
37087
37088
37089  # Publish this variable in the help.
37090
37091
37092  if test "x$NM" = x; then
37093    # The variable is not set by user, try to locate tool using the code snippet
37094    if test -n "$ac_tool_prefix"; then
37095  for ac_prog in nm
37096  do
37097    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37100$as_echo_n "checking for $ac_word... " >&6; }
37101if ${ac_cv_prog_NM+:} false; then :
37102  $as_echo_n "(cached) " >&6
37103else
37104  if test -n "$NM"; then
37105  ac_cv_prog_NM="$NM" # Let the user override the test.
37106else
37107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37108for as_dir in $PATH
37109do
37110  IFS=$as_save_IFS
37111  test -z "$as_dir" && as_dir=.
37112    for ac_exec_ext in '' $ac_executable_extensions; do
37113  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37114    ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
37115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37116    break 2
37117  fi
37118done
37119  done
37120IFS=$as_save_IFS
37121
37122fi
37123fi
37124NM=$ac_cv_prog_NM
37125if test -n "$NM"; then
37126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
37127$as_echo "$NM" >&6; }
37128else
37129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130$as_echo "no" >&6; }
37131fi
37132
37133
37134    test -n "$NM" && break
37135  done
37136fi
37137if test -z "$NM"; then
37138  ac_ct_NM=$NM
37139  for ac_prog in nm
37140do
37141  # Extract the first word of "$ac_prog", so it can be a program name with args.
37142set dummy $ac_prog; ac_word=$2
37143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37144$as_echo_n "checking for $ac_word... " >&6; }
37145if ${ac_cv_prog_ac_ct_NM+:} false; then :
37146  $as_echo_n "(cached) " >&6
37147else
37148  if test -n "$ac_ct_NM"; then
37149  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37150else
37151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37152for as_dir in $PATH
37153do
37154  IFS=$as_save_IFS
37155  test -z "$as_dir" && as_dir=.
37156    for ac_exec_ext in '' $ac_executable_extensions; do
37157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37158    ac_cv_prog_ac_ct_NM="$ac_prog"
37159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37160    break 2
37161  fi
37162done
37163  done
37164IFS=$as_save_IFS
37165
37166fi
37167fi
37168ac_ct_NM=$ac_cv_prog_ac_ct_NM
37169if test -n "$ac_ct_NM"; then
37170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
37171$as_echo "$ac_ct_NM" >&6; }
37172else
37173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37174$as_echo "no" >&6; }
37175fi
37176
37177
37178  test -n "$ac_ct_NM" && break
37179done
37180
37181  if test "x$ac_ct_NM" = x; then
37182    NM=""
37183  else
37184    case $cross_compiling:$ac_tool_warned in
37185yes:)
37186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37188ac_tool_warned=yes ;;
37189esac
37190    NM=$ac_ct_NM
37191  fi
37192fi
37193
37194  else
37195    # The variable is set, but is it from the command line or the environment?
37196
37197    # Try to remove the string !NM! from our list.
37198    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/}
37199    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37200      # If it failed, the variable was not from the command line. Ignore it,
37201      # but warn the user (except for BASH, which is always set by the calling BASH).
37202      if test "xNM" != xBASH; then
37203        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5
37204$as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;}
37205      fi
37206      # Try to locate tool using the code snippet
37207      if test -n "$ac_tool_prefix"; then
37208  for ac_prog in nm
37209  do
37210    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37213$as_echo_n "checking for $ac_word... " >&6; }
37214if ${ac_cv_prog_NM+:} false; then :
37215  $as_echo_n "(cached) " >&6
37216else
37217  if test -n "$NM"; then
37218  ac_cv_prog_NM="$NM" # Let the user override the test.
37219else
37220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37221for as_dir in $PATH
37222do
37223  IFS=$as_save_IFS
37224  test -z "$as_dir" && as_dir=.
37225    for ac_exec_ext in '' $ac_executable_extensions; do
37226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37227    ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
37228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37229    break 2
37230  fi
37231done
37232  done
37233IFS=$as_save_IFS
37234
37235fi
37236fi
37237NM=$ac_cv_prog_NM
37238if test -n "$NM"; then
37239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
37240$as_echo "$NM" >&6; }
37241else
37242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37243$as_echo "no" >&6; }
37244fi
37245
37246
37247    test -n "$NM" && break
37248  done
37249fi
37250if test -z "$NM"; then
37251  ac_ct_NM=$NM
37252  for ac_prog in nm
37253do
37254  # Extract the first word of "$ac_prog", so it can be a program name with args.
37255set dummy $ac_prog; ac_word=$2
37256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37257$as_echo_n "checking for $ac_word... " >&6; }
37258if ${ac_cv_prog_ac_ct_NM+:} false; then :
37259  $as_echo_n "(cached) " >&6
37260else
37261  if test -n "$ac_ct_NM"; then
37262  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37263else
37264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37265for as_dir in $PATH
37266do
37267  IFS=$as_save_IFS
37268  test -z "$as_dir" && as_dir=.
37269    for ac_exec_ext in '' $ac_executable_extensions; do
37270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37271    ac_cv_prog_ac_ct_NM="$ac_prog"
37272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37273    break 2
37274  fi
37275done
37276  done
37277IFS=$as_save_IFS
37278
37279fi
37280fi
37281ac_ct_NM=$ac_cv_prog_ac_ct_NM
37282if test -n "$ac_ct_NM"; then
37283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
37284$as_echo "$ac_ct_NM" >&6; }
37285else
37286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37287$as_echo "no" >&6; }
37288fi
37289
37290
37291  test -n "$ac_ct_NM" && break
37292done
37293
37294  if test "x$ac_ct_NM" = x; then
37295    NM=""
37296  else
37297    case $cross_compiling:$ac_tool_warned in
37298yes:)
37299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37301ac_tool_warned=yes ;;
37302esac
37303    NM=$ac_ct_NM
37304  fi
37305fi
37306
37307    else
37308      # If it succeeded, then it was overridden by the user. We will use it
37309      # for the tool.
37310
37311      # First remove it from the list of overridden variables, so we can test
37312      # for unknown variables in the end.
37313      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37314
37315      # Check if the provided tool contains a complete path.
37316      tool_specified="$NM"
37317      tool_basename="${tool_specified##*/}"
37318      if test "x$tool_basename" = "x$tool_specified"; then
37319        # A command without a complete path is provided, search $PATH.
37320        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5
37321$as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;}
37322        # Extract the first word of "$tool_basename", so it can be a program name with args.
37323set dummy $tool_basename; ac_word=$2
37324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37325$as_echo_n "checking for $ac_word... " >&6; }
37326if ${ac_cv_path_NM+:} false; then :
37327  $as_echo_n "(cached) " >&6
37328else
37329  case $NM in
37330  [\\/]* | ?:[\\/]*)
37331  ac_cv_path_NM="$NM" # Let the user override the test with a path.
37332  ;;
37333  *)
37334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37335for as_dir in $PATH
37336do
37337  IFS=$as_save_IFS
37338  test -z "$as_dir" && as_dir=.
37339    for ac_exec_ext in '' $ac_executable_extensions; do
37340  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37341    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
37342    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37343    break 2
37344  fi
37345done
37346  done
37347IFS=$as_save_IFS
37348
37349  ;;
37350esac
37351fi
37352NM=$ac_cv_path_NM
37353if test -n "$NM"; then
37354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
37355$as_echo "$NM" >&6; }
37356else
37357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37358$as_echo "no" >&6; }
37359fi
37360
37361
37362        if test "x$NM" = x; then
37363          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37364        fi
37365      else
37366        # Otherwise we believe it is a complete path. Use it as it is.
37367        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5
37368$as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;}
37369        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5
37370$as_echo_n "checking for NM... " >&6; }
37371        if test ! -x "$tool_specified"; then
37372          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37373$as_echo "not found" >&6; }
37374          as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5
37375        fi
37376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37377$as_echo "$tool_specified" >&6; }
37378      fi
37379    fi
37380  fi
37381
37382
37383
37384  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37385
37386  # First separate the path from the arguments. This will split at the first
37387  # space.
37388  complete="$NM"
37389  path="${complete%% *}"
37390  tmp="$complete EOL"
37391  arguments="${tmp#* }"
37392
37393  # Input might be given as Windows format, start by converting to
37394  # unix format.
37395  new_path=`$CYGPATH -u "$path"`
37396
37397  # Now try to locate executable using which
37398  new_path=`$WHICH "$new_path" 2> /dev/null`
37399  # bat and cmd files are not always considered executable in cygwin causing which
37400  # to not find them
37401  if test "x$new_path" = x \
37402      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37403      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37404    new_path=`$CYGPATH -u "$path"`
37405  fi
37406  if test "x$new_path" = x; then
37407    # Oops. Which didn't find the executable.
37408    # The splitting of arguments from the executable at a space might have been incorrect,
37409    # since paths with space are more likely in Windows. Give it another try with the whole
37410    # argument.
37411    path="$complete"
37412    arguments="EOL"
37413    new_path=`$CYGPATH -u "$path"`
37414    new_path=`$WHICH "$new_path" 2> /dev/null`
37415    # bat and cmd files are not always considered executable in cygwin causing which
37416    # to not find them
37417    if test "x$new_path" = x \
37418        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37419        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37420      new_path=`$CYGPATH -u "$path"`
37421    fi
37422    if test "x$new_path" = x; then
37423      # It's still not found. Now this is an unrecoverable error.
37424      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37425$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37426      has_space=`$ECHO "$complete" | $GREP " "`
37427      if test "x$has_space" != x; then
37428        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37429$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37430      fi
37431      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37432    fi
37433  fi
37434
37435  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
37436  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
37437  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
37438  # "foo.exe" is OK but "foo" is an error.
37439  #
37440  # This test is therefore slightly more accurate than "test -f" to check for file presence.
37441  # It is also a way to make sure we got the proper file name for the real test later on.
37442  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
37443  if test "x$test_shortpath" = x; then
37444    # Short path failed, file does not exist as specified.
37445    # Try adding .exe or .cmd
37446    if test -f "${new_path}.exe"; then
37447      input_to_shortpath="${new_path}.exe"
37448    elif test -f "${new_path}.cmd"; then
37449      input_to_shortpath="${new_path}.cmd"
37450    else
37451      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5
37452$as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;}
37453      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
37454$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
37455      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37456    fi
37457  else
37458    input_to_shortpath="$new_path"
37459  fi
37460
37461  # Call helper function which possibly converts this using DOS-style short mode.
37462  # If so, the updated path is stored in $new_path.
37463  new_path="$input_to_shortpath"
37464
37465  input_path="$input_to_shortpath"
37466  # Check if we need to convert this using DOS-style short mode. If the path
37467  # contains just simple characters, use it. Otherwise (spaces, weird characters),
37468  # take no chances and rewrite it.
37469  # Note: m4 eats our [], so we need to use [ and ] instead.
37470  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
37471  if test "x$has_forbidden_chars" != x; then
37472    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37473    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
37474    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
37475    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
37476      # Going to short mode and back again did indeed matter. Since short mode is
37477      # case insensitive, let's make it lowercase to improve readability.
37478      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37479      # Now convert it back to Unix-stile (cygpath)
37480      input_path=`$CYGPATH -u "$shortmode_path"`
37481      new_path="$input_path"
37482    fi
37483  fi
37484
37485  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
37486  if test "x$test_cygdrive_prefix" = x; then
37487    # As a simple fix, exclude /usr/bin since it's not a real path.
37488    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
37489      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
37490      # a path prefixed by /cygdrive for fixpath to work.
37491      new_path="$CYGWIN_ROOT_PATH$input_path"
37492    fi
37493  fi
37494
37495  # remove trailing .exe if any
37496  new_path="${new_path/%.exe/}"
37497
37498  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37499
37500  # First separate the path from the arguments. This will split at the first
37501  # space.
37502  complete="$NM"
37503  path="${complete%% *}"
37504  tmp="$complete EOL"
37505  arguments="${tmp#* }"
37506
37507  # Input might be given as Windows format, start by converting to
37508  # unix format.
37509  new_path="$path"
37510
37511  windows_path="$new_path"
37512  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37513    unix_path=`$CYGPATH -u "$windows_path"`
37514    new_path="$unix_path"
37515  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37516    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37517    new_path="$unix_path"
37518  fi
37519
37520
37521  # Now try to locate executable using which
37522  new_path=`$WHICH "$new_path" 2> /dev/null`
37523
37524  if test "x$new_path" = x; then
37525    # Oops. Which didn't find the executable.
37526    # The splitting of arguments from the executable at a space might have been incorrect,
37527    # since paths with space are more likely in Windows. Give it another try with the whole
37528    # argument.
37529    path="$complete"
37530    arguments="EOL"
37531    new_path="$path"
37532
37533  windows_path="$new_path"
37534  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37535    unix_path=`$CYGPATH -u "$windows_path"`
37536    new_path="$unix_path"
37537  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37538    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37539    new_path="$unix_path"
37540  fi
37541
37542
37543    new_path=`$WHICH "$new_path" 2> /dev/null`
37544
37545    if test "x$new_path" = x; then
37546      # It's still not found. Now this is an unrecoverable error.
37547      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37548$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37549      has_space=`$ECHO "$complete" | $GREP " "`
37550      if test "x$has_space" != x; then
37551        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37552$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
37553      fi
37554      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37555    fi
37556  fi
37557
37558  # Now new_path has a complete unix path to the binary
37559  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
37560    # Keep paths in /bin as-is, but remove trailing .exe if any
37561    new_path="${new_path/%.exe/}"
37562    # Do not save /bin paths to all_fixpath_prefixes!
37563  else
37564    # Not in mixed or Windows style, start by that.
37565    new_path=`cmd //c echo $new_path`
37566
37567  input_path="$new_path"
37568  # Check if we need to convert this using DOS-style short mode. If the path
37569  # contains just simple characters, use it. Otherwise (spaces, weird characters),
37570  # take no chances and rewrite it.
37571  # Note: m4 eats our [], so we need to use [ and ] instead.
37572  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
37573  if test "x$has_forbidden_chars" != x; then
37574    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
37575    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
37576  fi
37577
37578    # Output is in $new_path
37579
37580  windows_path="$new_path"
37581  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37582    unix_path=`$CYGPATH -u "$windows_path"`
37583    new_path="$unix_path"
37584  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
37585    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
37586    new_path="$unix_path"
37587  fi
37588
37589    # remove trailing .exe if any
37590    new_path="${new_path/%.exe/}"
37591
37592    # Save the first 10 bytes of this path to the storage, so fixpath can work.
37593    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
37594  fi
37595
37596  else
37597    # We're on a posix platform. Hooray! :)
37598    # First separate the path from the arguments. This will split at the first
37599    # space.
37600    complete="$NM"
37601    path="${complete%% *}"
37602    tmp="$complete EOL"
37603    arguments="${tmp#* }"
37604
37605    # Cannot rely on the command "which" here since it doesn't always work.
37606    is_absolute_path=`$ECHO "$path" | $GREP ^/`
37607    if test -z "$is_absolute_path"; then
37608      # Path to executable is not absolute. Find it.
37609      IFS_save="$IFS"
37610      IFS=:
37611      for p in $PATH; do
37612        if test -f "$p/$path" && test -x "$p/$path"; then
37613          new_path="$p/$path"
37614          break
37615        fi
37616      done
37617      IFS="$IFS_save"
37618    else
37619      # This is an absolute path, we can use it without further modifications.
37620      new_path="$path"
37621    fi
37622
37623    if test "x$new_path" = x; then
37624      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
37625$as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
37626      has_space=`$ECHO "$complete" | $GREP " "`
37627      if test "x$has_space" != x; then
37628        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
37629$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
37630      fi
37631      as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
37632    fi
37633  fi
37634
37635  # Now join together the path and the arguments once again
37636  if test "x$arguments" != xEOL; then
37637    new_complete="$new_path ${arguments% *}"
37638  else
37639    new_complete="$new_path"
37640  fi
37641
37642  if test "x$complete" != "x$new_complete"; then
37643    NM="$new_complete"
37644    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
37645$as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
37646  fi
37647
37648    GNM="$NM"
37649
37650  fi
37651
37652  # objcopy is used for moving debug symbols to separate files when
37653  # full debug symbols are enabled.
37654  if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
37655
37656
37657  # Publish this variable in the help.
37658
37659
37660  if test "x$OBJCOPY" = x; then
37661    # The variable is not set by user, try to locate tool using the code snippet
37662    if test -n "$ac_tool_prefix"; then
37663  for ac_prog in gobjcopy objcopy
37664  do
37665    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37666set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37668$as_echo_n "checking for $ac_word... " >&6; }
37669if ${ac_cv_prog_OBJCOPY+:} false; then :
37670  $as_echo_n "(cached) " >&6
37671else
37672  if test -n "$OBJCOPY"; then
37673  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
37674else
37675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37676for as_dir in $PATH
37677do
37678  IFS=$as_save_IFS
37679  test -z "$as_dir" && as_dir=.
37680    for ac_exec_ext in '' $ac_executable_extensions; do
37681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37682    ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
37683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37684    break 2
37685  fi
37686done
37687  done
37688IFS=$as_save_IFS
37689
37690fi
37691fi
37692OBJCOPY=$ac_cv_prog_OBJCOPY
37693if test -n "$OBJCOPY"; then
37694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
37695$as_echo "$OBJCOPY" >&6; }
37696else
37697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37698$as_echo "no" >&6; }
37699fi
37700
37701
37702    test -n "$OBJCOPY" && break
37703  done
37704fi
37705if test -z "$OBJCOPY"; then
37706  ac_ct_OBJCOPY=$OBJCOPY
37707  for ac_prog in gobjcopy objcopy
37708do
37709  # Extract the first word of "$ac_prog", so it can be a program name with args.
37710set dummy $ac_prog; ac_word=$2
37711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37712$as_echo_n "checking for $ac_word... " >&6; }
37713if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
37714  $as_echo_n "(cached) " >&6
37715else
37716  if test -n "$ac_ct_OBJCOPY"; then
37717  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
37718else
37719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37720for as_dir in $PATH
37721do
37722  IFS=$as_save_IFS
37723  test -z "$as_dir" && as_dir=.
37724    for ac_exec_ext in '' $ac_executable_extensions; do
37725  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37726    ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
37727    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37728    break 2
37729  fi
37730done
37731  done
37732IFS=$as_save_IFS
37733
37734fi
37735fi
37736ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
37737if test -n "$ac_ct_OBJCOPY"; then
37738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
37739$as_echo "$ac_ct_OBJCOPY" >&6; }
37740else
37741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37742$as_echo "no" >&6; }
37743fi
37744
37745
37746  test -n "$ac_ct_OBJCOPY" && break
37747done
37748
37749  if test "x$ac_ct_OBJCOPY" = x; then
37750    OBJCOPY=""
37751  else
37752    case $cross_compiling:$ac_tool_warned in
37753yes:)
37754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37756ac_tool_warned=yes ;;
37757esac
37758    OBJCOPY=$ac_ct_OBJCOPY
37759  fi
37760fi
37761
37762  else
37763    # The variable is set, but is it from the command line or the environment?
37764
37765    # Try to remove the string !OBJCOPY! from our list.
37766    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/}
37767    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
37768      # If it failed, the variable was not from the command line. Ignore it,
37769      # but warn the user (except for BASH, which is always set by the calling BASH).
37770      if test "xOBJCOPY" != xBASH; then
37771        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5
37772$as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;}
37773      fi
37774      # Try to locate tool using the code snippet
37775      if test -n "$ac_tool_prefix"; then
37776  for ac_prog in gobjcopy objcopy
37777  do
37778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37781$as_echo_n "checking for $ac_word... " >&6; }
37782if ${ac_cv_prog_OBJCOPY+:} false; then :
37783  $as_echo_n "(cached) " >&6
37784else
37785  if test -n "$OBJCOPY"; then
37786  ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
37787else
37788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37789for as_dir in $PATH
37790do
37791  IFS=$as_save_IFS
37792  test -z "$as_dir" && as_dir=.
37793    for ac_exec_ext in '' $ac_executable_extensions; do
37794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37795    ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
37796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37797    break 2
37798  fi
37799done
37800  done
37801IFS=$as_save_IFS
37802
37803fi
37804fi
37805OBJCOPY=$ac_cv_prog_OBJCOPY
37806if test -n "$OBJCOPY"; then
37807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
37808$as_echo "$OBJCOPY" >&6; }
37809else
37810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37811$as_echo "no" >&6; }
37812fi
37813
37814
37815    test -n "$OBJCOPY" && break
37816  done
37817fi
37818if test -z "$OBJCOPY"; then
37819  ac_ct_OBJCOPY=$OBJCOPY
37820  for ac_prog in gobjcopy objcopy
37821do
37822  # Extract the first word of "$ac_prog", so it can be a program name with args.
37823set dummy $ac_prog; ac_word=$2
37824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37825$as_echo_n "checking for $ac_word... " >&6; }
37826if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
37827  $as_echo_n "(cached) " >&6
37828else
37829  if test -n "$ac_ct_OBJCOPY"; then
37830  ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
37831else
37832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37833for as_dir in $PATH
37834do
37835  IFS=$as_save_IFS
37836  test -z "$as_dir" && as_dir=.
37837    for ac_exec_ext in '' $ac_executable_extensions; do
37838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37839    ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
37840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37841    break 2
37842  fi
37843done
37844  done
37845IFS=$as_save_IFS
37846
37847fi
37848fi
37849ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
37850if test -n "$ac_ct_OBJCOPY"; then
37851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
37852$as_echo "$ac_ct_OBJCOPY" >&6; }
37853else
37854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37855$as_echo "no" >&6; }
37856fi
37857
37858
37859  test -n "$ac_ct_OBJCOPY" && break
37860done
37861
37862  if test "x$ac_ct_OBJCOPY" = x; then
37863    OBJCOPY=""
37864  else
37865    case $cross_compiling:$ac_tool_warned in
37866yes:)
37867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37869ac_tool_warned=yes ;;
37870esac
37871    OBJCOPY=$ac_ct_OBJCOPY
37872  fi
37873fi
37874
37875    else
37876      # If it succeeded, then it was overridden by the user. We will use it
37877      # for the tool.
37878
37879      # First remove it from the list of overridden variables, so we can test
37880      # for unknown variables in the end.
37881      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
37882
37883      # Check if the provided tool contains a complete path.
37884      tool_specified="$OBJCOPY"
37885      tool_basename="${tool_specified##*/}"
37886      if test "x$tool_basename" = "x$tool_specified"; then
37887        # A command without a complete path is provided, search $PATH.
37888        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5
37889$as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;}
37890        # Extract the first word of "$tool_basename", so it can be a program name with args.
37891set dummy $tool_basename; ac_word=$2
37892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37893$as_echo_n "checking for $ac_word... " >&6; }
37894if ${ac_cv_path_OBJCOPY+:} false; then :
37895  $as_echo_n "(cached) " >&6
37896else
37897  case $OBJCOPY in
37898  [\\/]* | ?:[\\/]*)
37899  ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
37900  ;;
37901  *)
37902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37903for as_dir in $PATH
37904do
37905  IFS=$as_save_IFS
37906  test -z "$as_dir" && as_dir=.
37907    for ac_exec_ext in '' $ac_executable_extensions; do
37908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37909    ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
37910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37911    break 2
37912  fi
37913done
37914  done
37915IFS=$as_save_IFS
37916
37917  ;;
37918esac
37919fi
37920OBJCOPY=$ac_cv_path_OBJCOPY
37921if test -n "$OBJCOPY"; then
37922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
37923$as_echo "$OBJCOPY" >&6; }
37924else
37925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37926$as_echo "no" >&6; }
37927fi
37928
37929
37930        if test "x$OBJCOPY" = x; then
37931          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
37932        fi
37933      else
37934        # Otherwise we believe it is a complete path. Use it as it is.
37935        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5
37936$as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;}
37937        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5
37938$as_echo_n "checking for OBJCOPY... " >&6; }
37939        if test ! -x "$tool_specified"; then
37940          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
37941$as_echo "not found" >&6; }
37942          as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5
37943        fi
37944        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
37945$as_echo "$tool_specified" >&6; }
37946      fi
37947    fi
37948  fi
37949
37950
37951    # Only call fixup if objcopy was found.
37952    if test -n "$OBJCOPY"; then
37953
37954  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
37955
37956  # First separate the path from the arguments. This will split at the first
37957  # space.
37958  complete="$OBJCOPY"
37959  path="${complete%% *}"
37960  tmp="$complete EOL"
37961  arguments="${tmp#* }"
37962
37963  # Input might be given as Windows format, start by converting to
37964  # unix format.
37965  new_path=`$CYGPATH -u "$path"`
37966
37967  # Now try to locate executable using which
37968  new_path=`$WHICH "$new_path" 2> /dev/null`
37969  # bat and cmd files are not always considered executable in cygwin causing which
37970  # to not find them
37971  if test "x$new_path" = x \
37972      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37973      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37974    new_path=`$CYGPATH -u "$path"`
37975  fi
37976  if test "x$new_path" = x; then
37977    # Oops. Which didn't find the executable.
37978    # The splitting of arguments from the executable at a space might have been incorrect,
37979    # since paths with space are more likely in Windows. Give it another try with the whole
37980    # argument.
37981    path="$complete"
37982    arguments="EOL"
37983    new_path=`$CYGPATH -u "$path"`
37984    new_path=`$WHICH "$new_path" 2> /dev/null`
37985    # bat and cmd files are not always considered executable in cygwin causing which
37986    # to not find them
37987    if test "x$new_path" = x \
37988        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
37989        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
37990      new_path=`$CYGPATH -u "$path"`
37991    fi
37992    if test "x$new_path" = x; then
37993      # It's still not found. Now this is an unrecoverable error.
37994      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
37995$as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
37996      has_space=`$ECHO "$complete" | $GREP " "`
37997      if test "x$has_space" != x; then
37998        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
37999$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38000      fi
38001      as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38002    fi
38003  fi
38004
38005  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38006  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38007  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38008  # "foo.exe" is OK but "foo" is an error.
38009  #
38010  # This test is therefore slightly more accurate than "test -f" to check for file presence.
38011  # It is also a way to make sure we got the proper file name for the real test later on.
38012  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38013  if test "x$test_shortpath" = x; then
38014    # Short path failed, file does not exist as specified.
38015    # Try adding .exe or .cmd
38016    if test -f "${new_path}.exe"; then
38017      input_to_shortpath="${new_path}.exe"
38018    elif test -f "${new_path}.cmd"; then
38019      input_to_shortpath="${new_path}.cmd"
38020    else
38021      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5
38022$as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;}
38023      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38024$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38025      as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38026    fi
38027  else
38028    input_to_shortpath="$new_path"
38029  fi
38030
38031  # Call helper function which possibly converts this using DOS-style short mode.
38032  # If so, the updated path is stored in $new_path.
38033  new_path="$input_to_shortpath"
38034
38035  input_path="$input_to_shortpath"
38036  # Check if we need to convert this using DOS-style short mode. If the path
38037  # contains just simple characters, use it. Otherwise (spaces, weird characters),
38038  # take no chances and rewrite it.
38039  # Note: m4 eats our [], so we need to use [ and ] instead.
38040  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38041  if test "x$has_forbidden_chars" != x; then
38042    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38043    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38044    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38045    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38046      # Going to short mode and back again did indeed matter. Since short mode is
38047      # case insensitive, let's make it lowercase to improve readability.
38048      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38049      # Now convert it back to Unix-stile (cygpath)
38050      input_path=`$CYGPATH -u "$shortmode_path"`
38051      new_path="$input_path"
38052    fi
38053  fi
38054
38055  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38056  if test "x$test_cygdrive_prefix" = x; then
38057    # As a simple fix, exclude /usr/bin since it's not a real path.
38058    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38059      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38060      # a path prefixed by /cygdrive for fixpath to work.
38061      new_path="$CYGWIN_ROOT_PATH$input_path"
38062    fi
38063  fi
38064
38065  # remove trailing .exe if any
38066  new_path="${new_path/%.exe/}"
38067
38068  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38069
38070  # First separate the path from the arguments. This will split at the first
38071  # space.
38072  complete="$OBJCOPY"
38073  path="${complete%% *}"
38074  tmp="$complete EOL"
38075  arguments="${tmp#* }"
38076
38077  # Input might be given as Windows format, start by converting to
38078  # unix format.
38079  new_path="$path"
38080
38081  windows_path="$new_path"
38082  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38083    unix_path=`$CYGPATH -u "$windows_path"`
38084    new_path="$unix_path"
38085  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38086    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38087    new_path="$unix_path"
38088  fi
38089
38090
38091  # Now try to locate executable using which
38092  new_path=`$WHICH "$new_path" 2> /dev/null`
38093
38094  if test "x$new_path" = x; then
38095    # Oops. Which didn't find the executable.
38096    # The splitting of arguments from the executable at a space might have been incorrect,
38097    # since paths with space are more likely in Windows. Give it another try with the whole
38098    # argument.
38099    path="$complete"
38100    arguments="EOL"
38101    new_path="$path"
38102
38103  windows_path="$new_path"
38104  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38105    unix_path=`$CYGPATH -u "$windows_path"`
38106    new_path="$unix_path"
38107  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38108    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38109    new_path="$unix_path"
38110  fi
38111
38112
38113    new_path=`$WHICH "$new_path" 2> /dev/null`
38114
38115    if test "x$new_path" = x; then
38116      # It's still not found. Now this is an unrecoverable error.
38117      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
38118$as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
38119      has_space=`$ECHO "$complete" | $GREP " "`
38120      if test "x$has_space" != x; then
38121        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38122$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38123      fi
38124      as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38125    fi
38126  fi
38127
38128  # Now new_path has a complete unix path to the binary
38129  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38130    # Keep paths in /bin as-is, but remove trailing .exe if any
38131    new_path="${new_path/%.exe/}"
38132    # Do not save /bin paths to all_fixpath_prefixes!
38133  else
38134    # Not in mixed or Windows style, start by that.
38135    new_path=`cmd //c echo $new_path`
38136
38137  input_path="$new_path"
38138  # Check if we need to convert this using DOS-style short mode. If the path
38139  # contains just simple characters, use it. Otherwise (spaces, weird characters),
38140  # take no chances and rewrite it.
38141  # Note: m4 eats our [], so we need to use [ and ] instead.
38142  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38143  if test "x$has_forbidden_chars" != x; then
38144    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38145    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38146  fi
38147
38148    # Output is in $new_path
38149
38150  windows_path="$new_path"
38151  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38152    unix_path=`$CYGPATH -u "$windows_path"`
38153    new_path="$unix_path"
38154  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38155    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38156    new_path="$unix_path"
38157  fi
38158
38159    # remove trailing .exe if any
38160    new_path="${new_path/%.exe/}"
38161
38162    # Save the first 10 bytes of this path to the storage, so fixpath can work.
38163    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38164  fi
38165
38166  else
38167    # We're on a posix platform. Hooray! :)
38168    # First separate the path from the arguments. This will split at the first
38169    # space.
38170    complete="$OBJCOPY"
38171    path="${complete%% *}"
38172    tmp="$complete EOL"
38173    arguments="${tmp#* }"
38174
38175    # Cannot rely on the command "which" here since it doesn't always work.
38176    is_absolute_path=`$ECHO "$path" | $GREP ^/`
38177    if test -z "$is_absolute_path"; then
38178      # Path to executable is not absolute. Find it.
38179      IFS_save="$IFS"
38180      IFS=:
38181      for p in $PATH; do
38182        if test -f "$p/$path" && test -x "$p/$path"; then
38183          new_path="$p/$path"
38184          break
38185        fi
38186      done
38187      IFS="$IFS_save"
38188    else
38189      # This is an absolute path, we can use it without further modifications.
38190      new_path="$path"
38191    fi
38192
38193    if test "x$new_path" = x; then
38194      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
38195$as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
38196      has_space=`$ECHO "$complete" | $GREP " "`
38197      if test "x$has_space" != x; then
38198        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38199$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38200      fi
38201      as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
38202    fi
38203  fi
38204
38205  # Now join together the path and the arguments once again
38206  if test "x$arguments" != xEOL; then
38207    new_complete="$new_path ${arguments% *}"
38208  else
38209    new_complete="$new_path"
38210  fi
38211
38212  if test "x$complete" != "x$new_complete"; then
38213    OBJCOPY="$new_complete"
38214    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
38215$as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
38216  fi
38217
38218    fi
38219  fi
38220
38221
38222
38223  # Publish this variable in the help.
38224
38225
38226  if test "x$OBJDUMP" = x; then
38227    # The variable is not set by user, try to locate tool using the code snippet
38228    if test -n "$ac_tool_prefix"; then
38229  for ac_prog in gobjdump objdump
38230  do
38231    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38234$as_echo_n "checking for $ac_word... " >&6; }
38235if ${ac_cv_prog_OBJDUMP+:} false; then :
38236  $as_echo_n "(cached) " >&6
38237else
38238  if test -n "$OBJDUMP"; then
38239  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
38240else
38241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38242for as_dir in $PATH
38243do
38244  IFS=$as_save_IFS
38245  test -z "$as_dir" && as_dir=.
38246    for ac_exec_ext in '' $ac_executable_extensions; do
38247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38248    ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
38249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38250    break 2
38251  fi
38252done
38253  done
38254IFS=$as_save_IFS
38255
38256fi
38257fi
38258OBJDUMP=$ac_cv_prog_OBJDUMP
38259if test -n "$OBJDUMP"; then
38260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38261$as_echo "$OBJDUMP" >&6; }
38262else
38263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38264$as_echo "no" >&6; }
38265fi
38266
38267
38268    test -n "$OBJDUMP" && break
38269  done
38270fi
38271if test -z "$OBJDUMP"; then
38272  ac_ct_OBJDUMP=$OBJDUMP
38273  for ac_prog in gobjdump objdump
38274do
38275  # Extract the first word of "$ac_prog", so it can be a program name with args.
38276set dummy $ac_prog; ac_word=$2
38277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38278$as_echo_n "checking for $ac_word... " >&6; }
38279if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
38280  $as_echo_n "(cached) " >&6
38281else
38282  if test -n "$ac_ct_OBJDUMP"; then
38283  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
38284else
38285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38286for as_dir in $PATH
38287do
38288  IFS=$as_save_IFS
38289  test -z "$as_dir" && as_dir=.
38290    for ac_exec_ext in '' $ac_executable_extensions; do
38291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38292    ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
38293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38294    break 2
38295  fi
38296done
38297  done
38298IFS=$as_save_IFS
38299
38300fi
38301fi
38302ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
38303if test -n "$ac_ct_OBJDUMP"; then
38304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
38305$as_echo "$ac_ct_OBJDUMP" >&6; }
38306else
38307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38308$as_echo "no" >&6; }
38309fi
38310
38311
38312  test -n "$ac_ct_OBJDUMP" && break
38313done
38314
38315  if test "x$ac_ct_OBJDUMP" = x; then
38316    OBJDUMP=""
38317  else
38318    case $cross_compiling:$ac_tool_warned in
38319yes:)
38320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38322ac_tool_warned=yes ;;
38323esac
38324    OBJDUMP=$ac_ct_OBJDUMP
38325  fi
38326fi
38327
38328  else
38329    # The variable is set, but is it from the command line or the environment?
38330
38331    # Try to remove the string !OBJDUMP! from our list.
38332    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/}
38333    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38334      # If it failed, the variable was not from the command line. Ignore it,
38335      # but warn the user (except for BASH, which is always set by the calling BASH).
38336      if test "xOBJDUMP" != xBASH; then
38337        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5
38338$as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;}
38339      fi
38340      # Try to locate tool using the code snippet
38341      if test -n "$ac_tool_prefix"; then
38342  for ac_prog in gobjdump objdump
38343  do
38344    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
38345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
38346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38347$as_echo_n "checking for $ac_word... " >&6; }
38348if ${ac_cv_prog_OBJDUMP+:} false; then :
38349  $as_echo_n "(cached) " >&6
38350else
38351  if test -n "$OBJDUMP"; then
38352  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
38353else
38354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38355for as_dir in $PATH
38356do
38357  IFS=$as_save_IFS
38358  test -z "$as_dir" && as_dir=.
38359    for ac_exec_ext in '' $ac_executable_extensions; do
38360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38361    ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
38362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38363    break 2
38364  fi
38365done
38366  done
38367IFS=$as_save_IFS
38368
38369fi
38370fi
38371OBJDUMP=$ac_cv_prog_OBJDUMP
38372if test -n "$OBJDUMP"; then
38373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38374$as_echo "$OBJDUMP" >&6; }
38375else
38376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38377$as_echo "no" >&6; }
38378fi
38379
38380
38381    test -n "$OBJDUMP" && break
38382  done
38383fi
38384if test -z "$OBJDUMP"; then
38385  ac_ct_OBJDUMP=$OBJDUMP
38386  for ac_prog in gobjdump objdump
38387do
38388  # Extract the first word of "$ac_prog", so it can be a program name with args.
38389set dummy $ac_prog; ac_word=$2
38390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38391$as_echo_n "checking for $ac_word... " >&6; }
38392if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
38393  $as_echo_n "(cached) " >&6
38394else
38395  if test -n "$ac_ct_OBJDUMP"; then
38396  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
38397else
38398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38399for as_dir in $PATH
38400do
38401  IFS=$as_save_IFS
38402  test -z "$as_dir" && as_dir=.
38403    for ac_exec_ext in '' $ac_executable_extensions; do
38404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38405    ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
38406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38407    break 2
38408  fi
38409done
38410  done
38411IFS=$as_save_IFS
38412
38413fi
38414fi
38415ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
38416if test -n "$ac_ct_OBJDUMP"; then
38417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
38418$as_echo "$ac_ct_OBJDUMP" >&6; }
38419else
38420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38421$as_echo "no" >&6; }
38422fi
38423
38424
38425  test -n "$ac_ct_OBJDUMP" && break
38426done
38427
38428  if test "x$ac_ct_OBJDUMP" = x; then
38429    OBJDUMP=""
38430  else
38431    case $cross_compiling:$ac_tool_warned in
38432yes:)
38433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38435ac_tool_warned=yes ;;
38436esac
38437    OBJDUMP=$ac_ct_OBJDUMP
38438  fi
38439fi
38440
38441    else
38442      # If it succeeded, then it was overridden by the user. We will use it
38443      # for the tool.
38444
38445      # First remove it from the list of overridden variables, so we can test
38446      # for unknown variables in the end.
38447      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38448
38449      # Check if the provided tool contains a complete path.
38450      tool_specified="$OBJDUMP"
38451      tool_basename="${tool_specified##*/}"
38452      if test "x$tool_basename" = "x$tool_specified"; then
38453        # A command without a complete path is provided, search $PATH.
38454        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5
38455$as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;}
38456        # Extract the first word of "$tool_basename", so it can be a program name with args.
38457set dummy $tool_basename; ac_word=$2
38458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38459$as_echo_n "checking for $ac_word... " >&6; }
38460if ${ac_cv_path_OBJDUMP+:} false; then :
38461  $as_echo_n "(cached) " >&6
38462else
38463  case $OBJDUMP in
38464  [\\/]* | ?:[\\/]*)
38465  ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path.
38466  ;;
38467  *)
38468  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38469for as_dir in $PATH
38470do
38471  IFS=$as_save_IFS
38472  test -z "$as_dir" && as_dir=.
38473    for ac_exec_ext in '' $ac_executable_extensions; do
38474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38475    ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext"
38476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38477    break 2
38478  fi
38479done
38480  done
38481IFS=$as_save_IFS
38482
38483  ;;
38484esac
38485fi
38486OBJDUMP=$ac_cv_path_OBJDUMP
38487if test -n "$OBJDUMP"; then
38488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
38489$as_echo "$OBJDUMP" >&6; }
38490else
38491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38492$as_echo "no" >&6; }
38493fi
38494
38495
38496        if test "x$OBJDUMP" = x; then
38497          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38498        fi
38499      else
38500        # Otherwise we believe it is a complete path. Use it as it is.
38501        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5
38502$as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;}
38503        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5
38504$as_echo_n "checking for OBJDUMP... " >&6; }
38505        if test ! -x "$tool_specified"; then
38506          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38507$as_echo "not found" >&6; }
38508          as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5
38509        fi
38510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38511$as_echo "$tool_specified" >&6; }
38512      fi
38513    fi
38514  fi
38515
38516
38517  if test "x$OBJDUMP" != x; then
38518    # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE
38519    # bails if argument is missing.
38520
38521  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38522
38523  # First separate the path from the arguments. This will split at the first
38524  # space.
38525  complete="$OBJDUMP"
38526  path="${complete%% *}"
38527  tmp="$complete EOL"
38528  arguments="${tmp#* }"
38529
38530  # Input might be given as Windows format, start by converting to
38531  # unix format.
38532  new_path=`$CYGPATH -u "$path"`
38533
38534  # Now try to locate executable using which
38535  new_path=`$WHICH "$new_path" 2> /dev/null`
38536  # bat and cmd files are not always considered executable in cygwin causing which
38537  # to not find them
38538  if test "x$new_path" = x \
38539      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38540      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38541    new_path=`$CYGPATH -u "$path"`
38542  fi
38543  if test "x$new_path" = x; then
38544    # Oops. Which didn't find the executable.
38545    # The splitting of arguments from the executable at a space might have been incorrect,
38546    # since paths with space are more likely in Windows. Give it another try with the whole
38547    # argument.
38548    path="$complete"
38549    arguments="EOL"
38550    new_path=`$CYGPATH -u "$path"`
38551    new_path=`$WHICH "$new_path" 2> /dev/null`
38552    # bat and cmd files are not always considered executable in cygwin causing which
38553    # to not find them
38554    if test "x$new_path" = x \
38555        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
38556        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
38557      new_path=`$CYGPATH -u "$path"`
38558    fi
38559    if test "x$new_path" = x; then
38560      # It's still not found. Now this is an unrecoverable error.
38561      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
38562$as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
38563      has_space=`$ECHO "$complete" | $GREP " "`
38564      if test "x$has_space" != x; then
38565        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38566$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38567      fi
38568      as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38569    fi
38570  fi
38571
38572  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
38573  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
38574  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
38575  # "foo.exe" is OK but "foo" is an error.
38576  #
38577  # This test is therefore slightly more accurate than "test -f" to check for file presence.
38578  # It is also a way to make sure we got the proper file name for the real test later on.
38579  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
38580  if test "x$test_shortpath" = x; then
38581    # Short path failed, file does not exist as specified.
38582    # Try adding .exe or .cmd
38583    if test -f "${new_path}.exe"; then
38584      input_to_shortpath="${new_path}.exe"
38585    elif test -f "${new_path}.cmd"; then
38586      input_to_shortpath="${new_path}.cmd"
38587    else
38588      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5
38589$as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;}
38590      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
38591$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
38592      as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38593    fi
38594  else
38595    input_to_shortpath="$new_path"
38596  fi
38597
38598  # Call helper function which possibly converts this using DOS-style short mode.
38599  # If so, the updated path is stored in $new_path.
38600  new_path="$input_to_shortpath"
38601
38602  input_path="$input_to_shortpath"
38603  # Check if we need to convert this using DOS-style short mode. If the path
38604  # contains just simple characters, use it. Otherwise (spaces, weird characters),
38605  # take no chances and rewrite it.
38606  # Note: m4 eats our [], so we need to use [ and ] instead.
38607  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
38608  if test "x$has_forbidden_chars" != x; then
38609    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38610    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
38611    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
38612    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
38613      # Going to short mode and back again did indeed matter. Since short mode is
38614      # case insensitive, let's make it lowercase to improve readability.
38615      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38616      # Now convert it back to Unix-stile (cygpath)
38617      input_path=`$CYGPATH -u "$shortmode_path"`
38618      new_path="$input_path"
38619    fi
38620  fi
38621
38622  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
38623  if test "x$test_cygdrive_prefix" = x; then
38624    # As a simple fix, exclude /usr/bin since it's not a real path.
38625    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
38626      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
38627      # a path prefixed by /cygdrive for fixpath to work.
38628      new_path="$CYGWIN_ROOT_PATH$input_path"
38629    fi
38630  fi
38631
38632  # remove trailing .exe if any
38633  new_path="${new_path/%.exe/}"
38634
38635  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38636
38637  # First separate the path from the arguments. This will split at the first
38638  # space.
38639  complete="$OBJDUMP"
38640  path="${complete%% *}"
38641  tmp="$complete EOL"
38642  arguments="${tmp#* }"
38643
38644  # Input might be given as Windows format, start by converting to
38645  # unix format.
38646  new_path="$path"
38647
38648  windows_path="$new_path"
38649  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38650    unix_path=`$CYGPATH -u "$windows_path"`
38651    new_path="$unix_path"
38652  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38653    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38654    new_path="$unix_path"
38655  fi
38656
38657
38658  # Now try to locate executable using which
38659  new_path=`$WHICH "$new_path" 2> /dev/null`
38660
38661  if test "x$new_path" = x; then
38662    # Oops. Which didn't find the executable.
38663    # The splitting of arguments from the executable at a space might have been incorrect,
38664    # since paths with space are more likely in Windows. Give it another try with the whole
38665    # argument.
38666    path="$complete"
38667    arguments="EOL"
38668    new_path="$path"
38669
38670  windows_path="$new_path"
38671  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38672    unix_path=`$CYGPATH -u "$windows_path"`
38673    new_path="$unix_path"
38674  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38675    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38676    new_path="$unix_path"
38677  fi
38678
38679
38680    new_path=`$WHICH "$new_path" 2> /dev/null`
38681
38682    if test "x$new_path" = x; then
38683      # It's still not found. Now this is an unrecoverable error.
38684      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
38685$as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
38686      has_space=`$ECHO "$complete" | $GREP " "`
38687      if test "x$has_space" != x; then
38688        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
38689$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
38690      fi
38691      as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38692    fi
38693  fi
38694
38695  # Now new_path has a complete unix path to the binary
38696  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
38697    # Keep paths in /bin as-is, but remove trailing .exe if any
38698    new_path="${new_path/%.exe/}"
38699    # Do not save /bin paths to all_fixpath_prefixes!
38700  else
38701    # Not in mixed or Windows style, start by that.
38702    new_path=`cmd //c echo $new_path`
38703
38704  input_path="$new_path"
38705  # Check if we need to convert this using DOS-style short mode. If the path
38706  # contains just simple characters, use it. Otherwise (spaces, weird characters),
38707  # take no chances and rewrite it.
38708  # Note: m4 eats our [], so we need to use [ and ] instead.
38709  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
38710  if test "x$has_forbidden_chars" != x; then
38711    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
38712    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
38713  fi
38714
38715    # Output is in $new_path
38716
38717  windows_path="$new_path"
38718  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38719    unix_path=`$CYGPATH -u "$windows_path"`
38720    new_path="$unix_path"
38721  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
38722    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
38723    new_path="$unix_path"
38724  fi
38725
38726    # remove trailing .exe if any
38727    new_path="${new_path/%.exe/}"
38728
38729    # Save the first 10 bytes of this path to the storage, so fixpath can work.
38730    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
38731  fi
38732
38733  else
38734    # We're on a posix platform. Hooray! :)
38735    # First separate the path from the arguments. This will split at the first
38736    # space.
38737    complete="$OBJDUMP"
38738    path="${complete%% *}"
38739    tmp="$complete EOL"
38740    arguments="${tmp#* }"
38741
38742    # Cannot rely on the command "which" here since it doesn't always work.
38743    is_absolute_path=`$ECHO "$path" | $GREP ^/`
38744    if test -z "$is_absolute_path"; then
38745      # Path to executable is not absolute. Find it.
38746      IFS_save="$IFS"
38747      IFS=:
38748      for p in $PATH; do
38749        if test -f "$p/$path" && test -x "$p/$path"; then
38750          new_path="$p/$path"
38751          break
38752        fi
38753      done
38754      IFS="$IFS_save"
38755    else
38756      # This is an absolute path, we can use it without further modifications.
38757      new_path="$path"
38758    fi
38759
38760    if test "x$new_path" = x; then
38761      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
38762$as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
38763      has_space=`$ECHO "$complete" | $GREP " "`
38764      if test "x$has_space" != x; then
38765        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
38766$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
38767      fi
38768      as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
38769    fi
38770  fi
38771
38772  # Now join together the path and the arguments once again
38773  if test "x$arguments" != xEOL; then
38774    new_complete="$new_path ${arguments% *}"
38775  else
38776    new_complete="$new_path"
38777  fi
38778
38779  if test "x$complete" != "x$new_complete"; then
38780    OBJDUMP="$new_complete"
38781    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
38782$as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
38783  fi
38784
38785  fi
38786
38787
38788  # Restore old path.
38789  PATH="$OLD_PATH"
38790
38791  # Restore the flags to the user specified values.
38792  # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
38793  CFLAGS="$ORG_CFLAGS"
38794  CXXFLAGS="$ORG_CXXFLAGS"
38795  OBJCFLAGS="$ORG_OBJCFLAGS"
38796
38797
38798# Finally do some processing after the detection phase
38799
38800  if test "x$COMPILE_TYPE" = "xcross"; then
38801    # Now we need to find a C/C++ compiler that can build executables for the
38802    # build platform. We can't use the AC_PROG_CC macro, since it can only be
38803    # used once. Also, we need to do this without adding a tools dir to the
38804    # path, otherwise we might pick up cross-compilers which don't use standard
38805    # naming.
38806
38807    # FIXME: we should list the discovered compilers as an exclude pattern!
38808    # If we do that, we can do this detection before POST_DETECTION, and still
38809    # find the build compilers in the tools dir, if needed.
38810
38811
38812  # Publish this variable in the help.
38813
38814
38815  if test "x$BUILD_CC" = x; then
38816    # The variable is not set by user, try to locate tool using the code snippet
38817    for ac_prog in cl cc gcc
38818do
38819  # Extract the first word of "$ac_prog", so it can be a program name with args.
38820set dummy $ac_prog; ac_word=$2
38821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38822$as_echo_n "checking for $ac_word... " >&6; }
38823if ${ac_cv_path_BUILD_CC+:} false; then :
38824  $as_echo_n "(cached) " >&6
38825else
38826  case $BUILD_CC in
38827  [\\/]* | ?:[\\/]*)
38828  ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
38829  ;;
38830  *)
38831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38832for as_dir in $PATH
38833do
38834  IFS=$as_save_IFS
38835  test -z "$as_dir" && as_dir=.
38836    for ac_exec_ext in '' $ac_executable_extensions; do
38837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38838    ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
38839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38840    break 2
38841  fi
38842done
38843  done
38844IFS=$as_save_IFS
38845
38846  ;;
38847esac
38848fi
38849BUILD_CC=$ac_cv_path_BUILD_CC
38850if test -n "$BUILD_CC"; then
38851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
38852$as_echo "$BUILD_CC" >&6; }
38853else
38854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38855$as_echo "no" >&6; }
38856fi
38857
38858
38859  test -n "$BUILD_CC" && break
38860done
38861
38862  else
38863    # The variable is set, but is it from the command line or the environment?
38864
38865    # Try to remove the string !BUILD_CC! from our list.
38866    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/}
38867    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
38868      # If it failed, the variable was not from the command line. Ignore it,
38869      # but warn the user (except for BASH, which is always set by the calling BASH).
38870      if test "xBUILD_CC" != xBASH; then
38871        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5
38872$as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;}
38873      fi
38874      # Try to locate tool using the code snippet
38875      for ac_prog in cl cc gcc
38876do
38877  # Extract the first word of "$ac_prog", so it can be a program name with args.
38878set dummy $ac_prog; ac_word=$2
38879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38880$as_echo_n "checking for $ac_word... " >&6; }
38881if ${ac_cv_path_BUILD_CC+:} false; then :
38882  $as_echo_n "(cached) " >&6
38883else
38884  case $BUILD_CC in
38885  [\\/]* | ?:[\\/]*)
38886  ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
38887  ;;
38888  *)
38889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38890for as_dir in $PATH
38891do
38892  IFS=$as_save_IFS
38893  test -z "$as_dir" && as_dir=.
38894    for ac_exec_ext in '' $ac_executable_extensions; do
38895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38896    ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
38897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38898    break 2
38899  fi
38900done
38901  done
38902IFS=$as_save_IFS
38903
38904  ;;
38905esac
38906fi
38907BUILD_CC=$ac_cv_path_BUILD_CC
38908if test -n "$BUILD_CC"; then
38909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
38910$as_echo "$BUILD_CC" >&6; }
38911else
38912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38913$as_echo "no" >&6; }
38914fi
38915
38916
38917  test -n "$BUILD_CC" && break
38918done
38919
38920    else
38921      # If it succeeded, then it was overridden by the user. We will use it
38922      # for the tool.
38923
38924      # First remove it from the list of overridden variables, so we can test
38925      # for unknown variables in the end.
38926      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
38927
38928      # Check if the provided tool contains a complete path.
38929      tool_specified="$BUILD_CC"
38930      tool_basename="${tool_specified##*/}"
38931      if test "x$tool_basename" = "x$tool_specified"; then
38932        # A command without a complete path is provided, search $PATH.
38933        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5
38934$as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;}
38935        # Extract the first word of "$tool_basename", so it can be a program name with args.
38936set dummy $tool_basename; ac_word=$2
38937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38938$as_echo_n "checking for $ac_word... " >&6; }
38939if ${ac_cv_path_BUILD_CC+:} false; then :
38940  $as_echo_n "(cached) " >&6
38941else
38942  case $BUILD_CC in
38943  [\\/]* | ?:[\\/]*)
38944  ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
38945  ;;
38946  *)
38947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38948for as_dir in $PATH
38949do
38950  IFS=$as_save_IFS
38951  test -z "$as_dir" && as_dir=.
38952    for ac_exec_ext in '' $ac_executable_extensions; do
38953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38954    ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
38955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38956    break 2
38957  fi
38958done
38959  done
38960IFS=$as_save_IFS
38961
38962  ;;
38963esac
38964fi
38965BUILD_CC=$ac_cv_path_BUILD_CC
38966if test -n "$BUILD_CC"; then
38967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
38968$as_echo "$BUILD_CC" >&6; }
38969else
38970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38971$as_echo "no" >&6; }
38972fi
38973
38974
38975        if test "x$BUILD_CC" = x; then
38976          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
38977        fi
38978      else
38979        # Otherwise we believe it is a complete path. Use it as it is.
38980        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5
38981$as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;}
38982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5
38983$as_echo_n "checking for BUILD_CC... " >&6; }
38984        if test ! -x "$tool_specified"; then
38985          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
38986$as_echo "not found" >&6; }
38987          as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5
38988        fi
38989        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
38990$as_echo "$tool_specified" >&6; }
38991      fi
38992    fi
38993  fi
38994
38995
38996
38997  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
38998
38999  # First separate the path from the arguments. This will split at the first
39000  # space.
39001  complete="$BUILD_CC"
39002  path="${complete%% *}"
39003  tmp="$complete EOL"
39004  arguments="${tmp#* }"
39005
39006  # Input might be given as Windows format, start by converting to
39007  # unix format.
39008  new_path=`$CYGPATH -u "$path"`
39009
39010  # Now try to locate executable using which
39011  new_path=`$WHICH "$new_path" 2> /dev/null`
39012  # bat and cmd files are not always considered executable in cygwin causing which
39013  # to not find them
39014  if test "x$new_path" = x \
39015      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39016      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39017    new_path=`$CYGPATH -u "$path"`
39018  fi
39019  if test "x$new_path" = x; then
39020    # Oops. Which didn't find the executable.
39021    # The splitting of arguments from the executable at a space might have been incorrect,
39022    # since paths with space are more likely in Windows. Give it another try with the whole
39023    # argument.
39024    path="$complete"
39025    arguments="EOL"
39026    new_path=`$CYGPATH -u "$path"`
39027    new_path=`$WHICH "$new_path" 2> /dev/null`
39028    # bat and cmd files are not always considered executable in cygwin causing which
39029    # to not find them
39030    if test "x$new_path" = x \
39031        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39032        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39033      new_path=`$CYGPATH -u "$path"`
39034    fi
39035    if test "x$new_path" = x; then
39036      # It's still not found. Now this is an unrecoverable error.
39037      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
39038$as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
39039      has_space=`$ECHO "$complete" | $GREP " "`
39040      if test "x$has_space" != x; then
39041        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39042$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39043      fi
39044      as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
39045    fi
39046  fi
39047
39048  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39049  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39050  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39051  # "foo.exe" is OK but "foo" is an error.
39052  #
39053  # This test is therefore slightly more accurate than "test -f" to check for file presence.
39054  # It is also a way to make sure we got the proper file name for the real test later on.
39055  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39056  if test "x$test_shortpath" = x; then
39057    # Short path failed, file does not exist as specified.
39058    # Try adding .exe or .cmd
39059    if test -f "${new_path}.exe"; then
39060      input_to_shortpath="${new_path}.exe"
39061    elif test -f "${new_path}.cmd"; then
39062      input_to_shortpath="${new_path}.cmd"
39063    else
39064      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5
39065$as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;}
39066      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39067$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39068      as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
39069    fi
39070  else
39071    input_to_shortpath="$new_path"
39072  fi
39073
39074  # Call helper function which possibly converts this using DOS-style short mode.
39075  # If so, the updated path is stored in $new_path.
39076  new_path="$input_to_shortpath"
39077
39078  input_path="$input_to_shortpath"
39079  # Check if we need to convert this using DOS-style short mode. If the path
39080  # contains just simple characters, use it. Otherwise (spaces, weird characters),
39081  # take no chances and rewrite it.
39082  # Note: m4 eats our [], so we need to use [ and ] instead.
39083  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39084  if test "x$has_forbidden_chars" != x; then
39085    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39086    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39087    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39088    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39089      # Going to short mode and back again did indeed matter. Since short mode is
39090      # case insensitive, let's make it lowercase to improve readability.
39091      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39092      # Now convert it back to Unix-stile (cygpath)
39093      input_path=`$CYGPATH -u "$shortmode_path"`
39094      new_path="$input_path"
39095    fi
39096  fi
39097
39098  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39099  if test "x$test_cygdrive_prefix" = x; then
39100    # As a simple fix, exclude /usr/bin since it's not a real path.
39101    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39102      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39103      # a path prefixed by /cygdrive for fixpath to work.
39104      new_path="$CYGWIN_ROOT_PATH$input_path"
39105    fi
39106  fi
39107
39108  # remove trailing .exe if any
39109  new_path="${new_path/%.exe/}"
39110
39111  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39112
39113  # First separate the path from the arguments. This will split at the first
39114  # space.
39115  complete="$BUILD_CC"
39116  path="${complete%% *}"
39117  tmp="$complete EOL"
39118  arguments="${tmp#* }"
39119
39120  # Input might be given as Windows format, start by converting to
39121  # unix format.
39122  new_path="$path"
39123
39124  windows_path="$new_path"
39125  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39126    unix_path=`$CYGPATH -u "$windows_path"`
39127    new_path="$unix_path"
39128  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39129    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39130    new_path="$unix_path"
39131  fi
39132
39133
39134  # Now try to locate executable using which
39135  new_path=`$WHICH "$new_path" 2> /dev/null`
39136
39137  if test "x$new_path" = x; then
39138    # Oops. Which didn't find the executable.
39139    # The splitting of arguments from the executable at a space might have been incorrect,
39140    # since paths with space are more likely in Windows. Give it another try with the whole
39141    # argument.
39142    path="$complete"
39143    arguments="EOL"
39144    new_path="$path"
39145
39146  windows_path="$new_path"
39147  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39148    unix_path=`$CYGPATH -u "$windows_path"`
39149    new_path="$unix_path"
39150  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39151    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39152    new_path="$unix_path"
39153  fi
39154
39155
39156    new_path=`$WHICH "$new_path" 2> /dev/null`
39157
39158    if test "x$new_path" = x; then
39159      # It's still not found. Now this is an unrecoverable error.
39160      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
39161$as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
39162      has_space=`$ECHO "$complete" | $GREP " "`
39163      if test "x$has_space" != x; then
39164        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39165$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39166      fi
39167      as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
39168    fi
39169  fi
39170
39171  # Now new_path has a complete unix path to the binary
39172  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39173    # Keep paths in /bin as-is, but remove trailing .exe if any
39174    new_path="${new_path/%.exe/}"
39175    # Do not save /bin paths to all_fixpath_prefixes!
39176  else
39177    # Not in mixed or Windows style, start by that.
39178    new_path=`cmd //c echo $new_path`
39179
39180  input_path="$new_path"
39181  # Check if we need to convert this using DOS-style short mode. If the path
39182  # contains just simple characters, use it. Otherwise (spaces, weird characters),
39183  # take no chances and rewrite it.
39184  # Note: m4 eats our [], so we need to use [ and ] instead.
39185  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39186  if test "x$has_forbidden_chars" != x; then
39187    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39188    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39189  fi
39190
39191    # Output is in $new_path
39192
39193  windows_path="$new_path"
39194  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39195    unix_path=`$CYGPATH -u "$windows_path"`
39196    new_path="$unix_path"
39197  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39198    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39199    new_path="$unix_path"
39200  fi
39201
39202    # remove trailing .exe if any
39203    new_path="${new_path/%.exe/}"
39204
39205    # Save the first 10 bytes of this path to the storage, so fixpath can work.
39206    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39207  fi
39208
39209  else
39210    # We're on a posix platform. Hooray! :)
39211    # First separate the path from the arguments. This will split at the first
39212    # space.
39213    complete="$BUILD_CC"
39214    path="${complete%% *}"
39215    tmp="$complete EOL"
39216    arguments="${tmp#* }"
39217
39218    # Cannot rely on the command "which" here since it doesn't always work.
39219    is_absolute_path=`$ECHO "$path" | $GREP ^/`
39220    if test -z "$is_absolute_path"; then
39221      # Path to executable is not absolute. Find it.
39222      IFS_save="$IFS"
39223      IFS=:
39224      for p in $PATH; do
39225        if test -f "$p/$path" && test -x "$p/$path"; then
39226          new_path="$p/$path"
39227          break
39228        fi
39229      done
39230      IFS="$IFS_save"
39231    else
39232      # This is an absolute path, we can use it without further modifications.
39233      new_path="$path"
39234    fi
39235
39236    if test "x$new_path" = x; then
39237      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
39238$as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
39239      has_space=`$ECHO "$complete" | $GREP " "`
39240      if test "x$has_space" != x; then
39241        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39242$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39243      fi
39244      as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
39245    fi
39246  fi
39247
39248  # Now join together the path and the arguments once again
39249  if test "x$arguments" != xEOL; then
39250    new_complete="$new_path ${arguments% *}"
39251  else
39252    new_complete="$new_path"
39253  fi
39254
39255  if test "x$complete" != "x$new_complete"; then
39256    BUILD_CC="$new_complete"
39257    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
39258$as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
39259  fi
39260
39261
39262
39263  # Publish this variable in the help.
39264
39265
39266  if test "x$BUILD_CXX" = x; then
39267    # The variable is not set by user, try to locate tool using the code snippet
39268    for ac_prog in cl CC g++
39269do
39270  # Extract the first word of "$ac_prog", so it can be a program name with args.
39271set dummy $ac_prog; ac_word=$2
39272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39273$as_echo_n "checking for $ac_word... " >&6; }
39274if ${ac_cv_path_BUILD_CXX+:} false; then :
39275  $as_echo_n "(cached) " >&6
39276else
39277  case $BUILD_CXX in
39278  [\\/]* | ?:[\\/]*)
39279  ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
39280  ;;
39281  *)
39282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39283for as_dir in $PATH
39284do
39285  IFS=$as_save_IFS
39286  test -z "$as_dir" && as_dir=.
39287    for ac_exec_ext in '' $ac_executable_extensions; do
39288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39289    ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
39290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39291    break 2
39292  fi
39293done
39294  done
39295IFS=$as_save_IFS
39296
39297  ;;
39298esac
39299fi
39300BUILD_CXX=$ac_cv_path_BUILD_CXX
39301if test -n "$BUILD_CXX"; then
39302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
39303$as_echo "$BUILD_CXX" >&6; }
39304else
39305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39306$as_echo "no" >&6; }
39307fi
39308
39309
39310  test -n "$BUILD_CXX" && break
39311done
39312
39313  else
39314    # The variable is set, but is it from the command line or the environment?
39315
39316    # Try to remove the string !BUILD_CXX! from our list.
39317    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/}
39318    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39319      # If it failed, the variable was not from the command line. Ignore it,
39320      # but warn the user (except for BASH, which is always set by the calling BASH).
39321      if test "xBUILD_CXX" != xBASH; then
39322        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5
39323$as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;}
39324      fi
39325      # Try to locate tool using the code snippet
39326      for ac_prog in cl CC g++
39327do
39328  # Extract the first word of "$ac_prog", so it can be a program name with args.
39329set dummy $ac_prog; ac_word=$2
39330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39331$as_echo_n "checking for $ac_word... " >&6; }
39332if ${ac_cv_path_BUILD_CXX+:} false; then :
39333  $as_echo_n "(cached) " >&6
39334else
39335  case $BUILD_CXX in
39336  [\\/]* | ?:[\\/]*)
39337  ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
39338  ;;
39339  *)
39340  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39341for as_dir in $PATH
39342do
39343  IFS=$as_save_IFS
39344  test -z "$as_dir" && as_dir=.
39345    for ac_exec_ext in '' $ac_executable_extensions; do
39346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39347    ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
39348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39349    break 2
39350  fi
39351done
39352  done
39353IFS=$as_save_IFS
39354
39355  ;;
39356esac
39357fi
39358BUILD_CXX=$ac_cv_path_BUILD_CXX
39359if test -n "$BUILD_CXX"; then
39360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
39361$as_echo "$BUILD_CXX" >&6; }
39362else
39363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39364$as_echo "no" >&6; }
39365fi
39366
39367
39368  test -n "$BUILD_CXX" && break
39369done
39370
39371    else
39372      # If it succeeded, then it was overridden by the user. We will use it
39373      # for the tool.
39374
39375      # First remove it from the list of overridden variables, so we can test
39376      # for unknown variables in the end.
39377      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
39378
39379      # Check if the provided tool contains a complete path.
39380      tool_specified="$BUILD_CXX"
39381      tool_basename="${tool_specified##*/}"
39382      if test "x$tool_basename" = "x$tool_specified"; then
39383        # A command without a complete path is provided, search $PATH.
39384        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5
39385$as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;}
39386        # Extract the first word of "$tool_basename", so it can be a program name with args.
39387set dummy $tool_basename; ac_word=$2
39388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39389$as_echo_n "checking for $ac_word... " >&6; }
39390if ${ac_cv_path_BUILD_CXX+:} false; then :
39391  $as_echo_n "(cached) " >&6
39392else
39393  case $BUILD_CXX in
39394  [\\/]* | ?:[\\/]*)
39395  ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
39396  ;;
39397  *)
39398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39399for as_dir in $PATH
39400do
39401  IFS=$as_save_IFS
39402  test -z "$as_dir" && as_dir=.
39403    for ac_exec_ext in '' $ac_executable_extensions; do
39404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39405    ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
39406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39407    break 2
39408  fi
39409done
39410  done
39411IFS=$as_save_IFS
39412
39413  ;;
39414esac
39415fi
39416BUILD_CXX=$ac_cv_path_BUILD_CXX
39417if test -n "$BUILD_CXX"; then
39418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
39419$as_echo "$BUILD_CXX" >&6; }
39420else
39421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39422$as_echo "no" >&6; }
39423fi
39424
39425
39426        if test "x$BUILD_CXX" = x; then
39427          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39428        fi
39429      else
39430        # Otherwise we believe it is a complete path. Use it as it is.
39431        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5
39432$as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;}
39433        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5
39434$as_echo_n "checking for BUILD_CXX... " >&6; }
39435        if test ! -x "$tool_specified"; then
39436          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39437$as_echo "not found" >&6; }
39438          as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5
39439        fi
39440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39441$as_echo "$tool_specified" >&6; }
39442      fi
39443    fi
39444  fi
39445
39446
39447
39448  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39449
39450  # First separate the path from the arguments. This will split at the first
39451  # space.
39452  complete="$BUILD_CXX"
39453  path="${complete%% *}"
39454  tmp="$complete EOL"
39455  arguments="${tmp#* }"
39456
39457  # Input might be given as Windows format, start by converting to
39458  # unix format.
39459  new_path=`$CYGPATH -u "$path"`
39460
39461  # Now try to locate executable using which
39462  new_path=`$WHICH "$new_path" 2> /dev/null`
39463  # bat and cmd files are not always considered executable in cygwin causing which
39464  # to not find them
39465  if test "x$new_path" = x \
39466      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39467      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39468    new_path=`$CYGPATH -u "$path"`
39469  fi
39470  if test "x$new_path" = x; then
39471    # Oops. Which didn't find the executable.
39472    # The splitting of arguments from the executable at a space might have been incorrect,
39473    # since paths with space are more likely in Windows. Give it another try with the whole
39474    # argument.
39475    path="$complete"
39476    arguments="EOL"
39477    new_path=`$CYGPATH -u "$path"`
39478    new_path=`$WHICH "$new_path" 2> /dev/null`
39479    # bat and cmd files are not always considered executable in cygwin causing which
39480    # to not find them
39481    if test "x$new_path" = x \
39482        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39483        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39484      new_path=`$CYGPATH -u "$path"`
39485    fi
39486    if test "x$new_path" = x; then
39487      # It's still not found. Now this is an unrecoverable error.
39488      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
39489$as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
39490      has_space=`$ECHO "$complete" | $GREP " "`
39491      if test "x$has_space" != x; then
39492        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39493$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39494      fi
39495      as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
39496    fi
39497  fi
39498
39499  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39500  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39501  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39502  # "foo.exe" is OK but "foo" is an error.
39503  #
39504  # This test is therefore slightly more accurate than "test -f" to check for file presence.
39505  # It is also a way to make sure we got the proper file name for the real test later on.
39506  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39507  if test "x$test_shortpath" = x; then
39508    # Short path failed, file does not exist as specified.
39509    # Try adding .exe or .cmd
39510    if test -f "${new_path}.exe"; then
39511      input_to_shortpath="${new_path}.exe"
39512    elif test -f "${new_path}.cmd"; then
39513      input_to_shortpath="${new_path}.cmd"
39514    else
39515      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5
39516$as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;}
39517      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39518$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39519      as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
39520    fi
39521  else
39522    input_to_shortpath="$new_path"
39523  fi
39524
39525  # Call helper function which possibly converts this using DOS-style short mode.
39526  # If so, the updated path is stored in $new_path.
39527  new_path="$input_to_shortpath"
39528
39529  input_path="$input_to_shortpath"
39530  # Check if we need to convert this using DOS-style short mode. If the path
39531  # contains just simple characters, use it. Otherwise (spaces, weird characters),
39532  # take no chances and rewrite it.
39533  # Note: m4 eats our [], so we need to use [ and ] instead.
39534  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39535  if test "x$has_forbidden_chars" != x; then
39536    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39537    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39538    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39539    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39540      # Going to short mode and back again did indeed matter. Since short mode is
39541      # case insensitive, let's make it lowercase to improve readability.
39542      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39543      # Now convert it back to Unix-stile (cygpath)
39544      input_path=`$CYGPATH -u "$shortmode_path"`
39545      new_path="$input_path"
39546    fi
39547  fi
39548
39549  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
39550  if test "x$test_cygdrive_prefix" = x; then
39551    # As a simple fix, exclude /usr/bin since it's not a real path.
39552    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
39553      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
39554      # a path prefixed by /cygdrive for fixpath to work.
39555      new_path="$CYGWIN_ROOT_PATH$input_path"
39556    fi
39557  fi
39558
39559  # remove trailing .exe if any
39560  new_path="${new_path/%.exe/}"
39561
39562  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39563
39564  # First separate the path from the arguments. This will split at the first
39565  # space.
39566  complete="$BUILD_CXX"
39567  path="${complete%% *}"
39568  tmp="$complete EOL"
39569  arguments="${tmp#* }"
39570
39571  # Input might be given as Windows format, start by converting to
39572  # unix format.
39573  new_path="$path"
39574
39575  windows_path="$new_path"
39576  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39577    unix_path=`$CYGPATH -u "$windows_path"`
39578    new_path="$unix_path"
39579  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39580    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39581    new_path="$unix_path"
39582  fi
39583
39584
39585  # Now try to locate executable using which
39586  new_path=`$WHICH "$new_path" 2> /dev/null`
39587
39588  if test "x$new_path" = x; then
39589    # Oops. Which didn't find the executable.
39590    # The splitting of arguments from the executable at a space might have been incorrect,
39591    # since paths with space are more likely in Windows. Give it another try with the whole
39592    # argument.
39593    path="$complete"
39594    arguments="EOL"
39595    new_path="$path"
39596
39597  windows_path="$new_path"
39598  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39599    unix_path=`$CYGPATH -u "$windows_path"`
39600    new_path="$unix_path"
39601  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39602    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39603    new_path="$unix_path"
39604  fi
39605
39606
39607    new_path=`$WHICH "$new_path" 2> /dev/null`
39608
39609    if test "x$new_path" = x; then
39610      # It's still not found. Now this is an unrecoverable error.
39611      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
39612$as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
39613      has_space=`$ECHO "$complete" | $GREP " "`
39614      if test "x$has_space" != x; then
39615        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39616$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39617      fi
39618      as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
39619    fi
39620  fi
39621
39622  # Now new_path has a complete unix path to the binary
39623  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
39624    # Keep paths in /bin as-is, but remove trailing .exe if any
39625    new_path="${new_path/%.exe/}"
39626    # Do not save /bin paths to all_fixpath_prefixes!
39627  else
39628    # Not in mixed or Windows style, start by that.
39629    new_path=`cmd //c echo $new_path`
39630
39631  input_path="$new_path"
39632  # Check if we need to convert this using DOS-style short mode. If the path
39633  # contains just simple characters, use it. Otherwise (spaces, weird characters),
39634  # take no chances and rewrite it.
39635  # Note: m4 eats our [], so we need to use [ and ] instead.
39636  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
39637  if test "x$has_forbidden_chars" != x; then
39638    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39639    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39640  fi
39641
39642    # Output is in $new_path
39643
39644  windows_path="$new_path"
39645  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39646    unix_path=`$CYGPATH -u "$windows_path"`
39647    new_path="$unix_path"
39648  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
39649    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
39650    new_path="$unix_path"
39651  fi
39652
39653    # remove trailing .exe if any
39654    new_path="${new_path/%.exe/}"
39655
39656    # Save the first 10 bytes of this path to the storage, so fixpath can work.
39657    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
39658  fi
39659
39660  else
39661    # We're on a posix platform. Hooray! :)
39662    # First separate the path from the arguments. This will split at the first
39663    # space.
39664    complete="$BUILD_CXX"
39665    path="${complete%% *}"
39666    tmp="$complete EOL"
39667    arguments="${tmp#* }"
39668
39669    # Cannot rely on the command "which" here since it doesn't always work.
39670    is_absolute_path=`$ECHO "$path" | $GREP ^/`
39671    if test -z "$is_absolute_path"; then
39672      # Path to executable is not absolute. Find it.
39673      IFS_save="$IFS"
39674      IFS=:
39675      for p in $PATH; do
39676        if test -f "$p/$path" && test -x "$p/$path"; then
39677          new_path="$p/$path"
39678          break
39679        fi
39680      done
39681      IFS="$IFS_save"
39682    else
39683      # This is an absolute path, we can use it without further modifications.
39684      new_path="$path"
39685    fi
39686
39687    if test "x$new_path" = x; then
39688      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
39689$as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
39690      has_space=`$ECHO "$complete" | $GREP " "`
39691      if test "x$has_space" != x; then
39692        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
39693$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
39694      fi
39695      as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
39696    fi
39697  fi
39698
39699  # Now join together the path and the arguments once again
39700  if test "x$arguments" != xEOL; then
39701    new_complete="$new_path ${arguments% *}"
39702  else
39703    new_complete="$new_path"
39704  fi
39705
39706  if test "x$complete" != "x$new_complete"; then
39707    BUILD_CXX="$new_complete"
39708    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
39709$as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
39710  fi
39711
39712
39713
39714  # Publish this variable in the help.
39715
39716
39717  if test "x$BUILD_LD" = x; then
39718    # The variable is not set by user, try to locate tool using the code snippet
39719    for ac_prog in ld
39720do
39721  # Extract the first word of "$ac_prog", so it can be a program name with args.
39722set dummy $ac_prog; ac_word=$2
39723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39724$as_echo_n "checking for $ac_word... " >&6; }
39725if ${ac_cv_path_BUILD_LD+:} false; then :
39726  $as_echo_n "(cached) " >&6
39727else
39728  case $BUILD_LD in
39729  [\\/]* | ?:[\\/]*)
39730  ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
39731  ;;
39732  *)
39733  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39734for as_dir in $PATH
39735do
39736  IFS=$as_save_IFS
39737  test -z "$as_dir" && as_dir=.
39738    for ac_exec_ext in '' $ac_executable_extensions; do
39739  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39740    ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
39741    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39742    break 2
39743  fi
39744done
39745  done
39746IFS=$as_save_IFS
39747
39748  ;;
39749esac
39750fi
39751BUILD_LD=$ac_cv_path_BUILD_LD
39752if test -n "$BUILD_LD"; then
39753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
39754$as_echo "$BUILD_LD" >&6; }
39755else
39756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39757$as_echo "no" >&6; }
39758fi
39759
39760
39761  test -n "$BUILD_LD" && break
39762done
39763
39764  else
39765    # The variable is set, but is it from the command line or the environment?
39766
39767    # Try to remove the string !BUILD_LD! from our list.
39768    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/}
39769    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
39770      # If it failed, the variable was not from the command line. Ignore it,
39771      # but warn the user (except for BASH, which is always set by the calling BASH).
39772      if test "xBUILD_LD" != xBASH; then
39773        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5
39774$as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;}
39775      fi
39776      # Try to locate tool using the code snippet
39777      for ac_prog in ld
39778do
39779  # Extract the first word of "$ac_prog", so it can be a program name with args.
39780set dummy $ac_prog; ac_word=$2
39781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39782$as_echo_n "checking for $ac_word... " >&6; }
39783if ${ac_cv_path_BUILD_LD+:} false; then :
39784  $as_echo_n "(cached) " >&6
39785else
39786  case $BUILD_LD in
39787  [\\/]* | ?:[\\/]*)
39788  ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
39789  ;;
39790  *)
39791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39792for as_dir in $PATH
39793do
39794  IFS=$as_save_IFS
39795  test -z "$as_dir" && as_dir=.
39796    for ac_exec_ext in '' $ac_executable_extensions; do
39797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39798    ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
39799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39800    break 2
39801  fi
39802done
39803  done
39804IFS=$as_save_IFS
39805
39806  ;;
39807esac
39808fi
39809BUILD_LD=$ac_cv_path_BUILD_LD
39810if test -n "$BUILD_LD"; then
39811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
39812$as_echo "$BUILD_LD" >&6; }
39813else
39814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39815$as_echo "no" >&6; }
39816fi
39817
39818
39819  test -n "$BUILD_LD" && break
39820done
39821
39822    else
39823      # If it succeeded, then it was overridden by the user. We will use it
39824      # for the tool.
39825
39826      # First remove it from the list of overridden variables, so we can test
39827      # for unknown variables in the end.
39828      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
39829
39830      # Check if the provided tool contains a complete path.
39831      tool_specified="$BUILD_LD"
39832      tool_basename="${tool_specified##*/}"
39833      if test "x$tool_basename" = "x$tool_specified"; then
39834        # A command without a complete path is provided, search $PATH.
39835        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5
39836$as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;}
39837        # Extract the first word of "$tool_basename", so it can be a program name with args.
39838set dummy $tool_basename; ac_word=$2
39839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39840$as_echo_n "checking for $ac_word... " >&6; }
39841if ${ac_cv_path_BUILD_LD+:} false; then :
39842  $as_echo_n "(cached) " >&6
39843else
39844  case $BUILD_LD in
39845  [\\/]* | ?:[\\/]*)
39846  ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
39847  ;;
39848  *)
39849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39850for as_dir in $PATH
39851do
39852  IFS=$as_save_IFS
39853  test -z "$as_dir" && as_dir=.
39854    for ac_exec_ext in '' $ac_executable_extensions; do
39855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39856    ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
39857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
39858    break 2
39859  fi
39860done
39861  done
39862IFS=$as_save_IFS
39863
39864  ;;
39865esac
39866fi
39867BUILD_LD=$ac_cv_path_BUILD_LD
39868if test -n "$BUILD_LD"; then
39869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
39870$as_echo "$BUILD_LD" >&6; }
39871else
39872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39873$as_echo "no" >&6; }
39874fi
39875
39876
39877        if test "x$BUILD_LD" = x; then
39878          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
39879        fi
39880      else
39881        # Otherwise we believe it is a complete path. Use it as it is.
39882        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5
39883$as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;}
39884        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5
39885$as_echo_n "checking for BUILD_LD... " >&6; }
39886        if test ! -x "$tool_specified"; then
39887          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
39888$as_echo "not found" >&6; }
39889          as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5
39890        fi
39891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
39892$as_echo "$tool_specified" >&6; }
39893      fi
39894    fi
39895  fi
39896
39897
39898
39899  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
39900
39901  # First separate the path from the arguments. This will split at the first
39902  # space.
39903  complete="$BUILD_LD"
39904  path="${complete%% *}"
39905  tmp="$complete EOL"
39906  arguments="${tmp#* }"
39907
39908  # Input might be given as Windows format, start by converting to
39909  # unix format.
39910  new_path=`$CYGPATH -u "$path"`
39911
39912  # Now try to locate executable using which
39913  new_path=`$WHICH "$new_path" 2> /dev/null`
39914  # bat and cmd files are not always considered executable in cygwin causing which
39915  # to not find them
39916  if test "x$new_path" = x \
39917      && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39918      && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39919    new_path=`$CYGPATH -u "$path"`
39920  fi
39921  if test "x$new_path" = x; then
39922    # Oops. Which didn't find the executable.
39923    # The splitting of arguments from the executable at a space might have been incorrect,
39924    # since paths with space are more likely in Windows. Give it another try with the whole
39925    # argument.
39926    path="$complete"
39927    arguments="EOL"
39928    new_path=`$CYGPATH -u "$path"`
39929    new_path=`$WHICH "$new_path" 2> /dev/null`
39930    # bat and cmd files are not always considered executable in cygwin causing which
39931    # to not find them
39932    if test "x$new_path" = x \
39933        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
39934        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
39935      new_path=`$CYGPATH -u "$path"`
39936    fi
39937    if test "x$new_path" = x; then
39938      # It's still not found. Now this is an unrecoverable error.
39939      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
39940$as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
39941      has_space=`$ECHO "$complete" | $GREP " "`
39942      if test "x$has_space" != x; then
39943        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
39944$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
39945      fi
39946      as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
39947    fi
39948  fi
39949
39950  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
39951  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
39952  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
39953  # "foo.exe" is OK but "foo" is an error.
39954  #
39955  # This test is therefore slightly more accurate than "test -f" to check for file presence.
39956  # It is also a way to make sure we got the proper file name for the real test later on.
39957  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
39958  if test "x$test_shortpath" = x; then
39959    # Short path failed, file does not exist as specified.
39960    # Try adding .exe or .cmd
39961    if test -f "${new_path}.exe"; then
39962      input_to_shortpath="${new_path}.exe"
39963    elif test -f "${new_path}.cmd"; then
39964      input_to_shortpath="${new_path}.cmd"
39965    else
39966      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5
39967$as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;}
39968      { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
39969$as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
39970      as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
39971    fi
39972  else
39973    input_to_shortpath="$new_path"
39974  fi
39975
39976  # Call helper function which possibly converts this using DOS-style short mode.
39977  # If so, the updated path is stored in $new_path.
39978  new_path="$input_to_shortpath"
39979
39980  input_path="$input_to_shortpath"
39981  # Check if we need to convert this using DOS-style short mode. If the path
39982  # contains just simple characters, use it. Otherwise (spaces, weird characters),
39983  # take no chances and rewrite it.
39984  # Note: m4 eats our [], so we need to use [ and ] instead.
39985  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
39986  if test "x$has_forbidden_chars" != x; then
39987    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
39988    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
39989    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
39990    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
39991      # Going to short mode and back again did indeed matter. Since short mode is
39992      # case insensitive, let's make it lowercase to improve readability.
39993      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
39994      # Now convert it back to Unix-stile (cygpath)
39995      input_path=`$CYGPATH -u "$shortmode_path"`
39996      new_path="$input_path"
39997    fi
39998  fi
39999
40000  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40001  if test "x$test_cygdrive_prefix" = x; then
40002    # As a simple fix, exclude /usr/bin since it's not a real path.
40003    if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
40004      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40005      # a path prefixed by /cygdrive for fixpath to work.
40006      new_path="$CYGWIN_ROOT_PATH$input_path"
40007    fi
40008  fi
40009
40010  # remove trailing .exe if any
40011  new_path="${new_path/%.exe/}"
40012
40013  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40014
40015  # First separate the path from the arguments. This will split at the first
40016  # space.
40017  complete="$BUILD_LD"
40018  path="${complete%% *}"
40019  tmp="$complete EOL"
40020  arguments="${tmp#* }"
40021
40022  # Input might be given as Windows format, start by converting to
40023  # unix format.
40024  new_path="$path"
40025
40026  windows_path="$new_path"
40027  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40028    unix_path=`$CYGPATH -u "$windows_path"`
40029    new_path="$unix_path"
40030  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40031    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40032    new_path="$unix_path"
40033  fi
40034
40035
40036  # Now try to locate executable using which
40037  new_path=`$WHICH "$new_path" 2> /dev/null`
40038
40039  if test "x$new_path" = x; then
40040    # Oops. Which didn't find the executable.
40041    # The splitting of arguments from the executable at a space might have been incorrect,
40042    # since paths with space are more likely in Windows. Give it another try with the whole
40043    # argument.
40044    path="$complete"
40045    arguments="EOL"
40046    new_path="$path"
40047
40048  windows_path="$new_path"
40049  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40050    unix_path=`$CYGPATH -u "$windows_path"`
40051    new_path="$unix_path"
40052  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40053    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40054    new_path="$unix_path"
40055  fi
40056
40057
40058    new_path=`$WHICH "$new_path" 2> /dev/null`
40059
40060    if test "x$new_path" = x; then
40061      # It's still not found. Now this is an unrecoverable error.
40062      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
40063$as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
40064      has_space=`$ECHO "$complete" | $GREP " "`
40065      if test "x$has_space" != x; then
40066        { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
40067$as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
40068      fi
40069      as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
40070    fi
40071  fi
40072
40073  # Now new_path has a complete unix path to the binary
40074  if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
40075    # Keep paths in /bin as-is, but remove trailing .exe if any
40076    new_path="${new_path/%.exe/}"
40077    # Do not save /bin paths to all_fixpath_prefixes!
40078  else
40079    # Not in mixed or Windows style, start by that.
40080    new_path=`cmd //c echo $new_path`
40081
40082  input_path="$new_path"
40083  # Check if we need to convert this using DOS-style short mode. If the path
40084  # contains just simple characters, use it. Otherwise (spaces, weird characters),
40085  # take no chances and rewrite it.
40086  # Note: m4 eats our [], so we need to use [ and ] instead.
40087  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40088  if test "x$has_forbidden_chars" != x; then
40089    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40090    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40091  fi
40092
40093    # Output is in $new_path
40094
40095  windows_path="$new_path"
40096  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40097    unix_path=`$CYGPATH -u "$windows_path"`
40098    new_path="$unix_path"
40099  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40100    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40101    new_path="$unix_path"
40102  fi
40103
40104    # remove trailing .exe if any
40105    new_path="${new_path/%.exe/}"
40106
40107    # Save the first 10 bytes of this path to the storage, so fixpath can work.
40108    all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40109  fi
40110
40111  else
40112    # We're on a posix platform. Hooray! :)
40113    # First separate the path from the arguments. This will split at the first
40114    # space.
40115    complete="$BUILD_LD"
40116    path="${complete%% *}"
40117    tmp="$complete EOL"
40118    arguments="${tmp#* }"
40119
40120    # Cannot rely on the command "which" here since it doesn't always work.
40121    is_absolute_path=`$ECHO "$path" | $GREP ^/`
40122    if test -z "$is_absolute_path"; then
40123      # Path to executable is not absolute. Find it.
40124      IFS_save="$IFS"
40125      IFS=:
40126      for p in $PATH; do
40127        if test -f "$p/$path" && test -x "$p/$path"; then
40128          new_path="$p/$path"
40129          break
40130        fi
40131      done
40132      IFS="$IFS_save"
40133    else
40134      # This is an absolute path, we can use it without further modifications.
40135      new_path="$path"
40136    fi
40137
40138    if test "x$new_path" = x; then
40139      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
40140$as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
40141      has_space=`$ECHO "$complete" | $GREP " "`
40142      if test "x$has_space" != x; then
40143        { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
40144$as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
40145      fi
40146      as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
40147    fi
40148  fi
40149
40150  # Now join together the path and the arguments once again
40151  if test "x$arguments" != xEOL; then
40152    new_complete="$new_path ${arguments% *}"
40153  else
40154    new_complete="$new_path"
40155  fi
40156
40157  if test "x$complete" != "x$new_complete"; then
40158    BUILD_LD="$new_complete"
40159    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5
40160$as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;}
40161  fi
40162
40163  else
40164    # If we are not cross compiling, use the normal target compilers for
40165    # building the build platform executables.
40166    BUILD_CC="$CC"
40167    BUILD_CXX="$CXX"
40168    BUILD_LD="$LD"
40169  fi
40170
40171
40172
40173
40174
40175
40176  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
40177    # For hotspot, we need these in Windows mixed path,
40178    # so rewrite them all. Need added .exe suffix.
40179    HOTSPOT_CXX="$CXX.exe"
40180    HOTSPOT_LD="$LD.exe"
40181    HOTSPOT_MT="$MT.exe"
40182    HOTSPOT_RC="$RC.exe"
40183
40184  unix_path="$HOTSPOT_CXX"
40185  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40186    windows_path=`$CYGPATH -m "$unix_path"`
40187    HOTSPOT_CXX="$windows_path"
40188  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40189    windows_path=`cmd //c echo $unix_path`
40190    HOTSPOT_CXX="$windows_path"
40191  fi
40192
40193
40194  unix_path="$HOTSPOT_LD"
40195  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40196    windows_path=`$CYGPATH -m "$unix_path"`
40197    HOTSPOT_LD="$windows_path"
40198  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40199    windows_path=`cmd //c echo $unix_path`
40200    HOTSPOT_LD="$windows_path"
40201  fi
40202
40203
40204  unix_path="$HOTSPOT_MT"
40205  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40206    windows_path=`$CYGPATH -m "$unix_path"`
40207    HOTSPOT_MT="$windows_path"
40208  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40209    windows_path=`cmd //c echo $unix_path`
40210    HOTSPOT_MT="$windows_path"
40211  fi
40212
40213
40214  unix_path="$HOTSPOT_RC"
40215  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40216    windows_path=`$CYGPATH -m "$unix_path"`
40217    HOTSPOT_RC="$windows_path"
40218  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40219    windows_path=`cmd //c echo $unix_path`
40220    HOTSPOT_RC="$windows_path"
40221  fi
40222
40223
40224
40225  else
40226    HOTSPOT_CXX="$CXX"
40227    HOTSPOT_LD="$LD"
40228  fi
40229
40230
40231
40232  if test  "x$TOOLCHAIN_TYPE" = xclang; then
40233    USE_CLANG=true
40234  fi
40235
40236
40237  # LDEXE is the linker to use, when creating executables. Not really used.
40238  # FIXME: These should just be removed!
40239  LDEXE="$LD"
40240  LDEXECXX="$LDCXX"
40241
40242
40243
40244
40245  # The package path is used only on macosx?
40246  # FIXME: clean this up, and/or move it elsewhere.
40247  PACKAGE_PATH=/opt/local
40248
40249
40250  # Check for extra potential brokenness.
40251  if test  "x$TOOLCHAIN_TYPE" = xmicrosoft; then
40252    # On Windows, double-check that we got the right compiler.
40253    CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'`
40254    COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"`
40255    if test "x$OPENJDK_TARGET_CPU" = "xx86"; then
40256      if test "x$COMPILER_CPU_TEST" != "x80x86"; then
40257        as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5
40258      fi
40259    elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then
40260      if test "x$COMPILER_CPU_TEST" != "xx64"; then
40261        as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5
40262      fi
40263    fi
40264  fi
40265
40266  if test "x$TOOLCHAIN_TYPE" = xgcc; then
40267    # If this is a --hash-style=gnu system, use --hash-style=both, why?
40268    HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
40269    # This is later checked when setting flags.
40270  fi
40271
40272  # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed
40273  # in executable.'
40274  USING_BROKEN_SUSE_LD=no
40275  if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then
40276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5
40277$as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; }
40278    echo "SUNWprivate_1.1 { local: *; };" > version-script.map
40279    echo "int main() { }" > main.c
40280    if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then
40281      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40282$as_echo "no" >&6; }
40283      USING_BROKEN_SUSE_LD=no
40284    else
40285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40286$as_echo "yes" >&6; }
40287      USING_BROKEN_SUSE_LD=yes
40288    fi
40289    rm -rf version-script.map main.c a.out
40290  fi
40291
40292
40293
40294# Setup the JTReg Regression Test Harness.
40295
40296
40297# Check whether --with-jtreg was given.
40298if test "${with_jtreg+set}" = set; then :
40299  withval=$with_jtreg;
40300else
40301  with_jtreg=no
40302fi
40303
40304
40305  if test "x$with_jtreg" = xno; then
40306    # jtreg disabled
40307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
40308$as_echo_n "checking for jtreg... " >&6; }
40309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40310$as_echo "no" >&6; }
40311  else
40312    if test "x$with_jtreg" != xyes; then
40313      # with path specified.
40314      JT_HOME="$with_jtreg"
40315    fi
40316
40317    if test "x$JT_HOME" != x; then
40318      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5
40319$as_echo_n "checking for jtreg... " >&6; }
40320
40321      # use JT_HOME enviroment var.
40322
40323  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40324
40325  # Input might be given as Windows format, start by converting to
40326  # unix format.
40327  path="$JT_HOME"
40328  new_path=`$CYGPATH -u "$path"`
40329
40330  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
40331  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
40332  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
40333  # "foo.exe" is OK but "foo" is an error.
40334  #
40335  # This test is therefore slightly more accurate than "test -f" to check for file precense.
40336  # It is also a way to make sure we got the proper file name for the real test later on.
40337  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
40338  if test "x$test_shortpath" = x; then
40339    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
40340$as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
40341    as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5
40342  fi
40343
40344  # Call helper function which possibly converts this using DOS-style short mode.
40345  # If so, the updated path is stored in $new_path.
40346
40347  input_path="$new_path"
40348  # Check if we need to convert this using DOS-style short mode. If the path
40349  # contains just simple characters, use it. Otherwise (spaces, weird characters),
40350  # take no chances and rewrite it.
40351  # Note: m4 eats our [], so we need to use [ and ] instead.
40352  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
40353  if test "x$has_forbidden_chars" != x; then
40354    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40355    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
40356    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
40357    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
40358      # Going to short mode and back again did indeed matter. Since short mode is
40359      # case insensitive, let's make it lowercase to improve readability.
40360      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40361      # Now convert it back to Unix-stile (cygpath)
40362      input_path=`$CYGPATH -u "$shortmode_path"`
40363      new_path="$input_path"
40364    fi
40365  fi
40366
40367  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
40368  if test "x$test_cygdrive_prefix" = x; then
40369    # As a simple fix, exclude /usr/bin since it's not a real path.
40370    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
40371      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
40372      # a path prefixed by /cygdrive for fixpath to work.
40373      new_path="$CYGWIN_ROOT_PATH$input_path"
40374    fi
40375  fi
40376
40377
40378  if test "x$path" != "x$new_path"; then
40379    JT_HOME="$new_path"
40380    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
40381$as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
40382  fi
40383
40384  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40385
40386  path="$JT_HOME"
40387  has_colon=`$ECHO $path | $GREP ^.:`
40388  new_path="$path"
40389  if test "x$has_colon" = x; then
40390    # Not in mixed or Windows style, start by that.
40391    new_path=`cmd //c echo $path`
40392  fi
40393
40394
40395  input_path="$new_path"
40396  # Check if we need to convert this using DOS-style short mode. If the path
40397  # contains just simple characters, use it. Otherwise (spaces, weird characters),
40398  # take no chances and rewrite it.
40399  # Note: m4 eats our [], so we need to use [ and ] instead.
40400  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
40401  if test "x$has_forbidden_chars" != x; then
40402    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
40403    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
40404  fi
40405
40406
40407  windows_path="$new_path"
40408  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
40409    unix_path=`$CYGPATH -u "$windows_path"`
40410    new_path="$unix_path"
40411  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
40412    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
40413    new_path="$unix_path"
40414  fi
40415
40416  if test "x$path" != "x$new_path"; then
40417    JT_HOME="$new_path"
40418    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5
40419$as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;}
40420  fi
40421
40422  # Save the first 10 bytes of this path to the storage, so fixpath can work.
40423  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
40424
40425  else
40426    # We're on a posix platform. Hooray! :)
40427    path="$JT_HOME"
40428    has_space=`$ECHO "$path" | $GREP " "`
40429    if test "x$has_space" != x; then
40430      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5
40431$as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;}
40432      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
40433    fi
40434
40435    # Use eval to expand a potential ~
40436    eval path="$path"
40437    if test ! -f "$path" && test ! -d "$path"; then
40438      as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5
40439    fi
40440
40441    JT_HOME="`cd "$path"; $THEPWDCMD -L`"
40442  fi
40443
40444
40445      # jtreg win32 script works for everybody
40446      JTREGEXE="$JT_HOME/win32/bin/jtreg"
40447
40448      if test ! -f "$JTREGEXE"; then
40449        as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5
40450      fi
40451
40452      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
40453$as_echo "$JTREGEXE" >&6; }
40454    else
40455      # try to find jtreg on path
40456
40457
40458
40459  # Publish this variable in the help.
40460
40461
40462  if test "x$JTREGEXE" = x; then
40463    # The variable is not set by user, try to locate tool using the code snippet
40464    for ac_prog in jtreg
40465do
40466  # Extract the first word of "$ac_prog", so it can be a program name with args.
40467set dummy $ac_prog; ac_word=$2
40468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40469$as_echo_n "checking for $ac_word... " >&6; }
40470if ${ac_cv_path_JTREGEXE+:} false; then :
40471  $as_echo_n "(cached) " >&6
40472else
40473  case $JTREGEXE in
40474  [\\/]* | ?:[\\/]*)
40475  ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
40476  ;;
40477  *)
40478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40479for as_dir in $PATH
40480do
40481  IFS=$as_save_IFS
40482  test -z "$as_dir" && as_dir=.
40483    for ac_exec_ext in '' $ac_executable_extensions; do
40484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40485    ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
40486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40487    break 2
40488  fi
40489done
40490  done
40491IFS=$as_save_IFS
40492
40493  ;;
40494esac
40495fi
40496JTREGEXE=$ac_cv_path_JTREGEXE
40497if test -n "$JTREGEXE"; then
40498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
40499$as_echo "$JTREGEXE" >&6; }
40500else
40501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40502$as_echo "no" >&6; }
40503fi
40504
40505
40506  test -n "$JTREGEXE" && break
40507done
40508
40509  else
40510    # The variable is set, but is it from the command line or the environment?
40511
40512    # Try to remove the string !JTREGEXE! from our list.
40513    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/}
40514    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
40515      # If it failed, the variable was not from the command line. Ignore it,
40516      # but warn the user (except for BASH, which is always set by the calling BASH).
40517      if test "xJTREGEXE" != xBASH; then
40518        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5
40519$as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;}
40520      fi
40521      # Try to locate tool using the code snippet
40522      for ac_prog in jtreg
40523do
40524  # Extract the first word of "$ac_prog", so it can be a program name with args.
40525set dummy $ac_prog; ac_word=$2
40526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40527$as_echo_n "checking for $ac_word... " >&6; }
40528if ${ac_cv_path_JTREGEXE+:} false; then :
40529  $as_echo_n "(cached) " >&6
40530else
40531  case $JTREGEXE in
40532  [\\/]* | ?:[\\/]*)
40533  ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
40534  ;;
40535  *)
40536  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40537for as_dir in $PATH
40538do
40539  IFS=$as_save_IFS
40540  test -z "$as_dir" && as_dir=.
40541    for ac_exec_ext in '' $ac_executable_extensions; do
40542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40543    ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
40544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40545    break 2
40546  fi
40547done
40548  done
40549IFS=$as_save_IFS
40550
40551  ;;
40552esac
40553fi
40554JTREGEXE=$ac_cv_path_JTREGEXE
40555if test -n "$JTREGEXE"; then
40556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
40557$as_echo "$JTREGEXE" >&6; }
40558else
40559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40560$as_echo "no" >&6; }
40561fi
40562
40563
40564  test -n "$JTREGEXE" && break
40565done
40566
40567    else
40568      # If it succeeded, then it was overridden by the user. We will use it
40569      # for the tool.
40570
40571      # First remove it from the list of overridden variables, so we can test
40572      # for unknown variables in the end.
40573      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
40574
40575      # Check if the provided tool contains a complete path.
40576      tool_specified="$JTREGEXE"
40577      tool_basename="${tool_specified##*/}"
40578      if test "x$tool_basename" = "x$tool_specified"; then
40579        # A command without a complete path is provided, search $PATH.
40580        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5
40581$as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;}
40582        # Extract the first word of "$tool_basename", so it can be a program name with args.
40583set dummy $tool_basename; ac_word=$2
40584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40585$as_echo_n "checking for $ac_word... " >&6; }
40586if ${ac_cv_path_JTREGEXE+:} false; then :
40587  $as_echo_n "(cached) " >&6
40588else
40589  case $JTREGEXE in
40590  [\\/]* | ?:[\\/]*)
40591  ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path.
40592  ;;
40593  *)
40594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40595for as_dir in $PATH
40596do
40597  IFS=$as_save_IFS
40598  test -z "$as_dir" && as_dir=.
40599    for ac_exec_ext in '' $ac_executable_extensions; do
40600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40601    ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext"
40602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40603    break 2
40604  fi
40605done
40606  done
40607IFS=$as_save_IFS
40608
40609  ;;
40610esac
40611fi
40612JTREGEXE=$ac_cv_path_JTREGEXE
40613if test -n "$JTREGEXE"; then
40614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5
40615$as_echo "$JTREGEXE" >&6; }
40616else
40617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40618$as_echo "no" >&6; }
40619fi
40620
40621
40622        if test "x$JTREGEXE" = x; then
40623          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
40624        fi
40625      else
40626        # Otherwise we believe it is a complete path. Use it as it is.
40627        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5
40628$as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;}
40629        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5
40630$as_echo_n "checking for JTREGEXE... " >&6; }
40631        if test ! -x "$tool_specified"; then
40632          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
40633$as_echo "not found" >&6; }
40634          as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5
40635        fi
40636        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
40637$as_echo "$tool_specified" >&6; }
40638      fi
40639    fi
40640  fi
40641
40642
40643
40644  if test "x$JTREGEXE" = x; then
40645    as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5
40646  fi
40647
40648
40649      JT_HOME="`$DIRNAME $JTREGEXE`"
40650    fi
40651  fi
40652
40653
40654
40655
40656
40657
40658  # Option used to tell the compiler whether to create 32- or 64-bit executables
40659  if test "x$TOOLCHAIN_TYPE" = xxlc; then
40660    COMPILER_TARGET_BITS_FLAG="-q"
40661  else
40662    COMPILER_TARGET_BITS_FLAG="-m"
40663  fi
40664
40665
40666  # FIXME: figure out if we should select AR flags depending on OS or toolchain.
40667  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
40668    ARFLAGS="-r"
40669  elif test "x$OPENJDK_TARGET_OS" = xaix; then
40670    ARFLAGS="-X64"
40671  elif test "x$OPENJDK_TARGET_OS" = xwindows; then
40672    # lib.exe is used as AR to create static libraries.
40673    ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
40674  else
40675    ARFLAGS=""
40676  fi
40677
40678
40679  ## Setup strip.
40680  # FIXME: should this really be per platform, or should it be per toolchain type?
40681  # strip is not provided by clang or solstudio; so guessing platform makes most sense.
40682  # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD.
40683  if test "x$OPENJDK_TARGET_OS" = xlinux; then
40684    STRIPFLAGS="-g"
40685  elif test "x$OPENJDK_TARGET_OS" = xsolaris; then
40686    STRIPFLAGS="-x"
40687  elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
40688    STRIPFLAGS="-S"
40689  elif test "x$OPENJDK_TARGET_OS" = xaix; then
40690    STRIPFLAGS="-X32_64"
40691  fi
40692
40693  if test "x$OPENJDK_TARGET_OS" != xwindows; then
40694    POST_STRIP_CMD="$STRIP $STRIPFLAGS"
40695  fi
40696
40697
40698  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40699    # FIXME: break out into MCSFLAGS
40700    POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
40701  fi
40702
40703
40704  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
40705    CC_OUT_OPTION=-Fo
40706    EXE_OUT_OPTION=-out:
40707    LD_OUT_OPTION=-out:
40708    AR_OUT_OPTION=-out:
40709  else
40710    # The option used to specify the target .o,.a or .so file.
40711    # When compiling, how to specify the to be created object file.
40712    CC_OUT_OPTION='-o$(SPACE)'
40713    # When linking, how to specify the to be created executable.
40714    EXE_OUT_OPTION='-o$(SPACE)'
40715    # When linking, how to specify the to be created dynamically linkable library.
40716    LD_OUT_OPTION='-o$(SPACE)'
40717    # When archiving, how to specify the to be create static archive for object files.
40718    AR_OUT_OPTION='rcs$(SPACE)'
40719  fi
40720
40721
40722
40723
40724
40725  # On Windows, we need to set RC flags.
40726  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
40727    RC_FLAGS="-nologo -l 0x409 -r"
40728    if test "x$VARIANT" = xOPT; then
40729      RC_FLAGS="$RC_FLAGS -d NDEBUG"
40730    fi
40731
40732    # The version variables used to create RC_FLAGS may be overridden
40733    # in a custom configure script, or possibly the command line.
40734    # Let those variables be expanded at make time in spec.gmk.
40735    # The \$ are escaped to the shell, and the $(...) variables
40736    # are evaluated by make.
40737    RC_FLAGS="$RC_FLAGS \
40738        -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
40739        -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
40740        -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
40741        -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \
40742        -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
40743        -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
40744        -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\""
40745  fi
40746
40747
40748  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
40749    # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX.
40750    CCXXFLAGS="$CCXXFLAGS -nologo"
40751  fi
40752
40753  if test "x$SYSROOT" != "x"; then
40754    if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
40755      if test "x$OPENJDK_TARGET_OS" = xsolaris; then
40756        # Solaris Studio does not have a concept of sysroot. Instead we must
40757        # make sure the default include and lib dirs are appended to each
40758        # compile and link command line.
40759        SYSROOT_CFLAGS="-I$SYSROOT/usr/include"
40760        SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
40761            -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
40762            -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
40763      fi
40764    elif test "x$TOOLCHAIN_TYPE" = xgcc; then
40765      SYSROOT_CFLAGS="--sysroot=\"$SYSROOT\""
40766      SYSROOT_LDFLAGS="--sysroot=\"$SYSROOT\""
40767    elif test "x$TOOLCHAIN_TYPE" = xclang; then
40768      SYSROOT_CFLAGS="-isysroot \"$SYSROOT\""
40769      SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\""
40770    fi
40771    # Propagate the sysroot args to hotspot
40772    LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS"
40773    LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS"
40774    LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS"
40775  fi
40776
40777
40778
40779
40780# FIXME: Currently we must test this after toolchain but before flags. Fix!
40781
40782# Now we can test some aspects on the target using configure macros.
40783
40784
40785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
40786$as_echo_n "checking for ANSI C header files... " >&6; }
40787if ${ac_cv_header_stdc+:} false; then :
40788  $as_echo_n "(cached) " >&6
40789else
40790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40791/* end confdefs.h.  */
40792#include <stdlib.h>
40793#include <stdarg.h>
40794#include <string.h>
40795#include <float.h>
40796
40797int
40798main ()
40799{
40800
40801  ;
40802  return 0;
40803}
40804_ACEOF
40805if ac_fn_cxx_try_compile "$LINENO"; then :
40806  ac_cv_header_stdc=yes
40807else
40808  ac_cv_header_stdc=no
40809fi
40810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40811
40812if test $ac_cv_header_stdc = yes; then
40813  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
40814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40815/* end confdefs.h.  */
40816#include <string.h>
40817
40818_ACEOF
40819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40820  $EGREP "memchr" >/dev/null 2>&1; then :
40821
40822else
40823  ac_cv_header_stdc=no
40824fi
40825rm -f conftest*
40826
40827fi
40828
40829if test $ac_cv_header_stdc = yes; then
40830  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
40831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40832/* end confdefs.h.  */
40833#include <stdlib.h>
40834
40835_ACEOF
40836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40837  $EGREP "free" >/dev/null 2>&1; then :
40838
40839else
40840  ac_cv_header_stdc=no
40841fi
40842rm -f conftest*
40843
40844fi
40845
40846if test $ac_cv_header_stdc = yes; then
40847  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
40848  if test "$cross_compiling" = yes; then :
40849  :
40850else
40851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40852/* end confdefs.h.  */
40853#include <ctype.h>
40854#include <stdlib.h>
40855#if ((' ' & 0x0FF) == 0x020)
40856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
40857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
40858#else
40859# define ISLOWER(c) \
40860		   (('a' <= (c) && (c) <= 'i') \
40861		     || ('j' <= (c) && (c) <= 'r') \
40862		     || ('s' <= (c) && (c) <= 'z'))
40863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
40864#endif
40865
40866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
40867int
40868main ()
40869{
40870  int i;
40871  for (i = 0; i < 256; i++)
40872    if (XOR (islower (i), ISLOWER (i))
40873	|| toupper (i) != TOUPPER (i))
40874      return 2;
40875  return 0;
40876}
40877_ACEOF
40878if ac_fn_cxx_try_run "$LINENO"; then :
40879
40880else
40881  ac_cv_header_stdc=no
40882fi
40883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40884  conftest.$ac_objext conftest.beam conftest.$ac_ext
40885fi
40886
40887fi
40888fi
40889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
40890$as_echo "$ac_cv_header_stdc" >&6; }
40891if test $ac_cv_header_stdc = yes; then
40892
40893$as_echo "#define STDC_HEADERS 1" >>confdefs.h
40894
40895fi
40896
40897# On IRIX 5.3, sys/types and inttypes.h are conflicting.
40898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
40899		  inttypes.h stdint.h unistd.h
40900do :
40901  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40902ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
40903"
40904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40905  cat >>confdefs.h <<_ACEOF
40906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40907_ACEOF
40908
40909fi
40910
40911done
40912
40913
40914
40915  ###############################################################################
40916  #
40917  # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
40918  # (The JVM can use 32 or 64 bit Java pointers but that decision
40919  # is made at runtime.)
40920  #
40921
40922  if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then
40923    # Always specify -m flag on Solaris
40924    # And -q on AIX because otherwise the compiler produces 32-bit objects by default
40925
40926  # When we add flags to the "official" CFLAGS etc, we need to
40927  # keep track of these additions in ADDED_CFLAGS etc. These
40928  # will later be checked to make sure only controlled additions
40929  # have been made to CFLAGS etc.
40930  ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40931  ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40932  ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40933
40934  CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
40935  CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
40936  LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
40937
40938  CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
40939  CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
40940  LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
40941
40942  elif test "x$COMPILE_TYPE" = xreduced; then
40943    if test "x$OPENJDK_TARGET_OS" != xwindows; then
40944      # Specify -m if running reduced on other Posix platforms
40945
40946  # When we add flags to the "official" CFLAGS etc, we need to
40947  # keep track of these additions in ADDED_CFLAGS etc. These
40948  # will later be checked to make sure only controlled additions
40949  # have been made to CFLAGS etc.
40950  ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40951  ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40952  ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
40953
40954  CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
40955  CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
40956  LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
40957
40958  CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
40959  CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
40960  LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
40961
40962    fi
40963  fi
40964
40965  # Make compilation sanity check
40966  for ac_header in stdio.h
40967do :
40968  ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
40969if test "x$ac_cv_header_stdio_h" = xyes; then :
40970  cat >>confdefs.h <<_ACEOF
40971#define HAVE_STDIO_H 1
40972_ACEOF
40973
40974else
40975
40976    { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
40977$as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
40978    if test "x$COMPILE_TYPE" = xreduced; then
40979      { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
40980$as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
40981    elif test "x$COMPILE_TYPE" = xcross; then
40982      { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
40983$as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
40984    fi
40985    as_fn_error $? "Cannot continue." "$LINENO" 5
40986
40987fi
40988
40989done
40990
40991
40992  # The cast to long int works around a bug in the HP C Compiler
40993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40995# This bug is HP SR number 8606223364.
40996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
40997$as_echo_n "checking size of int *... " >&6; }
40998if ${ac_cv_sizeof_int_p+:} false; then :
40999  $as_echo_n "(cached) " >&6
41000else
41001  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41002
41003else
41004  if test "$ac_cv_type_int_p" = yes; then
41005     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41007as_fn_error 77 "cannot compute sizeof (int *)
41008See \`config.log' for more details" "$LINENO" 5; }
41009   else
41010     ac_cv_sizeof_int_p=0
41011   fi
41012fi
41013
41014fi
41015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41016$as_echo "$ac_cv_sizeof_int_p" >&6; }
41017
41018
41019
41020cat >>confdefs.h <<_ACEOF
41021#define SIZEOF_INT_P $ac_cv_sizeof_int_p
41022_ACEOF
41023
41024
41025
41026  # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*'
41027  if test "x$ac_cv_sizeof_int_p" = x; then
41028    # The test failed, lets stick to the assumed value.
41029    { $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
41030$as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;}
41031  else
41032    TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41033
41034    if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41035      # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects
41036      # Let's try to implicitely set the compilers target architecture and retry the test
41037      { $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
41038$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;}
41039      { $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
41040$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;}
41041
41042  # When we add flags to the "official" CFLAGS etc, we need to
41043  # keep track of these additions in ADDED_CFLAGS etc. These
41044  # will later be checked to make sure only controlled additions
41045  # have been made to CFLAGS etc.
41046  ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41047  ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41048  ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41049
41050  CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
41051  CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
41052  LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
41053
41054  CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
41055  CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
41056  LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
41057
41058
41059      # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value!
41060      unset ac_cv_sizeof_int_p
41061      # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF
41062      cat >>confdefs.h <<_ACEOF
41063#undef SIZEOF_INT_P
41064_ACEOF
41065
41066      # The cast to long int works around a bug in the HP C Compiler
41067# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41068# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41069# This bug is HP SR number 8606223364.
41070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
41071$as_echo_n "checking size of int *... " >&6; }
41072if ${ac_cv_sizeof_int_p+:} false; then :
41073  $as_echo_n "(cached) " >&6
41074else
41075  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
41076
41077else
41078  if test "$ac_cv_type_int_p" = yes; then
41079     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41081as_fn_error 77 "cannot compute sizeof (int *)
41082See \`config.log' for more details" "$LINENO" 5; }
41083   else
41084     ac_cv_sizeof_int_p=0
41085   fi
41086fi
41087
41088fi
41089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
41090$as_echo "$ac_cv_sizeof_int_p" >&6; }
41091
41092
41093
41094cat >>confdefs.h <<_ACEOF
41095#define SIZEOF_INT_P $ac_cv_sizeof_int_p
41096_ACEOF
41097
41098
41099
41100      TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p`
41101
41102      if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
41103        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
41104      fi
41105    fi
41106  fi
41107
41108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
41109$as_echo_n "checking for target address size... " >&6; }
41110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
41111$as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
41112
41113
41114  ###############################################################################
41115  #
41116  # Is the target little of big endian?
41117  #
41118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
41119$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
41120if ${ac_cv_c_bigendian+:} false; then :
41121  $as_echo_n "(cached) " >&6
41122else
41123  ac_cv_c_bigendian=unknown
41124    # See if we're dealing with a universal compiler.
41125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41126/* end confdefs.h.  */
41127#ifndef __APPLE_CC__
41128	       not a universal capable compiler
41129	     #endif
41130	     typedef int dummy;
41131
41132_ACEOF
41133if ac_fn_cxx_try_compile "$LINENO"; then :
41134
41135	# Check for potential -arch flags.  It is not universal unless
41136	# there are at least two -arch flags with different values.
41137	ac_arch=
41138	ac_prev=
41139	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
41140	 if test -n "$ac_prev"; then
41141	   case $ac_word in
41142	     i?86 | x86_64 | ppc | ppc64)
41143	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
41144		 ac_arch=$ac_word
41145	       else
41146		 ac_cv_c_bigendian=universal
41147		 break
41148	       fi
41149	       ;;
41150	   esac
41151	   ac_prev=
41152	 elif test "x$ac_word" = "x-arch"; then
41153	   ac_prev=arch
41154	 fi
41155       done
41156fi
41157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41158    if test $ac_cv_c_bigendian = unknown; then
41159      # See if sys/param.h defines the BYTE_ORDER macro.
41160      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41161/* end confdefs.h.  */
41162#include <sys/types.h>
41163	     #include <sys/param.h>
41164
41165int
41166main ()
41167{
41168#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
41169		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
41170		     && LITTLE_ENDIAN)
41171	      bogus endian macros
41172	     #endif
41173
41174  ;
41175  return 0;
41176}
41177_ACEOF
41178if ac_fn_cxx_try_compile "$LINENO"; then :
41179  # It does; now see whether it defined to BIG_ENDIAN or not.
41180	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41181/* end confdefs.h.  */
41182#include <sys/types.h>
41183		#include <sys/param.h>
41184
41185int
41186main ()
41187{
41188#if BYTE_ORDER != BIG_ENDIAN
41189		 not big endian
41190		#endif
41191
41192  ;
41193  return 0;
41194}
41195_ACEOF
41196if ac_fn_cxx_try_compile "$LINENO"; then :
41197  ac_cv_c_bigendian=yes
41198else
41199  ac_cv_c_bigendian=no
41200fi
41201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41202fi
41203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41204    fi
41205    if test $ac_cv_c_bigendian = unknown; then
41206      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
41207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41208/* end confdefs.h.  */
41209#include <limits.h>
41210
41211int
41212main ()
41213{
41214#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
41215	      bogus endian macros
41216	     #endif
41217
41218  ;
41219  return 0;
41220}
41221_ACEOF
41222if ac_fn_cxx_try_compile "$LINENO"; then :
41223  # It does; now see whether it defined to _BIG_ENDIAN or not.
41224	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41225/* end confdefs.h.  */
41226#include <limits.h>
41227
41228int
41229main ()
41230{
41231#ifndef _BIG_ENDIAN
41232		 not big endian
41233		#endif
41234
41235  ;
41236  return 0;
41237}
41238_ACEOF
41239if ac_fn_cxx_try_compile "$LINENO"; then :
41240  ac_cv_c_bigendian=yes
41241else
41242  ac_cv_c_bigendian=no
41243fi
41244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41245fi
41246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41247    fi
41248    if test $ac_cv_c_bigendian = unknown; then
41249      # Compile a test program.
41250      if test "$cross_compiling" = yes; then :
41251  # Try to guess by grepping values from an object file.
41252	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41253/* end confdefs.h.  */
41254short int ascii_mm[] =
41255		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41256		short int ascii_ii[] =
41257		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41258		int use_ascii (int i) {
41259		  return ascii_mm[i] + ascii_ii[i];
41260		}
41261		short int ebcdic_ii[] =
41262		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41263		short int ebcdic_mm[] =
41264		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41265		int use_ebcdic (int i) {
41266		  return ebcdic_mm[i] + ebcdic_ii[i];
41267		}
41268		extern int foo;
41269
41270int
41271main ()
41272{
41273return use_ascii (foo) == use_ebcdic (foo);
41274  ;
41275  return 0;
41276}
41277_ACEOF
41278if ac_fn_cxx_try_compile "$LINENO"; then :
41279  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
41280	      ac_cv_c_bigendian=yes
41281	    fi
41282	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41283	      if test "$ac_cv_c_bigendian" = unknown; then
41284		ac_cv_c_bigendian=no
41285	      else
41286		# finding both strings is unlikely to happen, but who knows?
41287		ac_cv_c_bigendian=unknown
41288	      fi
41289	    fi
41290fi
41291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41292else
41293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41294/* end confdefs.h.  */
41295$ac_includes_default
41296int
41297main ()
41298{
41299
41300	     /* Are we little or big endian?  From Harbison&Steele.  */
41301	     union
41302	     {
41303	       long int l;
41304	       char c[sizeof (long int)];
41305	     } u;
41306	     u.l = 1;
41307	     return u.c[sizeof (long int) - 1] == 1;
41308
41309  ;
41310  return 0;
41311}
41312_ACEOF
41313if ac_fn_cxx_try_run "$LINENO"; then :
41314  ac_cv_c_bigendian=no
41315else
41316  ac_cv_c_bigendian=yes
41317fi
41318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41319  conftest.$ac_objext conftest.beam conftest.$ac_ext
41320fi
41321
41322    fi
41323fi
41324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
41325$as_echo "$ac_cv_c_bigendian" >&6; }
41326 case $ac_cv_c_bigendian in #(
41327   yes)
41328     ENDIAN="big";; #(
41329   no)
41330     ENDIAN="little" ;; #(
41331   universal)
41332     ENDIAN="universal_endianness"
41333     ;; #(
41334   *)
41335     ENDIAN="unknown" ;;
41336 esac
41337
41338
41339  if test "x$ENDIAN" = xuniversal_endianness; then
41340    as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5
41341  fi
41342  if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then
41343    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
41344  fi
41345
41346
41347# Configure flags for the tools
41348
41349  ###############################################################################
41350  #
41351  # How to compile shared libraries.
41352  #
41353
41354  if test "x$TOOLCHAIN_TYPE" = xgcc; then
41355    PICFLAG="-fPIC"
41356    C_FLAG_REORDER=''
41357    CXX_FLAG_REORDER=''
41358
41359    if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41360      # Linking is different on MacOSX
41361      SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
41362      SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
41363      SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
41364      SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
41365      SET_SHARED_LIBRARY_MAPFILE=''
41366    else
41367      # Default works for linux, might work on other platforms as well.
41368      SHARED_LIBRARY_FLAGS='-shared'
41369      SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41370      SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN"
41371      SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
41372      SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
41373    fi
41374  elif test "x$TOOLCHAIN_TYPE" = xclang; then
41375    PICFLAG=''
41376    C_FLAG_REORDER=''
41377    CXX_FLAG_REORDER=''
41378
41379    if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41380      # Linking is different on MacOSX
41381      SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
41382      SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
41383      SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
41384      SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
41385      SET_SHARED_LIBRARY_MAPFILE=''
41386    else
41387      # Default works for linux, might work on other platforms as well.
41388      SHARED_LIBRARY_FLAGS='-shared'
41389      SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1'
41390      SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN"
41391      SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
41392      SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
41393    fi
41394  elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41395    PICFLAG="-KPIC"
41396    C_FLAG_REORDER='-xF'
41397    CXX_FLAG_REORDER='-xF'
41398    SHARED_LIBRARY_FLAGS="-G"
41399    SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1'
41400    SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN"
41401    SET_SHARED_LIBRARY_NAME=''
41402    SET_SHARED_LIBRARY_MAPFILE='-M$1'
41403  elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41404    PICFLAG="-qpic=large"
41405    C_FLAG_REORDER=''
41406    CXX_FLAG_REORDER=''
41407    SHARED_LIBRARY_FLAGS="-qmkshrobj"
41408    SET_EXECUTABLE_ORIGIN=""
41409    SET_SHARED_LIBRARY_ORIGIN=''
41410    SET_SHARED_LIBRARY_NAME=''
41411    SET_SHARED_LIBRARY_MAPFILE=''
41412  elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41413    PICFLAG=""
41414    C_FLAG_REORDER=''
41415    CXX_FLAG_REORDER=''
41416    SHARED_LIBRARY_FLAGS="-LD"
41417    SET_EXECUTABLE_ORIGIN=''
41418    SET_SHARED_LIBRARY_ORIGIN=''
41419    SET_SHARED_LIBRARY_NAME=''
41420    SET_SHARED_LIBRARY_MAPFILE=''
41421  fi
41422
41423
41424
41425
41426
41427
41428
41429
41430
41431  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41432    CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__"
41433    CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__"
41434    CFLAGS_JDKLIB_EXTRA='-xstrconst'
41435  fi
41436  # The (cross) compiler is now configured, we can now test capabilities
41437  # of the target platform.
41438
41439
41440
41441  ###############################################################################
41442  #
41443  # Setup the opt flags for different compilers
41444  # and different operating systems.
41445  #
41446
41447  # FIXME: this was indirectly the old default, but just inherited.
41448  # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41449  #   C_FLAG_DEPS="-MMD -MF"
41450  # fi
41451
41452  # Generate make dependency files
41453  if test "x$TOOLCHAIN_TYPE" = xgcc; then
41454    C_FLAG_DEPS="-MMD -MF"
41455  elif test "x$TOOLCHAIN_TYPE" = xclang; then
41456    C_FLAG_DEPS="-MMD -MF"
41457  elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41458    C_FLAG_DEPS="-xMMD -xMF"
41459  elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41460    C_FLAG_DEPS="-qmakedep=gcc -MF"
41461  fi
41462  CXX_FLAG_DEPS="$C_FLAG_DEPS"
41463
41464
41465
41466  # Debug symbols
41467  if test "x$TOOLCHAIN_TYPE" = xgcc; then
41468    if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then
41469      CFLAGS_DEBUG_SYMBOLS="-g1"
41470      CXXFLAGS_DEBUG_SYMBOLS="-g1"
41471    else
41472      CFLAGS_DEBUG_SYMBOLS="-g"
41473      CXXFLAGS_DEBUG_SYMBOLS="-g"
41474    fi
41475  elif test "x$TOOLCHAIN_TYPE" = xclang; then
41476    CFLAGS_DEBUG_SYMBOLS="-g"
41477    CXXFLAGS_DEBUG_SYMBOLS="-g"
41478  elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41479    CFLAGS_DEBUG_SYMBOLS="-g -xs"
41480    CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs"
41481  elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41482    CFLAGS_DEBUG_SYMBOLS="-g"
41483    CXXFLAGS_DEBUG_SYMBOLS="-g"
41484  fi
41485
41486
41487
41488  # Optimization levels
41489  if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41490    CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil"
41491
41492    if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
41493      # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global?
41494      C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr"
41495      C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr"
41496      C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr"
41497      C_O_FLAG_NONE="-xregs=no%frameptr"
41498      CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr"
41499      CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr"
41500      CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr"
41501      CXX_O_FLAG_NONE="-xregs=no%frameptr"
41502      if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
41503        C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium"
41504        CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium"
41505      fi
41506    elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
41507      C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra"
41508      C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41509      C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
41510      C_O_FLAG_NONE=""
41511      CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
41512      CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41513      CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
41514      CXX_O_FLAG_NONE=""
41515    fi
41516  else
41517    # The remaining toolchains share opt flags between CC and CXX;
41518    # setup for C and duplicate afterwards.
41519    if test "x$TOOLCHAIN_TYPE" = xgcc; then
41520      if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41521        # On MacOSX we optimize for size, something
41522        # we should do for all platforms?
41523        C_O_FLAG_HIGHEST="-Os"
41524        C_O_FLAG_HI="-Os"
41525        C_O_FLAG_NORM="-Os"
41526        C_O_FLAG_NONE=""
41527      else
41528        C_O_FLAG_HIGHEST="-O3"
41529        C_O_FLAG_HI="-O3"
41530        C_O_FLAG_NORM="-O2"
41531        C_O_FLAG_NONE="-O0"
41532      fi
41533    elif test "x$TOOLCHAIN_TYPE" = xclang; then
41534      if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41535        # On MacOSX we optimize for size, something
41536        # we should do for all platforms?
41537        C_O_FLAG_HIGHEST="-Os"
41538        C_O_FLAG_HI="-Os"
41539        C_O_FLAG_NORM="-Os"
41540        C_O_FLAG_NONE=""
41541      else
41542        C_O_FLAG_HIGHEST="-O3"
41543        C_O_FLAG_HI="-O3"
41544        C_O_FLAG_NORM="-O2"
41545        C_O_FLAG_NONE="-O0"
41546      fi
41547    elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41548      C_O_FLAG_HIGHEST="-O3"
41549      C_O_FLAG_HI="-O3 -qstrict"
41550      C_O_FLAG_NORM="-O2"
41551      C_O_FLAG_NONE=""
41552    elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41553      C_O_FLAG_HIGHEST="-O2"
41554      C_O_FLAG_HI="-O1"
41555      C_O_FLAG_NORM="-O1"
41556      C_O_FLAG_NONE="-Od"
41557    fi
41558    CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST"
41559    CXX_O_FLAG_HI="$C_O_FLAG_HI"
41560    CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
41561    CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
41562  fi
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574  # Special extras...
41575  if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41576    if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
41577      CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41578      CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl"
41579    fi
41580  elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41581    LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall"
41582    CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41583    CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
41584  fi
41585
41586  if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then
41587    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5
41588$as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;}
41589  fi
41590
41591  if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then
41592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5
41593$as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;}
41594  fi
41595
41596  if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then
41597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5
41598$as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;}
41599  fi
41600
41601
41602# Check whether --with-extra-cflags was given.
41603if test "${with_extra_cflags+set}" = set; then :
41604  withval=$with_extra_cflags;
41605fi
41606
41607
41608
41609# Check whether --with-extra-cxxflags was given.
41610if test "${with_extra_cxxflags+set}" = set; then :
41611  withval=$with_extra_cxxflags;
41612fi
41613
41614
41615
41616# Check whether --with-extra-ldflags was given.
41617if test "${with_extra_ldflags+set}" = set; then :
41618  withval=$with_extra_ldflags;
41619fi
41620
41621
41622  CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags"
41623  CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags"
41624  LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags"
41625
41626  # Hotspot needs these set in their legacy form
41627  LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags"
41628  LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags"
41629  LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags"
41630
41631
41632
41633
41634
41635  ###############################################################################
41636  #
41637  # Now setup the CFLAGS and LDFLAGS for the JDK build.
41638  # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
41639  #
41640
41641  # Setup compiler/platform specific flags to CFLAGS_JDK,
41642  # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?)
41643  if test "x$TOOLCHAIN_TYPE" = xgcc; then
41644    # these options are used for both C and C++ compiles
41645    CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
41646        -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
41647    case $OPENJDK_TARGET_CPU_ARCH in
41648      arm )
41649        # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41650        CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41651        ;;
41652      ppc )
41653        # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
41654        ;;
41655      * )
41656        CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
41657        CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41658        ;;
41659    esac
41660  elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41661    CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
41662    if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
41663      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
41664      CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
41665    fi
41666
41667    CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41668    CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41669  elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41670    CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41671    CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41672  elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41673    CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
41674    -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
41675    -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
41676    -DWIN32 -DIAL"
41677    if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
41678      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
41679    else
41680      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
41681    fi
41682  fi
41683
41684  ###############################################################################
41685
41686  # Adjust flags according to debug level.
41687  case $DEBUG_LEVEL in
41688    fastdebug )
41689      CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41690      CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41691      C_O_FLAG_HI="$C_O_FLAG_NORM"
41692      C_O_FLAG_NORM="$C_O_FLAG_NORM"
41693      CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
41694      CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
41695      JAVAC_FLAGS="$JAVAC_FLAGS -g"
41696      ;;
41697    slowdebug )
41698      CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41699      CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41700      C_O_FLAG_HI="$C_O_FLAG_NONE"
41701      C_O_FLAG_NORM="$C_O_FLAG_NONE"
41702      CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
41703      CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
41704      JAVAC_FLAGS="$JAVAC_FLAGS -g"
41705      ;;
41706  esac
41707
41708  # Setup LP64
41709  CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
41710
41711  # Set some common defines. These works for all compilers, but assume
41712  # -D is universally accepted.
41713
41714  # Setup endianness
41715  if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then
41716    # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the
41717    #   Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN
41718    #   (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h).
41719    #   Note: -Dmacro         is the same as    #define macro 1
41720    #         -Dmacro=        is the same as    #define macro
41721    if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41722      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN="
41723    else
41724      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
41725    fi
41726  else
41727    # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they
41728    # are defined in the system?
41729    if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41730      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN="
41731    else
41732      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
41733    fi
41734  fi
41735
41736  # Setup target OS define. Use OS target name but in upper case.
41737  OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41738  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE"
41739
41740  # Setup target CPU
41741  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY"
41742
41743  # Setup debug/release defines
41744  if test "x$DEBUG_LEVEL" = xrelease; then
41745    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
41746    if test "x$OPENJDK_TARGET_OS" = xsolaris; then
41747      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED"
41748    fi
41749  else
41750    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
41751  fi
41752
41753  # Setup release name
41754  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'"
41755
41756
41757  # Set some additional per-OS defines.
41758  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41759    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT"
41760  elif test "x$OPENJDK_TARGET_OS" = xaix; then
41761    # FIXME: PPC64 should not be here.
41762    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64"
41763  elif test "x$OPENJDK_TARGET_OS" = xbsd; then
41764    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE"
41765  fi
41766
41767  # Additional macosx handling
41768  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
41769    if test "x$TOOLCHAIN_TYPE" = xgcc; then
41770      # FIXME: This needs to be exported in spec.gmk due to closed legacy code.
41771      # FIXME: clean this up, and/or move it elsewhere.
41772
41773      # Setting these parameters makes it an error to link to macosx APIs that are
41774      # newer than the given OS version and makes the linked binaries compatible
41775      # even if built on a newer version of the OS.
41776      # The expected format is X.Y.Z
41777      MACOSX_VERSION_MIN=10.7.0
41778
41779
41780      # The macro takes the version with no dots, ex: 1070
41781      # Let the flags variables get resolved in make for easier override on make
41782      # command line.
41783      CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41784      LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
41785    fi
41786  fi
41787
41788  # Setup some hard coded includes
41789  CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
41790      -I${JDK_OUTPUTDIR}/include \
41791      -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \
41792      -I${JDK_TOPDIR}/src/share/javavm/export \
41793      -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \
41794      -I${JDK_TOPDIR}/src/share/native/common \
41795      -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common"
41796
41797  # The shared libraries are compiled using the picflag.
41798  CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
41799  CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA "
41800
41801  # Executable flags
41802  CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
41803  CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
41804
41805
41806
41807
41808
41809
41810  # Setup LDFLAGS et al.
41811  #
41812  # Now this is odd. The JDK native libraries have to link against libjvm.so
41813  # On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
41814  # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
41815  # is identical for client and server? Yes. Which is picked at runtime (client or server)?
41816  # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
41817  # libraries will link to whatever is in memory. Yuck.
41818  #
41819  # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
41820  if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41821    LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no"
41822    if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then
41823      LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
41824    fi
41825    # TODO: make -debug optional "--disable-full-debug-symbols"
41826    LDFLAGS_JDK="$LDFLAGS_JDK -debug"
41827    LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
41828    LDFLAGS_JDKLIB_SUFFIX=""
41829    if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
41830      LDFLAGS_STACK_SIZE=1048576
41831    else
41832      LDFLAGS_STACK_SIZE=327680
41833    fi
41834    LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
41835  else
41836    if test "x$TOOLCHAIN_TYPE" = xgcc; then
41837      # If this is a --hash-style=gnu system, use --hash-style=both, why?
41838      # We have previously set HAS_GNU_HASH if this is the case
41839      if test -n "$HAS_GNU_HASH"; then
41840        LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
41841      fi
41842      if test "x$OPENJDK_TARGET_OS" = xlinux; then
41843        # And since we now know that the linker is gnu, then add -z defs, to forbid
41844        # undefined symbols in object files.
41845        LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"
41846        if test "x$DEBUG_LEVEL" = "xrelease"; then
41847          # When building release libraries, tell the linker optimize them.
41848          # Should this be supplied to the OSS linker as well?
41849          LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
41850        fi
41851      fi
41852    fi
41853
41854    if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41855      LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
41856      LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
41857    fi
41858
41859    LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
41860        -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
41861
41862    # On some platforms (mac) the linker warns about non existing -L dirs.
41863    # Add server first if available. Linking aginst client does not always produce the same results.
41864    # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
41865    # Default to server for other variants.
41866    if test "x$JVM_VARIANT_SERVER" = xtrue; then
41867      LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
41868    elif test "x$JVM_VARIANT_CLIENT" = xtrue; then
41869      LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client"
41870    elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
41871      LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal"
41872    else
41873      LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server"
41874    fi
41875
41876    LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm"
41877    if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41878      LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
41879    fi
41880
41881    LDFLAGS_JDKEXE="${LDFLAGS_JDK}"
41882    if test "x$OPENJDK_TARGET_OS" = xlinux; then
41883      LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined"
41884    fi
41885  fi
41886
41887
41888
41889
41890
41891
41892
41893
41894  # Some Zero and Shark settings.
41895  # ZERO_ARCHFLAG tells the compiler which mode to build for
41896  case "${OPENJDK_TARGET_CPU}" in
41897    s390)
41898      ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31"
41899      ;;
41900    *)
41901      ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41902  esac
41903
41904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5
41905$as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; }
41906  supports=yes
41907
41908  saved_cflags="$CFLAGS"
41909  CFLAGS="$CFLAGS $ZERO_ARCHFLAG"
41910  ac_ext=c
41911ac_cpp='$CPP $CPPFLAGS'
41912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41914ac_compiler_gnu=$ac_cv_c_compiler_gnu
41915
41916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41917/* end confdefs.h.  */
41918int i;
41919_ACEOF
41920if ac_fn_c_try_compile "$LINENO"; then :
41921
41922else
41923  supports=no
41924fi
41925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41926  ac_ext=cpp
41927ac_cpp='$CXXCPP $CPPFLAGS'
41928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41931
41932  CFLAGS="$saved_cflags"
41933
41934  saved_cxxflags="$CXXFLAGS"
41935  CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG"
41936  ac_ext=cpp
41937ac_cpp='$CXXCPP $CPPFLAGS'
41938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41941
41942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41943/* end confdefs.h.  */
41944int i;
41945_ACEOF
41946if ac_fn_cxx_try_compile "$LINENO"; then :
41947
41948else
41949  supports=no
41950fi
41951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41952  ac_ext=cpp
41953ac_cpp='$CXXCPP $CPPFLAGS'
41954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41957
41958  CXXFLAGS="$saved_cxxflags"
41959
41960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
41961$as_echo "$supports" >&6; }
41962  if test "x$supports" = "xyes" ; then
41963    :
41964  else
41965    ZERO_ARCHFLAG=""
41966  fi
41967
41968
41969
41970  # Check that the compiler supports -mX (or -qX on AIX) flags
41971  # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does
41972
41973  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5
41974$as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; }
41975  supports=yes
41976
41977  saved_cflags="$CFLAGS"
41978  CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
41979  ac_ext=c
41980ac_cpp='$CPP $CPPFLAGS'
41981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41983ac_compiler_gnu=$ac_cv_c_compiler_gnu
41984
41985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41986/* end confdefs.h.  */
41987int i;
41988_ACEOF
41989if ac_fn_c_try_compile "$LINENO"; then :
41990
41991else
41992  supports=no
41993fi
41994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41995  ac_ext=cpp
41996ac_cpp='$CXXCPP $CPPFLAGS'
41997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42000
42001  CFLAGS="$saved_cflags"
42002
42003  saved_cxxflags="$CXXFLAGS"
42004  CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}"
42005  ac_ext=cpp
42006ac_cpp='$CXXCPP $CPPFLAGS'
42007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42010
42011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42012/* end confdefs.h.  */
42013int i;
42014_ACEOF
42015if ac_fn_cxx_try_compile "$LINENO"; then :
42016
42017else
42018  supports=no
42019fi
42020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42021  ac_ext=cpp
42022ac_cpp='$CXXCPP $CPPFLAGS'
42023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42026
42027  CXXFLAGS="$saved_cxxflags"
42028
42029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5
42030$as_echo "$supports" >&6; }
42031  if test "x$supports" = "xyes" ; then
42032    COMPILER_SUPPORTS_TARGET_BITS_FLAG=true
42033  else
42034    COMPILER_SUPPORTS_TARGET_BITS_FLAG=false
42035  fi
42036
42037
42038
42039  case "${TOOLCHAIN_TYPE}" in
42040    microsoft)
42041      CFLAGS_WARNINGS_ARE_ERRORS="/WX"
42042      ;;
42043    solstudio)
42044      CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all"
42045      ;;
42046    gcc)
42047      CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42048      ;;
42049    clang)
42050      CFLAGS_WARNINGS_ARE_ERRORS="-Werror"
42051      ;;
42052  esac
42053
42054
42055
42056# Setup debug symbols (need objcopy from the toolchain for that)
42057
42058  #
42059  # ENABLE_DEBUG_SYMBOLS
42060  # This must be done after the toolchain is setup, since we're looking at objcopy.
42061  #
42062  # Check whether --enable-debug-symbols was given.
42063if test "${enable_debug_symbols+set}" = set; then :
42064  enableval=$enable_debug_symbols;
42065fi
42066
42067
42068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5
42069$as_echo_n "checking if we should generate debug symbols... " >&6; }
42070
42071  if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then
42072    # explicit enabling of enable-debug-symbols and can't find objcopy
42073    #   this is an error
42074    as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5
42075  fi
42076
42077  if test "x$enable_debug_symbols" = "xyes"; then
42078    ENABLE_DEBUG_SYMBOLS=true
42079  elif test "x$enable_debug_symbols" = "xno"; then
42080    ENABLE_DEBUG_SYMBOLS=false
42081  else
42082    # Default is on if objcopy is found
42083    if test "x$OBJCOPY" != x; then
42084      ENABLE_DEBUG_SYMBOLS=true
42085    # MacOS X and Windows don't use objcopy but default is on for those OSes
42086    elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then
42087      ENABLE_DEBUG_SYMBOLS=true
42088    else
42089      ENABLE_DEBUG_SYMBOLS=false
42090    fi
42091  fi
42092
42093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5
42094$as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; }
42095
42096  #
42097  # ZIP_DEBUGINFO_FILES
42098  #
42099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5
42100$as_echo_n "checking if we should zip debug-info files... " >&6; }
42101  # Check whether --enable-zip-debug-info was given.
42102if test "${enable_zip_debug_info+set}" = set; then :
42103  enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}"
42104else
42105  enable_zip_debug_info="yes"
42106fi
42107
42108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5
42109$as_echo "${enable_zip_debug_info}" >&6; }
42110
42111  if test "x${enable_zip_debug_info}" = "xno"; then
42112    ZIP_DEBUGINFO_FILES=false
42113  else
42114    ZIP_DEBUGINFO_FILES=true
42115  fi
42116
42117
42118
42119
42120
42121###############################################################################
42122#
42123# Check dependencies for external and internal libraries.
42124#
42125###############################################################################
42126
42127# After we have toolchain, we can compile fixpath. It's needed by the lib checks.
42128
42129  # When using cygwin or msys, we need a wrapper binary that renames
42130  # /cygdrive/c/ arguments into c:/ arguments and peeks into
42131  # @files and rewrites these too! This wrapper binary is
42132  # called fixpath.
42133  FIXPATH=
42134  if test "x$OPENJDK_BUILD_OS" = xwindows; then
42135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5
42136$as_echo_n "checking if fixpath can be created... " >&6; }
42137    FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c"
42138    FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe"
42139    if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
42140      FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC`
42141      FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN`
42142      # Important to keep the .exe suffix on Cygwin for Hotspot makefiles
42143      FIXPATH="$OUTPUT_ROOT/fixpath.exe -c"
42144    elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
42145      FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC`
42146      FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN`
42147
42148      # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line
42149      # @ was chosen as separator to minimize risk of other tools messing around with it
42150      all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq`
42151      fixpath_argument_list=`echo $all_unique_prefixes  | tr ' ' '@'`
42152
42153      FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list"
42154    fi
42155    rm -f $OUTPUT_ROOT/fixpath*
42156    cd $OUTPUT_ROOT
42157    $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1
42158    cd $CURDIR
42159
42160    if test ! -x $OUTPUT_ROOT/fixpath.exe; then
42161      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42162$as_echo "no" >&6; }
42163      cat $OUTPUT_ROOT/fixpath1.log
42164      as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5
42165    fi
42166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42167$as_echo "yes" >&6; }
42168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5
42169$as_echo_n "checking if fixpath.exe works... " >&6; }
42170    cd $OUTPUT_ROOT
42171    $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1
42172    cd $CURDIR
42173    if test ! -x $OUTPUT_ROOT/fixpath2.exe; then
42174      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42175$as_echo "no" >&6; }
42176      cat $OUTPUT_ROOT/fixpath2.log
42177      as_fn_error $? "fixpath did not work!" "$LINENO" 5
42178    fi
42179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42180$as_echo "yes" >&6; }
42181    rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj
42182  fi
42183
42184
42185
42186
42187
42188
42189  ###############################################################################
42190  #
42191  # OS specific settings that we never will need to probe.
42192  #
42193  if test "x$OPENJDK_TARGET_OS" = xlinux; then
42194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
42195$as_echo_n "checking what is not needed on Linux?... " >&6; }
42196    PULSE_NOT_NEEDED=yes
42197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
42198$as_echo "pulse" >&6; }
42199  fi
42200
42201  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
42202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
42203$as_echo_n "checking what is not needed on Solaris?... " >&6; }
42204    ALSA_NOT_NEEDED=yes
42205    PULSE_NOT_NEEDED=yes
42206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42207$as_echo "alsa pulse" >&6; }
42208  fi
42209
42210  if test "x$OPENJDK_TARGET_OS" = xaix; then
42211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5
42212$as_echo_n "checking what is not needed on AIX?... " >&6; }
42213    ALSA_NOT_NEEDED=yes
42214    PULSE_NOT_NEEDED=yes
42215    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
42216$as_echo "alsa pulse" >&6; }
42217  fi
42218
42219
42220  if test "x$OPENJDK_TARGET_OS" = xwindows; then
42221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
42222$as_echo_n "checking what is not needed on Windows?... " >&6; }
42223    CUPS_NOT_NEEDED=yes
42224    ALSA_NOT_NEEDED=yes
42225    PULSE_NOT_NEEDED=yes
42226    X11_NOT_NEEDED=yes
42227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
42228$as_echo "alsa cups pulse x11" >&6; }
42229  fi
42230
42231  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
42232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
42233$as_echo_n "checking what is not needed on MacOSX?... " >&6; }
42234    ALSA_NOT_NEEDED=yes
42235    PULSE_NOT_NEEDED=yes
42236    X11_NOT_NEEDED=yes
42237    # If the java runtime framework is disabled, then we need X11.
42238    # This will be adjusted below.
42239    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
42240$as_echo "alsa pulse x11" >&6; }
42241  fi
42242
42243  if test "x$OPENJDK_TARGET_OS" = xbsd; then
42244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
42245$as_echo_n "checking what is not needed on bsd?... " >&6; }
42246    ALSA_NOT_NEEDED=yes
42247    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
42248$as_echo "alsa" >&6; }
42249  fi
42250
42251  if test "x$OPENJDK" = "xfalse"; then
42252    FREETYPE_NOT_NEEDED=yes
42253  fi
42254
42255  if test "x$SUPPORT_HEADFUL" = xno; then
42256    X11_NOT_NEEDED=yes
42257  fi
42258
42259  ###############################################################################
42260  #
42261  # Check for MacOSX support for OpenJDK.
42262  #
42263
42264
42265  # Check whether --enable-macosx-runtime-support was given.
42266if test "${enable_macosx_runtime_support+set}" = set; then :
42267  enableval=$enable_macosx_runtime_support;
42268fi
42269
42270  if test "x$enable_macosx_runtime_support" != x; then
42271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5
42272$as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;}
42273  fi
42274
42275
42276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5
42277$as_echo_n "checking for Mac OS X Java Framework... " >&6; }
42278  if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
42279    { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5
42280$as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; }
42281  else
42282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42283$as_echo "no" >&6; }
42284  fi
42285
42286
42287
42288  ###############################################################################
42289  #
42290  # Check for X Windows
42291  #
42292
42293  # Check if the user has specified sysroot, but not --x-includes or --x-libraries.
42294  # Make a simple check for the libraries at the sysroot, and setup --x-includes and
42295  # --x-libraries for the sysroot, if that seems to be correct.
42296  if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
42297    if test "x$SYSROOT" != "x"; then
42298      if test "x$x_includes" = xNONE; then
42299        if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then
42300          x_includes="$SYSROOT/usr/X11R6/include"
42301        elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then
42302          x_includes="$SYSROOT/usr/include"
42303        fi
42304      fi
42305      if test "x$x_libraries" = xNONE; then
42306        if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then
42307          x_libraries="$SYSROOT/usr/X11R6/lib"
42308        elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
42309          x_libraries="$SYSROOT/usr/lib64"
42310        elif test -f "$SYSROOT/usr/lib/libX11.so"; then
42311          x_libraries="$SYSROOT/usr/lib"
42312        fi
42313      fi
42314    fi
42315  fi
42316
42317  # Now let autoconf do it's magic
42318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
42319$as_echo_n "checking for X... " >&6; }
42320
42321
42322# Check whether --with-x was given.
42323if test "${with_x+set}" = set; then :
42324  withval=$with_x;
42325fi
42326
42327# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
42328if test "x$with_x" = xno; then
42329  # The user explicitly disabled X.
42330  have_x=disabled
42331else
42332  case $x_includes,$x_libraries in #(
42333    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
42334    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
42335  $as_echo_n "(cached) " >&6
42336else
42337  # One or both of the vars are not set, and there is no cached value.
42338ac_x_includes=no ac_x_libraries=no
42339rm -f -r conftest.dir
42340if mkdir conftest.dir; then
42341  cd conftest.dir
42342  cat >Imakefile <<'_ACEOF'
42343incroot:
42344	@echo incroot='${INCROOT}'
42345usrlibdir:
42346	@echo usrlibdir='${USRLIBDIR}'
42347libdir:
42348	@echo libdir='${LIBDIR}'
42349_ACEOF
42350  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
42351    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
42352    for ac_var in incroot usrlibdir libdir; do
42353      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
42354    done
42355    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
42356    for ac_extension in a so sl dylib la dll; do
42357      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
42358	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
42359	ac_im_usrlibdir=$ac_im_libdir; break
42360      fi
42361    done
42362    # Screen out bogus values from the imake configuration.  They are
42363    # bogus both because they are the default anyway, and because
42364    # using them would break gcc on systems where it needs fixed includes.
42365    case $ac_im_incroot in
42366	/usr/include) ac_x_includes= ;;
42367	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
42368    esac
42369    case $ac_im_usrlibdir in
42370	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
42371	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
42372    esac
42373  fi
42374  cd ..
42375  rm -f -r conftest.dir
42376fi
42377
42378# Standard set of common directories for X headers.
42379# Check X11 before X11Rn because it is often a symlink to the current release.
42380ac_x_header_dirs='
42381/usr/X11/include
42382/usr/X11R7/include
42383/usr/X11R6/include
42384/usr/X11R5/include
42385/usr/X11R4/include
42386
42387/usr/include/X11
42388/usr/include/X11R7
42389/usr/include/X11R6
42390/usr/include/X11R5
42391/usr/include/X11R4
42392
42393/usr/local/X11/include
42394/usr/local/X11R7/include
42395/usr/local/X11R6/include
42396/usr/local/X11R5/include
42397/usr/local/X11R4/include
42398
42399/usr/local/include/X11
42400/usr/local/include/X11R7
42401/usr/local/include/X11R6
42402/usr/local/include/X11R5
42403/usr/local/include/X11R4
42404
42405/usr/X386/include
42406/usr/x386/include
42407/usr/XFree86/include/X11
42408
42409/usr/include
42410/usr/local/include
42411/usr/unsupported/include
42412/usr/athena/include
42413/usr/local/x11r5/include
42414/usr/lpp/Xamples/include
42415
42416/usr/openwin/include
42417/usr/openwin/share/include'
42418
42419if test "$ac_x_includes" = no; then
42420  # Guess where to find include files, by looking for Xlib.h.
42421  # First, try using that file with no special directory specified.
42422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42423/* end confdefs.h.  */
42424#include <X11/Xlib.h>
42425_ACEOF
42426if ac_fn_cxx_try_cpp "$LINENO"; then :
42427  # We can compile using X headers with no special include directory.
42428ac_x_includes=
42429else
42430  for ac_dir in $ac_x_header_dirs; do
42431  if test -r "$ac_dir/X11/Xlib.h"; then
42432    ac_x_includes=$ac_dir
42433    break
42434  fi
42435done
42436fi
42437rm -f conftest.err conftest.i conftest.$ac_ext
42438fi # $ac_x_includes = no
42439
42440if test "$ac_x_libraries" = no; then
42441  # Check for the libraries.
42442  # See if we find them without any special options.
42443  # Don't add to $LIBS permanently.
42444  ac_save_LIBS=$LIBS
42445  LIBS="-lX11 $LIBS"
42446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42447/* end confdefs.h.  */
42448#include <X11/Xlib.h>
42449int
42450main ()
42451{
42452XrmInitialize ()
42453  ;
42454  return 0;
42455}
42456_ACEOF
42457if ac_fn_cxx_try_link "$LINENO"; then :
42458  LIBS=$ac_save_LIBS
42459# We can link X programs with no special library path.
42460ac_x_libraries=
42461else
42462  LIBS=$ac_save_LIBS
42463for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
42464do
42465  # Don't even attempt the hair of trying to link an X program!
42466  for ac_extension in a so sl dylib la dll; do
42467    if test -r "$ac_dir/libX11.$ac_extension"; then
42468      ac_x_libraries=$ac_dir
42469      break 2
42470    fi
42471  done
42472done
42473fi
42474rm -f core conftest.err conftest.$ac_objext \
42475    conftest$ac_exeext conftest.$ac_ext
42476fi # $ac_x_libraries = no
42477
42478case $ac_x_includes,$ac_x_libraries in #(
42479  no,* | *,no | *\'*)
42480    # Didn't find X, or a directory has "'" in its name.
42481    ac_cv_have_x="have_x=no";; #(
42482  *)
42483    # Record where we found X for the cache.
42484    ac_cv_have_x="have_x=yes\
42485	ac_x_includes='$ac_x_includes'\
42486	ac_x_libraries='$ac_x_libraries'"
42487esac
42488fi
42489;; #(
42490    *) have_x=yes;;
42491  esac
42492  eval "$ac_cv_have_x"
42493fi # $with_x != no
42494
42495if test "$have_x" != yes; then
42496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
42497$as_echo "$have_x" >&6; }
42498  no_x=yes
42499else
42500  # If each of the values was on the command line, it overrides each guess.
42501  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
42502  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
42503  # Update the cache value to reflect the command line values.
42504  ac_cv_have_x="have_x=yes\
42505	ac_x_includes='$x_includes'\
42506	ac_x_libraries='$x_libraries'"
42507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
42508$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
42509fi
42510
42511  if test "$no_x" = yes; then
42512  # Not all programs may use this symbol, but it does not hurt to define it.
42513
42514$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
42515
42516  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
42517else
42518  if test -n "$x_includes"; then
42519    X_CFLAGS="$X_CFLAGS -I$x_includes"
42520  fi
42521
42522  # It would also be nice to do this for all -L options, not just this one.
42523  if test -n "$x_libraries"; then
42524    X_LIBS="$X_LIBS -L$x_libraries"
42525    # For Solaris; some versions of Sun CC require a space after -R and
42526    # others require no space.  Words are not sufficient . . . .
42527    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
42528$as_echo_n "checking whether -R must be followed by a space... " >&6; }
42529    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
42530    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
42531    ac_cxx_werror_flag=yes
42532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42533/* end confdefs.h.  */
42534
42535int
42536main ()
42537{
42538
42539  ;
42540  return 0;
42541}
42542_ACEOF
42543if ac_fn_cxx_try_link "$LINENO"; then :
42544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42545$as_echo "no" >&6; }
42546       X_LIBS="$X_LIBS -R$x_libraries"
42547else
42548  LIBS="$ac_xsave_LIBS -R $x_libraries"
42549       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42550/* end confdefs.h.  */
42551
42552int
42553main ()
42554{
42555
42556  ;
42557  return 0;
42558}
42559_ACEOF
42560if ac_fn_cxx_try_link "$LINENO"; then :
42561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42562$as_echo "yes" >&6; }
42563	  X_LIBS="$X_LIBS -R $x_libraries"
42564else
42565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
42566$as_echo "neither works" >&6; }
42567fi
42568rm -f core conftest.err conftest.$ac_objext \
42569    conftest$ac_exeext conftest.$ac_ext
42570fi
42571rm -f core conftest.err conftest.$ac_objext \
42572    conftest$ac_exeext conftest.$ac_ext
42573    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
42574    LIBS=$ac_xsave_LIBS
42575  fi
42576
42577  # Check for system-dependent libraries X programs must link with.
42578  # Do this before checking for the system-independent R6 libraries
42579  # (-lICE), since we may need -lsocket or whatever for X linking.
42580
42581  if test "$ISC" = yes; then
42582    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
42583  else
42584    # Martyn Johnson says this is needed for Ultrix, if the X
42585    # libraries were built with DECnet support.  And Karl Berry says
42586    # the Alpha needs dnet_stub (dnet does not exist).
42587    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
42588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42589/* end confdefs.h.  */
42590
42591/* Override any GCC internal prototype to avoid an error.
42592   Use char because int might match the return type of a GCC
42593   builtin and then its argument prototype would still apply.  */
42594#ifdef __cplusplus
42595extern "C"
42596#endif
42597char XOpenDisplay ();
42598int
42599main ()
42600{
42601return XOpenDisplay ();
42602  ;
42603  return 0;
42604}
42605_ACEOF
42606if ac_fn_cxx_try_link "$LINENO"; then :
42607
42608else
42609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
42610$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
42611if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
42612  $as_echo_n "(cached) " >&6
42613else
42614  ac_check_lib_save_LIBS=$LIBS
42615LIBS="-ldnet  $LIBS"
42616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42617/* end confdefs.h.  */
42618
42619/* Override any GCC internal prototype to avoid an error.
42620   Use char because int might match the return type of a GCC
42621   builtin and then its argument prototype would still apply.  */
42622#ifdef __cplusplus
42623extern "C"
42624#endif
42625char dnet_ntoa ();
42626int
42627main ()
42628{
42629return dnet_ntoa ();
42630  ;
42631  return 0;
42632}
42633_ACEOF
42634if ac_fn_cxx_try_link "$LINENO"; then :
42635  ac_cv_lib_dnet_dnet_ntoa=yes
42636else
42637  ac_cv_lib_dnet_dnet_ntoa=no
42638fi
42639rm -f core conftest.err conftest.$ac_objext \
42640    conftest$ac_exeext conftest.$ac_ext
42641LIBS=$ac_check_lib_save_LIBS
42642fi
42643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
42644$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
42645if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
42646  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
42647fi
42648
42649    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
42650      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
42651$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
42652if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
42653  $as_echo_n "(cached) " >&6
42654else
42655  ac_check_lib_save_LIBS=$LIBS
42656LIBS="-ldnet_stub  $LIBS"
42657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42658/* end confdefs.h.  */
42659
42660/* Override any GCC internal prototype to avoid an error.
42661   Use char because int might match the return type of a GCC
42662   builtin and then its argument prototype would still apply.  */
42663#ifdef __cplusplus
42664extern "C"
42665#endif
42666char dnet_ntoa ();
42667int
42668main ()
42669{
42670return dnet_ntoa ();
42671  ;
42672  return 0;
42673}
42674_ACEOF
42675if ac_fn_cxx_try_link "$LINENO"; then :
42676  ac_cv_lib_dnet_stub_dnet_ntoa=yes
42677else
42678  ac_cv_lib_dnet_stub_dnet_ntoa=no
42679fi
42680rm -f core conftest.err conftest.$ac_objext \
42681    conftest$ac_exeext conftest.$ac_ext
42682LIBS=$ac_check_lib_save_LIBS
42683fi
42684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
42685$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
42686if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
42687  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
42688fi
42689
42690    fi
42691fi
42692rm -f core conftest.err conftest.$ac_objext \
42693    conftest$ac_exeext conftest.$ac_ext
42694    LIBS="$ac_xsave_LIBS"
42695
42696    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
42697    # to get the SysV transport functions.
42698    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
42699    # needs -lnsl.
42700    # The nsl library prevents programs from opening the X display
42701    # on Irix 5.2, according to T.E. Dickey.
42702    # The functions gethostbyname, getservbyname, and inet_addr are
42703    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
42704    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
42705if test "x$ac_cv_func_gethostbyname" = xyes; then :
42706
42707fi
42708
42709    if test $ac_cv_func_gethostbyname = no; then
42710      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
42711$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
42712if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
42713  $as_echo_n "(cached) " >&6
42714else
42715  ac_check_lib_save_LIBS=$LIBS
42716LIBS="-lnsl  $LIBS"
42717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42718/* end confdefs.h.  */
42719
42720/* Override any GCC internal prototype to avoid an error.
42721   Use char because int might match the return type of a GCC
42722   builtin and then its argument prototype would still apply.  */
42723#ifdef __cplusplus
42724extern "C"
42725#endif
42726char gethostbyname ();
42727int
42728main ()
42729{
42730return gethostbyname ();
42731  ;
42732  return 0;
42733}
42734_ACEOF
42735if ac_fn_cxx_try_link "$LINENO"; then :
42736  ac_cv_lib_nsl_gethostbyname=yes
42737else
42738  ac_cv_lib_nsl_gethostbyname=no
42739fi
42740rm -f core conftest.err conftest.$ac_objext \
42741    conftest$ac_exeext conftest.$ac_ext
42742LIBS=$ac_check_lib_save_LIBS
42743fi
42744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
42745$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
42746if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
42747  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
42748fi
42749
42750      if test $ac_cv_lib_nsl_gethostbyname = no; then
42751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
42752$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
42753if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
42754  $as_echo_n "(cached) " >&6
42755else
42756  ac_check_lib_save_LIBS=$LIBS
42757LIBS="-lbsd  $LIBS"
42758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42759/* end confdefs.h.  */
42760
42761/* Override any GCC internal prototype to avoid an error.
42762   Use char because int might match the return type of a GCC
42763   builtin and then its argument prototype would still apply.  */
42764#ifdef __cplusplus
42765extern "C"
42766#endif
42767char gethostbyname ();
42768int
42769main ()
42770{
42771return gethostbyname ();
42772  ;
42773  return 0;
42774}
42775_ACEOF
42776if ac_fn_cxx_try_link "$LINENO"; then :
42777  ac_cv_lib_bsd_gethostbyname=yes
42778else
42779  ac_cv_lib_bsd_gethostbyname=no
42780fi
42781rm -f core conftest.err conftest.$ac_objext \
42782    conftest$ac_exeext conftest.$ac_ext
42783LIBS=$ac_check_lib_save_LIBS
42784fi
42785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
42786$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
42787if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
42788  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
42789fi
42790
42791      fi
42792    fi
42793
42794    # lieder@skyler.mavd.honeywell.com says without -lsocket,
42795    # socket/setsockopt and other routines are undefined under SCO ODT
42796    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
42797    # on later versions), says Simon Leinen: it contains gethostby*
42798    # variants that don't use the name server (or something).  -lsocket
42799    # must be given before -lnsl if both are needed.  We assume that
42800    # if connect needs -lnsl, so does gethostbyname.
42801    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
42802if test "x$ac_cv_func_connect" = xyes; then :
42803
42804fi
42805
42806    if test $ac_cv_func_connect = no; then
42807      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
42808$as_echo_n "checking for connect in -lsocket... " >&6; }
42809if ${ac_cv_lib_socket_connect+:} false; then :
42810  $as_echo_n "(cached) " >&6
42811else
42812  ac_check_lib_save_LIBS=$LIBS
42813LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
42814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42815/* end confdefs.h.  */
42816
42817/* Override any GCC internal prototype to avoid an error.
42818   Use char because int might match the return type of a GCC
42819   builtin and then its argument prototype would still apply.  */
42820#ifdef __cplusplus
42821extern "C"
42822#endif
42823char connect ();
42824int
42825main ()
42826{
42827return connect ();
42828  ;
42829  return 0;
42830}
42831_ACEOF
42832if ac_fn_cxx_try_link "$LINENO"; then :
42833  ac_cv_lib_socket_connect=yes
42834else
42835  ac_cv_lib_socket_connect=no
42836fi
42837rm -f core conftest.err conftest.$ac_objext \
42838    conftest$ac_exeext conftest.$ac_ext
42839LIBS=$ac_check_lib_save_LIBS
42840fi
42841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
42842$as_echo "$ac_cv_lib_socket_connect" >&6; }
42843if test "x$ac_cv_lib_socket_connect" = xyes; then :
42844  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
42845fi
42846
42847    fi
42848
42849    # Guillermo Gomez says -lposix is necessary on A/UX.
42850    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
42851if test "x$ac_cv_func_remove" = xyes; then :
42852
42853fi
42854
42855    if test $ac_cv_func_remove = no; then
42856      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
42857$as_echo_n "checking for remove in -lposix... " >&6; }
42858if ${ac_cv_lib_posix_remove+:} false; then :
42859  $as_echo_n "(cached) " >&6
42860else
42861  ac_check_lib_save_LIBS=$LIBS
42862LIBS="-lposix  $LIBS"
42863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42864/* end confdefs.h.  */
42865
42866/* Override any GCC internal prototype to avoid an error.
42867   Use char because int might match the return type of a GCC
42868   builtin and then its argument prototype would still apply.  */
42869#ifdef __cplusplus
42870extern "C"
42871#endif
42872char remove ();
42873int
42874main ()
42875{
42876return remove ();
42877  ;
42878  return 0;
42879}
42880_ACEOF
42881if ac_fn_cxx_try_link "$LINENO"; then :
42882  ac_cv_lib_posix_remove=yes
42883else
42884  ac_cv_lib_posix_remove=no
42885fi
42886rm -f core conftest.err conftest.$ac_objext \
42887    conftest$ac_exeext conftest.$ac_ext
42888LIBS=$ac_check_lib_save_LIBS
42889fi
42890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
42891$as_echo "$ac_cv_lib_posix_remove" >&6; }
42892if test "x$ac_cv_lib_posix_remove" = xyes; then :
42893  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
42894fi
42895
42896    fi
42897
42898    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
42899    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
42900if test "x$ac_cv_func_shmat" = xyes; then :
42901
42902fi
42903
42904    if test $ac_cv_func_shmat = no; then
42905      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
42906$as_echo_n "checking for shmat in -lipc... " >&6; }
42907if ${ac_cv_lib_ipc_shmat+:} false; then :
42908  $as_echo_n "(cached) " >&6
42909else
42910  ac_check_lib_save_LIBS=$LIBS
42911LIBS="-lipc  $LIBS"
42912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42913/* end confdefs.h.  */
42914
42915/* Override any GCC internal prototype to avoid an error.
42916   Use char because int might match the return type of a GCC
42917   builtin and then its argument prototype would still apply.  */
42918#ifdef __cplusplus
42919extern "C"
42920#endif
42921char shmat ();
42922int
42923main ()
42924{
42925return shmat ();
42926  ;
42927  return 0;
42928}
42929_ACEOF
42930if ac_fn_cxx_try_link "$LINENO"; then :
42931  ac_cv_lib_ipc_shmat=yes
42932else
42933  ac_cv_lib_ipc_shmat=no
42934fi
42935rm -f core conftest.err conftest.$ac_objext \
42936    conftest$ac_exeext conftest.$ac_ext
42937LIBS=$ac_check_lib_save_LIBS
42938fi
42939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
42940$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
42941if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
42942  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
42943fi
42944
42945    fi
42946  fi
42947
42948  # Check for libraries that X11R6 Xt/Xaw programs need.
42949  ac_save_LDFLAGS=$LDFLAGS
42950  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
42951  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
42952  # check for ICE first), but we must link in the order -lSM -lICE or
42953  # we get undefined symbols.  So assume we have SM if we have ICE.
42954  # These have to be linked with before -lX11, unlike the other
42955  # libraries we check for below, so use a different variable.
42956  # John Interrante, Karl Berry
42957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
42958$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
42959if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
42960  $as_echo_n "(cached) " >&6
42961else
42962  ac_check_lib_save_LIBS=$LIBS
42963LIBS="-lICE $X_EXTRA_LIBS $LIBS"
42964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42965/* end confdefs.h.  */
42966
42967/* Override any GCC internal prototype to avoid an error.
42968   Use char because int might match the return type of a GCC
42969   builtin and then its argument prototype would still apply.  */
42970#ifdef __cplusplus
42971extern "C"
42972#endif
42973char IceConnectionNumber ();
42974int
42975main ()
42976{
42977return IceConnectionNumber ();
42978  ;
42979  return 0;
42980}
42981_ACEOF
42982if ac_fn_cxx_try_link "$LINENO"; then :
42983  ac_cv_lib_ICE_IceConnectionNumber=yes
42984else
42985  ac_cv_lib_ICE_IceConnectionNumber=no
42986fi
42987rm -f core conftest.err conftest.$ac_objext \
42988    conftest$ac_exeext conftest.$ac_ext
42989LIBS=$ac_check_lib_save_LIBS
42990fi
42991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
42992$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
42993if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
42994  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
42995fi
42996
42997  LDFLAGS=$ac_save_LDFLAGS
42998
42999fi
43000
43001
43002  # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling
43003  # this doesn't make sense so we remove it.
43004  if test "x$COMPILE_TYPE" = xcross; then
43005    X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'`
43006  fi
43007
43008  if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
43009
43010  # Print a helpful message on how to acquire the necessary build dependency.
43011  # x11 is the help tag: freetype, cups, pulse, alsa etc
43012  MISSING_DEPENDENCY=x11
43013
43014  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43015    cygwin_help $MISSING_DEPENDENCY
43016  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43017    msys_help $MISSING_DEPENDENCY
43018  else
43019    PKGHANDLER_COMMAND=
43020
43021    case $PKGHANDLER in
43022      apt-get)
43023        apt_help     $MISSING_DEPENDENCY ;;
43024      yum)
43025        yum_help     $MISSING_DEPENDENCY ;;
43026      port)
43027        port_help    $MISSING_DEPENDENCY ;;
43028      pkgutil)
43029        pkgutil_help $MISSING_DEPENDENCY ;;
43030      pkgadd)
43031        pkgadd_help  $MISSING_DEPENDENCY ;;
43032    esac
43033
43034    if test "x$PKGHANDLER_COMMAND" != x; then
43035      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43036    fi
43037  fi
43038
43039    as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
43040  fi
43041
43042  if test "x$OPENJDK_TARGET_OS" = xsolaris; then
43043    OPENWIN_HOME="/usr/openwin"
43044    X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions"
43045    X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \
43046        -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \
43047        -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \
43048        -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR"
43049  fi
43050
43051  #
43052  # Weird Sol10 something check...TODO change to try compile
43053  #
43054  if test "x${OPENJDK_TARGET_OS}" = xsolaris; then
43055    if test "`uname -r`" = "5.10"; then
43056      if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
43057        X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
43058      fi
43059    fi
43060  fi
43061
43062  ac_ext=c
43063ac_cpp='$CPP $CPPFLAGS'
43064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43066ac_compiler_gnu=$ac_cv_c_compiler_gnu
43067
43068  OLD_CFLAGS="$CFLAGS"
43069  CFLAGS="$CFLAGS $X_CFLAGS"
43070
43071  # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
43072  for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h
43073do :
43074  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43075ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
43076        # include <X11/Xlib.h>
43077        # include <X11/Xutil.h>
43078
43079
43080"
43081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43082  cat >>confdefs.h <<_ACEOF
43083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43084_ACEOF
43085 X11_A_OK=yes
43086else
43087  X11_A_OK=no; break
43088fi
43089
43090done
43091
43092
43093  CFLAGS="$OLD_CFLAGS"
43094  ac_ext=cpp
43095ac_cpp='$CXXCPP $CPPFLAGS'
43096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43099
43100
43101  if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
43102
43103  # Print a helpful message on how to acquire the necessary build dependency.
43104  # x11 is the help tag: freetype, cups, pulse, alsa etc
43105  MISSING_DEPENDENCY=x11
43106
43107  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43108    cygwin_help $MISSING_DEPENDENCY
43109  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43110    msys_help $MISSING_DEPENDENCY
43111  else
43112    PKGHANDLER_COMMAND=
43113
43114    case $PKGHANDLER in
43115      apt-get)
43116        apt_help     $MISSING_DEPENDENCY ;;
43117      yum)
43118        yum_help     $MISSING_DEPENDENCY ;;
43119      port)
43120        port_help    $MISSING_DEPENDENCY ;;
43121      pkgutil)
43122        pkgutil_help $MISSING_DEPENDENCY ;;
43123      pkgadd)
43124        pkgadd_help  $MISSING_DEPENDENCY ;;
43125    esac
43126
43127    if test "x$PKGHANDLER_COMMAND" != x; then
43128      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43129    fi
43130  fi
43131
43132    as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5
43133  fi
43134
43135
43136
43137
43138
43139
43140  ###############################################################################
43141  #
43142  # The common unix printing system cups is used to print from java.
43143  #
43144
43145# Check whether --with-cups was given.
43146if test "${with_cups+set}" = set; then :
43147  withval=$with_cups;
43148fi
43149
43150
43151# Check whether --with-cups-include was given.
43152if test "${with_cups_include+set}" = set; then :
43153  withval=$with_cups_include;
43154fi
43155
43156
43157  if test "x$CUPS_NOT_NEEDED" = xyes; then
43158    if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then
43159      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
43160$as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
43161    fi
43162    CUPS_CFLAGS=
43163  else
43164    CUPS_FOUND=no
43165
43166    if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then
43167      as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
43168    fi
43169
43170    if test "x${with_cups}" != x; then
43171      CUPS_CFLAGS="-I${with_cups}/include"
43172      CUPS_FOUND=yes
43173    fi
43174    if test "x${with_cups_include}" != x; then
43175      CUPS_CFLAGS="-I${with_cups_include}"
43176      CUPS_FOUND=yes
43177    fi
43178    if test "x$CUPS_FOUND" = xno; then
43179
43180
43181  if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43182    # Source the builddeps file again, to make sure it uses the latest variables!
43183    . $builddepsfile
43184    # Look for a target and build machine specific resource!
43185    eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
43186    if test "x$resource" = x; then
43187      # Ok, lets instead look for a target specific resource
43188      eval resource=\${builddep_cups_TARGET_${rewritten_target_var}}
43189    fi
43190    if test "x$resource" = x; then
43191      # Ok, lets instead look for a build specific resource
43192      eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
43193    fi
43194    if test "x$resource" = x; then
43195      # Ok, lets instead look for a generic resource
43196      # (The cups comes from M4 and not the shell, thus no need for eval here.)
43197      resource=${builddep_cups}
43198    fi
43199    if test "x$resource" != x; then
43200      { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
43201$as_echo "$as_me: Using builddeps $resource for cups" >&6;}
43202      # If the resource in the builddeps.conf file is an existing directory,
43203      # for example /java/linux/cups
43204      if test -d ${resource}; then
43205        depdir=${resource}
43206      else
43207
43208  # cups is for example mymodule
43209  # $resource is for example libs/general/libmymod_1_2_3.zip
43210  # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
43211  # $with_builddeps_dir is for example /localhome/builddeps
43212  # depdir is the name of the variable into which we store the depdir, eg MYMOD
43213  # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
43214  # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
43215  filename=`basename $resource`
43216  filebase=`echo $filename | sed 's/\.[^\.]*$//'`
43217  filebase=${filename%%.*}
43218  extension=${filename#*.}
43219  installdir=$with_builddeps_dir/$filebase
43220  if test ! -f $installdir/$filename.unpacked; then
43221    { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
43222$as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
43223    if test ! -d $installdir; then
43224      mkdir -p $installdir
43225    fi
43226    if test ! -d $installdir; then
43227      as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
43228    fi
43229    tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
43230    touch $tmpfile
43231    if test ! -f $tmpfile; then
43232      as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
43233    fi
43234
43235  # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
43236  # $tmpfile is the local file name for the downloaded file.
43237  VALID_TOOL=no
43238  if test "x$BDEPS_FTP" = xwget; then
43239    VALID_TOOL=yes
43240    wget -O $tmpfile $with_builddeps_server/$resource
43241  fi
43242  if test "x$BDEPS_FTP" = xlftp; then
43243    VALID_TOOL=yes
43244    lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
43245  fi
43246  if test "x$BDEPS_FTP" = xftp; then
43247    VALID_TOOL=yes
43248    FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
43249    FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
43250    FTPUSERPWD=${FTPSERVER%%@*}
43251    if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
43252      FTPUSER=${userpwd%%:*}
43253      FTPPWD=${userpwd#*@}
43254      FTPSERVER=${FTPSERVER#*@}
43255    else
43256      FTPUSER=ftp
43257      FTPPWD=ftp
43258    fi
43259    # the "pass" command does not work on some
43260    # ftp clients (read ftp.exe) but if it works,
43261    # passive mode is better!
43262    ( \
43263        echo "user $FTPUSER $FTPPWD"        ; \
43264        echo "pass"                         ; \
43265        echo "bin"                          ; \
43266        echo "get $FTPPATH $tmpfile"              ; \
43267    ) | ftp -in $FTPSERVER
43268  fi
43269  if test "x$VALID_TOOL" != xyes; then
43270    as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
43271  fi
43272
43273    mv $tmpfile $installdir/$filename
43274    if test ! -s $installdir/$filename; then
43275      as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
43276    fi
43277    case "$extension" in
43278      zip)  echo "Unzipping $installdir/$filename..."
43279        (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
43280        ;;
43281      tar.gz) echo "Untaring $installdir/$filename..."
43282        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43283        ;;
43284      tgz) echo "Untaring $installdir/$filename..."
43285        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43286        ;;
43287      *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
43288        ;;
43289    esac
43290  fi
43291  if test -f $installdir/$filename.unpacked; then
43292    depdir=$installdir
43293  fi
43294
43295      fi
43296      # Source the builddeps file again, because in the previous command, the depdir
43297      # was updated to point at the current build dependency install directory.
43298      . $builddepsfile
43299      # Now extract variables from the builddeps.conf files.
43300      theroot=${builddep_cups_ROOT}
43301      thecflags=${builddep_cups_CFLAGS}
43302      thelibs=${builddep_cups_LIBS}
43303      if test "x$depdir" = x; then
43304        as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
43305      fi
43306      CUPS=$depdir
43307      if test "x$theroot" != x; then
43308        CUPS="$theroot"
43309      fi
43310      if test "x$thecflags" != x; then
43311        CUPS_CFLAGS="$thecflags"
43312      fi
43313      if test "x$thelibs" != x; then
43314        CUPS_LIBS="$thelibs"
43315      fi
43316      CUPS_FOUND=yes
43317
43318    fi
43319
43320  fi
43321
43322    fi
43323    if test "x$CUPS_FOUND" = xno; then
43324      # Are the cups headers installed in the default /usr/include location?
43325      for ac_header in cups/cups.h cups/ppd.h
43326do :
43327  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43328ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
43329if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43330  cat >>confdefs.h <<_ACEOF
43331#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43332_ACEOF
43333
43334            CUPS_FOUND=yes
43335            CUPS_CFLAGS=
43336            DEFAULT_CUPS=yes
43337
43338
43339fi
43340
43341done
43342
43343    fi
43344    if test "x$CUPS_FOUND" = xno; then
43345      # Getting nervous now? Lets poke around for standard Solaris third-party
43346      # package installation locations.
43347      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5
43348$as_echo_n "checking for cups headers... " >&6; }
43349      if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then
43350        # An SFW package seems to be installed!
43351        CUPS_FOUND=yes
43352        CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include"
43353      elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then
43354        # A CSW package seems to be installed!
43355        CUPS_FOUND=yes
43356        CUPS_CFLAGS="-I$SYSROOT/opt/csw/include"
43357      fi
43358      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
43359$as_echo "$CUPS_FOUND" >&6; }
43360    fi
43361    if test "x$CUPS_FOUND" = xno; then
43362
43363  # Print a helpful message on how to acquire the necessary build dependency.
43364  # cups is the help tag: freetype, cups, pulse, alsa etc
43365  MISSING_DEPENDENCY=cups
43366
43367  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43368    cygwin_help $MISSING_DEPENDENCY
43369  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43370    msys_help $MISSING_DEPENDENCY
43371  else
43372    PKGHANDLER_COMMAND=
43373
43374    case $PKGHANDLER in
43375      apt-get)
43376        apt_help     $MISSING_DEPENDENCY ;;
43377      yum)
43378        yum_help     $MISSING_DEPENDENCY ;;
43379      port)
43380        port_help    $MISSING_DEPENDENCY ;;
43381      pkgutil)
43382        pkgutil_help $MISSING_DEPENDENCY ;;
43383      pkgadd)
43384        pkgadd_help  $MISSING_DEPENDENCY ;;
43385    esac
43386
43387    if test "x$PKGHANDLER_COMMAND" != x; then
43388      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
43389    fi
43390  fi
43391
43392      as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
43393    fi
43394  fi
43395
43396
43397
43398
43399
43400
43401  ###############################################################################
43402  #
43403  # The ubiquitous freetype library is used to render fonts.
43404  #
43405
43406# Check whether --with-freetype was given.
43407if test "${with_freetype+set}" = set; then :
43408  withval=$with_freetype;
43409fi
43410
43411
43412# Check whether --with-freetype-include was given.
43413if test "${with_freetype_include+set}" = set; then :
43414  withval=$with_freetype_include;
43415fi
43416
43417
43418# Check whether --with-freetype-lib was given.
43419if test "${with_freetype_lib+set}" = set; then :
43420  withval=$with_freetype_lib;
43421fi
43422
43423  # Check whether --enable-freetype-bundling was given.
43424if test "${enable_freetype_bundling+set}" = set; then :
43425  enableval=$enable_freetype_bundling;
43426fi
43427
43428
43429  FREETYPE_CFLAGS=
43430  FREETYPE_LIBS=
43431  FREETYPE_BUNDLE_LIB_PATH=
43432
43433  if test "x$FREETYPE_NOT_NEEDED" = xyes; then
43434    if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43435      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
43436$as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
43437    fi
43438    if test "x$enable_freetype_bundling" != x; then
43439      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5
43440$as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;}
43441    fi
43442  else
43443    # freetype is needed to build; go get it!
43444
43445    BUNDLE_FREETYPE="$enable_freetype_bundling"
43446
43447    if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
43448      # User has specified settings
43449
43450      if test "x$BUNDLE_FREETYPE" = x; then
43451        # If not specified, default is to bundle freetype
43452        BUNDLE_FREETYPE=yes
43453      fi
43454
43455      if test "x$with_freetype" != x; then
43456        POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include"
43457        POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib"
43458      fi
43459
43460      # Allow --with-freetype-lib and --with-freetype-include to override
43461      if test "x$with_freetype_include" != x; then
43462        POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include"
43463      fi
43464      if test "x$with_freetype_lib" != x; then
43465        POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib"
43466      fi
43467
43468      if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then
43469        # Okay, we got it. Check that it works.
43470
43471  POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43472  POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43473  METHOD="--with-freetype"
43474
43475  # First check if the files exists.
43476  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
43477    # We found an arbitrary include file. That's a good sign.
43478    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
43479$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
43480    FOUND_FREETYPE=yes
43481
43482    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
43483    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
43484      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
43485$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
43486      FOUND_FREETYPE=no
43487    else
43488      if test "x$OPENJDK_TARGET_OS" = xwindows; then
43489        # On Windows, we will need both .lib and .dll file.
43490        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
43491          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
43492$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
43493          FOUND_FREETYPE=no
43494        fi
43495      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
43496        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
43497        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
43498      fi
43499    fi
43500  fi
43501
43502  if test "x$FOUND_FREETYPE" = xyes; then
43503
43504  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43505
43506  # Input might be given as Windows format, start by converting to
43507  # unix format.
43508  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43509  new_path=`$CYGPATH -u "$path"`
43510
43511  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43512  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43513  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43514  # "foo.exe" is OK but "foo" is an error.
43515  #
43516  # This test is therefore slightly more accurate than "test -f" to check for file precense.
43517  # It is also a way to make sure we got the proper file name for the real test later on.
43518  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43519  if test "x$test_shortpath" = x; then
43520    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43521$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43522    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
43523  fi
43524
43525  # Call helper function which possibly converts this using DOS-style short mode.
43526  # If so, the updated path is stored in $new_path.
43527
43528  input_path="$new_path"
43529  # Check if we need to convert this using DOS-style short mode. If the path
43530  # contains just simple characters, use it. Otherwise (spaces, weird characters),
43531  # take no chances and rewrite it.
43532  # Note: m4 eats our [], so we need to use [ and ] instead.
43533  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43534  if test "x$has_forbidden_chars" != x; then
43535    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43536    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43537    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43538    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43539      # Going to short mode and back again did indeed matter. Since short mode is
43540      # case insensitive, let's make it lowercase to improve readability.
43541      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43542      # Now convert it back to Unix-stile (cygpath)
43543      input_path=`$CYGPATH -u "$shortmode_path"`
43544      new_path="$input_path"
43545    fi
43546  fi
43547
43548  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43549  if test "x$test_cygdrive_prefix" = x; then
43550    # As a simple fix, exclude /usr/bin since it's not a real path.
43551    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43552      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43553      # a path prefixed by /cygdrive for fixpath to work.
43554      new_path="$CYGWIN_ROOT_PATH$input_path"
43555    fi
43556  fi
43557
43558
43559  if test "x$path" != "x$new_path"; then
43560    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43561    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43562$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43563  fi
43564
43565  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43566
43567  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43568  has_colon=`$ECHO $path | $GREP ^.:`
43569  new_path="$path"
43570  if test "x$has_colon" = x; then
43571    # Not in mixed or Windows style, start by that.
43572    new_path=`cmd //c echo $path`
43573  fi
43574
43575
43576  input_path="$new_path"
43577  # Check if we need to convert this using DOS-style short mode. If the path
43578  # contains just simple characters, use it. Otherwise (spaces, weird characters),
43579  # take no chances and rewrite it.
43580  # Note: m4 eats our [], so we need to use [ and ] instead.
43581  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43582  if test "x$has_forbidden_chars" != x; then
43583    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43584    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43585  fi
43586
43587
43588  windows_path="$new_path"
43589  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43590    unix_path=`$CYGPATH -u "$windows_path"`
43591    new_path="$unix_path"
43592  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43593    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43594    new_path="$unix_path"
43595  fi
43596
43597  if test "x$path" != "x$new_path"; then
43598    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
43599    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
43600$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
43601  fi
43602
43603  # Save the first 10 bytes of this path to the storage, so fixpath can work.
43604  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43605
43606  else
43607    # We're on a posix platform. Hooray! :)
43608    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43609    has_space=`$ECHO "$path" | $GREP " "`
43610    if test "x$has_space" != x; then
43611      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
43612$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
43613      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43614    fi
43615
43616    # Use eval to expand a potential ~
43617    eval path="$path"
43618    if test ! -f "$path" && test ! -d "$path"; then
43619      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43620    fi
43621
43622    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
43623  fi
43624
43625
43626  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43627
43628  # Input might be given as Windows format, start by converting to
43629  # unix format.
43630  path="$POTENTIAL_FREETYPE_LIB_PATH"
43631  new_path=`$CYGPATH -u "$path"`
43632
43633  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
43634  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
43635  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
43636  # "foo.exe" is OK but "foo" is an error.
43637  #
43638  # This test is therefore slightly more accurate than "test -f" to check for file precense.
43639  # It is also a way to make sure we got the proper file name for the real test later on.
43640  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
43641  if test "x$test_shortpath" = x; then
43642    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43643$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43644    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
43645  fi
43646
43647  # Call helper function which possibly converts this using DOS-style short mode.
43648  # If so, the updated path is stored in $new_path.
43649
43650  input_path="$new_path"
43651  # Check if we need to convert this using DOS-style short mode. If the path
43652  # contains just simple characters, use it. Otherwise (spaces, weird characters),
43653  # take no chances and rewrite it.
43654  # Note: m4 eats our [], so we need to use [ and ] instead.
43655  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
43656  if test "x$has_forbidden_chars" != x; then
43657    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43658    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
43659    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
43660    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
43661      # Going to short mode and back again did indeed matter. Since short mode is
43662      # case insensitive, let's make it lowercase to improve readability.
43663      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43664      # Now convert it back to Unix-stile (cygpath)
43665      input_path=`$CYGPATH -u "$shortmode_path"`
43666      new_path="$input_path"
43667    fi
43668  fi
43669
43670  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
43671  if test "x$test_cygdrive_prefix" = x; then
43672    # As a simple fix, exclude /usr/bin since it's not a real path.
43673    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
43674      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
43675      # a path prefixed by /cygdrive for fixpath to work.
43676      new_path="$CYGWIN_ROOT_PATH$input_path"
43677    fi
43678  fi
43679
43680
43681  if test "x$path" != "x$new_path"; then
43682    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43683    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43684$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43685  fi
43686
43687  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43688
43689  path="$POTENTIAL_FREETYPE_LIB_PATH"
43690  has_colon=`$ECHO $path | $GREP ^.:`
43691  new_path="$path"
43692  if test "x$has_colon" = x; then
43693    # Not in mixed or Windows style, start by that.
43694    new_path=`cmd //c echo $path`
43695  fi
43696
43697
43698  input_path="$new_path"
43699  # Check if we need to convert this using DOS-style short mode. If the path
43700  # contains just simple characters, use it. Otherwise (spaces, weird characters),
43701  # take no chances and rewrite it.
43702  # Note: m4 eats our [], so we need to use [ and ] instead.
43703  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
43704  if test "x$has_forbidden_chars" != x; then
43705    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
43706    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
43707  fi
43708
43709
43710  windows_path="$new_path"
43711  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
43712    unix_path=`$CYGPATH -u "$windows_path"`
43713    new_path="$unix_path"
43714  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
43715    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
43716    new_path="$unix_path"
43717  fi
43718
43719  if test "x$path" != "x$new_path"; then
43720    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
43721    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
43722$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
43723  fi
43724
43725  # Save the first 10 bytes of this path to the storage, so fixpath can work.
43726  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
43727
43728  else
43729    # We're on a posix platform. Hooray! :)
43730    path="$POTENTIAL_FREETYPE_LIB_PATH"
43731    has_space=`$ECHO "$path" | $GREP " "`
43732    if test "x$has_space" != x; then
43733      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
43734$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
43735      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
43736    fi
43737
43738    # Use eval to expand a potential ~
43739    eval path="$path"
43740    if test ! -f "$path" && test ! -d "$path"; then
43741      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
43742    fi
43743
43744    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
43745  fi
43746
43747
43748    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
43749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
43750$as_echo_n "checking for freetype includes... " >&6; }
43751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
43752$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
43753    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
43754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
43755$as_echo_n "checking for freetype libraries... " >&6; }
43756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
43757$as_echo "$FREETYPE_LIB_PATH" >&6; }
43758  fi
43759
43760        if test "x$FOUND_FREETYPE" != xyes; then
43761          as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5
43762        fi
43763      else
43764        # User specified only one of lib or include. This is an error.
43765        if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then
43766          { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5
43767$as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;}
43768          as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43769        else
43770          { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5
43771$as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;}
43772          as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5
43773        fi
43774      fi
43775    else
43776      # User did not specify settings, but we need freetype. Try to locate it.
43777
43778      if test "x$BUNDLE_FREETYPE" = x; then
43779        # If not specified, default is to bundle freetype only on windows
43780        if test "x$OPENJDK_TARGET_OS" = xwindows; then
43781          BUNDLE_FREETYPE=yes
43782        else
43783          BUNDLE_FREETYPE=no
43784        fi
43785      fi
43786
43787      if test "x$FOUND_FREETYPE" != xyes; then
43788        # Check builddeps
43789
43790
43791  if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
43792    # Source the builddeps file again, to make sure it uses the latest variables!
43793    . $builddepsfile
43794    # Look for a target and build machine specific resource!
43795    eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
43796    if test "x$resource" = x; then
43797      # Ok, lets instead look for a target specific resource
43798      eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}}
43799    fi
43800    if test "x$resource" = x; then
43801      # Ok, lets instead look for a build specific resource
43802      eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
43803    fi
43804    if test "x$resource" = x; then
43805      # Ok, lets instead look for a generic resource
43806      # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
43807      resource=${builddep_freetype2}
43808    fi
43809    if test "x$resource" != x; then
43810      { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
43811$as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
43812      # If the resource in the builddeps.conf file is an existing directory,
43813      # for example /java/linux/cups
43814      if test -d ${resource}; then
43815        depdir=${resource}
43816      else
43817
43818  # freetype2 is for example mymodule
43819  # $resource is for example libs/general/libmymod_1_2_3.zip
43820  # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
43821  # $with_builddeps_dir is for example /localhome/builddeps
43822  # depdir is the name of the variable into which we store the depdir, eg MYMOD
43823  # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
43824  # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
43825  filename=`basename $resource`
43826  filebase=`echo $filename | sed 's/\.[^\.]*$//'`
43827  filebase=${filename%%.*}
43828  extension=${filename#*.}
43829  installdir=$with_builddeps_dir/$filebase
43830  if test ! -f $installdir/$filename.unpacked; then
43831    { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
43832$as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
43833    if test ! -d $installdir; then
43834      mkdir -p $installdir
43835    fi
43836    if test ! -d $installdir; then
43837      as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
43838    fi
43839    tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
43840    touch $tmpfile
43841    if test ! -f $tmpfile; then
43842      as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
43843    fi
43844
43845  # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
43846  # $tmpfile is the local file name for the downloaded file.
43847  VALID_TOOL=no
43848  if test "x$BDEPS_FTP" = xwget; then
43849    VALID_TOOL=yes
43850    wget -O $tmpfile $with_builddeps_server/$resource
43851  fi
43852  if test "x$BDEPS_FTP" = xlftp; then
43853    VALID_TOOL=yes
43854    lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
43855  fi
43856  if test "x$BDEPS_FTP" = xftp; then
43857    VALID_TOOL=yes
43858    FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
43859    FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
43860    FTPUSERPWD=${FTPSERVER%%@*}
43861    if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
43862      FTPUSER=${userpwd%%:*}
43863      FTPPWD=${userpwd#*@}
43864      FTPSERVER=${FTPSERVER#*@}
43865    else
43866      FTPUSER=ftp
43867      FTPPWD=ftp
43868    fi
43869    # the "pass" command does not work on some
43870    # ftp clients (read ftp.exe) but if it works,
43871    # passive mode is better!
43872    ( \
43873        echo "user $FTPUSER $FTPPWD"        ; \
43874        echo "pass"                         ; \
43875        echo "bin"                          ; \
43876        echo "get $FTPPATH $tmpfile"              ; \
43877    ) | ftp -in $FTPSERVER
43878  fi
43879  if test "x$VALID_TOOL" != xyes; then
43880    as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
43881  fi
43882
43883    mv $tmpfile $installdir/$filename
43884    if test ! -s $installdir/$filename; then
43885      as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
43886    fi
43887    case "$extension" in
43888      zip)  echo "Unzipping $installdir/$filename..."
43889        (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
43890        ;;
43891      tar.gz) echo "Untaring $installdir/$filename..."
43892        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43893        ;;
43894      tgz) echo "Untaring $installdir/$filename..."
43895        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
43896        ;;
43897      *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
43898        ;;
43899    esac
43900  fi
43901  if test -f $installdir/$filename.unpacked; then
43902    depdir=$installdir
43903  fi
43904
43905      fi
43906      # Source the builddeps file again, because in the previous command, the depdir
43907      # was updated to point at the current build dependency install directory.
43908      . $builddepsfile
43909      # Now extract variables from the builddeps.conf files.
43910      theroot=${builddep_freetype2_ROOT}
43911      thecflags=${builddep_freetype2_CFLAGS}
43912      thelibs=${builddep_freetype2_LIBS}
43913      if test "x$depdir" = x; then
43914        as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
43915      fi
43916      FREETYPE=$depdir
43917      if test "x$theroot" != x; then
43918        FREETYPE="$theroot"
43919      fi
43920      if test "x$thecflags" != x; then
43921        FREETYPE_CFLAGS="$thecflags"
43922      fi
43923      if test "x$thelibs" != x; then
43924        FREETYPE_LIBS="$thelibs"
43925      fi
43926      FOUND_FREETYPE=yes
43927      else FOUND_FREETYPE=no
43928
43929    fi
43930    else FOUND_FREETYPE=no
43931
43932  fi
43933
43934        # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
43935        if test "x$FOUND_FREETYPE" = xyes; then
43936          if test "x$BUNDLE_FREETYPE" = xyes; then
43937            { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5
43938$as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;}
43939            FOUND_FREETYPE=no
43940          else
43941            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
43942$as_echo_n "checking for freetype... " >&6; }
43943            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5
43944$as_echo "yes (using builddeps)" >&6; }
43945          fi
43946        fi
43947      fi
43948
43949      # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config.
43950      if test "x$SYSROOT" = x; then
43951        if test "x$FOUND_FREETYPE" != xyes; then
43952          # Check modules using pkg-config, but only if we have it (ugly output results otherwise)
43953          if test "x$PKG_CONFIG" != x; then
43954
43955pkg_failed=no
43956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
43957$as_echo_n "checking for FREETYPE... " >&6; }
43958
43959if test -n "$FREETYPE_CFLAGS"; then
43960    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
43961 elif test -n "$PKG_CONFIG"; then
43962    if test -n "$PKG_CONFIG" && \
43963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
43964  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
43965  ac_status=$?
43966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43967  test $ac_status = 0; }; then
43968  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
43969else
43970  pkg_failed=yes
43971fi
43972 else
43973    pkg_failed=untried
43974fi
43975if test -n "$FREETYPE_LIBS"; then
43976    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
43977 elif test -n "$PKG_CONFIG"; then
43978    if test -n "$PKG_CONFIG" && \
43979    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
43980  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
43981  ac_status=$?
43982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
43983  test $ac_status = 0; }; then
43984  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
43985else
43986  pkg_failed=yes
43987fi
43988 else
43989    pkg_failed=untried
43990fi
43991
43992
43993
43994if test $pkg_failed = yes; then
43995
43996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43997        _pkg_short_errors_supported=yes
43998else
43999        _pkg_short_errors_supported=no
44000fi
44001        if test $_pkg_short_errors_supported = yes; then
44002	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
44003        else
44004	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
44005        fi
44006	# Put the nasty error message in config.log where it belongs
44007	echo "$FREETYPE_PKG_ERRORS" >&5
44008
44009	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44010$as_echo "no" >&6; }
44011                FOUND_FREETYPE=no
44012elif test $pkg_failed = untried; then
44013	FOUND_FREETYPE=no
44014else
44015	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
44016	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
44017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44018$as_echo "yes" >&6; }
44019	FOUND_FREETYPE=yes
44020fi
44021            if test "x$FOUND_FREETYPE" = xyes; then
44022              # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us.
44023              FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'`
44024              # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64
44025              if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
44026                FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'`
44027              fi
44028              # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling.
44029              if test "x$BUNDLE_FREETYPE" = xyes; then
44030                { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5
44031$as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;}
44032                FOUND_FREETYPE=no
44033              else
44034                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5
44035$as_echo_n "checking for freetype... " >&6; }
44036                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5
44037$as_echo "yes (using pkg-config)" >&6; }
44038              fi
44039            fi
44040          fi
44041        fi
44042      fi
44043
44044      if test "x$FOUND_FREETYPE" != xyes; then
44045        # Check in well-known locations
44046        if test "x$OPENJDK_TARGET_OS" = xwindows; then
44047          FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32"
44048
44049  windows_path="$FREETYPE_BASE_DIR"
44050  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44051    unix_path=`$CYGPATH -u "$windows_path"`
44052    FREETYPE_BASE_DIR="$unix_path"
44053  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44054    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44055    FREETYPE_BASE_DIR="$unix_path"
44056  fi
44057
44058
44059  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44060  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44061  METHOD="well-known location"
44062
44063  # First check if the files exists.
44064  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44065    # We found an arbitrary include file. That's a good sign.
44066    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44067$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44068    FOUND_FREETYPE=yes
44069
44070    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44071    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44072      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44073$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44074      FOUND_FREETYPE=no
44075    else
44076      if test "x$OPENJDK_TARGET_OS" = xwindows; then
44077        # On Windows, we will need both .lib and .dll file.
44078        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44079          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44080$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44081          FOUND_FREETYPE=no
44082        fi
44083      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
44084        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44085        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44086      fi
44087    fi
44088  fi
44089
44090  if test "x$FOUND_FREETYPE" = xyes; then
44091
44092  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44093
44094  # Input might be given as Windows format, start by converting to
44095  # unix format.
44096  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44097  new_path=`$CYGPATH -u "$path"`
44098
44099  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44100  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44101  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44102  # "foo.exe" is OK but "foo" is an error.
44103  #
44104  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44105  # It is also a way to make sure we got the proper file name for the real test later on.
44106  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44107  if test "x$test_shortpath" = x; then
44108    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44109$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44110    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44111  fi
44112
44113  # Call helper function which possibly converts this using DOS-style short mode.
44114  # If so, the updated path is stored in $new_path.
44115
44116  input_path="$new_path"
44117  # Check if we need to convert this using DOS-style short mode. If the path
44118  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44119  # take no chances and rewrite it.
44120  # Note: m4 eats our [], so we need to use [ and ] instead.
44121  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44122  if test "x$has_forbidden_chars" != x; then
44123    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44124    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44125    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44126    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44127      # Going to short mode and back again did indeed matter. Since short mode is
44128      # case insensitive, let's make it lowercase to improve readability.
44129      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44130      # Now convert it back to Unix-stile (cygpath)
44131      input_path=`$CYGPATH -u "$shortmode_path"`
44132      new_path="$input_path"
44133    fi
44134  fi
44135
44136  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44137  if test "x$test_cygdrive_prefix" = x; then
44138    # As a simple fix, exclude /usr/bin since it's not a real path.
44139    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44140      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44141      # a path prefixed by /cygdrive for fixpath to work.
44142      new_path="$CYGWIN_ROOT_PATH$input_path"
44143    fi
44144  fi
44145
44146
44147  if test "x$path" != "x$new_path"; then
44148    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44149    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44150$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44151  fi
44152
44153  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44154
44155  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44156  has_colon=`$ECHO $path | $GREP ^.:`
44157  new_path="$path"
44158  if test "x$has_colon" = x; then
44159    # Not in mixed or Windows style, start by that.
44160    new_path=`cmd //c echo $path`
44161  fi
44162
44163
44164  input_path="$new_path"
44165  # Check if we need to convert this using DOS-style short mode. If the path
44166  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44167  # take no chances and rewrite it.
44168  # Note: m4 eats our [], so we need to use [ and ] instead.
44169  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44170  if test "x$has_forbidden_chars" != x; then
44171    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44172    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44173  fi
44174
44175
44176  windows_path="$new_path"
44177  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44178    unix_path=`$CYGPATH -u "$windows_path"`
44179    new_path="$unix_path"
44180  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44181    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44182    new_path="$unix_path"
44183  fi
44184
44185  if test "x$path" != "x$new_path"; then
44186    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44187    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44188$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44189  fi
44190
44191  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44192  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44193
44194  else
44195    # We're on a posix platform. Hooray! :)
44196    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44197    has_space=`$ECHO "$path" | $GREP " "`
44198    if test "x$has_space" != x; then
44199      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44200$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44201      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44202    fi
44203
44204    # Use eval to expand a potential ~
44205    eval path="$path"
44206    if test ! -f "$path" && test ! -d "$path"; then
44207      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44208    fi
44209
44210    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44211  fi
44212
44213
44214  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44215
44216  # Input might be given as Windows format, start by converting to
44217  # unix format.
44218  path="$POTENTIAL_FREETYPE_LIB_PATH"
44219  new_path=`$CYGPATH -u "$path"`
44220
44221  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44222  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44223  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44224  # "foo.exe" is OK but "foo" is an error.
44225  #
44226  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44227  # It is also a way to make sure we got the proper file name for the real test later on.
44228  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44229  if test "x$test_shortpath" = x; then
44230    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44231$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44232    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44233  fi
44234
44235  # Call helper function which possibly converts this using DOS-style short mode.
44236  # If so, the updated path is stored in $new_path.
44237
44238  input_path="$new_path"
44239  # Check if we need to convert this using DOS-style short mode. If the path
44240  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44241  # take no chances and rewrite it.
44242  # Note: m4 eats our [], so we need to use [ and ] instead.
44243  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44244  if test "x$has_forbidden_chars" != x; then
44245    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44246    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44247    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44248    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44249      # Going to short mode and back again did indeed matter. Since short mode is
44250      # case insensitive, let's make it lowercase to improve readability.
44251      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44252      # Now convert it back to Unix-stile (cygpath)
44253      input_path=`$CYGPATH -u "$shortmode_path"`
44254      new_path="$input_path"
44255    fi
44256  fi
44257
44258  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44259  if test "x$test_cygdrive_prefix" = x; then
44260    # As a simple fix, exclude /usr/bin since it's not a real path.
44261    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44262      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44263      # a path prefixed by /cygdrive for fixpath to work.
44264      new_path="$CYGWIN_ROOT_PATH$input_path"
44265    fi
44266  fi
44267
44268
44269  if test "x$path" != "x$new_path"; then
44270    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44271    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44272$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44273  fi
44274
44275  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44276
44277  path="$POTENTIAL_FREETYPE_LIB_PATH"
44278  has_colon=`$ECHO $path | $GREP ^.:`
44279  new_path="$path"
44280  if test "x$has_colon" = x; then
44281    # Not in mixed or Windows style, start by that.
44282    new_path=`cmd //c echo $path`
44283  fi
44284
44285
44286  input_path="$new_path"
44287  # Check if we need to convert this using DOS-style short mode. If the path
44288  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44289  # take no chances and rewrite it.
44290  # Note: m4 eats our [], so we need to use [ and ] instead.
44291  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44292  if test "x$has_forbidden_chars" != x; then
44293    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44294    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44295  fi
44296
44297
44298  windows_path="$new_path"
44299  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44300    unix_path=`$CYGPATH -u "$windows_path"`
44301    new_path="$unix_path"
44302  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44303    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44304    new_path="$unix_path"
44305  fi
44306
44307  if test "x$path" != "x$new_path"; then
44308    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44309    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44310$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44311  fi
44312
44313  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44314  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44315
44316  else
44317    # We're on a posix platform. Hooray! :)
44318    path="$POTENTIAL_FREETYPE_LIB_PATH"
44319    has_space=`$ECHO "$path" | $GREP " "`
44320    if test "x$has_space" != x; then
44321      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44322$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44323      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44324    fi
44325
44326    # Use eval to expand a potential ~
44327    eval path="$path"
44328    if test ! -f "$path" && test ! -d "$path"; then
44329      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44330    fi
44331
44332    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44333  fi
44334
44335
44336    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44337    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44338$as_echo_n "checking for freetype includes... " >&6; }
44339    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44340$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44341    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44343$as_echo_n "checking for freetype libraries... " >&6; }
44344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44345$as_echo "$FREETYPE_LIB_PATH" >&6; }
44346  fi
44347
44348          if test "x$FOUND_FREETYPE" != xyes; then
44349            FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32"
44350
44351  windows_path="$FREETYPE_BASE_DIR"
44352  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44353    unix_path=`$CYGPATH -u "$windows_path"`
44354    FREETYPE_BASE_DIR="$unix_path"
44355  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44356    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44357    FREETYPE_BASE_DIR="$unix_path"
44358  fi
44359
44360
44361  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44362  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44363  METHOD="well-known location"
44364
44365  # First check if the files exists.
44366  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44367    # We found an arbitrary include file. That's a good sign.
44368    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44369$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44370    FOUND_FREETYPE=yes
44371
44372    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44373    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44374      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44375$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44376      FOUND_FREETYPE=no
44377    else
44378      if test "x$OPENJDK_TARGET_OS" = xwindows; then
44379        # On Windows, we will need both .lib and .dll file.
44380        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44381          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44382$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44383          FOUND_FREETYPE=no
44384        fi
44385      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
44386        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44387        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44388      fi
44389    fi
44390  fi
44391
44392  if test "x$FOUND_FREETYPE" = xyes; then
44393
44394  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44395
44396  # Input might be given as Windows format, start by converting to
44397  # unix format.
44398  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44399  new_path=`$CYGPATH -u "$path"`
44400
44401  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44402  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44403  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44404  # "foo.exe" is OK but "foo" is an error.
44405  #
44406  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44407  # It is also a way to make sure we got the proper file name for the real test later on.
44408  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44409  if test "x$test_shortpath" = x; then
44410    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44411$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44412    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44413  fi
44414
44415  # Call helper function which possibly converts this using DOS-style short mode.
44416  # If so, the updated path is stored in $new_path.
44417
44418  input_path="$new_path"
44419  # Check if we need to convert this using DOS-style short mode. If the path
44420  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44421  # take no chances and rewrite it.
44422  # Note: m4 eats our [], so we need to use [ and ] instead.
44423  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44424  if test "x$has_forbidden_chars" != x; then
44425    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44426    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44427    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44428    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44429      # Going to short mode and back again did indeed matter. Since short mode is
44430      # case insensitive, let's make it lowercase to improve readability.
44431      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44432      # Now convert it back to Unix-stile (cygpath)
44433      input_path=`$CYGPATH -u "$shortmode_path"`
44434      new_path="$input_path"
44435    fi
44436  fi
44437
44438  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44439  if test "x$test_cygdrive_prefix" = x; then
44440    # As a simple fix, exclude /usr/bin since it's not a real path.
44441    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44442      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44443      # a path prefixed by /cygdrive for fixpath to work.
44444      new_path="$CYGWIN_ROOT_PATH$input_path"
44445    fi
44446  fi
44447
44448
44449  if test "x$path" != "x$new_path"; then
44450    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44451    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44452$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44453  fi
44454
44455  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44456
44457  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44458  has_colon=`$ECHO $path | $GREP ^.:`
44459  new_path="$path"
44460  if test "x$has_colon" = x; then
44461    # Not in mixed or Windows style, start by that.
44462    new_path=`cmd //c echo $path`
44463  fi
44464
44465
44466  input_path="$new_path"
44467  # Check if we need to convert this using DOS-style short mode. If the path
44468  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44469  # take no chances and rewrite it.
44470  # Note: m4 eats our [], so we need to use [ and ] instead.
44471  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44472  if test "x$has_forbidden_chars" != x; then
44473    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44474    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44475  fi
44476
44477
44478  windows_path="$new_path"
44479  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44480    unix_path=`$CYGPATH -u "$windows_path"`
44481    new_path="$unix_path"
44482  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44483    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44484    new_path="$unix_path"
44485  fi
44486
44487  if test "x$path" != "x$new_path"; then
44488    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44489    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44490$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44491  fi
44492
44493  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44494  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44495
44496  else
44497    # We're on a posix platform. Hooray! :)
44498    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44499    has_space=`$ECHO "$path" | $GREP " "`
44500    if test "x$has_space" != x; then
44501      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44502$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44503      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44504    fi
44505
44506    # Use eval to expand a potential ~
44507    eval path="$path"
44508    if test ! -f "$path" && test ! -d "$path"; then
44509      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44510    fi
44511
44512    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44513  fi
44514
44515
44516  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44517
44518  # Input might be given as Windows format, start by converting to
44519  # unix format.
44520  path="$POTENTIAL_FREETYPE_LIB_PATH"
44521  new_path=`$CYGPATH -u "$path"`
44522
44523  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44524  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44525  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44526  # "foo.exe" is OK but "foo" is an error.
44527  #
44528  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44529  # It is also a way to make sure we got the proper file name for the real test later on.
44530  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44531  if test "x$test_shortpath" = x; then
44532    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44533$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44534    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44535  fi
44536
44537  # Call helper function which possibly converts this using DOS-style short mode.
44538  # If so, the updated path is stored in $new_path.
44539
44540  input_path="$new_path"
44541  # Check if we need to convert this using DOS-style short mode. If the path
44542  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44543  # take no chances and rewrite it.
44544  # Note: m4 eats our [], so we need to use [ and ] instead.
44545  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44546  if test "x$has_forbidden_chars" != x; then
44547    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44548    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44549    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44550    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44551      # Going to short mode and back again did indeed matter. Since short mode is
44552      # case insensitive, let's make it lowercase to improve readability.
44553      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44554      # Now convert it back to Unix-stile (cygpath)
44555      input_path=`$CYGPATH -u "$shortmode_path"`
44556      new_path="$input_path"
44557    fi
44558  fi
44559
44560  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44561  if test "x$test_cygdrive_prefix" = x; then
44562    # As a simple fix, exclude /usr/bin since it's not a real path.
44563    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44564      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44565      # a path prefixed by /cygdrive for fixpath to work.
44566      new_path="$CYGWIN_ROOT_PATH$input_path"
44567    fi
44568  fi
44569
44570
44571  if test "x$path" != "x$new_path"; then
44572    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44573    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44574$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44575  fi
44576
44577  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44578
44579  path="$POTENTIAL_FREETYPE_LIB_PATH"
44580  has_colon=`$ECHO $path | $GREP ^.:`
44581  new_path="$path"
44582  if test "x$has_colon" = x; then
44583    # Not in mixed or Windows style, start by that.
44584    new_path=`cmd //c echo $path`
44585  fi
44586
44587
44588  input_path="$new_path"
44589  # Check if we need to convert this using DOS-style short mode. If the path
44590  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44591  # take no chances and rewrite it.
44592  # Note: m4 eats our [], so we need to use [ and ] instead.
44593  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44594  if test "x$has_forbidden_chars" != x; then
44595    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44596    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44597  fi
44598
44599
44600  windows_path="$new_path"
44601  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44602    unix_path=`$CYGPATH -u "$windows_path"`
44603    new_path="$unix_path"
44604  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44605    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44606    new_path="$unix_path"
44607  fi
44608
44609  if test "x$path" != "x$new_path"; then
44610    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44611    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44612$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44613  fi
44614
44615  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44616  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44617
44618  else
44619    # We're on a posix platform. Hooray! :)
44620    path="$POTENTIAL_FREETYPE_LIB_PATH"
44621    has_space=`$ECHO "$path" | $GREP " "`
44622    if test "x$has_space" != x; then
44623      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44624$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44625      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44626    fi
44627
44628    # Use eval to expand a potential ~
44629    eval path="$path"
44630    if test ! -f "$path" && test ! -d "$path"; then
44631      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44632    fi
44633
44634    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44635  fi
44636
44637
44638    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44639    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44640$as_echo_n "checking for freetype includes... " >&6; }
44641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44642$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44643    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44644    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44645$as_echo_n "checking for freetype libraries... " >&6; }
44646    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44647$as_echo "$FREETYPE_LIB_PATH" >&6; }
44648  fi
44649
44650          fi
44651        else
44652          FREETYPE_BASE_DIR="$SYSROOT/usr"
44653
44654  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44655  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44656  METHOD="well-known location"
44657
44658  # First check if the files exists.
44659  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44660    # We found an arbitrary include file. That's a good sign.
44661    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44662$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44663    FOUND_FREETYPE=yes
44664
44665    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44666    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44667      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44668$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44669      FOUND_FREETYPE=no
44670    else
44671      if test "x$OPENJDK_TARGET_OS" = xwindows; then
44672        # On Windows, we will need both .lib and .dll file.
44673        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44674          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44675$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44676          FOUND_FREETYPE=no
44677        fi
44678      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
44679        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44680        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44681      fi
44682    fi
44683  fi
44684
44685  if test "x$FOUND_FREETYPE" = xyes; then
44686
44687  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44688
44689  # Input might be given as Windows format, start by converting to
44690  # unix format.
44691  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44692  new_path=`$CYGPATH -u "$path"`
44693
44694  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44695  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44696  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44697  # "foo.exe" is OK but "foo" is an error.
44698  #
44699  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44700  # It is also a way to make sure we got the proper file name for the real test later on.
44701  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44702  if test "x$test_shortpath" = x; then
44703    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44704$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44705    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44706  fi
44707
44708  # Call helper function which possibly converts this using DOS-style short mode.
44709  # If so, the updated path is stored in $new_path.
44710
44711  input_path="$new_path"
44712  # Check if we need to convert this using DOS-style short mode. If the path
44713  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44714  # take no chances and rewrite it.
44715  # Note: m4 eats our [], so we need to use [ and ] instead.
44716  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44717  if test "x$has_forbidden_chars" != x; then
44718    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44719    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44720    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44721    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44722      # Going to short mode and back again did indeed matter. Since short mode is
44723      # case insensitive, let's make it lowercase to improve readability.
44724      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44725      # Now convert it back to Unix-stile (cygpath)
44726      input_path=`$CYGPATH -u "$shortmode_path"`
44727      new_path="$input_path"
44728    fi
44729  fi
44730
44731  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44732  if test "x$test_cygdrive_prefix" = x; then
44733    # As a simple fix, exclude /usr/bin since it's not a real path.
44734    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44735      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44736      # a path prefixed by /cygdrive for fixpath to work.
44737      new_path="$CYGWIN_ROOT_PATH$input_path"
44738    fi
44739  fi
44740
44741
44742  if test "x$path" != "x$new_path"; then
44743    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44744    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44745$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44746  fi
44747
44748  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44749
44750  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44751  has_colon=`$ECHO $path | $GREP ^.:`
44752  new_path="$path"
44753  if test "x$has_colon" = x; then
44754    # Not in mixed or Windows style, start by that.
44755    new_path=`cmd //c echo $path`
44756  fi
44757
44758
44759  input_path="$new_path"
44760  # Check if we need to convert this using DOS-style short mode. If the path
44761  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44762  # take no chances and rewrite it.
44763  # Note: m4 eats our [], so we need to use [ and ] instead.
44764  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44765  if test "x$has_forbidden_chars" != x; then
44766    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44767    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44768  fi
44769
44770
44771  windows_path="$new_path"
44772  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44773    unix_path=`$CYGPATH -u "$windows_path"`
44774    new_path="$unix_path"
44775  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44776    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44777    new_path="$unix_path"
44778  fi
44779
44780  if test "x$path" != "x$new_path"; then
44781    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
44782    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
44783$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
44784  fi
44785
44786  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44787  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44788
44789  else
44790    # We're on a posix platform. Hooray! :)
44791    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44792    has_space=`$ECHO "$path" | $GREP " "`
44793    if test "x$has_space" != x; then
44794      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44795$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44796      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44797    fi
44798
44799    # Use eval to expand a potential ~
44800    eval path="$path"
44801    if test ! -f "$path" && test ! -d "$path"; then
44802      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44803    fi
44804
44805    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
44806  fi
44807
44808
44809  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44810
44811  # Input might be given as Windows format, start by converting to
44812  # unix format.
44813  path="$POTENTIAL_FREETYPE_LIB_PATH"
44814  new_path=`$CYGPATH -u "$path"`
44815
44816  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44817  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44818  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44819  # "foo.exe" is OK but "foo" is an error.
44820  #
44821  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44822  # It is also a way to make sure we got the proper file name for the real test later on.
44823  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44824  if test "x$test_shortpath" = x; then
44825    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44826$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44827    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
44828  fi
44829
44830  # Call helper function which possibly converts this using DOS-style short mode.
44831  # If so, the updated path is stored in $new_path.
44832
44833  input_path="$new_path"
44834  # Check if we need to convert this using DOS-style short mode. If the path
44835  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44836  # take no chances and rewrite it.
44837  # Note: m4 eats our [], so we need to use [ and ] instead.
44838  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
44839  if test "x$has_forbidden_chars" != x; then
44840    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44841    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
44842    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
44843    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
44844      # Going to short mode and back again did indeed matter. Since short mode is
44845      # case insensitive, let's make it lowercase to improve readability.
44846      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44847      # Now convert it back to Unix-stile (cygpath)
44848      input_path=`$CYGPATH -u "$shortmode_path"`
44849      new_path="$input_path"
44850    fi
44851  fi
44852
44853  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
44854  if test "x$test_cygdrive_prefix" = x; then
44855    # As a simple fix, exclude /usr/bin since it's not a real path.
44856    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
44857      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
44858      # a path prefixed by /cygdrive for fixpath to work.
44859      new_path="$CYGWIN_ROOT_PATH$input_path"
44860    fi
44861  fi
44862
44863
44864  if test "x$path" != "x$new_path"; then
44865    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44866    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44867$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44868  fi
44869
44870  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44871
44872  path="$POTENTIAL_FREETYPE_LIB_PATH"
44873  has_colon=`$ECHO $path | $GREP ^.:`
44874  new_path="$path"
44875  if test "x$has_colon" = x; then
44876    # Not in mixed or Windows style, start by that.
44877    new_path=`cmd //c echo $path`
44878  fi
44879
44880
44881  input_path="$new_path"
44882  # Check if we need to convert this using DOS-style short mode. If the path
44883  # contains just simple characters, use it. Otherwise (spaces, weird characters),
44884  # take no chances and rewrite it.
44885  # Note: m4 eats our [], so we need to use [ and ] instead.
44886  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
44887  if test "x$has_forbidden_chars" != x; then
44888    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
44889    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
44890  fi
44891
44892
44893  windows_path="$new_path"
44894  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44895    unix_path=`$CYGPATH -u "$windows_path"`
44896    new_path="$unix_path"
44897  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
44898    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
44899    new_path="$unix_path"
44900  fi
44901
44902  if test "x$path" != "x$new_path"; then
44903    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
44904    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
44905$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
44906  fi
44907
44908  # Save the first 10 bytes of this path to the storage, so fixpath can work.
44909  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
44910
44911  else
44912    # We're on a posix platform. Hooray! :)
44913    path="$POTENTIAL_FREETYPE_LIB_PATH"
44914    has_space=`$ECHO "$path" | $GREP " "`
44915    if test "x$has_space" != x; then
44916      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
44917$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
44918      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
44919    fi
44920
44921    # Use eval to expand a potential ~
44922    eval path="$path"
44923    if test ! -f "$path" && test ! -d "$path"; then
44924      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
44925    fi
44926
44927    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
44928  fi
44929
44930
44931    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
44933$as_echo_n "checking for freetype includes... " >&6; }
44934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
44935$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
44936    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
44937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
44938$as_echo_n "checking for freetype libraries... " >&6; }
44939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
44940$as_echo "$FREETYPE_LIB_PATH" >&6; }
44941  fi
44942
44943
44944          if test "x$FOUND_FREETYPE" != xyes; then
44945            FREETYPE_BASE_DIR="$SYSROOT/usr/X11"
44946
44947  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
44948  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
44949  METHOD="well-known location"
44950
44951  # First check if the files exists.
44952  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
44953    # We found an arbitrary include file. That's a good sign.
44954    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
44955$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
44956    FOUND_FREETYPE=yes
44957
44958    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
44959    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
44960      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
44961$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
44962      FOUND_FREETYPE=no
44963    else
44964      if test "x$OPENJDK_TARGET_OS" = xwindows; then
44965        # On Windows, we will need both .lib and .dll file.
44966        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
44967          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
44968$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
44969          FOUND_FREETYPE=no
44970        fi
44971      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
44972        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
44973        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
44974      fi
44975    fi
44976  fi
44977
44978  if test "x$FOUND_FREETYPE" = xyes; then
44979
44980  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
44981
44982  # Input might be given as Windows format, start by converting to
44983  # unix format.
44984  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
44985  new_path=`$CYGPATH -u "$path"`
44986
44987  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
44988  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
44989  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
44990  # "foo.exe" is OK but "foo" is an error.
44991  #
44992  # This test is therefore slightly more accurate than "test -f" to check for file precense.
44993  # It is also a way to make sure we got the proper file name for the real test later on.
44994  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
44995  if test "x$test_shortpath" = x; then
44996    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
44997$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
44998    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
44999  fi
45000
45001  # Call helper function which possibly converts this using DOS-style short mode.
45002  # If so, the updated path is stored in $new_path.
45003
45004  input_path="$new_path"
45005  # Check if we need to convert this using DOS-style short mode. If the path
45006  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45007  # take no chances and rewrite it.
45008  # Note: m4 eats our [], so we need to use [ and ] instead.
45009  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45010  if test "x$has_forbidden_chars" != x; then
45011    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45012    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45013    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45014    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45015      # Going to short mode and back again did indeed matter. Since short mode is
45016      # case insensitive, let's make it lowercase to improve readability.
45017      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45018      # Now convert it back to Unix-stile (cygpath)
45019      input_path=`$CYGPATH -u "$shortmode_path"`
45020      new_path="$input_path"
45021    fi
45022  fi
45023
45024  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45025  if test "x$test_cygdrive_prefix" = x; then
45026    # As a simple fix, exclude /usr/bin since it's not a real path.
45027    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45028      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45029      # a path prefixed by /cygdrive for fixpath to work.
45030      new_path="$CYGWIN_ROOT_PATH$input_path"
45031    fi
45032  fi
45033
45034
45035  if test "x$path" != "x$new_path"; then
45036    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45037    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45038$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45039  fi
45040
45041  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45042
45043  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45044  has_colon=`$ECHO $path | $GREP ^.:`
45045  new_path="$path"
45046  if test "x$has_colon" = x; then
45047    # Not in mixed or Windows style, start by that.
45048    new_path=`cmd //c echo $path`
45049  fi
45050
45051
45052  input_path="$new_path"
45053  # Check if we need to convert this using DOS-style short mode. If the path
45054  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45055  # take no chances and rewrite it.
45056  # Note: m4 eats our [], so we need to use [ and ] instead.
45057  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45058  if test "x$has_forbidden_chars" != x; then
45059    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45060    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45061  fi
45062
45063
45064  windows_path="$new_path"
45065  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45066    unix_path=`$CYGPATH -u "$windows_path"`
45067    new_path="$unix_path"
45068  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45069    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45070    new_path="$unix_path"
45071  fi
45072
45073  if test "x$path" != "x$new_path"; then
45074    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45075    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45076$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45077  fi
45078
45079  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45080  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45081
45082  else
45083    # We're on a posix platform. Hooray! :)
45084    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45085    has_space=`$ECHO "$path" | $GREP " "`
45086    if test "x$has_space" != x; then
45087      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45088$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45089      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45090    fi
45091
45092    # Use eval to expand a potential ~
45093    eval path="$path"
45094    if test ! -f "$path" && test ! -d "$path"; then
45095      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45096    fi
45097
45098    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45099  fi
45100
45101
45102  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45103
45104  # Input might be given as Windows format, start by converting to
45105  # unix format.
45106  path="$POTENTIAL_FREETYPE_LIB_PATH"
45107  new_path=`$CYGPATH -u "$path"`
45108
45109  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45110  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45111  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45112  # "foo.exe" is OK but "foo" is an error.
45113  #
45114  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45115  # It is also a way to make sure we got the proper file name for the real test later on.
45116  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45117  if test "x$test_shortpath" = x; then
45118    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45119$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45120    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45121  fi
45122
45123  # Call helper function which possibly converts this using DOS-style short mode.
45124  # If so, the updated path is stored in $new_path.
45125
45126  input_path="$new_path"
45127  # Check if we need to convert this using DOS-style short mode. If the path
45128  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45129  # take no chances and rewrite it.
45130  # Note: m4 eats our [], so we need to use [ and ] instead.
45131  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45132  if test "x$has_forbidden_chars" != x; then
45133    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45134    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45135    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45136    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45137      # Going to short mode and back again did indeed matter. Since short mode is
45138      # case insensitive, let's make it lowercase to improve readability.
45139      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45140      # Now convert it back to Unix-stile (cygpath)
45141      input_path=`$CYGPATH -u "$shortmode_path"`
45142      new_path="$input_path"
45143    fi
45144  fi
45145
45146  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45147  if test "x$test_cygdrive_prefix" = x; then
45148    # As a simple fix, exclude /usr/bin since it's not a real path.
45149    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45150      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45151      # a path prefixed by /cygdrive for fixpath to work.
45152      new_path="$CYGWIN_ROOT_PATH$input_path"
45153    fi
45154  fi
45155
45156
45157  if test "x$path" != "x$new_path"; then
45158    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45159    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45160$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45161  fi
45162
45163  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45164
45165  path="$POTENTIAL_FREETYPE_LIB_PATH"
45166  has_colon=`$ECHO $path | $GREP ^.:`
45167  new_path="$path"
45168  if test "x$has_colon" = x; then
45169    # Not in mixed or Windows style, start by that.
45170    new_path=`cmd //c echo $path`
45171  fi
45172
45173
45174  input_path="$new_path"
45175  # Check if we need to convert this using DOS-style short mode. If the path
45176  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45177  # take no chances and rewrite it.
45178  # Note: m4 eats our [], so we need to use [ and ] instead.
45179  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45180  if test "x$has_forbidden_chars" != x; then
45181    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45182    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45183  fi
45184
45185
45186  windows_path="$new_path"
45187  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45188    unix_path=`$CYGPATH -u "$windows_path"`
45189    new_path="$unix_path"
45190  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45191    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45192    new_path="$unix_path"
45193  fi
45194
45195  if test "x$path" != "x$new_path"; then
45196    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45197    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45198$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45199  fi
45200
45201  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45202  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45203
45204  else
45205    # We're on a posix platform. Hooray! :)
45206    path="$POTENTIAL_FREETYPE_LIB_PATH"
45207    has_space=`$ECHO "$path" | $GREP " "`
45208    if test "x$has_space" != x; then
45209      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45210$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45211      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45212    fi
45213
45214    # Use eval to expand a potential ~
45215    eval path="$path"
45216    if test ! -f "$path" && test ! -d "$path"; then
45217      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45218    fi
45219
45220    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45221  fi
45222
45223
45224    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45226$as_echo_n "checking for freetype includes... " >&6; }
45227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45228$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45229    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45231$as_echo_n "checking for freetype libraries... " >&6; }
45232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45233$as_echo "$FREETYPE_LIB_PATH" >&6; }
45234  fi
45235
45236          fi
45237
45238          if test "x$FOUND_FREETYPE" != xyes; then
45239            FREETYPE_BASE_DIR="$SYSROOT/usr/sfw"
45240
45241  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45242  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib"
45243  METHOD="well-known location"
45244
45245  # First check if the files exists.
45246  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45247    # We found an arbitrary include file. That's a good sign.
45248    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45249$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45250    FOUND_FREETYPE=yes
45251
45252    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45253    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45254      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45255$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45256      FOUND_FREETYPE=no
45257    else
45258      if test "x$OPENJDK_TARGET_OS" = xwindows; then
45259        # On Windows, we will need both .lib and .dll file.
45260        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45261          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45262$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45263          FOUND_FREETYPE=no
45264        fi
45265      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
45266        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45267        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45268      fi
45269    fi
45270  fi
45271
45272  if test "x$FOUND_FREETYPE" = xyes; then
45273
45274  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45275
45276  # Input might be given as Windows format, start by converting to
45277  # unix format.
45278  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45279  new_path=`$CYGPATH -u "$path"`
45280
45281  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45282  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45283  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45284  # "foo.exe" is OK but "foo" is an error.
45285  #
45286  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45287  # It is also a way to make sure we got the proper file name for the real test later on.
45288  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45289  if test "x$test_shortpath" = x; then
45290    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45291$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45292    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45293  fi
45294
45295  # Call helper function which possibly converts this using DOS-style short mode.
45296  # If so, the updated path is stored in $new_path.
45297
45298  input_path="$new_path"
45299  # Check if we need to convert this using DOS-style short mode. If the path
45300  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45301  # take no chances and rewrite it.
45302  # Note: m4 eats our [], so we need to use [ and ] instead.
45303  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45304  if test "x$has_forbidden_chars" != x; then
45305    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45306    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45307    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45308    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45309      # Going to short mode and back again did indeed matter. Since short mode is
45310      # case insensitive, let's make it lowercase to improve readability.
45311      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45312      # Now convert it back to Unix-stile (cygpath)
45313      input_path=`$CYGPATH -u "$shortmode_path"`
45314      new_path="$input_path"
45315    fi
45316  fi
45317
45318  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45319  if test "x$test_cygdrive_prefix" = x; then
45320    # As a simple fix, exclude /usr/bin since it's not a real path.
45321    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45322      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45323      # a path prefixed by /cygdrive for fixpath to work.
45324      new_path="$CYGWIN_ROOT_PATH$input_path"
45325    fi
45326  fi
45327
45328
45329  if test "x$path" != "x$new_path"; then
45330    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45331    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45332$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45333  fi
45334
45335  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45336
45337  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45338  has_colon=`$ECHO $path | $GREP ^.:`
45339  new_path="$path"
45340  if test "x$has_colon" = x; then
45341    # Not in mixed or Windows style, start by that.
45342    new_path=`cmd //c echo $path`
45343  fi
45344
45345
45346  input_path="$new_path"
45347  # Check if we need to convert this using DOS-style short mode. If the path
45348  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45349  # take no chances and rewrite it.
45350  # Note: m4 eats our [], so we need to use [ and ] instead.
45351  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45352  if test "x$has_forbidden_chars" != x; then
45353    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45354    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45355  fi
45356
45357
45358  windows_path="$new_path"
45359  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45360    unix_path=`$CYGPATH -u "$windows_path"`
45361    new_path="$unix_path"
45362  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45363    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45364    new_path="$unix_path"
45365  fi
45366
45367  if test "x$path" != "x$new_path"; then
45368    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45369    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45370$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45371  fi
45372
45373  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45374  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45375
45376  else
45377    # We're on a posix platform. Hooray! :)
45378    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45379    has_space=`$ECHO "$path" | $GREP " "`
45380    if test "x$has_space" != x; then
45381      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45382$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45383      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45384    fi
45385
45386    # Use eval to expand a potential ~
45387    eval path="$path"
45388    if test ! -f "$path" && test ! -d "$path"; then
45389      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45390    fi
45391
45392    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45393  fi
45394
45395
45396  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45397
45398  # Input might be given as Windows format, start by converting to
45399  # unix format.
45400  path="$POTENTIAL_FREETYPE_LIB_PATH"
45401  new_path=`$CYGPATH -u "$path"`
45402
45403  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45404  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45405  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45406  # "foo.exe" is OK but "foo" is an error.
45407  #
45408  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45409  # It is also a way to make sure we got the proper file name for the real test later on.
45410  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45411  if test "x$test_shortpath" = x; then
45412    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45413$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45414    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45415  fi
45416
45417  # Call helper function which possibly converts this using DOS-style short mode.
45418  # If so, the updated path is stored in $new_path.
45419
45420  input_path="$new_path"
45421  # Check if we need to convert this using DOS-style short mode. If the path
45422  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45423  # take no chances and rewrite it.
45424  # Note: m4 eats our [], so we need to use [ and ] instead.
45425  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45426  if test "x$has_forbidden_chars" != x; then
45427    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45428    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45429    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45430    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45431      # Going to short mode and back again did indeed matter. Since short mode is
45432      # case insensitive, let's make it lowercase to improve readability.
45433      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45434      # Now convert it back to Unix-stile (cygpath)
45435      input_path=`$CYGPATH -u "$shortmode_path"`
45436      new_path="$input_path"
45437    fi
45438  fi
45439
45440  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45441  if test "x$test_cygdrive_prefix" = x; then
45442    # As a simple fix, exclude /usr/bin since it's not a real path.
45443    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45444      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45445      # a path prefixed by /cygdrive for fixpath to work.
45446      new_path="$CYGWIN_ROOT_PATH$input_path"
45447    fi
45448  fi
45449
45450
45451  if test "x$path" != "x$new_path"; then
45452    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45453    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45454$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45455  fi
45456
45457  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45458
45459  path="$POTENTIAL_FREETYPE_LIB_PATH"
45460  has_colon=`$ECHO $path | $GREP ^.:`
45461  new_path="$path"
45462  if test "x$has_colon" = x; then
45463    # Not in mixed or Windows style, start by that.
45464    new_path=`cmd //c echo $path`
45465  fi
45466
45467
45468  input_path="$new_path"
45469  # Check if we need to convert this using DOS-style short mode. If the path
45470  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45471  # take no chances and rewrite it.
45472  # Note: m4 eats our [], so we need to use [ and ] instead.
45473  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45474  if test "x$has_forbidden_chars" != x; then
45475    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45476    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45477  fi
45478
45479
45480  windows_path="$new_path"
45481  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45482    unix_path=`$CYGPATH -u "$windows_path"`
45483    new_path="$unix_path"
45484  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45485    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45486    new_path="$unix_path"
45487  fi
45488
45489  if test "x$path" != "x$new_path"; then
45490    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45491    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45492$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45493  fi
45494
45495  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45496  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45497
45498  else
45499    # We're on a posix platform. Hooray! :)
45500    path="$POTENTIAL_FREETYPE_LIB_PATH"
45501    has_space=`$ECHO "$path" | $GREP " "`
45502    if test "x$has_space" != x; then
45503      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45504$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45505      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45506    fi
45507
45508    # Use eval to expand a potential ~
45509    eval path="$path"
45510    if test ! -f "$path" && test ! -d "$path"; then
45511      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45512    fi
45513
45514    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45515  fi
45516
45517
45518    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45520$as_echo_n "checking for freetype includes... " >&6; }
45521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45522$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45523    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45524    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45525$as_echo_n "checking for freetype libraries... " >&6; }
45526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45527$as_echo "$FREETYPE_LIB_PATH" >&6; }
45528  fi
45529
45530          fi
45531
45532          if test "x$FOUND_FREETYPE" != xyes; then
45533            FREETYPE_BASE_DIR="$SYSROOT/usr"
45534            if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
45535
45536  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45537  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu"
45538  METHOD="well-known location"
45539
45540  # First check if the files exists.
45541  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45542    # We found an arbitrary include file. That's a good sign.
45543    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45544$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45545    FOUND_FREETYPE=yes
45546
45547    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45548    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45549      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45550$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45551      FOUND_FREETYPE=no
45552    else
45553      if test "x$OPENJDK_TARGET_OS" = xwindows; then
45554        # On Windows, we will need both .lib and .dll file.
45555        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45556          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45557$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45558          FOUND_FREETYPE=no
45559        fi
45560      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
45561        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45562        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45563      fi
45564    fi
45565  fi
45566
45567  if test "x$FOUND_FREETYPE" = xyes; then
45568
45569  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45570
45571  # Input might be given as Windows format, start by converting to
45572  # unix format.
45573  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45574  new_path=`$CYGPATH -u "$path"`
45575
45576  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45577  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45578  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45579  # "foo.exe" is OK but "foo" is an error.
45580  #
45581  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45582  # It is also a way to make sure we got the proper file name for the real test later on.
45583  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45584  if test "x$test_shortpath" = x; then
45585    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45586$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45587    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45588  fi
45589
45590  # Call helper function which possibly converts this using DOS-style short mode.
45591  # If so, the updated path is stored in $new_path.
45592
45593  input_path="$new_path"
45594  # Check if we need to convert this using DOS-style short mode. If the path
45595  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45596  # take no chances and rewrite it.
45597  # Note: m4 eats our [], so we need to use [ and ] instead.
45598  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45599  if test "x$has_forbidden_chars" != x; then
45600    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45601    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45602    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45603    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45604      # Going to short mode and back again did indeed matter. Since short mode is
45605      # case insensitive, let's make it lowercase to improve readability.
45606      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45607      # Now convert it back to Unix-stile (cygpath)
45608      input_path=`$CYGPATH -u "$shortmode_path"`
45609      new_path="$input_path"
45610    fi
45611  fi
45612
45613  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45614  if test "x$test_cygdrive_prefix" = x; then
45615    # As a simple fix, exclude /usr/bin since it's not a real path.
45616    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45617      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45618      # a path prefixed by /cygdrive for fixpath to work.
45619      new_path="$CYGWIN_ROOT_PATH$input_path"
45620    fi
45621  fi
45622
45623
45624  if test "x$path" != "x$new_path"; then
45625    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45626    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45627$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45628  fi
45629
45630  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45631
45632  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45633  has_colon=`$ECHO $path | $GREP ^.:`
45634  new_path="$path"
45635  if test "x$has_colon" = x; then
45636    # Not in mixed or Windows style, start by that.
45637    new_path=`cmd //c echo $path`
45638  fi
45639
45640
45641  input_path="$new_path"
45642  # Check if we need to convert this using DOS-style short mode. If the path
45643  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45644  # take no chances and rewrite it.
45645  # Note: m4 eats our [], so we need to use [ and ] instead.
45646  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45647  if test "x$has_forbidden_chars" != x; then
45648    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45649    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45650  fi
45651
45652
45653  windows_path="$new_path"
45654  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45655    unix_path=`$CYGPATH -u "$windows_path"`
45656    new_path="$unix_path"
45657  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45658    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45659    new_path="$unix_path"
45660  fi
45661
45662  if test "x$path" != "x$new_path"; then
45663    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45664    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45665$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45666  fi
45667
45668  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45669  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45670
45671  else
45672    # We're on a posix platform. Hooray! :)
45673    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45674    has_space=`$ECHO "$path" | $GREP " "`
45675    if test "x$has_space" != x; then
45676      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45677$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45678      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45679    fi
45680
45681    # Use eval to expand a potential ~
45682    eval path="$path"
45683    if test ! -f "$path" && test ! -d "$path"; then
45684      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45685    fi
45686
45687    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45688  fi
45689
45690
45691  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45692
45693  # Input might be given as Windows format, start by converting to
45694  # unix format.
45695  path="$POTENTIAL_FREETYPE_LIB_PATH"
45696  new_path=`$CYGPATH -u "$path"`
45697
45698  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45699  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45700  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45701  # "foo.exe" is OK but "foo" is an error.
45702  #
45703  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45704  # It is also a way to make sure we got the proper file name for the real test later on.
45705  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45706  if test "x$test_shortpath" = x; then
45707    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45708$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45709    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
45710  fi
45711
45712  # Call helper function which possibly converts this using DOS-style short mode.
45713  # If so, the updated path is stored in $new_path.
45714
45715  input_path="$new_path"
45716  # Check if we need to convert this using DOS-style short mode. If the path
45717  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45718  # take no chances and rewrite it.
45719  # Note: m4 eats our [], so we need to use [ and ] instead.
45720  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45721  if test "x$has_forbidden_chars" != x; then
45722    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45723    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45724    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45725    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45726      # Going to short mode and back again did indeed matter. Since short mode is
45727      # case insensitive, let's make it lowercase to improve readability.
45728      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45729      # Now convert it back to Unix-stile (cygpath)
45730      input_path=`$CYGPATH -u "$shortmode_path"`
45731      new_path="$input_path"
45732    fi
45733  fi
45734
45735  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45736  if test "x$test_cygdrive_prefix" = x; then
45737    # As a simple fix, exclude /usr/bin since it's not a real path.
45738    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45739      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45740      # a path prefixed by /cygdrive for fixpath to work.
45741      new_path="$CYGWIN_ROOT_PATH$input_path"
45742    fi
45743  fi
45744
45745
45746  if test "x$path" != "x$new_path"; then
45747    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45748    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45749$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45750  fi
45751
45752  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45753
45754  path="$POTENTIAL_FREETYPE_LIB_PATH"
45755  has_colon=`$ECHO $path | $GREP ^.:`
45756  new_path="$path"
45757  if test "x$has_colon" = x; then
45758    # Not in mixed or Windows style, start by that.
45759    new_path=`cmd //c echo $path`
45760  fi
45761
45762
45763  input_path="$new_path"
45764  # Check if we need to convert this using DOS-style short mode. If the path
45765  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45766  # take no chances and rewrite it.
45767  # Note: m4 eats our [], so we need to use [ and ] instead.
45768  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45769  if test "x$has_forbidden_chars" != x; then
45770    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45771    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45772  fi
45773
45774
45775  windows_path="$new_path"
45776  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45777    unix_path=`$CYGPATH -u "$windows_path"`
45778    new_path="$unix_path"
45779  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45780    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45781    new_path="$unix_path"
45782  fi
45783
45784  if test "x$path" != "x$new_path"; then
45785    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
45786    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
45787$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
45788  fi
45789
45790  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45791  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45792
45793  else
45794    # We're on a posix platform. Hooray! :)
45795    path="$POTENTIAL_FREETYPE_LIB_PATH"
45796    has_space=`$ECHO "$path" | $GREP " "`
45797    if test "x$has_space" != x; then
45798      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45799$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
45800      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45801    fi
45802
45803    # Use eval to expand a potential ~
45804    eval path="$path"
45805    if test ! -f "$path" && test ! -d "$path"; then
45806      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45807    fi
45808
45809    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
45810  fi
45811
45812
45813    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
45815$as_echo_n "checking for freetype includes... " >&6; }
45816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
45817$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
45818    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
45819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
45820$as_echo_n "checking for freetype libraries... " >&6; }
45821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
45822$as_echo "$FREETYPE_LIB_PATH" >&6; }
45823  fi
45824
45825            else
45826
45827  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
45828  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu"
45829  METHOD="well-known location"
45830
45831  # First check if the files exists.
45832  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
45833    # We found an arbitrary include file. That's a good sign.
45834    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
45835$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
45836    FOUND_FREETYPE=yes
45837
45838    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
45839    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
45840      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
45841$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
45842      FOUND_FREETYPE=no
45843    else
45844      if test "x$OPENJDK_TARGET_OS" = xwindows; then
45845        # On Windows, we will need both .lib and .dll file.
45846        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
45847          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
45848$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
45849          FOUND_FREETYPE=no
45850        fi
45851      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
45852        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
45853        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
45854      fi
45855    fi
45856  fi
45857
45858  if test "x$FOUND_FREETYPE" = xyes; then
45859
45860  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45861
45862  # Input might be given as Windows format, start by converting to
45863  # unix format.
45864  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45865  new_path=`$CYGPATH -u "$path"`
45866
45867  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45868  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45869  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45870  # "foo.exe" is OK but "foo" is an error.
45871  #
45872  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45873  # It is also a way to make sure we got the proper file name for the real test later on.
45874  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45875  if test "x$test_shortpath" = x; then
45876    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45877$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45878    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
45879  fi
45880
45881  # Call helper function which possibly converts this using DOS-style short mode.
45882  # If so, the updated path is stored in $new_path.
45883
45884  input_path="$new_path"
45885  # Check if we need to convert this using DOS-style short mode. If the path
45886  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45887  # take no chances and rewrite it.
45888  # Note: m4 eats our [], so we need to use [ and ] instead.
45889  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
45890  if test "x$has_forbidden_chars" != x; then
45891    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45892    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
45893    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
45894    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
45895      # Going to short mode and back again did indeed matter. Since short mode is
45896      # case insensitive, let's make it lowercase to improve readability.
45897      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45898      # Now convert it back to Unix-stile (cygpath)
45899      input_path=`$CYGPATH -u "$shortmode_path"`
45900      new_path="$input_path"
45901    fi
45902  fi
45903
45904  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
45905  if test "x$test_cygdrive_prefix" = x; then
45906    # As a simple fix, exclude /usr/bin since it's not a real path.
45907    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
45908      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
45909      # a path prefixed by /cygdrive for fixpath to work.
45910      new_path="$CYGWIN_ROOT_PATH$input_path"
45911    fi
45912  fi
45913
45914
45915  if test "x$path" != "x$new_path"; then
45916    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45917    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45918$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45919  fi
45920
45921  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45922
45923  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45924  has_colon=`$ECHO $path | $GREP ^.:`
45925  new_path="$path"
45926  if test "x$has_colon" = x; then
45927    # Not in mixed or Windows style, start by that.
45928    new_path=`cmd //c echo $path`
45929  fi
45930
45931
45932  input_path="$new_path"
45933  # Check if we need to convert this using DOS-style short mode. If the path
45934  # contains just simple characters, use it. Otherwise (spaces, weird characters),
45935  # take no chances and rewrite it.
45936  # Note: m4 eats our [], so we need to use [ and ] instead.
45937  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
45938  if test "x$has_forbidden_chars" != x; then
45939    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
45940    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
45941  fi
45942
45943
45944  windows_path="$new_path"
45945  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45946    unix_path=`$CYGPATH -u "$windows_path"`
45947    new_path="$unix_path"
45948  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
45949    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
45950    new_path="$unix_path"
45951  fi
45952
45953  if test "x$path" != "x$new_path"; then
45954    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
45955    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
45956$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
45957  fi
45958
45959  # Save the first 10 bytes of this path to the storage, so fixpath can work.
45960  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
45961
45962  else
45963    # We're on a posix platform. Hooray! :)
45964    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
45965    has_space=`$ECHO "$path" | $GREP " "`
45966    if test "x$has_space" != x; then
45967      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
45968$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
45969      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
45970    fi
45971
45972    # Use eval to expand a potential ~
45973    eval path="$path"
45974    if test ! -f "$path" && test ! -d "$path"; then
45975      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
45976    fi
45977
45978    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
45979  fi
45980
45981
45982  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
45983
45984  # Input might be given as Windows format, start by converting to
45985  # unix format.
45986  path="$POTENTIAL_FREETYPE_LIB_PATH"
45987  new_path=`$CYGPATH -u "$path"`
45988
45989  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
45990  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
45991  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
45992  # "foo.exe" is OK but "foo" is an error.
45993  #
45994  # This test is therefore slightly more accurate than "test -f" to check for file precense.
45995  # It is also a way to make sure we got the proper file name for the real test later on.
45996  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
45997  if test "x$test_shortpath" = x; then
45998    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
45999$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46000    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
46001  fi
46002
46003  # Call helper function which possibly converts this using DOS-style short mode.
46004  # If so, the updated path is stored in $new_path.
46005
46006  input_path="$new_path"
46007  # Check if we need to convert this using DOS-style short mode. If the path
46008  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46009  # take no chances and rewrite it.
46010  # Note: m4 eats our [], so we need to use [ and ] instead.
46011  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46012  if test "x$has_forbidden_chars" != x; then
46013    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46014    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46015    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46016    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46017      # Going to short mode and back again did indeed matter. Since short mode is
46018      # case insensitive, let's make it lowercase to improve readability.
46019      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46020      # Now convert it back to Unix-stile (cygpath)
46021      input_path=`$CYGPATH -u "$shortmode_path"`
46022      new_path="$input_path"
46023    fi
46024  fi
46025
46026  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46027  if test "x$test_cygdrive_prefix" = x; then
46028    # As a simple fix, exclude /usr/bin since it's not a real path.
46029    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46030      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46031      # a path prefixed by /cygdrive for fixpath to work.
46032      new_path="$CYGWIN_ROOT_PATH$input_path"
46033    fi
46034  fi
46035
46036
46037  if test "x$path" != "x$new_path"; then
46038    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46039    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46040$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46041  fi
46042
46043  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46044
46045  path="$POTENTIAL_FREETYPE_LIB_PATH"
46046  has_colon=`$ECHO $path | $GREP ^.:`
46047  new_path="$path"
46048  if test "x$has_colon" = x; then
46049    # Not in mixed or Windows style, start by that.
46050    new_path=`cmd //c echo $path`
46051  fi
46052
46053
46054  input_path="$new_path"
46055  # Check if we need to convert this using DOS-style short mode. If the path
46056  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46057  # take no chances and rewrite it.
46058  # Note: m4 eats our [], so we need to use [ and ] instead.
46059  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46060  if test "x$has_forbidden_chars" != x; then
46061    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46062    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46063  fi
46064
46065
46066  windows_path="$new_path"
46067  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46068    unix_path=`$CYGPATH -u "$windows_path"`
46069    new_path="$unix_path"
46070  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46071    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46072    new_path="$unix_path"
46073  fi
46074
46075  if test "x$path" != "x$new_path"; then
46076    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46077    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46078$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46079  fi
46080
46081  # Save the first 10 bytes of this path to the storage, so fixpath can work.
46082  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46083
46084  else
46085    # We're on a posix platform. Hooray! :)
46086    path="$POTENTIAL_FREETYPE_LIB_PATH"
46087    has_space=`$ECHO "$path" | $GREP " "`
46088    if test "x$has_space" != x; then
46089      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46090$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46091      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46092    fi
46093
46094    # Use eval to expand a potential ~
46095    eval path="$path"
46096    if test ! -f "$path" && test ! -d "$path"; then
46097      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46098    fi
46099
46100    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46101  fi
46102
46103
46104    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46106$as_echo_n "checking for freetype includes... " >&6; }
46107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46108$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46109    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46111$as_echo_n "checking for freetype libraries... " >&6; }
46112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46113$as_echo "$FREETYPE_LIB_PATH" >&6; }
46114  fi
46115
46116              if test "x$FOUND_FREETYPE" != xyes; then
46117
46118  POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include"
46119  POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32"
46120  METHOD="well-known location"
46121
46122  # First check if the files exists.
46123  if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then
46124    # We found an arbitrary include file. That's a good sign.
46125    { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5
46126$as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;}
46127    FOUND_FREETYPE=yes
46128
46129    FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}"
46130    if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then
46131      { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5
46132$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;}
46133      FOUND_FREETYPE=no
46134    else
46135      if test "x$OPENJDK_TARGET_OS" = xwindows; then
46136        # On Windows, we will need both .lib and .dll file.
46137        if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then
46138          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5
46139$as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;}
46140          FOUND_FREETYPE=no
46141        fi
46142      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
46143        # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess!
46144        POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64"
46145      fi
46146    fi
46147  fi
46148
46149  if test "x$FOUND_FREETYPE" = xyes; then
46150
46151  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46152
46153  # Input might be given as Windows format, start by converting to
46154  # unix format.
46155  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46156  new_path=`$CYGPATH -u "$path"`
46157
46158  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46159  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46160  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46161  # "foo.exe" is OK but "foo" is an error.
46162  #
46163  # This test is therefore slightly more accurate than "test -f" to check for file precense.
46164  # It is also a way to make sure we got the proper file name for the real test later on.
46165  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46166  if test "x$test_shortpath" = x; then
46167    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46168$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46169    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5
46170  fi
46171
46172  # Call helper function which possibly converts this using DOS-style short mode.
46173  # If so, the updated path is stored in $new_path.
46174
46175  input_path="$new_path"
46176  # Check if we need to convert this using DOS-style short mode. If the path
46177  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46178  # take no chances and rewrite it.
46179  # Note: m4 eats our [], so we need to use [ and ] instead.
46180  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46181  if test "x$has_forbidden_chars" != x; then
46182    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46183    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46184    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46185    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46186      # Going to short mode and back again did indeed matter. Since short mode is
46187      # case insensitive, let's make it lowercase to improve readability.
46188      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46189      # Now convert it back to Unix-stile (cygpath)
46190      input_path=`$CYGPATH -u "$shortmode_path"`
46191      new_path="$input_path"
46192    fi
46193  fi
46194
46195  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46196  if test "x$test_cygdrive_prefix" = x; then
46197    # As a simple fix, exclude /usr/bin since it's not a real path.
46198    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46199      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46200      # a path prefixed by /cygdrive for fixpath to work.
46201      new_path="$CYGWIN_ROOT_PATH$input_path"
46202    fi
46203  fi
46204
46205
46206  if test "x$path" != "x$new_path"; then
46207    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46208    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46209$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46210  fi
46211
46212  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46213
46214  path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46215  has_colon=`$ECHO $path | $GREP ^.:`
46216  new_path="$path"
46217  if test "x$has_colon" = x; then
46218    # Not in mixed or Windows style, start by that.
46219    new_path=`cmd //c echo $path`
46220  fi
46221
46222
46223  input_path="$new_path"
46224  # Check if we need to convert this using DOS-style short mode. If the path
46225  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46226  # take no chances and rewrite it.
46227  # Note: m4 eats our [], so we need to use [ and ] instead.
46228  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46229  if test "x$has_forbidden_chars" != x; then
46230    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46231    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46232  fi
46233
46234
46235  windows_path="$new_path"
46236  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46237    unix_path=`$CYGPATH -u "$windows_path"`
46238    new_path="$unix_path"
46239  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46240    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46241    new_path="$unix_path"
46242  fi
46243
46244  if test "x$path" != "x$new_path"; then
46245    POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path"
46246    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46247$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46248  fi
46249
46250  # Save the first 10 bytes of this path to the storage, so fixpath can work.
46251  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46252
46253  else
46254    # We're on a posix platform. Hooray! :)
46255    path="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46256    has_space=`$ECHO "$path" | $GREP " "`
46257    if test "x$has_space" != x; then
46258      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46259$as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46260      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46261    fi
46262
46263    # Use eval to expand a potential ~
46264    eval path="$path"
46265    if test ! -f "$path" && test ! -d "$path"; then
46266      as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46267    fi
46268
46269    POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46270  fi
46271
46272
46273  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46274
46275  # Input might be given as Windows format, start by converting to
46276  # unix format.
46277  path="$POTENTIAL_FREETYPE_LIB_PATH"
46278  new_path=`$CYGPATH -u "$path"`
46279
46280  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46281  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46282  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46283  # "foo.exe" is OK but "foo" is an error.
46284  #
46285  # This test is therefore slightly more accurate than "test -f" to check for file precense.
46286  # It is also a way to make sure we got the proper file name for the real test later on.
46287  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46288  if test "x$test_shortpath" = x; then
46289    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46290$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46291    as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5
46292  fi
46293
46294  # Call helper function which possibly converts this using DOS-style short mode.
46295  # If so, the updated path is stored in $new_path.
46296
46297  input_path="$new_path"
46298  # Check if we need to convert this using DOS-style short mode. If the path
46299  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46300  # take no chances and rewrite it.
46301  # Note: m4 eats our [], so we need to use [ and ] instead.
46302  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46303  if test "x$has_forbidden_chars" != x; then
46304    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46305    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46306    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46307    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46308      # Going to short mode and back again did indeed matter. Since short mode is
46309      # case insensitive, let's make it lowercase to improve readability.
46310      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46311      # Now convert it back to Unix-stile (cygpath)
46312      input_path=`$CYGPATH -u "$shortmode_path"`
46313      new_path="$input_path"
46314    fi
46315  fi
46316
46317  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46318  if test "x$test_cygdrive_prefix" = x; then
46319    # As a simple fix, exclude /usr/bin since it's not a real path.
46320    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46321      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46322      # a path prefixed by /cygdrive for fixpath to work.
46323      new_path="$CYGWIN_ROOT_PATH$input_path"
46324    fi
46325  fi
46326
46327
46328  if test "x$path" != "x$new_path"; then
46329    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46330    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46331$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46332  fi
46333
46334  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46335
46336  path="$POTENTIAL_FREETYPE_LIB_PATH"
46337  has_colon=`$ECHO $path | $GREP ^.:`
46338  new_path="$path"
46339  if test "x$has_colon" = x; then
46340    # Not in mixed or Windows style, start by that.
46341    new_path=`cmd //c echo $path`
46342  fi
46343
46344
46345  input_path="$new_path"
46346  # Check if we need to convert this using DOS-style short mode. If the path
46347  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46348  # take no chances and rewrite it.
46349  # Note: m4 eats our [], so we need to use [ and ] instead.
46350  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46351  if test "x$has_forbidden_chars" != x; then
46352    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46353    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46354  fi
46355
46356
46357  windows_path="$new_path"
46358  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46359    unix_path=`$CYGPATH -u "$windows_path"`
46360    new_path="$unix_path"
46361  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46362    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46363    new_path="$unix_path"
46364  fi
46365
46366  if test "x$path" != "x$new_path"; then
46367    POTENTIAL_FREETYPE_LIB_PATH="$new_path"
46368    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5
46369$as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46370  fi
46371
46372  # Save the first 10 bytes of this path to the storage, so fixpath can work.
46373  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46374
46375  else
46376    # We're on a posix platform. Hooray! :)
46377    path="$POTENTIAL_FREETYPE_LIB_PATH"
46378    has_space=`$ECHO "$path" | $GREP " "`
46379    if test "x$has_space" != x; then
46380      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46381$as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46382      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46383    fi
46384
46385    # Use eval to expand a potential ~
46386    eval path="$path"
46387    if test ! -f "$path" && test ! -d "$path"; then
46388      as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46389    fi
46390
46391    POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46392  fi
46393
46394
46395    FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH"
46396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5
46397$as_echo_n "checking for freetype includes... " >&6; }
46398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5
46399$as_echo "$FREETYPE_INCLUDE_PATH" >&6; }
46400    FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH"
46401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5
46402$as_echo_n "checking for freetype libraries... " >&6; }
46403    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5
46404$as_echo "$FREETYPE_LIB_PATH" >&6; }
46405  fi
46406
46407              fi
46408            fi
46409          fi
46410        fi
46411      fi # end check in well-known locations
46412
46413      if test "x$FOUND_FREETYPE" != xyes; then
46414
46415  # Print a helpful message on how to acquire the necessary build dependency.
46416  # freetype is the help tag: freetype, cups, pulse, alsa etc
46417  MISSING_DEPENDENCY=freetype
46418
46419  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46420    cygwin_help $MISSING_DEPENDENCY
46421  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46422    msys_help $MISSING_DEPENDENCY
46423  else
46424    PKGHANDLER_COMMAND=
46425
46426    case $PKGHANDLER in
46427      apt-get)
46428        apt_help     $MISSING_DEPENDENCY ;;
46429      yum)
46430        yum_help     $MISSING_DEPENDENCY ;;
46431      port)
46432        port_help    $MISSING_DEPENDENCY ;;
46433      pkgutil)
46434        pkgutil_help $MISSING_DEPENDENCY ;;
46435      pkgadd)
46436        pkgadd_help  $MISSING_DEPENDENCY ;;
46437    esac
46438
46439    if test "x$PKGHANDLER_COMMAND" != x; then
46440      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46441    fi
46442  fi
46443
46444        as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5
46445      fi
46446    fi # end user specified settings
46447
46448    # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir.
46449    if test "x$FREETYPE_CFLAGS" = x; then
46450
46451  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46452
46453  # Input might be given as Windows format, start by converting to
46454  # unix format.
46455  path="$FREETYPE_INCLUDE_PATH"
46456  new_path=`$CYGPATH -u "$path"`
46457
46458  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46459  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46460  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46461  # "foo.exe" is OK but "foo" is an error.
46462  #
46463  # This test is therefore slightly more accurate than "test -f" to check for file precense.
46464  # It is also a way to make sure we got the proper file name for the real test later on.
46465  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46466  if test "x$test_shortpath" = x; then
46467    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46468$as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46469    as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5
46470  fi
46471
46472  # Call helper function which possibly converts this using DOS-style short mode.
46473  # If so, the updated path is stored in $new_path.
46474
46475  input_path="$new_path"
46476  # Check if we need to convert this using DOS-style short mode. If the path
46477  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46478  # take no chances and rewrite it.
46479  # Note: m4 eats our [], so we need to use [ and ] instead.
46480  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46481  if test "x$has_forbidden_chars" != x; then
46482    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46483    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46484    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46485    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46486      # Going to short mode and back again did indeed matter. Since short mode is
46487      # case insensitive, let's make it lowercase to improve readability.
46488      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46489      # Now convert it back to Unix-stile (cygpath)
46490      input_path=`$CYGPATH -u "$shortmode_path"`
46491      new_path="$input_path"
46492    fi
46493  fi
46494
46495  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46496  if test "x$test_cygdrive_prefix" = x; then
46497    # As a simple fix, exclude /usr/bin since it's not a real path.
46498    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46499      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46500      # a path prefixed by /cygdrive for fixpath to work.
46501      new_path="$CYGWIN_ROOT_PATH$input_path"
46502    fi
46503  fi
46504
46505
46506  if test "x$path" != "x$new_path"; then
46507    FREETYPE_INCLUDE_PATH="$new_path"
46508    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46509$as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46510  fi
46511
46512  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46513
46514  path="$FREETYPE_INCLUDE_PATH"
46515  has_colon=`$ECHO $path | $GREP ^.:`
46516  new_path="$path"
46517  if test "x$has_colon" = x; then
46518    # Not in mixed or Windows style, start by that.
46519    new_path=`cmd //c echo $path`
46520  fi
46521
46522
46523  input_path="$new_path"
46524  # Check if we need to convert this using DOS-style short mode. If the path
46525  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46526  # take no chances and rewrite it.
46527  # Note: m4 eats our [], so we need to use [ and ] instead.
46528  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46529  if test "x$has_forbidden_chars" != x; then
46530    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46531    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46532  fi
46533
46534
46535  windows_path="$new_path"
46536  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46537    unix_path=`$CYGPATH -u "$windows_path"`
46538    new_path="$unix_path"
46539  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46540    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46541    new_path="$unix_path"
46542  fi
46543
46544  if test "x$path" != "x$new_path"; then
46545    FREETYPE_INCLUDE_PATH="$new_path"
46546    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5
46547$as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;}
46548  fi
46549
46550  # Save the first 10 bytes of this path to the storage, so fixpath can work.
46551  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46552
46553  else
46554    # We're on a posix platform. Hooray! :)
46555    path="$FREETYPE_INCLUDE_PATH"
46556    has_space=`$ECHO "$path" | $GREP " "`
46557    if test "x$has_space" != x; then
46558      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5
46559$as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;}
46560      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46561    fi
46562
46563    # Use eval to expand a potential ~
46564    eval path="$path"
46565    if test ! -f "$path" && test ! -d "$path"; then
46566      as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46567    fi
46568
46569    FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`"
46570  fi
46571
46572      if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then
46573        FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH"
46574      else
46575        FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH"
46576      fi
46577    fi
46578
46579    if test "x$FREETYPE_LIBS" = x; then
46580
46581  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46582
46583  # Input might be given as Windows format, start by converting to
46584  # unix format.
46585  path="$FREETYPE_LIB_PATH"
46586  new_path=`$CYGPATH -u "$path"`
46587
46588  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
46589  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
46590  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
46591  # "foo.exe" is OK but "foo" is an error.
46592  #
46593  # This test is therefore slightly more accurate than "test -f" to check for file precense.
46594  # It is also a way to make sure we got the proper file name for the real test later on.
46595  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
46596  if test "x$test_shortpath" = x; then
46597    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46598$as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46599    as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5
46600  fi
46601
46602  # Call helper function which possibly converts this using DOS-style short mode.
46603  # If so, the updated path is stored in $new_path.
46604
46605  input_path="$new_path"
46606  # Check if we need to convert this using DOS-style short mode. If the path
46607  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46608  # take no chances and rewrite it.
46609  # Note: m4 eats our [], so we need to use [ and ] instead.
46610  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
46611  if test "x$has_forbidden_chars" != x; then
46612    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46613    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
46614    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
46615    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
46616      # Going to short mode and back again did indeed matter. Since short mode is
46617      # case insensitive, let's make it lowercase to improve readability.
46618      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46619      # Now convert it back to Unix-stile (cygpath)
46620      input_path=`$CYGPATH -u "$shortmode_path"`
46621      new_path="$input_path"
46622    fi
46623  fi
46624
46625  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
46626  if test "x$test_cygdrive_prefix" = x; then
46627    # As a simple fix, exclude /usr/bin since it's not a real path.
46628    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
46629      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
46630      # a path prefixed by /cygdrive for fixpath to work.
46631      new_path="$CYGWIN_ROOT_PATH$input_path"
46632    fi
46633  fi
46634
46635
46636  if test "x$path" != "x$new_path"; then
46637    FREETYPE_LIB_PATH="$new_path"
46638    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46639$as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46640  fi
46641
46642  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46643
46644  path="$FREETYPE_LIB_PATH"
46645  has_colon=`$ECHO $path | $GREP ^.:`
46646  new_path="$path"
46647  if test "x$has_colon" = x; then
46648    # Not in mixed or Windows style, start by that.
46649    new_path=`cmd //c echo $path`
46650  fi
46651
46652
46653  input_path="$new_path"
46654  # Check if we need to convert this using DOS-style short mode. If the path
46655  # contains just simple characters, use it. Otherwise (spaces, weird characters),
46656  # take no chances and rewrite it.
46657  # Note: m4 eats our [], so we need to use [ and ] instead.
46658  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
46659  if test "x$has_forbidden_chars" != x; then
46660    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
46661    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
46662  fi
46663
46664
46665  windows_path="$new_path"
46666  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46667    unix_path=`$CYGPATH -u "$windows_path"`
46668    new_path="$unix_path"
46669  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46670    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
46671    new_path="$unix_path"
46672  fi
46673
46674  if test "x$path" != "x$new_path"; then
46675    FREETYPE_LIB_PATH="$new_path"
46676    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5
46677$as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;}
46678  fi
46679
46680  # Save the first 10 bytes of this path to the storage, so fixpath can work.
46681  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
46682
46683  else
46684    # We're on a posix platform. Hooray! :)
46685    path="$FREETYPE_LIB_PATH"
46686    has_space=`$ECHO "$path" | $GREP " "`
46687    if test "x$has_space" != x; then
46688      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5
46689$as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;}
46690      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
46691    fi
46692
46693    # Use eval to expand a potential ~
46694    eval path="$path"
46695    if test ! -f "$path" && test ! -d "$path"; then
46696      as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5
46697    fi
46698
46699    FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`"
46700  fi
46701
46702      if test "x$OPENJDK_TARGET_OS" = xwindows; then
46703        FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib"
46704      else
46705        FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype"
46706      fi
46707    fi
46708
46709    # Try to compile it
46710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5
46711$as_echo_n "checking if we can compile and link with freetype... " >&6; }
46712    ac_ext=cpp
46713ac_cpp='$CXXCPP $CPPFLAGS'
46714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46717
46718    PREV_CXXCFLAGS="$CXXFLAGS"
46719    PREV_LIBS="$LIBS"
46720    PREV_CXX="$CXX"
46721    CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS"
46722    LIBS="$LIBS $FREETYPE_LIBS"
46723    CXX="$FIXPATH $CXX"
46724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46725/* end confdefs.h.  */
46726
46727          #include<ft2build.h>
46728          #include FT_FREETYPE_H
46729          int main () {
46730            FT_Init_FreeType(NULL);
46731            return 0;
46732          }
46733
46734_ACEOF
46735if ac_fn_cxx_try_link "$LINENO"; then :
46736
46737          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46738$as_echo "yes" >&6; }
46739
46740else
46741
46742          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46743$as_echo "no" >&6; }
46744          { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5
46745$as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;}
46746          { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5
46747$as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;}
46748
46749
46750  # Print a helpful message on how to acquire the necessary build dependency.
46751  # freetype is the help tag: freetype, cups, pulse, alsa etc
46752  MISSING_DEPENDENCY=freetype
46753
46754  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
46755    cygwin_help $MISSING_DEPENDENCY
46756  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
46757    msys_help $MISSING_DEPENDENCY
46758  else
46759    PKGHANDLER_COMMAND=
46760
46761    case $PKGHANDLER in
46762      apt-get)
46763        apt_help     $MISSING_DEPENDENCY ;;
46764      yum)
46765        yum_help     $MISSING_DEPENDENCY ;;
46766      port)
46767        port_help    $MISSING_DEPENDENCY ;;
46768      pkgutil)
46769        pkgutil_help $MISSING_DEPENDENCY ;;
46770      pkgadd)
46771        pkgadd_help  $MISSING_DEPENDENCY ;;
46772    esac
46773
46774    if test "x$PKGHANDLER_COMMAND" != x; then
46775      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
46776    fi
46777  fi
46778
46779
46780          as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5
46781
46782
46783fi
46784rm -f core conftest.err conftest.$ac_objext \
46785    conftest$ac_exeext conftest.$ac_ext
46786    CXXCFLAGS="$PREV_CXXFLAGS"
46787    LIBS="$PREV_LIBS"
46788    CXX="$PREV_CXX"
46789    ac_ext=cpp
46790ac_cpp='$CXXCPP $CPPFLAGS'
46791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46794
46795
46796    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5
46797$as_echo_n "checking if we should bundle freetype... " >&6; }
46798    if test "x$BUNDLE_FREETYPE" = xyes; then
46799      FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH"
46800    fi
46801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5
46802$as_echo "$BUNDLE_FREETYPE" >&6; }
46803
46804  fi # end freetype needed
46805
46806
46807
46808
46809
46810
46811
46812  ###############################################################################
46813  #
46814  # Check for alsa headers and libraries. Used on Linux/GNU systems.
46815  #
46816
46817# Check whether --with-alsa was given.
46818if test "${with_alsa+set}" = set; then :
46819  withval=$with_alsa;
46820fi
46821
46822
46823# Check whether --with-alsa-include was given.
46824if test "${with_alsa_include+set}" = set; then :
46825  withval=$with_alsa_include;
46826fi
46827
46828
46829# Check whether --with-alsa-lib was given.
46830if test "${with_alsa_lib+set}" = set; then :
46831  withval=$with_alsa_lib;
46832fi
46833
46834
46835  if test "x$ALSA_NOT_NEEDED" = xyes; then
46836    if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
46837      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
46838$as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
46839    fi
46840    ALSA_CFLAGS=
46841    ALSA_LIBS=
46842  else
46843    ALSA_FOUND=no
46844
46845    if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
46846      as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
46847    fi
46848
46849    if test "x${with_alsa}" != x; then
46850      ALSA_LIBS="-L${with_alsa}/lib -lasound"
46851      ALSA_CFLAGS="-I${with_alsa}/include"
46852      ALSA_FOUND=yes
46853    fi
46854    if test "x${with_alsa_include}" != x; then
46855      ALSA_CFLAGS="-I${with_alsa_include}"
46856      ALSA_FOUND=yes
46857    fi
46858    if test "x${with_alsa_lib}" != x; then
46859      ALSA_LIBS="-L${with_alsa_lib} -lasound"
46860      ALSA_FOUND=yes
46861    fi
46862    if test "x$ALSA_FOUND" = xno; then
46863
46864
46865  if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
46866    # Source the builddeps file again, to make sure it uses the latest variables!
46867    . $builddepsfile
46868    # Look for a target and build machine specific resource!
46869    eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
46870    if test "x$resource" = x; then
46871      # Ok, lets instead look for a target specific resource
46872      eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}}
46873    fi
46874    if test "x$resource" = x; then
46875      # Ok, lets instead look for a build specific resource
46876      eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
46877    fi
46878    if test "x$resource" = x; then
46879      # Ok, lets instead look for a generic resource
46880      # (The alsa comes from M4 and not the shell, thus no need for eval here.)
46881      resource=${builddep_alsa}
46882    fi
46883    if test "x$resource" != x; then
46884      { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
46885$as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
46886      # If the resource in the builddeps.conf file is an existing directory,
46887      # for example /java/linux/cups
46888      if test -d ${resource}; then
46889        depdir=${resource}
46890      else
46891
46892  # alsa is for example mymodule
46893  # $resource is for example libs/general/libmymod_1_2_3.zip
46894  # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
46895  # $with_builddeps_dir is for example /localhome/builddeps
46896  # depdir is the name of the variable into which we store the depdir, eg MYMOD
46897  # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
46898  # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
46899  filename=`basename $resource`
46900  filebase=`echo $filename | sed 's/\.[^\.]*$//'`
46901  filebase=${filename%%.*}
46902  extension=${filename#*.}
46903  installdir=$with_builddeps_dir/$filebase
46904  if test ! -f $installdir/$filename.unpacked; then
46905    { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
46906$as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
46907    if test ! -d $installdir; then
46908      mkdir -p $installdir
46909    fi
46910    if test ! -d $installdir; then
46911      as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
46912    fi
46913    tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
46914    touch $tmpfile
46915    if test ! -f $tmpfile; then
46916      as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
46917    fi
46918
46919  # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
46920  # $tmpfile is the local file name for the downloaded file.
46921  VALID_TOOL=no
46922  if test "x$BDEPS_FTP" = xwget; then
46923    VALID_TOOL=yes
46924    wget -O $tmpfile $with_builddeps_server/$resource
46925  fi
46926  if test "x$BDEPS_FTP" = xlftp; then
46927    VALID_TOOL=yes
46928    lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
46929  fi
46930  if test "x$BDEPS_FTP" = xftp; then
46931    VALID_TOOL=yes
46932    FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
46933    FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
46934    FTPUSERPWD=${FTPSERVER%%@*}
46935    if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
46936      FTPUSER=${userpwd%%:*}
46937      FTPPWD=${userpwd#*@}
46938      FTPSERVER=${FTPSERVER#*@}
46939    else
46940      FTPUSER=ftp
46941      FTPPWD=ftp
46942    fi
46943    # the "pass" command does not work on some
46944    # ftp clients (read ftp.exe) but if it works,
46945    # passive mode is better!
46946    ( \
46947        echo "user $FTPUSER $FTPPWD"        ; \
46948        echo "pass"                         ; \
46949        echo "bin"                          ; \
46950        echo "get $FTPPATH $tmpfile"              ; \
46951    ) | ftp -in $FTPSERVER
46952  fi
46953  if test "x$VALID_TOOL" != xyes; then
46954    as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
46955  fi
46956
46957    mv $tmpfile $installdir/$filename
46958    if test ! -s $installdir/$filename; then
46959      as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
46960    fi
46961    case "$extension" in
46962      zip)  echo "Unzipping $installdir/$filename..."
46963        (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
46964        ;;
46965      tar.gz) echo "Untaring $installdir/$filename..."
46966        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46967        ;;
46968      tgz) echo "Untaring $installdir/$filename..."
46969        (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
46970        ;;
46971      *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
46972        ;;
46973    esac
46974  fi
46975  if test -f $installdir/$filename.unpacked; then
46976    depdir=$installdir
46977  fi
46978
46979      fi
46980      # Source the builddeps file again, because in the previous command, the depdir
46981      # was updated to point at the current build dependency install directory.
46982      . $builddepsfile
46983      # Now extract variables from the builddeps.conf files.
46984      theroot=${builddep_alsa_ROOT}
46985      thecflags=${builddep_alsa_CFLAGS}
46986      thelibs=${builddep_alsa_LIBS}
46987      if test "x$depdir" = x; then
46988        as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
46989      fi
46990      ALSA=$depdir
46991      if test "x$theroot" != x; then
46992        ALSA="$theroot"
46993      fi
46994      if test "x$thecflags" != x; then
46995        ALSA_CFLAGS="$thecflags"
46996      fi
46997      if test "x$thelibs" != x; then
46998        ALSA_LIBS="$thelibs"
46999      fi
47000      ALSA_FOUND=yes
47001      else ALSA_FOUND=no
47002
47003    fi
47004    else ALSA_FOUND=no
47005
47006  fi
47007
47008    fi
47009    # Do not try pkg-config if we have a sysroot set.
47010    if test "x$SYSROOT" = x; then
47011      if test "x$ALSA_FOUND" = xno; then
47012
47013pkg_failed=no
47014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
47015$as_echo_n "checking for ALSA... " >&6; }
47016
47017if test -n "$ALSA_CFLAGS"; then
47018    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
47019 elif test -n "$PKG_CONFIG"; then
47020    if test -n "$PKG_CONFIG" && \
47021    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
47022  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
47023  ac_status=$?
47024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47025  test $ac_status = 0; }; then
47026  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
47027else
47028  pkg_failed=yes
47029fi
47030 else
47031    pkg_failed=untried
47032fi
47033if test -n "$ALSA_LIBS"; then
47034    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
47035 elif test -n "$PKG_CONFIG"; then
47036    if test -n "$PKG_CONFIG" && \
47037    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
47038  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
47039  ac_status=$?
47040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47041  test $ac_status = 0; }; then
47042  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
47043else
47044  pkg_failed=yes
47045fi
47046 else
47047    pkg_failed=untried
47048fi
47049
47050
47051
47052if test $pkg_failed = yes; then
47053
47054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47055        _pkg_short_errors_supported=yes
47056else
47057        _pkg_short_errors_supported=no
47058fi
47059        if test $_pkg_short_errors_supported = yes; then
47060	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
47061        else
47062	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
47063        fi
47064	# Put the nasty error message in config.log where it belongs
47065	echo "$ALSA_PKG_ERRORS" >&5
47066
47067	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47068$as_echo "no" >&6; }
47069                ALSA_FOUND=no
47070elif test $pkg_failed = untried; then
47071	ALSA_FOUND=no
47072else
47073	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
47074	ALSA_LIBS=$pkg_cv_ALSA_LIBS
47075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47076$as_echo "yes" >&6; }
47077	ALSA_FOUND=yes
47078fi
47079      fi
47080    fi
47081    if test "x$ALSA_FOUND" = xno; then
47082      for ac_header in alsa/asoundlib.h
47083do :
47084  ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
47085if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
47086  cat >>confdefs.h <<_ACEOF
47087#define HAVE_ALSA_ASOUNDLIB_H 1
47088_ACEOF
47089
47090            ALSA_FOUND=yes
47091            ALSA_CFLAGS=-Iignoreme
47092            ALSA_LIBS=-lasound
47093            DEFAULT_ALSA=yes
47094
47095else
47096  ALSA_FOUND=no
47097fi
47098
47099done
47100
47101    fi
47102    if test "x$ALSA_FOUND" = xno; then
47103
47104  # Print a helpful message on how to acquire the necessary build dependency.
47105  # alsa is the help tag: freetype, cups, pulse, alsa etc
47106  MISSING_DEPENDENCY=alsa
47107
47108  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
47109    cygwin_help $MISSING_DEPENDENCY
47110  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
47111    msys_help $MISSING_DEPENDENCY
47112  else
47113    PKGHANDLER_COMMAND=
47114
47115    case $PKGHANDLER in
47116      apt-get)
47117        apt_help     $MISSING_DEPENDENCY ;;
47118      yum)
47119        yum_help     $MISSING_DEPENDENCY ;;
47120      port)
47121        port_help    $MISSING_DEPENDENCY ;;
47122      pkgutil)
47123        pkgutil_help $MISSING_DEPENDENCY ;;
47124      pkgadd)
47125        pkgadd_help  $MISSING_DEPENDENCY ;;
47126    esac
47127
47128    if test "x$PKGHANDLER_COMMAND" != x; then
47129      HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
47130    fi
47131  fi
47132
47133      as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
47134    fi
47135  fi
47136
47137
47138
47139
47140
47141
47142  ###############################################################################
47143  #
47144  # Check for the jpeg library
47145  #
47146
47147  USE_EXTERNAL_LIBJPEG=true
47148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
47149$as_echo_n "checking for main in -ljpeg... " >&6; }
47150if ${ac_cv_lib_jpeg_main+:} false; then :
47151  $as_echo_n "(cached) " >&6
47152else
47153  ac_check_lib_save_LIBS=$LIBS
47154LIBS="-ljpeg  $LIBS"
47155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47156/* end confdefs.h.  */
47157
47158
47159int
47160main ()
47161{
47162return main ();
47163  ;
47164  return 0;
47165}
47166_ACEOF
47167if ac_fn_cxx_try_link "$LINENO"; then :
47168  ac_cv_lib_jpeg_main=yes
47169else
47170  ac_cv_lib_jpeg_main=no
47171fi
47172rm -f core conftest.err conftest.$ac_objext \
47173    conftest$ac_exeext conftest.$ac_ext
47174LIBS=$ac_check_lib_save_LIBS
47175fi
47176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
47177$as_echo "$ac_cv_lib_jpeg_main" >&6; }
47178if test "x$ac_cv_lib_jpeg_main" = xyes; then :
47179  cat >>confdefs.h <<_ACEOF
47180#define HAVE_LIBJPEG 1
47181_ACEOF
47182
47183  LIBS="-ljpeg $LIBS"
47184
47185else
47186   USE_EXTERNAL_LIBJPEG=false
47187      { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
47188$as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
47189
47190fi
47191
47192
47193
47194  ###############################################################################
47195  #
47196  # Check for the gif library
47197  #
47198
47199
47200# Check whether --with-giflib was given.
47201if test "${with_giflib+set}" = set; then :
47202  withval=$with_giflib;
47203fi
47204
47205
47206
47207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5
47208$as_echo_n "checking for which giflib to use... " >&6; }
47209
47210  # default is bundled
47211  DEFAULT_GIFLIB=bundled
47212
47213  #
47214  # if user didn't specify, use DEFAULT_GIFLIB
47215  #
47216  if test "x${with_giflib}" = "x"; then
47217    with_giflib=${DEFAULT_GIFLIB}
47218  fi
47219
47220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5
47221$as_echo "${with_giflib}" >&6; }
47222
47223  if test "x${with_giflib}" = "xbundled"; then
47224    USE_EXTERNAL_LIBGIF=false
47225  elif test "x${with_giflib}" = "xsystem"; then
47226    ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
47227if test "x$ac_cv_header_gif_lib_h" = xyes; then :
47228
47229else
47230   as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5
47231fi
47232
47233
47234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5
47235$as_echo_n "checking for DGifGetCode in -lgif... " >&6; }
47236if ${ac_cv_lib_gif_DGifGetCode+:} false; then :
47237  $as_echo_n "(cached) " >&6
47238else
47239  ac_check_lib_save_LIBS=$LIBS
47240LIBS="-lgif  $LIBS"
47241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47242/* end confdefs.h.  */
47243
47244/* Override any GCC internal prototype to avoid an error.
47245   Use char because int might match the return type of a GCC
47246   builtin and then its argument prototype would still apply.  */
47247#ifdef __cplusplus
47248extern "C"
47249#endif
47250char DGifGetCode ();
47251int
47252main ()
47253{
47254return DGifGetCode ();
47255  ;
47256  return 0;
47257}
47258_ACEOF
47259if ac_fn_cxx_try_link "$LINENO"; then :
47260  ac_cv_lib_gif_DGifGetCode=yes
47261else
47262  ac_cv_lib_gif_DGifGetCode=no
47263fi
47264rm -f core conftest.err conftest.$ac_objext \
47265    conftest$ac_exeext conftest.$ac_ext
47266LIBS=$ac_check_lib_save_LIBS
47267fi
47268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5
47269$as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; }
47270if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then :
47271  cat >>confdefs.h <<_ACEOF
47272#define HAVE_LIBGIF 1
47273_ACEOF
47274
47275  LIBS="-lgif $LIBS"
47276
47277else
47278   as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5
47279fi
47280
47281
47282    USE_EXTERNAL_LIBGIF=true
47283  else
47284    as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5
47285  fi
47286
47287
47288  ###############################################################################
47289  #
47290  # Check for the png library
47291  #
47292
47293
47294# Check whether --with-libpng was given.
47295if test "${with_libpng+set}" = set; then :
47296  withval=$with_libpng;
47297fi
47298
47299
47300
47301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5
47302$as_echo_n "checking for which libpng to use... " >&6; }
47303
47304  # default is bundled
47305  DEFAULT_LIBPNG=bundled
47306
47307  #
47308  # if user didn't specify, use DEFAULT_LIBPNG
47309  #
47310  if test "x${with_libpng}" = "x"; then
47311      with_libpng=${DEFAULT_LIBPNG}
47312  fi
47313
47314  if test "x${with_libpng}" = "xbundled"; then
47315      USE_EXTERNAL_LIBPNG=false
47316      { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47317$as_echo "bundled" >&6; }
47318  elif test "x${with_libpng}" = "xsystem"; then
47319
47320pkg_failed=no
47321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
47322$as_echo_n "checking for PNG... " >&6; }
47323
47324if test -n "$PNG_CFLAGS"; then
47325    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
47326 elif test -n "$PKG_CONFIG"; then
47327    if test -n "$PKG_CONFIG" && \
47328    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
47329  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
47330  ac_status=$?
47331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47332  test $ac_status = 0; }; then
47333  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
47334else
47335  pkg_failed=yes
47336fi
47337 else
47338    pkg_failed=untried
47339fi
47340if test -n "$PNG_LIBS"; then
47341    pkg_cv_PNG_LIBS="$PNG_LIBS"
47342 elif test -n "$PKG_CONFIG"; then
47343    if test -n "$PKG_CONFIG" && \
47344    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
47345  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
47346  ac_status=$?
47347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47348  test $ac_status = 0; }; then
47349  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
47350else
47351  pkg_failed=yes
47352fi
47353 else
47354    pkg_failed=untried
47355fi
47356
47357
47358
47359if test $pkg_failed = yes; then
47360
47361if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47362        _pkg_short_errors_supported=yes
47363else
47364        _pkg_short_errors_supported=no
47365fi
47366        if test $_pkg_short_errors_supported = yes; then
47367	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1`
47368        else
47369	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1`
47370        fi
47371	# Put the nasty error message in config.log where it belongs
47372	echo "$PNG_PKG_ERRORS" >&5
47373
47374	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47375$as_echo "no" >&6; }
47376                 LIBPNG_FOUND=no
47377elif test $pkg_failed = untried; then
47378	 LIBPNG_FOUND=no
47379else
47380	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
47381	PNG_LIBS=$pkg_cv_PNG_LIBS
47382        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47383$as_echo "yes" >&6; }
47384	 LIBPNG_FOUND=yes
47385fi
47386      if test "x${LIBPNG_FOUND}" = "xyes"; then
47387          USE_EXTERNAL_LIBPNG=true
47388          { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47389$as_echo "system" >&6; }
47390      else
47391          { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47392$as_echo "system not found" >&6; }
47393          as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5
47394      fi
47395  else
47396      as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5
47397  fi
47398
47399
47400  ###############################################################################
47401  #
47402  # Check for the zlib library
47403  #
47404
47405
47406# Check whether --with-zlib was given.
47407if test "${with_zlib+set}" = set; then :
47408  withval=$with_zlib;
47409fi
47410
47411
47412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
47413$as_echo_n "checking for compress in -lz... " >&6; }
47414if ${ac_cv_lib_z_compress+:} false; then :
47415  $as_echo_n "(cached) " >&6
47416else
47417  ac_check_lib_save_LIBS=$LIBS
47418LIBS="-lz  $LIBS"
47419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47420/* end confdefs.h.  */
47421
47422/* Override any GCC internal prototype to avoid an error.
47423   Use char because int might match the return type of a GCC
47424   builtin and then its argument prototype would still apply.  */
47425#ifdef __cplusplus
47426extern "C"
47427#endif
47428char compress ();
47429int
47430main ()
47431{
47432return compress ();
47433  ;
47434  return 0;
47435}
47436_ACEOF
47437if ac_fn_cxx_try_link "$LINENO"; then :
47438  ac_cv_lib_z_compress=yes
47439else
47440  ac_cv_lib_z_compress=no
47441fi
47442rm -f core conftest.err conftest.$ac_objext \
47443    conftest$ac_exeext conftest.$ac_ext
47444LIBS=$ac_check_lib_save_LIBS
47445fi
47446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
47447$as_echo "$ac_cv_lib_z_compress" >&6; }
47448if test "x$ac_cv_lib_z_compress" = xyes; then :
47449   ZLIB_FOUND=yes
47450else
47451   ZLIB_FOUND=no
47452fi
47453
47454
47455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
47456$as_echo_n "checking for which zlib to use... " >&6; }
47457
47458  DEFAULT_ZLIB=bundled
47459  if test "x$OPENJDK_TARGET_OS" = xmacosx; then
47460    #
47461    # On macosx default is system...on others default is
47462    #
47463    DEFAULT_ZLIB=system
47464  fi
47465
47466  if test "x${ZLIB_FOUND}" != "xyes"; then
47467    #
47468    # If we don't find any system...set default to bundled
47469    #
47470    DEFAULT_ZLIB=bundled
47471  fi
47472
47473  #
47474  # If user didn't specify, use DEFAULT_ZLIB
47475  #
47476  if test "x${with_zlib}" = "x"; then
47477    with_zlib=${DEFAULT_ZLIB}
47478  fi
47479
47480  if test "x${with_zlib}" = "xbundled"; then
47481    USE_EXTERNAL_LIBZ=false
47482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
47483$as_echo "bundled" >&6; }
47484  elif test "x${with_zlib}" = "xsystem"; then
47485    if test "x${ZLIB_FOUND}" = "xyes"; then
47486      USE_EXTERNAL_LIBZ=true
47487      { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
47488$as_echo "system" >&6; }
47489    else
47490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5
47491$as_echo "system not found" >&6; }
47492      as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5
47493    fi
47494  else
47495    as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5
47496  fi
47497
47498
47499
47500  ###############################################################################
47501  LIBZIP_CAN_USE_MMAP=true
47502
47503
47504
47505  ###############################################################################
47506  #
47507  # Check if altzone exists in time.h
47508  #
47509
47510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47511/* end confdefs.h.  */
47512#include <time.h>
47513int
47514main ()
47515{
47516return (int)altzone;
47517  ;
47518  return 0;
47519}
47520_ACEOF
47521if ac_fn_cxx_try_link "$LINENO"; then :
47522  has_altzone=yes
47523else
47524  has_altzone=no
47525fi
47526rm -f core conftest.err conftest.$ac_objext \
47527    conftest$ac_exeext conftest.$ac_ext
47528  if test "x$has_altzone" = xyes; then
47529
47530$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
47531
47532  fi
47533
47534  ###############################################################################
47535  #
47536  # Check the maths library
47537  #
47538
47539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
47540$as_echo_n "checking for cos in -lm... " >&6; }
47541if ${ac_cv_lib_m_cos+:} false; then :
47542  $as_echo_n "(cached) " >&6
47543else
47544  ac_check_lib_save_LIBS=$LIBS
47545LIBS="-lm  $LIBS"
47546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47547/* end confdefs.h.  */
47548
47549/* Override any GCC internal prototype to avoid an error.
47550   Use char because int might match the return type of a GCC
47551   builtin and then its argument prototype would still apply.  */
47552#ifdef __cplusplus
47553extern "C"
47554#endif
47555char cos ();
47556int
47557main ()
47558{
47559return cos ();
47560  ;
47561  return 0;
47562}
47563_ACEOF
47564if ac_fn_cxx_try_link "$LINENO"; then :
47565  ac_cv_lib_m_cos=yes
47566else
47567  ac_cv_lib_m_cos=no
47568fi
47569rm -f core conftest.err conftest.$ac_objext \
47570    conftest$ac_exeext conftest.$ac_ext
47571LIBS=$ac_check_lib_save_LIBS
47572fi
47573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
47574$as_echo "$ac_cv_lib_m_cos" >&6; }
47575if test "x$ac_cv_lib_m_cos" = xyes; then :
47576  cat >>confdefs.h <<_ACEOF
47577#define HAVE_LIBM 1
47578_ACEOF
47579
47580  LIBS="-lm $LIBS"
47581
47582else
47583
47584        { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
47585$as_echo "$as_me: Maths library was not found" >&6;}
47586
47587
47588fi
47589
47590
47591
47592  ###############################################################################
47593  #
47594  # Check for libdl.so
47595
47596  save_LIBS="$LIBS"
47597  LIBS=""
47598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
47599$as_echo_n "checking for dlopen in -ldl... " >&6; }
47600if ${ac_cv_lib_dl_dlopen+:} false; then :
47601  $as_echo_n "(cached) " >&6
47602else
47603  ac_check_lib_save_LIBS=$LIBS
47604LIBS="-ldl  $LIBS"
47605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47606/* end confdefs.h.  */
47607
47608/* Override any GCC internal prototype to avoid an error.
47609   Use char because int might match the return type of a GCC
47610   builtin and then its argument prototype would still apply.  */
47611#ifdef __cplusplus
47612extern "C"
47613#endif
47614char dlopen ();
47615int
47616main ()
47617{
47618return dlopen ();
47619  ;
47620  return 0;
47621}
47622_ACEOF
47623if ac_fn_cxx_try_link "$LINENO"; then :
47624  ac_cv_lib_dl_dlopen=yes
47625else
47626  ac_cv_lib_dl_dlopen=no
47627fi
47628rm -f core conftest.err conftest.$ac_objext \
47629    conftest$ac_exeext conftest.$ac_ext
47630LIBS=$ac_check_lib_save_LIBS
47631fi
47632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
47633$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
47634if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
47635  cat >>confdefs.h <<_ACEOF
47636#define HAVE_LIBDL 1
47637_ACEOF
47638
47639  LIBS="-ldl $LIBS"
47640
47641fi
47642
47643  LIBDL="$LIBS"
47644
47645  LIBS="$save_LIBS"
47646
47647
47648  ###############################################################################
47649  #
47650  # statically link libstdc++ before C++ ABI is stablized on Linux unless
47651  # dynamic build is configured on command line.
47652  #
47653
47654# Check whether --with-stdc++lib was given.
47655if test "${with_stdc__lib+set}" = set; then :
47656  withval=$with_stdc__lib;
47657        if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \
47658                && test "x$with_stdc__lib" != xdefault; then
47659          as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5
47660        fi
47661
47662else
47663  with_stdc__lib=default
47664
47665fi
47666
47667
47668  if test "x$OPENJDK_TARGET_OS" = xlinux; then
47669    # Test if -lstdc++ works.
47670    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
47671$as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
47672    ac_ext=cpp
47673ac_cpp='$CXXCPP $CPPFLAGS'
47674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47677
47678    OLD_CXXFLAGS="$CXXFLAGS"
47679    CXXFLAGS="$CXXFLAGS -lstdc++"
47680    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47681/* end confdefs.h.  */
47682
47683int
47684main ()
47685{
47686return 0;
47687  ;
47688  return 0;
47689}
47690_ACEOF
47691if ac_fn_cxx_try_link "$LINENO"; then :
47692  has_dynamic_libstdcxx=yes
47693else
47694  has_dynamic_libstdcxx=no
47695fi
47696rm -f core conftest.err conftest.$ac_objext \
47697    conftest$ac_exeext conftest.$ac_ext
47698    CXXFLAGS="$OLD_CXXFLAGS"
47699    ac_ext=cpp
47700ac_cpp='$CXXCPP $CPPFLAGS'
47701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47704
47705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
47706$as_echo "$has_dynamic_libstdcxx" >&6; }
47707
47708    # Test if stdc++ can be linked statically.
47709    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
47710$as_echo_n "checking if static link of stdc++ is possible... " >&6; }
47711    STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
47712    ac_ext=cpp
47713ac_cpp='$CXXCPP $CPPFLAGS'
47714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47717
47718    OLD_LIBS="$LIBS"
47719    OLD_CXX="$CXX"
47720    LIBS="$STATIC_STDCXX_FLAGS"
47721    CXX="$CC"
47722    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47723/* end confdefs.h.  */
47724
47725int
47726main ()
47727{
47728return 0;
47729  ;
47730  return 0;
47731}
47732_ACEOF
47733if ac_fn_cxx_try_link "$LINENO"; then :
47734  has_static_libstdcxx=yes
47735else
47736  has_static_libstdcxx=no
47737fi
47738rm -f core conftest.err conftest.$ac_objext \
47739    conftest$ac_exeext conftest.$ac_ext
47740    LIBS="$OLD_LIBS"
47741    CXX="$OLD_CXX"
47742    ac_ext=cpp
47743ac_cpp='$CXXCPP $CPPFLAGS'
47744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47747
47748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
47749$as_echo "$has_static_libstdcxx" >&6; }
47750
47751    if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
47752      as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5
47753    fi
47754
47755    if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
47756      as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5
47757    fi
47758
47759    if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
47760      as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5
47761    fi
47762
47763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
47764$as_echo_n "checking how to link with libstdc++... " >&6; }
47765    # If dynamic was requested, it's available since it would fail above otherwise.
47766    # If dynamic wasn't requested, go with static unless it isn't available.
47767    if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47768      LIBCXX="$LIBCXX -lstdc++"
47769      LDCXX="$CXX"
47770      STATIC_CXX_SETTING="STATIC_CXX=false"
47771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
47772$as_echo "dynamic" >&6; }
47773    else
47774      LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
47775      LDCXX="$CC"
47776      STATIC_CXX_SETTING="STATIC_CXX=true"
47777      { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
47778$as_echo "static" >&6; }
47779    fi
47780  fi
47781
47782
47783  if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47784    # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS
47785
47786pkg_failed=no
47787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
47788$as_echo_n "checking for LIBFFI... " >&6; }
47789
47790if test -n "$LIBFFI_CFLAGS"; then
47791    pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
47792 elif test -n "$PKG_CONFIG"; then
47793    if test -n "$PKG_CONFIG" && \
47794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47795  ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47796  ac_status=$?
47797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47798  test $ac_status = 0; }; then
47799  pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
47800else
47801  pkg_failed=yes
47802fi
47803 else
47804    pkg_failed=untried
47805fi
47806if test -n "$LIBFFI_LIBS"; then
47807    pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
47808 elif test -n "$PKG_CONFIG"; then
47809    if test -n "$PKG_CONFIG" && \
47810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
47811  ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
47812  ac_status=$?
47813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47814  test $ac_status = 0; }; then
47815  pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
47816else
47817  pkg_failed=yes
47818fi
47819 else
47820    pkg_failed=untried
47821fi
47822
47823
47824
47825if test $pkg_failed = yes; then
47826
47827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47828        _pkg_short_errors_supported=yes
47829else
47830        _pkg_short_errors_supported=no
47831fi
47832        if test $_pkg_short_errors_supported = yes; then
47833	        LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1`
47834        else
47835	        LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1`
47836        fi
47837	# Put the nasty error message in config.log where it belongs
47838	echo "$LIBFFI_PKG_ERRORS" >&5
47839
47840	as_fn_error $? "Package requirements (libffi) were not met:
47841
47842$LIBFFI_PKG_ERRORS
47843
47844Consider adjusting the PKG_CONFIG_PATH environment variable if you
47845installed software in a non-standard prefix.
47846
47847Alternatively, you may set the environment variables LIBFFI_CFLAGS
47848and LIBFFI_LIBS to avoid the need to call pkg-config.
47849See the pkg-config man page for more details.
47850" "$LINENO" 5
47851elif test $pkg_failed = untried; then
47852	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47854as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
47855is in your PATH or set the PKG_CONFIG environment variable to the full
47856path to pkg-config.
47857
47858Alternatively, you may set the environment variables LIBFFI_CFLAGS
47859and LIBFFI_LIBS to avoid the need to call pkg-config.
47860See the pkg-config man page for more details.
47861
47862To get pkg-config, see <http://pkg-config.freedesktop.org/>.
47863See \`config.log' for more details" "$LINENO" 5; }
47864else
47865	LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
47866	LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
47867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47868$as_echo "yes" >&6; }
47869	:
47870fi
47871
47872  fi
47873
47874  if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
47875    # Extract the first word of "llvm-config", so it can be a program name with args.
47876set dummy llvm-config; ac_word=$2
47877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47878$as_echo_n "checking for $ac_word... " >&6; }
47879if ${ac_cv_prog_LLVM_CONFIG+:} false; then :
47880  $as_echo_n "(cached) " >&6
47881else
47882  if test -n "$LLVM_CONFIG"; then
47883  ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test.
47884else
47885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47886for as_dir in $PATH
47887do
47888  IFS=$as_save_IFS
47889  test -z "$as_dir" && as_dir=.
47890    for ac_exec_ext in '' $ac_executable_extensions; do
47891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47892    ac_cv_prog_LLVM_CONFIG="llvm-config"
47893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47894    break 2
47895  fi
47896done
47897  done
47898IFS=$as_save_IFS
47899
47900fi
47901fi
47902LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG
47903if test -n "$LLVM_CONFIG"; then
47904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
47905$as_echo "$LLVM_CONFIG" >&6; }
47906else
47907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47908$as_echo "no" >&6; }
47909fi
47910
47911
47912
47913    if test "x$LLVM_CONFIG" != xllvm-config; then
47914      as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5
47915    fi
47916
47917    llvm_components="jit mcjit engine nativecodegen native"
47918    unset LLVM_CFLAGS
47919    for flag in $("$LLVM_CONFIG" --cxxflags); do
47920      if echo "${flag}" | grep -q '^-[ID]'; then
47921        if test "${flag}" != "-D_DEBUG" ; then
47922          if test "${LLVM_CFLAGS}" != "" ; then
47923            LLVM_CFLAGS="${LLVM_CFLAGS} "
47924          fi
47925          LLVM_CFLAGS="${LLVM_CFLAGS}${flag}"
47926        fi
47927      fi
47928    done
47929    llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//')
47930    LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}"
47931
47932    unset LLVM_LDFLAGS
47933    for flag in $("${LLVM_CONFIG}" --ldflags); do
47934      if echo "${flag}" | grep -q '^-L'; then
47935        if test "${LLVM_LDFLAGS}" != ""; then
47936          LLVM_LDFLAGS="${LLVM_LDFLAGS} "
47937        fi
47938        LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}"
47939      fi
47940    done
47941
47942    unset LLVM_LIBS
47943    for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do
47944      if echo "${flag}" | grep -q '^-l'; then
47945        if test "${LLVM_LIBS}" != ""; then
47946          LLVM_LIBS="${LLVM_LIBS} "
47947        fi
47948        LLVM_LIBS="${LLVM_LIBS}${flag}"
47949      fi
47950    done
47951
47952
47953
47954
47955  fi
47956
47957  # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
47958  if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then
47959    LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
47960  fi
47961
47962  # TODO better (platform agnostic) test
47963  if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then
47964    LIBCXX="-lstdc++"
47965  fi
47966
47967
47968
47969
47970  if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
47971
47972
47973# Check whether --with-msvcr-dll was given.
47974if test "${with_msvcr_dll+set}" = set; then :
47975  withval=$with_msvcr_dll;
47976fi
47977
47978
47979  if test "x$with_msvcr_dll" != x; then
47980    # If given explicitely by user, do not probe. If not present, fail directly.
47981
47982  POSSIBLE_MSVCR_DLL="$with_msvcr_dll"
47983  METHOD="--with-msvcr-dll"
47984  if test -e "$POSSIBLE_MSVCR_DLL"; then
47985    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
47986$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
47987
47988    # Need to check if the found msvcr is correct architecture
47989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
47990$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
47991    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
47992    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
47993      CORRECT_MSVCR_ARCH=386
47994    else
47995      CORRECT_MSVCR_ARCH=x86-64
47996    fi
47997    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
47998      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
47999$as_echo "ok" >&6; }
48000      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48001      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48002$as_echo_n "checking for msvcr100.dll... " >&6; }
48003      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48004$as_echo "$MSVCR_DLL" >&6; }
48005    else
48006      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48007$as_echo "incorrect, ignoring" >&6; }
48008      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48009$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48010    fi
48011  fi
48012
48013    if test "x$MSVCR_DLL" = x; then
48014      as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5
48015    fi
48016  fi
48017
48018  if test "x$MSVCR_DLL" = x; then
48019    # Probe: Using well-known location from Visual Studio 10.0
48020    if test "x$VCINSTALLDIR" != x; then
48021      CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR"
48022
48023  windows_path="$CYGWIN_VC_INSTALL_DIR"
48024  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
48025    unix_path=`$CYGPATH -u "$windows_path"`
48026    CYGWIN_VC_INSTALL_DIR="$unix_path"
48027  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48028    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
48029    CYGWIN_VC_INSTALL_DIR="$unix_path"
48030  fi
48031
48032      if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
48033        POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll"
48034      else
48035        POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll"
48036      fi
48037
48038  POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48039  METHOD="well-known location in VCINSTALLDIR"
48040  if test -e "$POSSIBLE_MSVCR_DLL"; then
48041    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
48042$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
48043
48044    # Need to check if the found msvcr is correct architecture
48045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
48046$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
48047    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
48048    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
48049      CORRECT_MSVCR_ARCH=386
48050    else
48051      CORRECT_MSVCR_ARCH=x86-64
48052    fi
48053    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
48054      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
48055$as_echo "ok" >&6; }
48056      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48057      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48058$as_echo_n "checking for msvcr100.dll... " >&6; }
48059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48060$as_echo "$MSVCR_DLL" >&6; }
48061    else
48062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48063$as_echo "incorrect, ignoring" >&6; }
48064      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48065$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48066    fi
48067  fi
48068
48069    fi
48070  fi
48071
48072  if test "x$MSVCR_DLL" = x; then
48073    # Probe: Check in the Boot JDK directory.
48074    POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll"
48075
48076  POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48077  METHOD="well-known location in Boot JDK"
48078  if test -e "$POSSIBLE_MSVCR_DLL"; then
48079    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
48080$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
48081
48082    # Need to check if the found msvcr is correct architecture
48083    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
48084$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
48085    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
48086    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
48087      CORRECT_MSVCR_ARCH=386
48088    else
48089      CORRECT_MSVCR_ARCH=x86-64
48090    fi
48091    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
48092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
48093$as_echo "ok" >&6; }
48094      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48095      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48096$as_echo_n "checking for msvcr100.dll... " >&6; }
48097      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48098$as_echo "$MSVCR_DLL" >&6; }
48099    else
48100      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48101$as_echo "incorrect, ignoring" >&6; }
48102      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48103$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48104    fi
48105  fi
48106
48107  fi
48108
48109  if test "x$MSVCR_DLL" = x; then
48110    # Probe: Look in the Windows system32 directory
48111    CYGWIN_SYSTEMROOT="$SYSTEMROOT"
48112
48113  windows_path="$CYGWIN_SYSTEMROOT"
48114  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
48115    unix_path=`$CYGPATH -u "$windows_path"`
48116    CYGWIN_SYSTEMROOT="$unix_path"
48117  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48118    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
48119    CYGWIN_SYSTEMROOT="$unix_path"
48120  fi
48121
48122    POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll"
48123
48124  POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48125  METHOD="well-known location in SYSTEMROOT"
48126  if test -e "$POSSIBLE_MSVCR_DLL"; then
48127    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
48128$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
48129
48130    # Need to check if the found msvcr is correct architecture
48131    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
48132$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
48133    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
48134    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
48135      CORRECT_MSVCR_ARCH=386
48136    else
48137      CORRECT_MSVCR_ARCH=x86-64
48138    fi
48139    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
48140      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
48141$as_echo "ok" >&6; }
48142      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48143      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48144$as_echo_n "checking for msvcr100.dll... " >&6; }
48145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48146$as_echo "$MSVCR_DLL" >&6; }
48147    else
48148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48149$as_echo "incorrect, ignoring" >&6; }
48150      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48151$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48152    fi
48153  fi
48154
48155  fi
48156
48157  if test "x$MSVCR_DLL" = x; then
48158    # Probe: If Visual Studio Express is installed, there is usually one with the debugger
48159    if test "x$VS100COMNTOOLS" != x; then
48160      CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.."
48161
48162  windows_path="$CYGWIN_VS_TOOLS_DIR"
48163  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
48164    unix_path=`$CYGPATH -u "$windows_path"`
48165    CYGWIN_VS_TOOLS_DIR="$unix_path"
48166  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48167    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
48168    CYGWIN_VS_TOOLS_DIR="$unix_path"
48169  fi
48170
48171      if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
48172        POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1`
48173      else
48174        POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1`
48175      fi
48176
48177  POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48178  METHOD="search of VS100COMNTOOLS"
48179  if test -e "$POSSIBLE_MSVCR_DLL"; then
48180    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
48181$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
48182
48183    # Need to check if the found msvcr is correct architecture
48184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
48185$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
48186    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
48187    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
48188      CORRECT_MSVCR_ARCH=386
48189    else
48190      CORRECT_MSVCR_ARCH=x86-64
48191    fi
48192    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
48193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
48194$as_echo "ok" >&6; }
48195      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48196      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48197$as_echo_n "checking for msvcr100.dll... " >&6; }
48198      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48199$as_echo "$MSVCR_DLL" >&6; }
48200    else
48201      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48202$as_echo "incorrect, ignoring" >&6; }
48203      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48204$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48205    fi
48206  fi
48207
48208    fi
48209  fi
48210
48211  if test "x$MSVCR_DLL" = x; then
48212    # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now.
48213    # (This was the original behaviour; kept since it might turn up something)
48214    if test "x$CYGWIN_VC_INSTALL_DIR" != x; then
48215      if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
48216        POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1`
48217      else
48218        POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1`
48219        if test "x$POSSIBLE_MSVCR_DLL" = x; then
48220          # We're grasping at straws now...
48221          POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1`
48222        fi
48223      fi
48224
48225
48226  POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48227  METHOD="search of VCINSTALLDIR"
48228  if test -e "$POSSIBLE_MSVCR_DLL"; then
48229    { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5
48230$as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;}
48231
48232    # Need to check if the found msvcr is correct architecture
48233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5
48234$as_echo_n "checking found msvcr100.dll architecture... " >&6; }
48235    MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"`
48236    if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
48237      CORRECT_MSVCR_ARCH=386
48238    else
48239      CORRECT_MSVCR_ARCH=x86-64
48240    fi
48241    if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then
48242      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
48243$as_echo "ok" >&6; }
48244      MSVCR_DLL="$POSSIBLE_MSVCR_DLL"
48245      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48246$as_echo_n "checking for msvcr100.dll... " >&6; }
48247      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5
48248$as_echo "$MSVCR_DLL" >&6; }
48249    else
48250      { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5
48251$as_echo "incorrect, ignoring" >&6; }
48252      { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5
48253$as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;}
48254    fi
48255  fi
48256
48257    fi
48258  fi
48259
48260  if test "x$MSVCR_DLL" = x; then
48261    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
48262$as_echo_n "checking for msvcr100.dll... " >&6; }
48263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48264$as_echo "no" >&6; }
48265    as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5
48266  fi
48267
48268
48269  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
48270
48271  # Input might be given as Windows format, start by converting to
48272  # unix format.
48273  path="$MSVCR_DLL"
48274  new_path=`$CYGPATH -u "$path"`
48275
48276  # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
48277  # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
48278  # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
48279  # "foo.exe" is OK but "foo" is an error.
48280  #
48281  # This test is therefore slightly more accurate than "test -f" to check for file precense.
48282  # It is also a way to make sure we got the proper file name for the real test later on.
48283  test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
48284  if test "x$test_shortpath" = x; then
48285    { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
48286$as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
48287    as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5
48288  fi
48289
48290  # Call helper function which possibly converts this using DOS-style short mode.
48291  # If so, the updated path is stored in $new_path.
48292
48293  input_path="$new_path"
48294  # Check if we need to convert this using DOS-style short mode. If the path
48295  # contains just simple characters, use it. Otherwise (spaces, weird characters),
48296  # take no chances and rewrite it.
48297  # Note: m4 eats our [], so we need to use [ and ] instead.
48298  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
48299  if test "x$has_forbidden_chars" != x; then
48300    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
48301    shortmode_path=`$CYGPATH -s -m -a "$input_path"`
48302    path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
48303    if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
48304      # Going to short mode and back again did indeed matter. Since short mode is
48305      # case insensitive, let's make it lowercase to improve readability.
48306      shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
48307      # Now convert it back to Unix-stile (cygpath)
48308      input_path=`$CYGPATH -u "$shortmode_path"`
48309      new_path="$input_path"
48310    fi
48311  fi
48312
48313  test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
48314  if test "x$test_cygdrive_prefix" = x; then
48315    # As a simple fix, exclude /usr/bin since it's not a real path.
48316    if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
48317      # The path is in a Cygwin special directory (e.g. /home). We need this converted to
48318      # a path prefixed by /cygdrive for fixpath to work.
48319      new_path="$CYGWIN_ROOT_PATH$input_path"
48320    fi
48321  fi
48322
48323
48324  if test "x$path" != "x$new_path"; then
48325    MSVCR_DLL="$new_path"
48326    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
48327$as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
48328  fi
48329
48330  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48331
48332  path="$MSVCR_DLL"
48333  has_colon=`$ECHO $path | $GREP ^.:`
48334  new_path="$path"
48335  if test "x$has_colon" = x; then
48336    # Not in mixed or Windows style, start by that.
48337    new_path=`cmd //c echo $path`
48338  fi
48339
48340
48341  input_path="$new_path"
48342  # Check if we need to convert this using DOS-style short mode. If the path
48343  # contains just simple characters, use it. Otherwise (spaces, weird characters),
48344  # take no chances and rewrite it.
48345  # Note: m4 eats our [], so we need to use [ and ] instead.
48346  has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
48347  if test "x$has_forbidden_chars" != x; then
48348    # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
48349    new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
48350  fi
48351
48352
48353  windows_path="$new_path"
48354  if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
48355    unix_path=`$CYGPATH -u "$windows_path"`
48356    new_path="$unix_path"
48357  elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
48358    unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
48359    new_path="$unix_path"
48360  fi
48361
48362  if test "x$path" != "x$new_path"; then
48363    MSVCR_DLL="$new_path"
48364    { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5
48365$as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;}
48366  fi
48367
48368  # Save the first 10 bytes of this path to the storage, so fixpath can work.
48369  all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
48370
48371  else
48372    # We're on a posix platform. Hooray! :)
48373    path="$MSVCR_DLL"
48374    has_space=`$ECHO "$path" | $GREP " "`
48375    if test "x$has_space" != x; then
48376      { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5
48377$as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;}
48378      as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
48379    fi
48380
48381    # Use eval to expand a potential ~
48382    eval path="$path"
48383    if test ! -f "$path" && test ! -d "$path"; then
48384      as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5
48385    fi
48386
48387    MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`"
48388  fi
48389
48390
48391
48392
48393# Check whether --with-dxsdk was given.
48394if test "${with_dxsdk+set}" = set; then :
48395  withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5
48396$as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;}
48397fi
48398
48399
48400
48401
48402# Check whether --with-dxsdk-lib was given.
48403if test "${with_dxsdk_lib+set}" = set; then :
48404  withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5
48405$as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;}
48406fi
48407
48408
48409
48410
48411# Check whether --with-dxsdk-include was given.
48412if test "${with_dxsdk_include+set}" = set; then :
48413  withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5
48414$as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;}
48415fi
48416
48417
48418  fi
48419
48420
48421
48422###############################################################################
48423#
48424# We need to do some final tweaking, when everything else is done.
48425#
48426###############################################################################
48427
48428
48429  HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET"
48430
48431
48432  # The name of the Service Agent jar.
48433  SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
48434  if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
48435    SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
48436  fi
48437
48438
48439
48440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5
48441$as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; }
48442
48443    if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then
48444      ENABLE_INTREE_EC=yes
48445      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48446$as_echo "yes" >&6; }
48447    else
48448      ENABLE_INTREE_EC=no
48449      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48450$as_echo "no" >&6; }
48451    fi
48452
48453
48454
48455
48456###############################################################################
48457#
48458# Configure parts of the build that only affect the build performance,
48459# not the result.
48460#
48461###############################################################################
48462
48463
48464  # How many cores do we have on this build system?
48465
48466# Check whether --with-num-cores was given.
48467if test "${with_num_cores+set}" = set; then :
48468  withval=$with_num_cores;
48469fi
48470
48471  if test "x$with_num_cores" = x; then
48472    # The number of cores were not specified, try to probe them.
48473
48474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
48475$as_echo_n "checking for number of cores... " >&6; }
48476  NUM_CORES=1
48477  FOUND_CORES=no
48478
48479  if test -f /proc/cpuinfo; then
48480    # Looks like a Linux (or cygwin) system
48481    NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
48482    FOUND_CORES=yes
48483  elif test -x /usr/sbin/psrinfo; then
48484    # Looks like a Solaris system
48485    NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
48486    FOUND_CORES=yes
48487  elif test -x /usr/sbin/system_profiler; then
48488    # Looks like a MacOSX system
48489    NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
48490    FOUND_CORES=yes
48491  elif test "x$OPENJDK_BUILD_OS" = xaix ; then
48492    NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'`
48493    FOUND_CORES=yes
48494  elif test -n "$NUMBER_OF_PROCESSORS"; then
48495    # On windows, look in the env
48496    NUM_CORES=$NUMBER_OF_PROCESSORS
48497    FOUND_CORES=yes
48498  fi
48499
48500  if test "x$FOUND_CORES" = xyes; then
48501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
48502$as_echo "$NUM_CORES" >&6; }
48503  else
48504    { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5
48505$as_echo "could not detect number of cores, defaulting to 1" >&6; }
48506    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5
48507$as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;}
48508  fi
48509
48510  else
48511    NUM_CORES=$with_num_cores
48512  fi
48513
48514
48515
48516  # How much memory do we have on this build system?
48517
48518# Check whether --with-memory-size was given.
48519if test "${with_memory_size+set}" = set; then :
48520  withval=$with_memory_size;
48521fi
48522
48523  if test "x$with_memory_size" = x; then
48524    # The memory size was not specified, try to probe it.
48525
48526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
48527$as_echo_n "checking for memory size... " >&6; }
48528  # Default to 1024 MB
48529  MEMORY_SIZE=1024
48530  FOUND_MEM=no
48531
48532  if test -f /proc/meminfo; then
48533    # Looks like a Linux (or cygwin) system
48534    MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
48535    MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
48536    FOUND_MEM=yes
48537  elif test -x /usr/sbin/prtconf; then
48538    # Looks like a Solaris or AIX system
48539    MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'`
48540    FOUND_MEM=yes
48541  elif test -x /usr/sbin/system_profiler; then
48542    # Looks like a MacOSX system
48543    MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
48544    MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
48545    FOUND_MEM=yes
48546  elif test "x$OPENJDK_BUILD_OS" = xwindows; then
48547    # Windows, but without cygwin
48548    MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-`
48549    MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024`
48550    FOUND_MEM=yes
48551  fi
48552
48553  if test "x$FOUND_MEM" = xyes; then
48554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
48555$as_echo "$MEMORY_SIZE MB" >&6; }
48556  else
48557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5
48558$as_echo "could not detect memory size, defaulting to 1024 MB" >&6; }
48559    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5
48560$as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;}
48561  fi
48562
48563  else
48564    MEMORY_SIZE=$with_memory_size
48565  fi
48566
48567
48568
48569  # Provide a decent default number of parallel jobs for make depending on
48570  # number of cores, amount of memory and machine architecture.
48571
48572# Check whether --with-jobs was given.
48573if test "${with_jobs+set}" = set; then :
48574  withval=$with_jobs;
48575fi
48576
48577  if test "x$with_jobs" = x; then
48578    # Number of jobs was not specified, calculate.
48579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5
48580$as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; }
48581    # Approximate memory in GB, rounding up a bit.
48582    memory_gb=`expr $MEMORY_SIZE / 1100`
48583    # Pick the lowest of memory in gb and number of cores.
48584    if test "$memory_gb" -lt "$NUM_CORES"; then
48585      JOBS="$memory_gb"
48586    else
48587      JOBS="$NUM_CORES"
48588      # On bigger machines, leave some room for other processes to run
48589      if test "$JOBS" -gt "4"; then
48590        JOBS=`expr $JOBS '*' 90 / 100`
48591      fi
48592    fi
48593    # Cap number of jobs to 16
48594    if test "$JOBS" -gt "16"; then
48595      JOBS=16
48596    fi
48597    if test "$JOBS" -eq "0"; then
48598      JOBS=1
48599    fi
48600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5
48601$as_echo "$JOBS" >&6; }
48602  else
48603    JOBS=$with_jobs
48604  fi
48605
48606
48607
48608# Setup smart javac (after cores and memory have been setup)
48609
48610
48611# Check whether --with-sjavac-server-java was given.
48612if test "${with_sjavac_server_java+set}" = set; then :
48613  withval=$with_sjavac_server_java;
48614fi
48615
48616
48617  if test "x$with_sjavac_server_java" != x; then
48618    SJAVAC_SERVER_JAVA="$with_sjavac_server_java"
48619    FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""`
48620    if test "x$FOUND_VERSION" = x; then
48621      as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5
48622    fi
48623  else
48624    SJAVAC_SERVER_JAVA=""
48625    # Hotspot specific options.
48626
48627  $ECHO "Check if jvm arg is ok: -verbosegc" >&5
48628  $ECHO "Command: $JAVA -verbosegc -version" >&5
48629  OUTPUT=`$JAVA -verbosegc -version 2>&1`
48630  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48631  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48632  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48633    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc"
48634    JVM_ARG_OK=true
48635  else
48636    $ECHO "Arg failed:" >&5
48637    $ECHO "$OUTPUT" >&5
48638    JVM_ARG_OK=false
48639  fi
48640
48641    # JRockit specific options.
48642
48643  $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5
48644  $ECHO "Command: $JAVA -Xverbose:gc -version" >&5
48645  OUTPUT=`$JAVA -Xverbose:gc -version 2>&1`
48646  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48647  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48648  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48649    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc"
48650    JVM_ARG_OK=true
48651  else
48652    $ECHO "Arg failed:" >&5
48653    $ECHO "$OUTPUT" >&5
48654    JVM_ARG_OK=false
48655  fi
48656
48657    SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA"
48658  fi
48659
48660
48661  if test "$MEMORY_SIZE" -gt "2500"; then
48662
48663  $ECHO "Check if jvm arg is ok: -d64" >&5
48664  $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5
48665  OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1`
48666  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48667  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48668  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48669    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64"
48670    JVM_ARG_OK=true
48671  else
48672    $ECHO "Arg failed:" >&5
48673    $ECHO "$OUTPUT" >&5
48674    JVM_ARG_OK=false
48675  fi
48676
48677    if test "$JVM_ARG_OK" = true; then
48678      JVM_64BIT=true
48679      JVM_ARG_OK=false
48680    fi
48681  fi
48682
48683  if test "$JVM_64BIT" = true; then
48684    if test "$MEMORY_SIZE" -gt "17000"; then
48685
48686  $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5
48687  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5
48688  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1`
48689  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48690  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48691  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48692    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G"
48693    JVM_ARG_OK=true
48694  else
48695    $ECHO "Arg failed:" >&5
48696    $ECHO "$OUTPUT" >&5
48697    JVM_ARG_OK=false
48698  fi
48699
48700    fi
48701    if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then
48702
48703  $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5
48704  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5
48705  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1`
48706  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48707  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48708  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48709    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G"
48710    JVM_ARG_OK=true
48711  else
48712    $ECHO "Arg failed:" >&5
48713    $ECHO "$OUTPUT" >&5
48714    JVM_ARG_OK=false
48715  fi
48716
48717    fi
48718    if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then
48719
48720  $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5
48721  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5
48722  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1`
48723  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48724  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48725  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48726    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G"
48727    JVM_ARG_OK=true
48728  else
48729    $ECHO "Arg failed:" >&5
48730    $ECHO "$OUTPUT" >&5
48731    JVM_ARG_OK=false
48732  fi
48733
48734    fi
48735    if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then
48736
48737  $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5
48738  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5
48739  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1`
48740  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48741  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48742  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48743    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M"
48744    JVM_ARG_OK=true
48745  else
48746    $ECHO "Arg failed:" >&5
48747    $ECHO "$OUTPUT" >&5
48748    JVM_ARG_OK=false
48749  fi
48750
48751    fi
48752  fi
48753  if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then
48754
48755  $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5
48756  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5
48757  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1`
48758  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48759  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48760  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48761    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M"
48762    JVM_ARG_OK=true
48763  else
48764    $ECHO "Arg failed:" >&5
48765    $ECHO "$OUTPUT" >&5
48766    JVM_ARG_OK=false
48767  fi
48768
48769  fi
48770  if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then
48771
48772  $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5
48773  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5
48774  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1`
48775  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48776  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48777  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48778    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M"
48779    JVM_ARG_OK=true
48780  else
48781    $ECHO "Arg failed:" >&5
48782    $ECHO "$OUTPUT" >&5
48783    JVM_ARG_OK=false
48784  fi
48785
48786  fi
48787  if test "$JVM_ARG_OK" = false; then
48788
48789  $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5
48790  $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5
48791  OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1`
48792  FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
48793  FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
48794  if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
48795    SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M"
48796    JVM_ARG_OK=true
48797  else
48798    $ECHO "Arg failed:" >&5
48799    $ECHO "$OUTPUT" >&5
48800    JVM_ARG_OK=false
48801  fi
48802
48803  fi
48804
48805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5
48806$as_echo_n "checking whether to use sjavac... " >&6; }
48807  # Check whether --enable-sjavac was given.
48808if test "${enable_sjavac+set}" = set; then :
48809  enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}"
48810else
48811  ENABLE_SJAVAC='no'
48812fi
48813
48814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5
48815$as_echo "$ENABLE_SJAVAC" >&6; }
48816
48817
48818  if test "x$ENABLE_SJAVAC" = xyes; then
48819    SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers"
48820  else
48821    SJAVAC_SERVER_DIR=
48822  fi
48823
48824
48825
48826# Can the C/C++ compiler use precompiled headers?
48827
48828
48829  ###############################################################################
48830  #
48831  # Can the C/C++ compiler use precompiled headers?
48832  #
48833  # Check whether --enable-precompiled-headers was given.
48834if test "${enable_precompiled_headers+set}" = set; then :
48835  enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers}
48836else
48837  ENABLE_PRECOMPH=yes
48838fi
48839
48840
48841  USE_PRECOMPILED_HEADER=1
48842  if test "x$ENABLE_PRECOMPH" = xno; then
48843    USE_PRECOMPILED_HEADER=0
48844  fi
48845
48846  if test "x$ENABLE_PRECOMPH" = xyes; then
48847    # Check that the compiler actually supports precomp headers.
48848    if test "x$TOOLCHAIN_TYPE" = xgcc; then
48849      { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
48850$as_echo_n "checking that precompiled headers work... " >&6; }
48851      echo "int alfa();" > conftest.h
48852      $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5
48853      if test ! -f conftest.hpp.gch; then
48854        USE_PRECOMPILED_HEADER=0
48855        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48856$as_echo "no" >&6; }
48857      else
48858        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48859$as_echo "yes" >&6; }
48860      fi
48861      rm -f conftest.h conftest.hpp.gch
48862    fi
48863  fi
48864
48865
48866
48867
48868# Setup use of ccache, if available
48869
48870  # Check whether --enable-ccache was given.
48871if test "${enable_ccache+set}" = set; then :
48872  enableval=$enable_ccache;
48873fi
48874
48875
48876  CCACHE=
48877  { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5
48878$as_echo_n "checking is ccache enabled... " >&6; }
48879  ENABLE_CCACHE=$enable_ccache
48880  if test "x$enable_ccache" = xyes; then
48881    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48882$as_echo "yes" >&6; }
48883    OLD_PATH="$PATH"
48884    if test "x$TOOLCHAIN_PATH" != x; then
48885      PATH=$TOOLCHAIN_PATH:$PATH
48886    fi
48887
48888
48889
48890  # Publish this variable in the help.
48891
48892
48893  if test "x$CCACHE" = x; then
48894    # The variable is not set by user, try to locate tool using the code snippet
48895    for ac_prog in ccache
48896do
48897  # Extract the first word of "$ac_prog", so it can be a program name with args.
48898set dummy $ac_prog; ac_word=$2
48899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48900$as_echo_n "checking for $ac_word... " >&6; }
48901if ${ac_cv_path_CCACHE+:} false; then :
48902  $as_echo_n "(cached) " >&6
48903else
48904  case $CCACHE in
48905  [\\/]* | ?:[\\/]*)
48906  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48907  ;;
48908  *)
48909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48910for as_dir in $PATH
48911do
48912  IFS=$as_save_IFS
48913  test -z "$as_dir" && as_dir=.
48914    for ac_exec_ext in '' $ac_executable_extensions; do
48915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48916    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48918    break 2
48919  fi
48920done
48921  done
48922IFS=$as_save_IFS
48923
48924  ;;
48925esac
48926fi
48927CCACHE=$ac_cv_path_CCACHE
48928if test -n "$CCACHE"; then
48929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48930$as_echo "$CCACHE" >&6; }
48931else
48932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48933$as_echo "no" >&6; }
48934fi
48935
48936
48937  test -n "$CCACHE" && break
48938done
48939
48940  else
48941    # The variable is set, but is it from the command line or the environment?
48942
48943    # Try to remove the string !CCACHE! from our list.
48944    try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/}
48945    if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
48946      # If it failed, the variable was not from the command line. Ignore it,
48947      # but warn the user (except for BASH, which is always set by the calling BASH).
48948      if test "xCCACHE" != xBASH; then
48949        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5
48950$as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;}
48951      fi
48952      # Try to locate tool using the code snippet
48953      for ac_prog in ccache
48954do
48955  # Extract the first word of "$ac_prog", so it can be a program name with args.
48956set dummy $ac_prog; ac_word=$2
48957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48958$as_echo_n "checking for $ac_word... " >&6; }
48959if ${ac_cv_path_CCACHE+:} false; then :
48960  $as_echo_n "(cached) " >&6
48961else
48962  case $CCACHE in
48963  [\\/]* | ?:[\\/]*)
48964  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
48965  ;;
48966  *)
48967  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48968for as_dir in $PATH
48969do
48970  IFS=$as_save_IFS
48971  test -z "$as_dir" && as_dir=.
48972    for ac_exec_ext in '' $ac_executable_extensions; do
48973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48974    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
48975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48976    break 2
48977  fi
48978done
48979  done
48980IFS=$as_save_IFS
48981
48982  ;;
48983esac
48984fi
48985CCACHE=$ac_cv_path_CCACHE
48986if test -n "$CCACHE"; then
48987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
48988$as_echo "$CCACHE" >&6; }
48989else
48990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48991$as_echo "no" >&6; }
48992fi
48993
48994
48995  test -n "$CCACHE" && break
48996done
48997
48998    else
48999      # If it succeeded, then it was overridden by the user. We will use it
49000      # for the tool.
49001
49002      # First remove it from the list of overridden variables, so we can test
49003      # for unknown variables in the end.
49004      CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
49005
49006      # Check if the provided tool contains a complete path.
49007      tool_specified="$CCACHE"
49008      tool_basename="${tool_specified##*/}"
49009      if test "x$tool_basename" = "x$tool_specified"; then
49010        # A command without a complete path is provided, search $PATH.
49011        { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5
49012$as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;}
49013        # Extract the first word of "$tool_basename", so it can be a program name with args.
49014set dummy $tool_basename; ac_word=$2
49015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49016$as_echo_n "checking for $ac_word... " >&6; }
49017if ${ac_cv_path_CCACHE+:} false; then :
49018  $as_echo_n "(cached) " >&6
49019else
49020  case $CCACHE in
49021  [\\/]* | ?:[\\/]*)
49022  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
49023  ;;
49024  *)
49025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49026for as_dir in $PATH
49027do
49028  IFS=$as_save_IFS
49029  test -z "$as_dir" && as_dir=.
49030    for ac_exec_ext in '' $ac_executable_extensions; do
49031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49032    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
49033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49034    break 2
49035  fi
49036done
49037  done
49038IFS=$as_save_IFS
49039
49040  ;;
49041esac
49042fi
49043CCACHE=$ac_cv_path_CCACHE
49044if test -n "$CCACHE"; then
49045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
49046$as_echo "$CCACHE" >&6; }
49047else
49048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49049$as_echo "no" >&6; }
49050fi
49051
49052
49053        if test "x$CCACHE" = x; then
49054          as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
49055        fi
49056      else
49057        # Otherwise we believe it is a complete path. Use it as it is.
49058        { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5
49059$as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;}
49060        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5
49061$as_echo_n "checking for CCACHE... " >&6; }
49062        if test ! -x "$tool_specified"; then
49063          { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
49064$as_echo "not found" >&6; }
49065          as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5
49066        fi
49067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
49068$as_echo "$tool_specified" >&6; }
49069      fi
49070    fi
49071  fi
49072
49073
49074
49075  if test "x$CCACHE" = x; then
49076    as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5
49077  fi
49078
49079
49080    CCACHE_STATUS="enabled"
49081    PATH="$OLD_PATH"
49082  elif test "x$enable_ccache" = xno; then
49083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5
49084$as_echo "no, explicitly disabled" >&6; }
49085  elif test "x$enable_ccache" = x; then
49086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49087$as_echo "no" >&6; }
49088  else
49089    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
49090$as_echo "unknown" >&6; }
49091    as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5
49092  fi
49093
49094
49095
49096# Check whether --with-ccache-dir was given.
49097if test "${with_ccache_dir+set}" = set; then :
49098  withval=$with_ccache_dir;
49099fi
49100
49101
49102  if test "x$with_ccache_dir" != x; then
49103    # When using a non home ccache directory, assume the use is to share ccache files
49104    # with other users. Thus change the umask.
49105    SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
49106    if test "x$CCACHE" = x; then
49107      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5
49108$as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;}
49109    fi
49110  fi
49111
49112  if test "x$CCACHE" != x; then
49113
49114  if test "x$CCACHE" != x; then
49115    # Only use ccache if it is 3.1.4 or later, which supports
49116    # precompiled headers.
49117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
49118$as_echo_n "checking if ccache supports precompiled headers... " >&6; }
49119    HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
49120    if test "x$HAS_GOOD_CCACHE" = x; then
49121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
49122$as_echo "no, disabling ccache" >&6; }
49123      CCACHE=
49124      CCACHE_STATUS="disabled"
49125    else
49126      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49127$as_echo "yes" >&6; }
49128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
49129$as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
49130      PUSHED_FLAGS="$CXXFLAGS"
49131      CXXFLAGS="-fpch-preprocess $CXXFLAGS"
49132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49133/* end confdefs.h.  */
49134
49135int
49136main ()
49137{
49138
49139  ;
49140  return 0;
49141}
49142_ACEOF
49143if ac_fn_cxx_try_compile "$LINENO"; then :
49144  CC_KNOWS_CCACHE_TRICK=yes
49145else
49146  CC_KNOWS_CCACHE_TRICK=no
49147fi
49148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49149      CXXFLAGS="$PUSHED_FLAGS"
49150      if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
49151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49152$as_echo "yes" >&6; }
49153      else
49154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
49155$as_echo "no, disabling ccaching of precompiled headers" >&6; }
49156        CCACHE=
49157        CCACHE_STATUS="disabled"
49158      fi
49159    fi
49160  fi
49161
49162  if test "x$CCACHE" != x; then
49163    CCACHE_SLOPPINESS=time_macros
49164    CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
49165    CCACHE_FLAGS=-fpch-preprocess
49166
49167    if test "x$SET_CCACHE_DIR" != x; then
49168      mkdir -p $CCACHE_DIR > /dev/null 2>&1
49169      chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
49170    fi
49171  fi
49172
49173  fi
49174
49175
49176###############################################################################
49177#
49178# And now the finish...
49179#
49180###############################################################################
49181
49182# Check for some common pitfalls
49183
49184  if test x"$OPENJDK_BUILD_OS" = xwindows; then
49185    file_to_test="$SRC_ROOT/LICENSE"
49186    if test `$STAT -c '%a' "$file_to_test"` -lt 400; then
49187      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
49188    fi
49189  fi
49190
49191
49192  # Did user specify any unknown variables?
49193
49194  if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then
49195    # Replace the separating ! with spaces before presenting for end user.
49196    unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ }
49197    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5
49198$as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;}
49199  fi
49200
49201
49202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
49203$as_echo_n "checking if build directory is on local disk... " >&6; }
49204
49205  # df -l lists only local disks; if the given directory is not found then
49206  # a non-zero exit code is given
49207  if test "x$DF" = x; then
49208    if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
49209      # msys does not have df; use Windows "net use" instead.
49210      IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:`
49211      if test "x$IS_NETWORK_DISK" = x; then
49212        OUTPUT_DIR_IS_LOCAL="yes"
49213      else
49214        OUTPUT_DIR_IS_LOCAL="no"
49215      fi
49216    else
49217      # No df here, say it's local
49218      OUTPUT_DIR_IS_LOCAL="yes"
49219    fi
49220  else
49221    if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then
49222      OUTPUT_DIR_IS_LOCAL="yes"
49223    else
49224      OUTPUT_DIR_IS_LOCAL="no"
49225    fi
49226  fi
49227
49228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
49229$as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
49230
49231
49232
49233  # Check if the user has any old-style ALT_ variables set.
49234  FOUND_ALT_VARIABLES=`env | grep ^ALT_`
49235
49236  # Before generating output files, test if they exist. If they do, this is a reconfigure.
49237  # Since we can't properly handle the dependencies for this, warn the user about the situation
49238  if test -e $OUTPUT_ROOT/spec.gmk; then
49239    IS_RECONFIGURE=yes
49240  else
49241    IS_RECONFIGURE=no
49242  fi
49243
49244
49245# At the end, call the custom hook. (Dummy macro if no custom sources available)
49246
49247
49248# We're messing a bit with internal autoconf variables to put the config.status
49249# in the output directory instead of the current directory.
49250CONFIG_STATUS="$OUTPUT_ROOT/config.status"
49251
49252# Create the actual output files. Now the main work of configure is done.
49253cat >confcache <<\_ACEOF
49254# This file is a shell script that caches the results of configure
49255# tests run on this system so they can be shared between configure
49256# scripts and configure runs, see configure's option --config-cache.
49257# It is not useful on other systems.  If it contains results you don't
49258# want to keep, you may remove or edit it.
49259#
49260# config.status only pays attention to the cache file if you give it
49261# the --recheck option to rerun configure.
49262#
49263# `ac_cv_env_foo' variables (set or unset) will be overridden when
49264# loading this file, other *unset* `ac_cv_foo' will be assigned the
49265# following values.
49266
49267_ACEOF
49268
49269# The following way of writing the cache mishandles newlines in values,
49270# but we know of no workaround that is simple, portable, and efficient.
49271# So, we kill variables containing newlines.
49272# Ultrix sh set writes to stderr and can't be redirected directly,
49273# and sets the high bit in the cache file unless we assign to the vars.
49274(
49275  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49276    eval ac_val=\$$ac_var
49277    case $ac_val in #(
49278    *${as_nl}*)
49279      case $ac_var in #(
49280      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
49281$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49282      esac
49283      case $ac_var in #(
49284      _ | IFS | as_nl) ;; #(
49285      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
49286      *) { eval $ac_var=; unset $ac_var;} ;;
49287      esac ;;
49288    esac
49289  done
49290
49291  (set) 2>&1 |
49292    case $as_nl`(ac_space=' '; set) 2>&1` in #(
49293    *${as_nl}ac_space=\ *)
49294      # `set' does not quote correctly, so add quotes: double-quote
49295      # substitution turns \\\\ into \\, and sed turns \\ into \.
49296      sed -n \
49297	"s/'/'\\\\''/g;
49298	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49299      ;; #(
49300    *)
49301      # `set' quotes correctly as required by POSIX, so do not add quotes.
49302      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49303      ;;
49304    esac |
49305    sort
49306) |
49307  sed '
49308     /^ac_cv_env_/b end
49309     t clear
49310     :clear
49311     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49312     t end
49313     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49314     :end' >>confcache
49315if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49316  if test -w "$cache_file"; then
49317    if test "x$cache_file" != "x/dev/null"; then
49318      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
49319$as_echo "$as_me: updating cache $cache_file" >&6;}
49320      if test ! -f "$cache_file" || test -h "$cache_file"; then
49321	cat confcache >"$cache_file"
49322      else
49323        case $cache_file in #(
49324        */* | ?:*)
49325	  mv -f confcache "$cache_file"$$ &&
49326	  mv -f "$cache_file"$$ "$cache_file" ;; #(
49327        *)
49328	  mv -f confcache "$cache_file" ;;
49329	esac
49330      fi
49331    fi
49332  else
49333    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
49334$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49335  fi
49336fi
49337rm -f confcache
49338
49339test "x$prefix" = xNONE && prefix=$ac_default_prefix
49340# Let make expand exec_prefix.
49341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49342
49343DEFS=-DHAVE_CONFIG_H
49344
49345ac_libobjs=
49346ac_ltlibobjs=
49347U=
49348for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49349  # 1. Remove the extension, and $U if already installed.
49350  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49351  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49352  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
49353  #    will be set to the directory where LIBOBJS objects are built.
49354  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49355  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
49356done
49357LIBOBJS=$ac_libobjs
49358
49359LTLIBOBJS=$ac_ltlibobjs
49360
49361
49362
49363: "${CONFIG_STATUS=./config.status}"
49364ac_write_fail=0
49365ac_clean_files_save=$ac_clean_files
49366ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49367{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
49368$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
49369as_write_fail=0
49370cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
49371#! $SHELL
49372# Generated by $as_me.
49373# Run this file to recreate the current configuration.
49374# Compiler output produced by configure, useful for debugging
49375# configure, is in config.log if it exists.
49376
49377debug=false
49378ac_cs_recheck=false
49379ac_cs_silent=false
49380
49381SHELL=\${CONFIG_SHELL-$SHELL}
49382export SHELL
49383_ASEOF
49384cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
49385## -------------------- ##
49386## M4sh Initialization. ##
49387## -------------------- ##
49388
49389# Be more Bourne compatible
49390DUALCASE=1; export DUALCASE # for MKS sh
49391if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
49392  emulate sh
49393  NULLCMD=:
49394  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
49395  # is contrary to our usage.  Disable this feature.
49396  alias -g '${1+"$@"}'='"$@"'
49397  setopt NO_GLOB_SUBST
49398else
49399  case `(set -o) 2>/dev/null` in #(
49400  *posix*) :
49401    set -o posix ;; #(
49402  *) :
49403     ;;
49404esac
49405fi
49406
49407
49408as_nl='
49409'
49410export as_nl
49411# Printing a long string crashes Solaris 7 /usr/bin/printf.
49412as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49413as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49414as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49415# Prefer a ksh shell builtin over an external printf program on Solaris,
49416# but without wasting forks for bash or zsh.
49417if test -z "$BASH_VERSION$ZSH_VERSION" \
49418    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49419  as_echo='print -r --'
49420  as_echo_n='print -rn --'
49421elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49422  as_echo='printf %s\n'
49423  as_echo_n='printf %s'
49424else
49425  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
49426    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
49427    as_echo_n='/usr/ucb/echo -n'
49428  else
49429    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
49430    as_echo_n_body='eval
49431      arg=$1;
49432      case $arg in #(
49433      *"$as_nl"*)
49434	expr "X$arg" : "X\\(.*\\)$as_nl";
49435	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
49436      esac;
49437      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
49438    '
49439    export as_echo_n_body
49440    as_echo_n='sh -c $as_echo_n_body as_echo'
49441  fi
49442  export as_echo_body
49443  as_echo='sh -c $as_echo_body as_echo'
49444fi
49445
49446# The user is always right.
49447if test "${PATH_SEPARATOR+set}" != set; then
49448  PATH_SEPARATOR=:
49449  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
49450    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
49451      PATH_SEPARATOR=';'
49452  }
49453fi
49454
49455
49456# IFS
49457# We need space, tab and new line, in precisely that order.  Quoting is
49458# there to prevent editors from complaining about space-tab.
49459# (If _AS_PATH_WALK were called with IFS unset, it would disable word
49460# splitting by setting IFS to empty value.)
49461IFS=" ""	$as_nl"
49462
49463# Find who we are.  Look in the path if we contain no directory separator.
49464as_myself=
49465case $0 in #((
49466  *[\\/]* ) as_myself=$0 ;;
49467  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49468for as_dir in $PATH
49469do
49470  IFS=$as_save_IFS
49471  test -z "$as_dir" && as_dir=.
49472    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49473  done
49474IFS=$as_save_IFS
49475
49476     ;;
49477esac
49478# We did not find ourselves, most probably we were run as `sh COMMAND'
49479# in which case we are not to be found in the path.
49480if test "x$as_myself" = x; then
49481  as_myself=$0
49482fi
49483if test ! -f "$as_myself"; then
49484  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
49485  exit 1
49486fi
49487
49488# Unset variables that we do not need and which cause bugs (e.g. in
49489# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
49490# suppresses any "Segmentation fault" message there.  '((' could
49491# trigger a bug in pdksh 5.2.14.
49492for as_var in BASH_ENV ENV MAIL MAILPATH
49493do eval test x\${$as_var+set} = xset \
49494  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
49495done
49496PS1='$ '
49497PS2='> '
49498PS4='+ '
49499
49500# NLS nuisances.
49501LC_ALL=C
49502export LC_ALL
49503LANGUAGE=C
49504export LANGUAGE
49505
49506# CDPATH.
49507(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49508
49509
49510# as_fn_error STATUS ERROR [LINENO LOG_FD]
49511# ----------------------------------------
49512# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
49513# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
49514# script with STATUS, using 1 if that was 0.
49515as_fn_error ()
49516{
49517  as_status=$1; test $as_status -eq 0 && as_status=1
49518  if test "$4"; then
49519    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
49520    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
49521  fi
49522  $as_echo "$as_me: error: $2" >&2
49523  as_fn_exit $as_status
49524} # as_fn_error
49525
49526
49527# as_fn_set_status STATUS
49528# -----------------------
49529# Set $? to STATUS, without forking.
49530as_fn_set_status ()
49531{
49532  return $1
49533} # as_fn_set_status
49534
49535# as_fn_exit STATUS
49536# -----------------
49537# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
49538as_fn_exit ()
49539{
49540  set +e
49541  as_fn_set_status $1
49542  exit $1
49543} # as_fn_exit
49544
49545# as_fn_unset VAR
49546# ---------------
49547# Portably unset VAR.
49548as_fn_unset ()
49549{
49550  { eval $1=; unset $1;}
49551}
49552as_unset=as_fn_unset
49553# as_fn_append VAR VALUE
49554# ----------------------
49555# Append the text in VALUE to the end of the definition contained in VAR. Take
49556# advantage of any shell optimizations that allow amortized linear growth over
49557# repeated appends, instead of the typical quadratic growth present in naive
49558# implementations.
49559if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
49560  eval 'as_fn_append ()
49561  {
49562    eval $1+=\$2
49563  }'
49564else
49565  as_fn_append ()
49566  {
49567    eval $1=\$$1\$2
49568  }
49569fi # as_fn_append
49570
49571# as_fn_arith ARG...
49572# ------------------
49573# Perform arithmetic evaluation on the ARGs, and store the result in the
49574# global $as_val. Take advantage of shells that can avoid forks. The arguments
49575# must be portable across $(()) and expr.
49576if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
49577  eval 'as_fn_arith ()
49578  {
49579    as_val=$(( $* ))
49580  }'
49581else
49582  as_fn_arith ()
49583  {
49584    as_val=`expr "$@" || test $? -eq 1`
49585  }
49586fi # as_fn_arith
49587
49588
49589if expr a : '\(a\)' >/dev/null 2>&1 &&
49590   test "X`expr 00001 : '.*\(...\)'`" = X001; then
49591  as_expr=expr
49592else
49593  as_expr=false
49594fi
49595
49596if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
49597  as_basename=basename
49598else
49599  as_basename=false
49600fi
49601
49602if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
49603  as_dirname=dirname
49604else
49605  as_dirname=false
49606fi
49607
49608as_me=`$as_basename -- "$0" ||
49609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49610	 X"$0" : 'X\(//\)$' \| \
49611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
49612$as_echo X/"$0" |
49613    sed '/^.*\/\([^/][^/]*\)\/*$/{
49614	    s//\1/
49615	    q
49616	  }
49617	  /^X\/\(\/\/\)$/{
49618	    s//\1/
49619	    q
49620	  }
49621	  /^X\/\(\/\).*/{
49622	    s//\1/
49623	    q
49624	  }
49625	  s/.*/./; q'`
49626
49627# Avoid depending upon Character Ranges.
49628as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49629as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49630as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49631as_cr_digits='0123456789'
49632as_cr_alnum=$as_cr_Letters$as_cr_digits
49633
49634ECHO_C= ECHO_N= ECHO_T=
49635case `echo -n x` in #(((((
49636-n*)
49637  case `echo 'xy\c'` in
49638  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
49639  xy)  ECHO_C='\c';;
49640  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
49641       ECHO_T='	';;
49642  esac;;
49643*)
49644  ECHO_N='-n';;
49645esac
49646
49647rm -f conf$$ conf$$.exe conf$$.file
49648if test -d conf$$.dir; then
49649  rm -f conf$$.dir/conf$$.file
49650else
49651  rm -f conf$$.dir
49652  mkdir conf$$.dir 2>/dev/null
49653fi
49654if (echo >conf$$.file) 2>/dev/null; then
49655  if ln -s conf$$.file conf$$ 2>/dev/null; then
49656    as_ln_s='ln -s'
49657    # ... but there are two gotchas:
49658    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
49659    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
49660    # In both cases, we have to default to `cp -pR'.
49661    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
49662      as_ln_s='cp -pR'
49663  elif ln conf$$.file conf$$ 2>/dev/null; then
49664    as_ln_s=ln
49665  else
49666    as_ln_s='cp -pR'
49667  fi
49668else
49669  as_ln_s='cp -pR'
49670fi
49671rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49672rmdir conf$$.dir 2>/dev/null
49673
49674
49675# as_fn_mkdir_p
49676# -------------
49677# Create "$as_dir" as a directory, including parents if necessary.
49678as_fn_mkdir_p ()
49679{
49680
49681  case $as_dir in #(
49682  -*) as_dir=./$as_dir;;
49683  esac
49684  test -d "$as_dir" || eval $as_mkdir_p || {
49685    as_dirs=
49686    while :; do
49687      case $as_dir in #(
49688      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
49689      *) as_qdir=$as_dir;;
49690      esac
49691      as_dirs="'$as_qdir' $as_dirs"
49692      as_dir=`$as_dirname -- "$as_dir" ||
49693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49694	 X"$as_dir" : 'X\(//\)[^/]' \| \
49695	 X"$as_dir" : 'X\(//\)$' \| \
49696	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
49697$as_echo X"$as_dir" |
49698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49699	    s//\1/
49700	    q
49701	  }
49702	  /^X\(\/\/\)[^/].*/{
49703	    s//\1/
49704	    q
49705	  }
49706	  /^X\(\/\/\)$/{
49707	    s//\1/
49708	    q
49709	  }
49710	  /^X\(\/\).*/{
49711	    s//\1/
49712	    q
49713	  }
49714	  s/.*/./; q'`
49715      test -d "$as_dir" && break
49716    done
49717    test -z "$as_dirs" || eval "mkdir $as_dirs"
49718  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
49719
49720
49721} # as_fn_mkdir_p
49722if mkdir -p . 2>/dev/null; then
49723  as_mkdir_p='mkdir -p "$as_dir"'
49724else
49725  test -d ./-p && rmdir ./-p
49726  as_mkdir_p=false
49727fi
49728
49729
49730# as_fn_executable_p FILE
49731# -----------------------
49732# Test if FILE is an executable regular file.
49733as_fn_executable_p ()
49734{
49735  test -f "$1" && test -x "$1"
49736} # as_fn_executable_p
49737as_test_x='test -x'
49738as_executable_p=as_fn_executable_p
49739
49740# Sed expression to map a string onto a valid CPP name.
49741as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
49742
49743# Sed expression to map a string onto a valid variable name.
49744as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
49745
49746
49747exec 6>&1
49748## ----------------------------------- ##
49749## Main body of $CONFIG_STATUS script. ##
49750## ----------------------------------- ##
49751_ASEOF
49752test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
49753
49754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49755# Save the log message, to keep $0 and so on meaningful, and to
49756# report actual input values of CONFIG_FILES etc. instead of their
49757# values after options handling.
49758ac_log="
49759This file was extended by OpenJDK $as_me jdk9, which was
49760generated by GNU Autoconf 2.69.  Invocation command line was
49761
49762  CONFIG_FILES    = $CONFIG_FILES
49763  CONFIG_HEADERS  = $CONFIG_HEADERS
49764  CONFIG_LINKS    = $CONFIG_LINKS
49765  CONFIG_COMMANDS = $CONFIG_COMMANDS
49766  $ $0 $@
49767
49768on `(hostname || uname -n) 2>/dev/null | sed 1q`
49769"
49770
49771_ACEOF
49772
49773case $ac_config_files in *"
49774"*) set x $ac_config_files; shift; ac_config_files=$*;;
49775esac
49776
49777case $ac_config_headers in *"
49778"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
49779esac
49780
49781
49782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49783# Files that config.status was made for.
49784config_files="$ac_config_files"
49785config_headers="$ac_config_headers"
49786
49787_ACEOF
49788
49789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49790ac_cs_usage="\
49791\`$as_me' instantiates files and other configuration actions
49792from templates according to the current configuration.  Unless the files
49793and actions are specified as TAGs, all are instantiated by default.
49794
49795Usage: $0 [OPTION]... [TAG]...
49796
49797  -h, --help       print this help, then exit
49798  -V, --version    print version number and configuration settings, then exit
49799      --config     print configuration, then exit
49800  -q, --quiet, --silent
49801                   do not print progress messages
49802  -d, --debug      don't remove temporary files
49803      --recheck    update $as_me by reconfiguring in the same conditions
49804      --file=FILE[:TEMPLATE]
49805                   instantiate the configuration file FILE
49806      --header=FILE[:TEMPLATE]
49807                   instantiate the configuration header FILE
49808
49809Configuration files:
49810$config_files
49811
49812Configuration headers:
49813$config_headers
49814
49815Report bugs to <build-dev@openjdk.java.net>.
49816OpenJDK home page: <http://openjdk.java.net>."
49817
49818_ACEOF
49819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49820ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
49821ac_cs_version="\\
49822OpenJDK config.status jdk9
49823configured by $0, generated by GNU Autoconf 2.69,
49824  with options \\"\$ac_cs_config\\"
49825
49826Copyright (C) 2012 Free Software Foundation, Inc.
49827This config.status script is free software; the Free Software Foundation
49828gives unlimited permission to copy, distribute and modify it."
49829
49830ac_pwd='$ac_pwd'
49831srcdir='$srcdir'
49832AWK='$AWK'
49833test -n "\$AWK" || AWK=awk
49834_ACEOF
49835
49836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49837# The default lists apply if the user does not specify any file.
49838ac_need_defaults=:
49839while test $# != 0
49840do
49841  case $1 in
49842  --*=?*)
49843    ac_option=`expr "X$1" : 'X\([^=]*\)='`
49844    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
49845    ac_shift=:
49846    ;;
49847  --*=)
49848    ac_option=`expr "X$1" : 'X\([^=]*\)='`
49849    ac_optarg=
49850    ac_shift=:
49851    ;;
49852  *)
49853    ac_option=$1
49854    ac_optarg=$2
49855    ac_shift=shift
49856    ;;
49857  esac
49858
49859  case $ac_option in
49860  # Handling of the options.
49861  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49862    ac_cs_recheck=: ;;
49863  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
49864    $as_echo "$ac_cs_version"; exit ;;
49865  --config | --confi | --conf | --con | --co | --c )
49866    $as_echo "$ac_cs_config"; exit ;;
49867  --debug | --debu | --deb | --de | --d | -d )
49868    debug=: ;;
49869  --file | --fil | --fi | --f )
49870    $ac_shift
49871    case $ac_optarg in
49872    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49873    '') as_fn_error $? "missing file argument" ;;
49874    esac
49875    as_fn_append CONFIG_FILES " '$ac_optarg'"
49876    ac_need_defaults=false;;
49877  --header | --heade | --head | --hea )
49878    $ac_shift
49879    case $ac_optarg in
49880    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
49881    esac
49882    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
49883    ac_need_defaults=false;;
49884  --he | --h)
49885    # Conflict between --help and --header
49886    as_fn_error $? "ambiguous option: \`$1'
49887Try \`$0 --help' for more information.";;
49888  --help | --hel | -h )
49889    $as_echo "$ac_cs_usage"; exit ;;
49890  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49891  | -silent | --silent | --silen | --sile | --sil | --si | --s)
49892    ac_cs_silent=: ;;
49893
49894  # This is an error.
49895  -*) as_fn_error $? "unrecognized option: \`$1'
49896Try \`$0 --help' for more information." ;;
49897
49898  *) as_fn_append ac_config_targets " $1"
49899     ac_need_defaults=false ;;
49900
49901  esac
49902  shift
49903done
49904
49905ac_configure_extra_args=
49906
49907if $ac_cs_silent; then
49908  exec 6>/dev/null
49909  ac_configure_extra_args="$ac_configure_extra_args --silent"
49910fi
49911
49912_ACEOF
49913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49914if \$ac_cs_recheck; then
49915  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49916  shift
49917  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
49918  CONFIG_SHELL='$SHELL'
49919  export CONFIG_SHELL
49920  exec "\$@"
49921fi
49922
49923_ACEOF
49924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49925exec 5>>config.log
49926{
49927  echo
49928  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49929## Running $as_me. ##
49930_ASBOX
49931  $as_echo "$ac_log"
49932} >&5
49933
49934_ACEOF
49935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49936_ACEOF
49937
49938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49939
49940# Handling of arguments.
49941for ac_config_target in $ac_config_targets
49942do
49943  case $ac_config_target in
49944    "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
49945    "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
49946    "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
49947    "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
49948    "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
49949    "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
49950    "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
49951
49952  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
49953  esac
49954done
49955
49956
49957# If the user did not use the arguments to specify the items to instantiate,
49958# then the envvar interface is used.  Set only those that are not.
49959# We use the long form for the default assignment because of an extremely
49960# bizarre bug on SunOS 4.1.3.
49961if $ac_need_defaults; then
49962  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49963  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49964fi
49965
49966# Have a temporary directory for convenience.  Make it in the build tree
49967# simply because there is no reason against having it here, and in addition,
49968# creating and moving files from /tmp can sometimes cause problems.
49969# Hook for its removal unless debugging.
49970# Note that there is a small window in which the directory will not be cleaned:
49971# after its creation but before its name has been assigned to `$tmp'.
49972$debug ||
49973{
49974  tmp= ac_tmp=
49975  trap 'exit_status=$?
49976  : "${ac_tmp:=$tmp}"
49977  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
49978' 0
49979  trap 'as_fn_exit 1' 1 2 13 15
49980}
49981# Create a (secure) tmp directory for tmp files.
49982
49983{
49984  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49985  test -d "$tmp"
49986}  ||
49987{
49988  tmp=./conf$$-$RANDOM
49989  (umask 077 && mkdir "$tmp")
49990} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
49991ac_tmp=$tmp
49992
49993# Set up the scripts for CONFIG_FILES section.
49994# No need to generate them if there are no CONFIG_FILES.
49995# This happens for instance with `./config.status config.h'.
49996if test -n "$CONFIG_FILES"; then
49997
49998
49999ac_cr=`echo X | tr X '\015'`
50000# On cygwin, bash can eat \r inside `` if the user requested igncr.
50001# But we know of no other shell where ac_cr would be empty at this
50002# point, so we can use a bashism as a fallback.
50003if test "x$ac_cr" = x; then
50004  eval ac_cr=\$\'\\r\'
50005fi
50006ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
50007if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
50008  ac_cs_awk_cr='\\r'
50009else
50010  ac_cs_awk_cr=$ac_cr
50011fi
50012
50013echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
50014_ACEOF
50015
50016
50017{
50018  echo "cat >conf$$subs.awk <<_ACEOF" &&
50019  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
50020  echo "_ACEOF"
50021} >conf$$subs.sh ||
50022  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
50023ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
50024ac_delim='%!_!# '
50025for ac_last_try in false false false false false :; do
50026  . ./conf$$subs.sh ||
50027    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
50028
50029  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
50030  if test $ac_delim_n = $ac_delim_num; then
50031    break
50032  elif $ac_last_try; then
50033    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
50034  else
50035    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50036  fi
50037done
50038rm -f conf$$subs.sh
50039
50040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50041cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
50042_ACEOF
50043sed -n '
50044h
50045s/^/S["/; s/!.*/"]=/
50046p
50047g
50048s/^[^!]*!//
50049:repl
50050t repl
50051s/'"$ac_delim"'$//
50052t delim
50053:nl
50054h
50055s/\(.\{148\}\)..*/\1/
50056t more1
50057s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
50058p
50059n
50060b repl
50061:more1
50062s/["\\]/\\&/g; s/^/"/; s/$/"\\/
50063p
50064g
50065s/.\{148\}//
50066t nl
50067:delim
50068h
50069s/\(.\{148\}\)..*/\1/
50070t more2
50071s/["\\]/\\&/g; s/^/"/; s/$/"/
50072p
50073b
50074:more2
50075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
50076p
50077g
50078s/.\{148\}//
50079t delim
50080' <conf$$subs.awk | sed '
50081/^[^""]/{
50082  N
50083  s/\n//
50084}
50085' >>$CONFIG_STATUS || ac_write_fail=1
50086rm -f conf$$subs.awk
50087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50088_ACAWK
50089cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
50090  for (key in S) S_is_set[key] = 1
50091  FS = ""
50092
50093}
50094{
50095  line = $ 0
50096  nfields = split(line, field, "@")
50097  substed = 0
50098  len = length(field[1])
50099  for (i = 2; i < nfields; i++) {
50100    key = field[i]
50101    keylen = length(key)
50102    if (S_is_set[key]) {
50103      value = S[key]
50104      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
50105      len += length(value) + length(field[++i])
50106      substed = 1
50107    } else
50108      len += 1 + keylen
50109  }
50110
50111  print line
50112}
50113
50114_ACAWK
50115_ACEOF
50116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50117if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
50118  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
50119else
50120  cat
50121fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
50122  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
50123_ACEOF
50124
50125# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
50126# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
50127# trailing colons and then remove the whole line if VPATH becomes empty
50128# (actually we leave an empty line to preserve line numbers).
50129if test "x$srcdir" = x.; then
50130  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
50131h
50132s///
50133s/^/:/
50134s/[	 ]*$/:/
50135s/:\$(srcdir):/:/g
50136s/:\${srcdir}:/:/g
50137s/:@srcdir@:/:/g
50138s/^:*//
50139s/:*$//
50140x
50141s/\(=[	 ]*\).*/\1/
50142G
50143s/\n//
50144s/^[^=]*=[	 ]*$//
50145}'
50146fi
50147
50148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50149fi # test -n "$CONFIG_FILES"
50150
50151# Set up the scripts for CONFIG_HEADERS section.
50152# No need to generate them if there are no CONFIG_HEADERS.
50153# This happens for instance with `./config.status Makefile'.
50154if test -n "$CONFIG_HEADERS"; then
50155cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
50156BEGIN {
50157_ACEOF
50158
50159# Transform confdefs.h into an awk script `defines.awk', embedded as
50160# here-document in config.status, that substitutes the proper values into
50161# config.h.in to produce config.h.
50162
50163# Create a delimiter string that does not exist in confdefs.h, to ease
50164# handling of long lines.
50165ac_delim='%!_!# '
50166for ac_last_try in false false :; do
50167  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
50168  if test -z "$ac_tt"; then
50169    break
50170  elif $ac_last_try; then
50171    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
50172  else
50173    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50174  fi
50175done
50176
50177# For the awk script, D is an array of macro values keyed by name,
50178# likewise P contains macro parameters if any.  Preserve backslash
50179# newline sequences.
50180
50181ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
50182sed -n '
50183s/.\{148\}/&'"$ac_delim"'/g
50184t rset
50185:rset
50186s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
50187t def
50188d
50189:def
50190s/\\$//
50191t bsnl
50192s/["\\]/\\&/g
50193s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
50194D["\1"]=" \3"/p
50195s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
50196d
50197:bsnl
50198s/["\\]/\\&/g
50199s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
50200D["\1"]=" \3\\\\\\n"\\/p
50201t cont
50202s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
50203t cont
50204d
50205:cont
50206n
50207s/.\{148\}/&'"$ac_delim"'/g
50208t clear
50209:clear
50210s/\\$//
50211t bsnlc
50212s/["\\]/\\&/g; s/^/"/; s/$/"/p
50213d
50214:bsnlc
50215s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
50216b cont
50217' <confdefs.h | sed '
50218s/'"$ac_delim"'/"\\\
50219"/g' >>$CONFIG_STATUS || ac_write_fail=1
50220
50221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50222  for (key in D) D_is_set[key] = 1
50223  FS = ""
50224}
50225/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
50226  line = \$ 0
50227  split(line, arg, " ")
50228  if (arg[1] == "#") {
50229    defundef = arg[2]
50230    mac1 = arg[3]
50231  } else {
50232    defundef = substr(arg[1], 2)
50233    mac1 = arg[2]
50234  }
50235  split(mac1, mac2, "(") #)
50236  macro = mac2[1]
50237  prefix = substr(line, 1, index(line, defundef) - 1)
50238  if (D_is_set[macro]) {
50239    # Preserve the white space surrounding the "#".
50240    print prefix "define", macro P[macro] D[macro]
50241    next
50242  } else {
50243    # Replace #undef with comments.  This is necessary, for example,
50244    # in the case of _POSIX_SOURCE, which is predefined and required
50245    # on some systems where configure will not decide to define it.
50246    if (defundef == "undef") {
50247      print "/*", prefix defundef, macro, "*/"
50248      next
50249    }
50250  }
50251}
50252{ print }
50253_ACAWK
50254_ACEOF
50255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50256  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
50257fi # test -n "$CONFIG_HEADERS"
50258
50259
50260eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
50261shift
50262for ac_tag
50263do
50264  case $ac_tag in
50265  :[FHLC]) ac_mode=$ac_tag; continue;;
50266  esac
50267  case $ac_mode$ac_tag in
50268  :[FHL]*:*);;
50269  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
50270  :[FH]-) ac_tag=-:-;;
50271  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
50272  esac
50273  ac_save_IFS=$IFS
50274  IFS=:
50275  set x $ac_tag
50276  IFS=$ac_save_IFS
50277  shift
50278  ac_file=$1
50279  shift
50280
50281  case $ac_mode in
50282  :L) ac_source=$1;;
50283  :[FH])
50284    ac_file_inputs=
50285    for ac_f
50286    do
50287      case $ac_f in
50288      -) ac_f="$ac_tmp/stdin";;
50289      *) # Look for the file first in the build tree, then in the source tree
50290	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
50291	 # because $ac_f cannot contain `:'.
50292	 test -f "$ac_f" ||
50293	   case $ac_f in
50294	   [\\/$]*) false;;
50295	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
50296	   esac ||
50297	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
50298      esac
50299      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
50300      as_fn_append ac_file_inputs " '$ac_f'"
50301    done
50302
50303    # Let's still pretend it is `configure' which instantiates (i.e., don't
50304    # use $as_me), people would be surprised to read:
50305    #    /* config.h.  Generated by config.status.  */
50306    configure_input='Generated from '`
50307	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
50308	`' by configure.'
50309    if test x"$ac_file" != x-; then
50310      configure_input="$ac_file.  $configure_input"
50311      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
50312$as_echo "$as_me: creating $ac_file" >&6;}
50313    fi
50314    # Neutralize special characters interpreted by sed in replacement strings.
50315    case $configure_input in #(
50316    *\&* | *\|* | *\\* )
50317       ac_sed_conf_input=`$as_echo "$configure_input" |
50318       sed 's/[\\\\&|]/\\\\&/g'`;; #(
50319    *) ac_sed_conf_input=$configure_input;;
50320    esac
50321
50322    case $ac_tag in
50323    *:-:* | *:-) cat >"$ac_tmp/stdin" \
50324      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
50325    esac
50326    ;;
50327  esac
50328
50329  ac_dir=`$as_dirname -- "$ac_file" ||
50330$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50331	 X"$ac_file" : 'X\(//\)[^/]' \| \
50332	 X"$ac_file" : 'X\(//\)$' \| \
50333	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
50334$as_echo X"$ac_file" |
50335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50336	    s//\1/
50337	    q
50338	  }
50339	  /^X\(\/\/\)[^/].*/{
50340	    s//\1/
50341	    q
50342	  }
50343	  /^X\(\/\/\)$/{
50344	    s//\1/
50345	    q
50346	  }
50347	  /^X\(\/\).*/{
50348	    s//\1/
50349	    q
50350	  }
50351	  s/.*/./; q'`
50352  as_dir="$ac_dir"; as_fn_mkdir_p
50353  ac_builddir=.
50354
50355case "$ac_dir" in
50356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
50357*)
50358  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
50359  # A ".." for each directory in $ac_dir_suffix.
50360  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
50361  case $ac_top_builddir_sub in
50362  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
50363  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
50364  esac ;;
50365esac
50366ac_abs_top_builddir=$ac_pwd
50367ac_abs_builddir=$ac_pwd$ac_dir_suffix
50368# for backward compatibility:
50369ac_top_builddir=$ac_top_build_prefix
50370
50371case $srcdir in
50372  .)  # We are building in place.
50373    ac_srcdir=.
50374    ac_top_srcdir=$ac_top_builddir_sub
50375    ac_abs_top_srcdir=$ac_pwd ;;
50376  [\\/]* | ?:[\\/]* )  # Absolute name.
50377    ac_srcdir=$srcdir$ac_dir_suffix;
50378    ac_top_srcdir=$srcdir
50379    ac_abs_top_srcdir=$srcdir ;;
50380  *) # Relative name.
50381    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
50382    ac_top_srcdir=$ac_top_build_prefix$srcdir
50383    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
50384esac
50385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
50386
50387
50388  case $ac_mode in
50389  :F)
50390  #
50391  # CONFIG_FILE
50392  #
50393
50394_ACEOF
50395
50396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50397# If the template does not know about datarootdir, expand it.
50398# FIXME: This hack should be removed a few years after 2.60.
50399ac_datarootdir_hack=; ac_datarootdir_seen=
50400ac_sed_dataroot='
50401/datarootdir/ {
50402  p
50403  q
50404}
50405/@datadir@/p
50406/@docdir@/p
50407/@infodir@/p
50408/@localedir@/p
50409/@mandir@/p'
50410case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
50411*datarootdir*) ac_datarootdir_seen=yes;;
50412*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
50413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
50414$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
50415_ACEOF
50416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50417  ac_datarootdir_hack='
50418  s&@datadir@&$datadir&g
50419  s&@docdir@&$docdir&g
50420  s&@infodir@&$infodir&g
50421  s&@localedir@&$localedir&g
50422  s&@mandir@&$mandir&g
50423  s&\\\${datarootdir}&$datarootdir&g' ;;
50424esac
50425_ACEOF
50426
50427# Neutralize VPATH when `$srcdir' = `.'.
50428# Shell code in configure.ac might set extrasub.
50429# FIXME: do we really want to maintain this feature?
50430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50431ac_sed_extra="$ac_vpsub
50432$extrasub
50433_ACEOF
50434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50435:t
50436/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50437s|@configure_input@|$ac_sed_conf_input|;t t
50438s&@top_builddir@&$ac_top_builddir_sub&;t t
50439s&@top_build_prefix@&$ac_top_build_prefix&;t t
50440s&@srcdir@&$ac_srcdir&;t t
50441s&@abs_srcdir@&$ac_abs_srcdir&;t t
50442s&@top_srcdir@&$ac_top_srcdir&;t t
50443s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
50444s&@builddir@&$ac_builddir&;t t
50445s&@abs_builddir@&$ac_abs_builddir&;t t
50446s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
50447$ac_datarootdir_hack
50448"
50449eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
50450  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
50451
50452test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
50453  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
50454  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
50455      "$ac_tmp/out"`; test -z "$ac_out"; } &&
50456  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50457which seems to be undefined.  Please make sure it is defined" >&5
50458$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
50459which seems to be undefined.  Please make sure it is defined" >&2;}
50460
50461  rm -f "$ac_tmp/stdin"
50462  case $ac_file in
50463  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
50464  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
50465  esac \
50466  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
50467 ;;
50468  :H)
50469  #
50470  # CONFIG_HEADER
50471  #
50472  if test x"$ac_file" != x-; then
50473    {
50474      $as_echo "/* $configure_input  */" \
50475      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
50476    } >"$ac_tmp/config.h" \
50477      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
50478    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
50479      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
50480$as_echo "$as_me: $ac_file is unchanged" >&6;}
50481    else
50482      rm -f "$ac_file"
50483      mv "$ac_tmp/config.h" "$ac_file" \
50484	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
50485    fi
50486  else
50487    $as_echo "/* $configure_input  */" \
50488      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
50489      || as_fn_error $? "could not create -" "$LINENO" 5
50490  fi
50491 ;;
50492
50493
50494  esac
50495
50496done # for ac_tag
50497
50498
50499as_fn_exit 0
50500_ACEOF
50501ac_clean_files=$ac_clean_files_save
50502
50503test $ac_write_fail = 0 ||
50504  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
50505
50506
50507# configure is writing to config.log, and then calls config.status.
50508# config.status does its own redirection, appending to config.log.
50509# Unfortunately, on DOS this fails, as config.log is still kept open
50510# by configure, so config.status won't be able to write to it; its
50511# output is simply discarded.  So we exec the FD to /dev/null,
50512# effectively closing config.log, so it can be properly (re)opened and
50513# appended to by config.status.  When coming back to configure, we
50514# need to make the FD available again.
50515if test "$no_create" != yes; then
50516  ac_cs_success=:
50517  ac_config_status_args=
50518  test "$silent" = yes &&
50519    ac_config_status_args="$ac_config_status_args --quiet"
50520  exec 5>/dev/null
50521  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50522  exec 5>>config.log
50523  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50524  # would make configure fail if this is the last instruction.
50525  $ac_cs_success || as_fn_exit 1
50526fi
50527if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
50528  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
50529$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
50530fi
50531
50532
50533# Try to move the config.log file to the output directory.
50534if test -e ./config.log; then
50535  $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null
50536fi
50537
50538# Make the compare script executable
50539$CHMOD +x $OUTPUT_ROOT/compare.sh
50540
50541# Finally output some useful information to the user
50542
50543  # Finally output some useful information to the user
50544
50545  printf "\n"
50546  printf "====================================================\n"
50547  if test "x$no_create" != "xyes"; then
50548    if test "x$IS_RECONFIGURE" != "xyes"; then
50549      printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT"
50550    else
50551      printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT"
50552    fi
50553  else
50554    if test "x$IS_RECONFIGURE" != "xyes"; then
50555      printf "A configuration has been successfully checked but not created\n"
50556    else
50557      printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT"
50558    fi
50559  fi
50560  if test "x$CONFIGURE_COMMAND_LINE" != x; then
50561    printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
50562  else
50563    printf "using default settings.\n"
50564  fi
50565
50566  printf "\n"
50567  printf "Configuration summary:\n"
50568  printf "* Debug level:    $DEBUG_LEVEL\n"
50569  printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n"
50570  printf "* JDK variant:    $JDK_VARIANT\n"
50571  printf "* JVM variants:   $with_jvm_variants\n"
50572  printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n"
50573
50574  printf "\n"
50575  printf "Tools summary:\n"
50576  if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
50577    printf "* Environment:    $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n"
50578  fi
50579  printf "* Boot JDK:       $BOOT_JDK_VERSION (at $BOOT_JDK)\n"
50580  printf "* Toolchain:      $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n"
50581  printf "* C Compiler:     Version $CC_VERSION_NUMBER (at $CC)\n"
50582  printf "* C++ Compiler:   Version $CXX_VERSION_NUMBER (at $CXX)\n"
50583
50584  printf "\n"
50585  printf "Build performance summary:\n"
50586  printf "* Cores to use:   $JOBS\n"
50587  printf "* Memory limit:   $MEMORY_SIZE MB\n"
50588  if test "x$CCACHE_STATUS" != "x"; then
50589    printf "* ccache status:  $CCACHE_STATUS\n"
50590  fi
50591  printf "\n"
50592
50593  if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then
50594    printf "NOTE: You have requested to build more than one version of the JVM, which\n"
50595    printf "will result in longer build times.\n"
50596    printf "\n"
50597  fi
50598
50599  if test "x$FOUND_ALT_VARIABLES" != "x"; then
50600    printf "WARNING: You have old-style ALT_ environment variables set.\n"
50601    printf "These are not respected, and will be ignored. It is recommended\n"
50602    printf "that you clean your environment. The following variables are set:\n"
50603    printf "$FOUND_ALT_VARIABLES\n"
50604    printf "\n"
50605  fi
50606
50607  if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
50608    printf "WARNING: Your build output directory is not on a local disk.\n"
50609    printf "This will severely degrade build performance!\n"
50610    printf "It is recommended that you create an output directory on a local disk,\n"
50611    printf "and run the configure script again from that directory.\n"
50612    printf "\n"
50613  fi
50614
50615  if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then
50616    printf "WARNING: The result of this configuration has overridden an older\n"
50617    printf "configuration. You *should* run 'make clean' to make sure you get a\n"
50618    printf "proper build. Failure to do so might result in strange build problems.\n"
50619    printf "\n"
50620  fi
50621
50622  if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then
50623    printf "WARNING: The result of this configuration was not saved.\n"
50624    printf "You should run without '--no-create | -n' to create the configuration.\n"
50625    printf "\n"
50626  fi
50627
50628