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
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 JOBS
 650 MEMORY_SIZE
 651 NUM_CORES
 652 ENABLE_INTREE_EC
 653 SALIB_NAME
 654 HOTSPOT_MAKE_ARGS
 655 LIBZIP_CAN_USE_MMAP
 656 LIBDL
 657 LIBM
 658 USE_EXTERNAL_LCMS
 659 LCMS_LIBS
 660 LCMS_CFLAGS
 661 USE_EXTERNAL_LIBZ
 662 USE_EXTERNAL_LIBPNG
 663 PNG_LIBS
 664 PNG_CFLAGS
 665 USE_EXTERNAL_LIBGIF
 666 USE_EXTERNAL_LIBJPEG
 667 LLVM_LIBS
 668 LLVM_LDFLAGS
 669 LLVM_CFLAGS
 670 LLVM_CONFIG
 671 LIBFFI_LIBS
 672 LIBFFI_CFLAGS
 673 ALSA_LIBS
 674 ALSA_CFLAGS
 675 FREETYPE_BUNDLE_LIB_PATH
 676 FREETYPE_LIBS
 677 FREETYPE_CFLAGS
 678 CUPS_CFLAGS
 679 X_EXTRA_LIBS
 680 X_LIBS
 681 X_PRE_LIBS
 682 X_CFLAGS
 683 XMKMF
 684 MSVCP_DLL
 685 MSVCR_DLL
 686 LIBCXX
 687 STATIC_CXX_SETTING
 688 FIXPATH_DETACH_FLAG
 689 FIXPATH
 690 GCOV_ENABLED
 691 JAVA_DEBUG_SYMBOLS
 692 ZIP_DEBUGINFO_FILES
 693 ENABLE_DEBUG_SYMBOLS
 694 STRIP_POLICY
 695 DEBUG_BINARIES
 696 NATIVE_DEBUG_SYMBOLS
 697 CFLAGS_WARNINGS_ARE_ERRORS
 698 DISABLE_WARNING_PREFIX
 699 HOTSPOT_SET_WARNINGS_AS_ERRORS
 700 WARNINGS_AS_ERRORS
 701 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 702 ZERO_ARCHFLAG
 703 LDFLAGS_TESTEXE
 704 LDFLAGS_TESTLIB
 705 LDFLAGS_CXX_JDK
 706 JDKEXE_LIBS
 707 JDKLIB_LIBS
 708 LDFLAGS_JDKEXE
 709 LDFLAGS_JDKLIB
 710 CXXFLAGS_TESTEXE
 711 CXXFLAGS_TESTLIB
 712 CFLAGS_TESTEXE
 713 CFLAGS_TESTLIB
 714 CXXFLAGS_JDKEXE
 715 CXXFLAGS_JDKLIB
 716 CFLAGS_JDKEXE
 717 CFLAGS_JDKLIB
 718 MACOSX_VERSION_MIN
 719 CXX_O_FLAG_NONE
 720 CXX_O_FLAG_DEBUG
 721 CXX_O_FLAG_NORM
 722 CXX_O_FLAG_HI
 723 CXX_O_FLAG_HIGHEST
 724 C_O_FLAG_NONE
 725 C_O_FLAG_DEBUG
 726 C_O_FLAG_NORM
 727 C_O_FLAG_HI
 728 C_O_FLAG_HIGHEST
 729 CXXFLAGS_DEBUG_SYMBOLS
 730 CFLAGS_DEBUG_SYMBOLS
 731 CXX_FLAG_DEPS
 732 C_FLAG_DEPS
 733 SET_SHARED_LIBRARY_MAPFILE
 734 SET_SHARED_LIBRARY_NAME
 735 SET_SHARED_LIBRARY_ORIGIN
 736 SET_EXECUTABLE_ORIGIN
 737 CXX_FLAG_REORDER
 738 C_FLAG_REORDER
 739 RC_FLAGS
 740 AR_OUT_OPTION
 741 LD_OUT_OPTION
 742 EXE_OUT_OPTION
 743 CC_OUT_OPTION
 744 STRIPFLAGS
 745 ARFLAGS
 746 COMPILER_TARGET_BITS_FLAG
 747 JT_HOME
 748 JTREGEXE
 749 USING_BROKEN_SUSE_LD
 750 PACKAGE_PATH
 751 USE_CLANG
 752 HOTSPOT_LD
 753 HOTSPOT_CXX
 754 HOTSPOT_RC
 755 HOTSPOT_MT
 756 BUILD_AS
 757 BUILD_LD
 758 BUILD_AR
 759 BUILD_NM
 760 BUILD_CXX
 761 BUILD_CC
 762 BUILD_SYSROOT_LDFLAGS
 763 BUILD_SYSROOT_CFLAGS
 764 ac_ct_OBJDUMP
 765 OBJDUMP
 766 ac_ct_OBJCOPY
 767 OBJCOPY
 768 ac_ct_NM
 769 ac_ct_STRIP
 770 GNM
 771 NM
 772 STRIP
 773 MSBUILD
 774 DUMPBIN
 775 RC
 776 MT
 777 LIPO
 778 ac_ct_AR
 779 AR
 780 AS
 781 LDCXX
 782 LD
 783 CXXCPP
 784 CPP
 785 ac_ct_CXX
 786 CXXFLAGS
 787 CXX
 788 ac_ct_PROPER_COMPILER_CXX
 789 PROPER_COMPILER_CXX
 790 TOOLCHAIN_PATH_CXX
 791 POTENTIAL_CXX
 792 OBJEXT
 793 EXEEXT
 794 ac_ct_CC
 795 CPPFLAGS
 796 LDFLAGS
 797 CFLAGS
 798 CC
 799 ac_ct_PROPER_COMPILER_CC
 800 PROPER_COMPILER_CC
 801 TOOLCHAIN_PATH_CC
 802 POTENTIAL_CC
 803 VS_LIB
 804 VS_INCLUDE
 805 VS_PATH
 806 CYGWIN_LINK
 807 SYSROOT_LDFLAGS
 808 SYSROOT_CFLAGS
 809 LEGACY_EXTRA_LDFLAGS
 810 LEGACY_EXTRA_CXXFLAGS
 811 LEGACY_EXTRA_CFLAGS
 812 EXE_SUFFIX
 813 OBJ_SUFFIX
 814 STATIC_LIBRARY
 815 SHARED_LIBRARY
 816 STATIC_LIBRARY_SUFFIX
 817 SHARED_LIBRARY_SUFFIX
 818 LIBRARY_PREFIX
 819 TOOLCHAIN_TYPE
 820 STATIC_BUILD
 821 BUILD_HOTSPOT
 822 HOTSPOT_DIST
 823 BUILD_OUTPUT
 824 JDK_TOPDIR
 825 NASHORN_TOPDIR
 826 HOTSPOT_TOPDIR
 827 JAXWS_TOPDIR
 828 JAXP_TOPDIR
 829 CORBA_TOPDIR
 830 LANGTOOLS_TOPDIR
 831 BOOT_JDK_BITS
 832 JAVAC_FLAGS
 833 BOOT_JDK_SOURCETARGET
 834 JARSIGNER
 835 JAR
 836 JAVAH
 837 JAVAC
 838 JAVA
 839 BOOT_JDK
 840 JAVA_CHECK
 841 JAVAC_CHECK
 842 COOKED_BUILD_NUMBER
 843 JDK_VERSION
 844 COPYRIGHT_YEAR
 845 MACOSX_BUNDLE_ID_BASE
 846 MACOSX_BUNDLE_NAME_BASE
 847 COMPANY_NAME
 848 JDK_RC_PLATFORM_NAME
 849 PRODUCT_SUFFIX
 850 PRODUCT_NAME
 851 LAUNCHER_NAME
 852 MILESTONE
 853 JDK_BUILD_NUMBER
 854 JDK_UPDATE_VERSION
 855 JDK_MICRO_VERSION
 856 JDK_MINOR_VERSION
 857 JDK_MAJOR_VERSION
 858 USER_RELEASE_SUFFIX
 859 COMPRESS_JARS
 860 UNLIMITED_CRYPTO
 861 CACERTS_FILE
 862 TEST_IN_BUILD
 863 BUILD_HEADLESS
 864 SUPPORT_HEADFUL
 865 SUPPORT_HEADLESS
 866 OS_VERSION_MICRO
 867 OS_VERSION_MINOR
 868 OS_VERSION_MAJOR
 869 PKG_CONFIG
 870 BASH_ARGS
 871 SETFILE
 872 CODESIGN
 873 XATTR
 874 DSYMUTIL
 875 IS_GNU_TIME
 876 PATCH
 877 TIME
 878 STAT
 879 HG
 880 READELF
 881 OTOOL
 882 LDD
 883 ZIP
 884 UNZIP
 885 FIND_DELETE
 886 OUTPUT_SYNC
 887 OUTPUT_SYNC_SUPPORTED
 888 CHECK_TOOLSDIR_MAKE
 889 CHECK_TOOLSDIR_GMAKE
 890 CHECK_MAKE
 891 CHECK_GMAKE
 892 MAKE
 893 PKGHANDLER
 894 CONFIGURESUPPORT_OUTPUTDIR
 895 OUTPUT_ROOT
 896 CONF_NAME
 897 SPEC
 898 SDKROOT
 899 XCODEBUILD
 900 BUILD_VARIANT_RELEASE
 901 DEBUG_CLASSFILES
 902 FASTDEBUG
 903 VARIANT
 904 DEBUG_LEVEL
 905 MACOSX_UNIVERSAL
 906 INCLUDE_SA
 907 JVM_VARIANT_CORE
 908 JVM_VARIANT_ZEROSHARK
 909 JVM_VARIANT_ZERO
 910 JVM_VARIANT_KERNEL
 911 JVM_VARIANT_MINIMAL1
 912 JVM_VARIANT_CLIENT
 913 JVM_VARIANT_SERVER
 914 JVM_VARIANTS
 915 JVM_INTERPRETER
 916 JDK_VARIANT
 917 SET_OPENJDK
 918 CANONICAL_TOPDIR
 919 ORIGINAL_TOPDIR
 920 TOPDIR
 921 PATH_SEP
 922 ZERO_ARCHDEF
 923 DEFINE_CROSS_COMPILE_ARCH
 924 LP64
 925 OPENJDK_TARGET_OS_EXPORT_DIR
 926 OPENJDK_TARGET_CPU_JLI_CFLAGS
 927 OPENJDK_TARGET_CPU_OSARCH
 928 OPENJDK_TARGET_CPU_ISADIR
 929 OPENJDK_TARGET_CPU_LIBDIR
 930 OPENJDK_TARGET_CPU_LEGACY_LIB
 931 OPENJDK_TARGET_CPU_LEGACY
 932 REQUIRED_OS_VERSION
 933 REQUIRED_OS_NAME
 934 COMPILE_TYPE
 935 OPENJDK_TARGET_CPU_ENDIAN
 936 OPENJDK_TARGET_CPU_BITS
 937 OPENJDK_TARGET_CPU_ARCH
 938 OPENJDK_TARGET_CPU
 939 OPENJDK_TARGET_OS_ENV
 940 OPENJDK_TARGET_OS_TYPE
 941 OPENJDK_TARGET_OS
 942 OPENJDK_BUILD_CPU_ENDIAN
 943 OPENJDK_BUILD_CPU_BITS
 944 OPENJDK_BUILD_CPU_ARCH
 945 OPENJDK_BUILD_CPU
 946 OPENJDK_BUILD_OS_ENV
 947 OPENJDK_BUILD_OS_TYPE
 948 OPENJDK_BUILD_OS
 949 OPENJDK_BUILD_AUTOCONF_NAME
 950 OPENJDK_TARGET_AUTOCONF_NAME
 951 target_os
 952 target_vendor
 953 target_cpu
 954 target
 955 host_os
 956 host_vendor
 957 host_cpu
 958 host
 959 build_os
 960 build_vendor
 961 build_cpu
 962 build
 963 NICE
 964 CPIO
 965 DF
 966 READLINK
 967 CYGPATH
 968 SED
 969 FGREP
 970 EGREP
 971 GREP
 972 AWK
 973 XARGS
 974 WHICH
 975 WC
 976 UNIQ
 977 UNAME
 978 TR
 979 TOUCH
 980 TEE
 981 TAR
 982 TAIL
 983 SORT
 984 SH
 985 RMDIR
 986 RM
 987 PRINTF
 988 NAWK
 989 MV
 990 MKTEMP
 991 MKDIR
 992 LS
 993 LN
 994 HEAD
 995 FIND
 996 FILE
 997 EXPR
 998 ECHO
 999 DIRNAME
1000 DIFF
1001 DATE
1002 CUT
1003 CP
1004 COMM
1005 CMP
1006 CHMOD
1007 CAT
1008 BASH
1009 BASENAME
1010 DATE_WHEN_CONFIGURED
1011 ORIGINAL_PATH
1012 CONFIGURE_COMMAND_LINE
1013 target_alias
1014 host_alias
1015 build_alias
1016 LIBS
1017 ECHO_T
1018 ECHO_N
1019 ECHO_C
1020 DEFS
1021 mandir
1022 localedir
1023 libdir
1024 psdir
1025 pdfdir
1026 dvidir
1027 htmldir
1028 infodir
1029 docdir
1030 oldincludedir
1031 includedir
1032 localstatedir
1033 sharedstatedir
1034 sysconfdir
1035 datadir
1036 datarootdir
1037 libexecdir
1038 sbindir
1039 bindir
1040 program_transform_name
1041 prefix
1042 exec_prefix
1043 PACKAGE_URL
1044 PACKAGE_BUGREPORT
1045 PACKAGE_STRING
1046 PACKAGE_VERSION
1047 PACKAGE_TARNAME
1048 PACKAGE_NAME
1049 PATH_SEPARATOR
1050 SHELL'
1051 ac_subst_files=''
1052 ac_user_opts='
1053 enable_option_checking
1054 with_target_bits
1055 enable_openjdk_only
1056 with_custom_make_dir
1057 with_jdk_variant
1058 with_jvm_interpreter
1059 with_jvm_variants
1060 enable_debug
1061 with_debug_level
1062 with_devkit
1063 with_sys_root
1064 with_sysroot
1065 with_tools_dir
1066 with_toolchain_path
1067 with_extra_path
1068 with_sdk_name
1069 with_conf_name
1070 with_output_sync
1071 enable_headful
1072 enable_hotspot_test_in_build
1073 with_cacerts_file
1074 enable_unlimited_crypto
1075 with_milestone
1076 with_update_version
1077 with_user_release_suffix
1078 with_build_number
1079 with_copyright_year
1080 with_boot_jdk
1081 with_add_source_root
1082 with_override_source_root
1083 with_adds_and_overrides
1084 with_override_langtools
1085 with_override_corba
1086 with_override_jaxp
1087 with_override_jaxws
1088 with_override_hotspot
1089 with_override_nashorn
1090 with_override_jdk
1091 with_import_hotspot
1092 enable_static_build
1093 with_toolchain_type
1094 with_extra_cflags
1095 with_extra_cxxflags
1096 with_extra_ldflags
1097 with_toolchain_version
1098 with_build_devkit
1099 with_jtreg
1100 enable_warnings_as_errors
1101 with_native_debug_symbols
1102 enable_java_debug_symbols
1103 enable_debug_symbols
1104 enable_zip_debug_info
1105 enable_native_coverage
1106 with_stdc__lib
1107 with_msvcr_dll
1108 with_msvcp_dll
1109 with_x
1110 with_cups
1111 with_cups_include
1112 with_freetype
1113 with_freetype_include
1114 with_freetype_lib
1115 with_freetype_src
1116 enable_freetype_bundling
1117 with_alsa
1118 with_alsa_include
1119 with_alsa_lib
1120 with_libffi
1121 with_libffi_include
1122 with_libffi_lib
1123 with_libjpeg
1124 with_giflib
1125 with_libpng
1126 with_zlib
1127 with_lcms
1128 with_dxsdk
1129 with_dxsdk_lib
1130 with_dxsdk_include
1131 with_num_cores
1132 with_memory_size
1133 with_jobs
1134 with_boot_jdk_jvmargs
1135 with_sjavac_server_java
1136 enable_sjavac
1137 enable_javac_server
1138 enable_icecc
1139 enable_precompiled_headers
1140 enable_ccache
1141 with_ccache_dir
1142 '
1143       ac_precious_vars='build_alias
1144 host_alias
1145 target_alias
1146 BASENAME
1147 BASH
1148 CAT
1149 CHMOD
1150 CMP
1151 COMM
1152 CP
1153 CUT
1154 DATE
1155 DIFF
1156 DIRNAME
1157 ECHO
1158 EXPR
1159 FILE
1160 FIND
1161 HEAD
1162 LN
1163 LS
1164 MKDIR
1165 MKTEMP
1166 MV
1167 NAWK
1168 PRINTF
1169 RM
1170 RMDIR
1171 SH
1172 SORT
1173 TAIL
1174 TAR
1175 TEE
1176 TOUCH
1177 TR
1178 UNAME
1179 UNIQ
1180 WC
1181 WHICH
1182 XARGS
1183 AWK
1184 GREP
1185 EGREP
1186 FGREP
1187 SED
1188 CYGPATH
1189 READLINK
1190 DF
1191 CPIO
1192 NICE
1193 MAKE
1194 UNZIP
1195 ZIP
1196 LDD
1197 OTOOL
1198 READELF
1199 HG
1200 STAT
1201 TIME
1202 PATCH
1203 DSYMUTIL
1204 XATTR
1205 CODESIGN
1206 SETFILE
1207 PKG_CONFIG
1208 JAVA
1209 JAVAC
1210 JAVAH
1211 JAR
1212 JARSIGNER
1213 CC
1214 CFLAGS
1215 LDFLAGS
1216 LIBS
1217 CPPFLAGS
1218 CXX
1219 CXXFLAGS
1220 CCC
1221 CPP
1222 CXXCPP
1223 AS
1224 AR
1225 LIPO
1226 STRIP
1227 NM
1228 GNM
1229 OBJCOPY
1230 OBJDUMP
1231 BUILD_CC
1232 BUILD_CXX
1233 BUILD_NM
1234 BUILD_AR
1235 JTREGEXE
1236 XMKMF
1237 FREETYPE_CFLAGS
1238 FREETYPE_LIBS
1239 ALSA_CFLAGS
1240 ALSA_LIBS
1241 LIBFFI_CFLAGS
1242 LIBFFI_LIBS
1243 PNG_CFLAGS
1244 PNG_LIBS
1245 LCMS_CFLAGS
1246 LCMS_LIBS
1247 ICECC_CMD
1248 ICECC_CREATE_ENV
1249 ICECC_WRAPPER
1250 CCACHE'
1251 
1252 
1253 # Initialize some variables set by options.
1254 ac_init_help=
1255 ac_init_version=false
1256 ac_unrecognized_opts=
1257 ac_unrecognized_sep=
1258 # The variables have the same names as the options, with
1259 # dashes changed to underlines.
1260 cache_file=/dev/null
1261 exec_prefix=NONE
1262 no_create=
1263 no_recursion=
1264 prefix=NONE
1265 program_prefix=NONE
1266 program_suffix=NONE
1267 program_transform_name=s,x,x,
1268 silent=
1269 site=
1270 srcdir=
1271 verbose=
1272 x_includes=NONE
1273 x_libraries=NONE
1274 
1275 # Installation directory options.
1276 # These are left unexpanded so users can "make install exec_prefix=/foo"
1277 # and all the variables that are supposed to be based on exec_prefix
1278 # by default will actually change.
1279 # Use braces instead of parens because sh, perl, etc. also accept them.
1280 # (The list follows the same order as the GNU Coding Standards.)
1281 bindir='${exec_prefix}/bin'
1282 sbindir='${exec_prefix}/sbin'
1283 libexecdir='${exec_prefix}/libexec'
1284 datarootdir='${prefix}/share'
1285 datadir='${datarootdir}'
1286 sysconfdir='${prefix}/etc'
1287 sharedstatedir='${prefix}/com'
1288 localstatedir='${prefix}/var'
1289 includedir='${prefix}/include'
1290 oldincludedir='/usr/include'
1291 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1292 infodir='${datarootdir}/info'
1293 htmldir='${docdir}'
1294 dvidir='${docdir}'
1295 pdfdir='${docdir}'
1296 psdir='${docdir}'
1297 libdir='${exec_prefix}/lib'
1298 localedir='${datarootdir}/locale'
1299 mandir='${datarootdir}/man'
1300 
1301 ac_prev=
1302 ac_dashdash=
1303 for ac_option
1304 do
1305   # If the previous option needs an argument, assign it.
1306   if test -n "$ac_prev"; then
1307     eval $ac_prev=\$ac_option
1308     ac_prev=
1309     continue
1310   fi
1311 
1312   case $ac_option in
1313   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1314   *=)   ac_optarg= ;;
1315   *)    ac_optarg=yes ;;
1316   esac
1317 
1318   # Accept the important Cygnus configure options, so we can diagnose typos.
1319 
1320   case $ac_dashdash$ac_option in
1321   --)
1322     ac_dashdash=yes ;;
1323 
1324   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1325     ac_prev=bindir ;;
1326   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1327     bindir=$ac_optarg ;;
1328 
1329   -build | --build | --buil | --bui | --bu)
1330     ac_prev=build_alias ;;
1331   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1332     build_alias=$ac_optarg ;;
1333 
1334   -cache-file | --cache-file | --cache-fil | --cache-fi \
1335   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1336     ac_prev=cache_file ;;
1337   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1338   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1339     cache_file=$ac_optarg ;;
1340 
1341   --config-cache | -C)
1342     cache_file=config.cache ;;
1343 
1344   -datadir | --datadir | --datadi | --datad)
1345     ac_prev=datadir ;;
1346   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1347     datadir=$ac_optarg ;;
1348 
1349   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1350   | --dataroo | --dataro | --datar)
1351     ac_prev=datarootdir ;;
1352   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1353   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1354     datarootdir=$ac_optarg ;;
1355 
1356   -disable-* | --disable-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error $? "invalid feature name: $ac_useropt"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "enable_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval enable_$ac_useropt=no ;;
1371 
1372   -docdir | --docdir | --docdi | --doc | --do)
1373     ac_prev=docdir ;;
1374   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1375     docdir=$ac_optarg ;;
1376 
1377   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1378     ac_prev=dvidir ;;
1379   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1380     dvidir=$ac_optarg ;;
1381 
1382   -enable-* | --enable-*)
1383     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1384     # Reject names that are not valid shell variable names.
1385     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386       as_fn_error $? "invalid feature name: $ac_useropt"
1387     ac_useropt_orig=$ac_useropt
1388     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389     case $ac_user_opts in
1390       *"
1391 "enable_$ac_useropt"
1392 "*) ;;
1393       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1394          ac_unrecognized_sep=', ';;
1395     esac
1396     eval enable_$ac_useropt=\$ac_optarg ;;
1397 
1398   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1399   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1400   | --exec | --exe | --ex)
1401     ac_prev=exec_prefix ;;
1402   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1403   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1404   | --exec=* | --exe=* | --ex=*)
1405     exec_prefix=$ac_optarg ;;
1406 
1407   -gas | --gas | --ga | --g)
1408     # Obsolete; use --with-gas.
1409     with_gas=yes ;;
1410 
1411   -help | --help | --hel | --he | -h)
1412     ac_init_help=long ;;
1413   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1414     ac_init_help=recursive ;;
1415   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1416     ac_init_help=short ;;
1417 
1418   -host | --host | --hos | --ho)
1419     ac_prev=host_alias ;;
1420   -host=* | --host=* | --hos=* | --ho=*)
1421     host_alias=$ac_optarg ;;
1422 
1423   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1424     ac_prev=htmldir ;;
1425   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1426   | --ht=*)
1427     htmldir=$ac_optarg ;;
1428 
1429   -includedir | --includedir | --includedi | --included | --include \
1430   | --includ | --inclu | --incl | --inc)
1431     ac_prev=includedir ;;
1432   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1433   | --includ=* | --inclu=* | --incl=* | --inc=*)
1434     includedir=$ac_optarg ;;
1435 
1436   -infodir | --infodir | --infodi | --infod | --info | --inf)
1437     ac_prev=infodir ;;
1438   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1439     infodir=$ac_optarg ;;
1440 
1441   -libdir | --libdir | --libdi | --libd)
1442     ac_prev=libdir ;;
1443   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1444     libdir=$ac_optarg ;;
1445 
1446   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1447   | --libexe | --libex | --libe)
1448     ac_prev=libexecdir ;;
1449   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1450   | --libexe=* | --libex=* | --libe=*)
1451     libexecdir=$ac_optarg ;;
1452 
1453   -localedir | --localedir | --localedi | --localed | --locale)
1454     ac_prev=localedir ;;
1455   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1456     localedir=$ac_optarg ;;
1457 
1458   -localstatedir | --localstatedir | --localstatedi | --localstated \
1459   | --localstate | --localstat | --localsta | --localst | --locals)
1460     ac_prev=localstatedir ;;
1461   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1462   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1463     localstatedir=$ac_optarg ;;
1464 
1465   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1466     ac_prev=mandir ;;
1467   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1468     mandir=$ac_optarg ;;
1469 
1470   -nfp | --nfp | --nf)
1471     # Obsolete; use --without-fp.
1472     with_fp=no ;;
1473 
1474   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1475   | --no-cr | --no-c | -n)
1476     no_create=yes ;;
1477 
1478   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1479   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1480     no_recursion=yes ;;
1481 
1482   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1483   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1484   | --oldin | --oldi | --old | --ol | --o)
1485     ac_prev=oldincludedir ;;
1486   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1487   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1488   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1489     oldincludedir=$ac_optarg ;;
1490 
1491   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1492     ac_prev=prefix ;;
1493   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1494     prefix=$ac_optarg ;;
1495 
1496   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1497   | --program-pre | --program-pr | --program-p)
1498     ac_prev=program_prefix ;;
1499   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1500   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1501     program_prefix=$ac_optarg ;;
1502 
1503   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1504   | --program-suf | --program-su | --program-s)
1505     ac_prev=program_suffix ;;
1506   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1507   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1508     program_suffix=$ac_optarg ;;
1509 
1510   -program-transform-name | --program-transform-name \
1511   | --program-transform-nam | --program-transform-na \
1512   | --program-transform-n | --program-transform- \
1513   | --program-transform | --program-transfor \
1514   | --program-transfo | --program-transf \
1515   | --program-trans | --program-tran \
1516   | --progr-tra | --program-tr | --program-t)
1517     ac_prev=program_transform_name ;;
1518   -program-transform-name=* | --program-transform-name=* \
1519   | --program-transform-nam=* | --program-transform-na=* \
1520   | --program-transform-n=* | --program-transform-=* \
1521   | --program-transform=* | --program-transfor=* \
1522   | --program-transfo=* | --program-transf=* \
1523   | --program-trans=* | --program-tran=* \
1524   | --progr-tra=* | --program-tr=* | --program-t=*)
1525     program_transform_name=$ac_optarg ;;
1526 
1527   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1528     ac_prev=pdfdir ;;
1529   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1530     pdfdir=$ac_optarg ;;
1531 
1532   -psdir | --psdir | --psdi | --psd | --ps)
1533     ac_prev=psdir ;;
1534   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1535     psdir=$ac_optarg ;;
1536 
1537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538   | -silent | --silent | --silen | --sile | --sil)
1539     silent=yes ;;
1540 
1541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1542     ac_prev=sbindir ;;
1543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1544   | --sbi=* | --sb=*)
1545     sbindir=$ac_optarg ;;
1546 
1547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1549   | --sharedst | --shareds | --shared | --share | --shar \
1550   | --sha | --sh)
1551     ac_prev=sharedstatedir ;;
1552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1555   | --sha=* | --sh=*)
1556     sharedstatedir=$ac_optarg ;;
1557 
1558   -site | --site | --sit)
1559     ac_prev=site ;;
1560   -site=* | --site=* | --sit=*)
1561     site=$ac_optarg ;;
1562 
1563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1564     ac_prev=srcdir ;;
1565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1566     srcdir=$ac_optarg ;;
1567 
1568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1569   | --syscon | --sysco | --sysc | --sys | --sy)
1570     ac_prev=sysconfdir ;;
1571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1573     sysconfdir=$ac_optarg ;;
1574 
1575   -target | --target | --targe | --targ | --tar | --ta | --t)
1576     ac_prev=target_alias ;;
1577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1578     target_alias=$ac_optarg ;;
1579 
1580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1581     verbose=yes ;;
1582 
1583   -version | --version | --versio | --versi | --vers | -V)
1584     ac_init_version=: ;;
1585 
1586   -with-* | --with-*)
1587     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1588     # Reject names that are not valid shell variable names.
1589     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1590       as_fn_error $? "invalid package name: $ac_useropt"
1591     ac_useropt_orig=$ac_useropt
1592     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1593     case $ac_user_opts in
1594       *"
1595 "with_$ac_useropt"
1596 "*) ;;
1597       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1598          ac_unrecognized_sep=', ';;
1599     esac
1600     eval with_$ac_useropt=\$ac_optarg ;;
1601 
1602   -without-* | --without-*)
1603     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1604     # Reject names that are not valid shell variable names.
1605     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1606       as_fn_error $? "invalid package name: $ac_useropt"
1607     ac_useropt_orig=$ac_useropt
1608     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1609     case $ac_user_opts in
1610       *"
1611 "with_$ac_useropt"
1612 "*) ;;
1613       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1614          ac_unrecognized_sep=', ';;
1615     esac
1616     eval with_$ac_useropt=no ;;
1617 
1618   --x)
1619     # Obsolete; use --with-x.
1620     with_x=yes ;;
1621 
1622   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1623   | --x-incl | --x-inc | --x-in | --x-i)
1624     ac_prev=x_includes ;;
1625   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1626   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1627     x_includes=$ac_optarg ;;
1628 
1629   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1630   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1631     ac_prev=x_libraries ;;
1632   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1633   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1634     x_libraries=$ac_optarg ;;
1635 
1636   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1637 Try \`$0 --help' for more information"
1638     ;;
1639 
1640   *=*)
1641     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1642     # Reject names that are not valid shell variable names.
1643     case $ac_envvar in #(
1644       '' | [0-9]* | *[!_$as_cr_alnum]* )
1645       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1646     esac
1647     eval $ac_envvar=\$ac_optarg
1648     export $ac_envvar ;;
1649 
1650   *)
1651     # FIXME: should be removed in autoconf 3.0.
1652     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1653     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1654       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1655     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1656     ;;
1657 
1658   esac
1659 done
1660 
1661 if test -n "$ac_prev"; then
1662   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1663   as_fn_error $? "missing argument to $ac_option"
1664 fi
1665 
1666 if test -n "$ac_unrecognized_opts"; then
1667   case $enable_option_checking in
1668     no) ;;
1669     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1670     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1671   esac
1672 fi
1673 
1674 # Check all directory arguments for consistency.
1675 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1676                 datadir sysconfdir sharedstatedir localstatedir includedir \
1677                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1678                 libdir localedir mandir
1679 do
1680   eval ac_val=\$$ac_var
1681   # Remove trailing slashes.
1682   case $ac_val in
1683     */ )
1684       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1685       eval $ac_var=\$ac_val;;
1686   esac
1687   # Be sure to have absolute directory names.
1688   case $ac_val in
1689     [\\/$]* | ?:[\\/]* )  continue;;
1690     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1691   esac
1692   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1693 done
1694 
1695 # There might be people who depend on the old broken behavior: `$host'
1696 # used to hold the argument of --host etc.
1697 # FIXME: To remove some day.
1698 build=$build_alias
1699 host=$host_alias
1700 target=$target_alias
1701 
1702 # FIXME: To remove some day.
1703 if test "x$host_alias" != x; then
1704   if test "x$build_alias" = x; then
1705     cross_compiling=maybe
1706   elif test "x$build_alias" != "x$host_alias"; then
1707     cross_compiling=yes
1708   fi
1709 fi
1710 
1711 ac_tool_prefix=
1712 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1713 
1714 test "$silent" = yes && exec 6>/dev/null
1715 
1716 
1717 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1718 ac_ls_di=`ls -di .` &&
1719 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1720   as_fn_error $? "working directory cannot be determined"
1721 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1722   as_fn_error $? "pwd does not report name of working directory"
1723 
1724 
1725 # Find the source files, if location was not specified.
1726 if test -z "$srcdir"; then
1727   ac_srcdir_defaulted=yes
1728   # Try the directory containing this script, then the parent directory.
1729   ac_confdir=`$as_dirname -- "$as_myself" ||
1730 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1731          X"$as_myself" : 'X\(//\)[^/]' \| \
1732          X"$as_myself" : 'X\(//\)$' \| \
1733          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1734 $as_echo X"$as_myself" |
1735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1736             s//\1/
1737             q
1738           }
1739           /^X\(\/\/\)[^/].*/{
1740             s//\1/
1741             q
1742           }
1743           /^X\(\/\/\)$/{
1744             s//\1/
1745             q
1746           }
1747           /^X\(\/\).*/{
1748             s//\1/
1749             q
1750           }
1751           s/.*/./; q'`
1752   srcdir=$ac_confdir
1753   if test ! -r "$srcdir/$ac_unique_file"; then
1754     srcdir=..
1755   fi
1756 else
1757   ac_srcdir_defaulted=no
1758 fi
1759 if test ! -r "$srcdir/$ac_unique_file"; then
1760   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1761   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1762 fi
1763 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1764 ac_abs_confdir=`(
1765         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1766         pwd)`
1767 # When building in place, set srcdir=.
1768 if test "$ac_abs_confdir" = "$ac_pwd"; then
1769   srcdir=.
1770 fi
1771 # Remove unnecessary trailing slashes from srcdir.
1772 # Double slashes in file names in object file debugging info
1773 # mess up M-x gdb in Emacs.
1774 case $srcdir in
1775 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1776 esac
1777 for ac_var in $ac_precious_vars; do
1778   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1779   eval ac_env_${ac_var}_value=\$${ac_var}
1780   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1781   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1782 done
1783 
1784 #
1785 # Report the --help message.
1786 #
1787 if test "$ac_init_help" = "long"; then
1788   # Omit some internal or obsolete options to make the list less imposing.
1789   # This message is too long to be a string in the A/UX 3.1 sh.
1790   cat <<_ACEOF
1791 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1792 
1793 Usage: $0 [OPTION]... [VAR=VALUE]...
1794 
1795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1796 VAR=VALUE.  See below for descriptions of some of the useful variables.
1797 
1798 Defaults for the options are specified in brackets.
1799 
1800 Configuration:
1801   -h, --help              display this help and exit
1802       --help=short        display options specific to this package
1803       --help=recursive    display the short help of all the included packages
1804   -V, --version           display version information and exit
1805   -q, --quiet, --silent   do not print \`checking ...' messages
1806       --cache-file=FILE   cache test results in FILE [disabled]
1807   -C, --config-cache      alias for \`--cache-file=config.cache'
1808   -n, --no-create         do not create output files
1809       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1810 
1811 Installation directories:
1812   --prefix=PREFIX         install architecture-independent files in PREFIX
1813                           [$ac_default_prefix]
1814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1815                           [PREFIX]
1816 
1817 By default, \`make install' will install all the files in
1818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1820 for instance \`--prefix=\$HOME'.
1821 
1822 For better control, use the options below.
1823 
1824 Fine tuning of the installation directories:
1825   --bindir=DIR            user executables [EPREFIX/bin]
1826   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1827   --libexecdir=DIR        program executables [EPREFIX/libexec]
1828   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1829   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1830   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1831   --libdir=DIR            object code libraries [EPREFIX/lib]
1832   --includedir=DIR        C header files [PREFIX/include]
1833   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1834   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1835   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1836   --infodir=DIR           info documentation [DATAROOTDIR/info]
1837   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1838   --mandir=DIR            man documentation [DATAROOTDIR/man]
1839   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1840   --htmldir=DIR           html documentation [DOCDIR]
1841   --dvidir=DIR            dvi documentation [DOCDIR]
1842   --pdfdir=DIR            pdf documentation [DOCDIR]
1843   --psdir=DIR             ps documentation [DOCDIR]
1844 _ACEOF
1845 
1846   cat <<\_ACEOF
1847 
1848 X features:
1849   --x-includes=DIR    X include files are in DIR
1850   --x-libraries=DIR   X library files are in DIR
1851 
1852 System types:
1853   --build=BUILD     configure for building on BUILD [guessed]
1854   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1855   --target=TARGET   configure for building compilers for TARGET [HOST]
1856 _ACEOF
1857 fi
1858 
1859 if test -n "$ac_init_help"; then
1860   case $ac_init_help in
1861      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1862    esac
1863   cat <<\_ACEOF
1864 
1865 Optional Features:
1866   --disable-option-checking  ignore unrecognized --enable/--with options
1867   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1868   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1869   --enable-openjdk-only   suppress building custom source even if present
1870                           [disabled]
1871   --enable-debug          set the debug level to fastdebug (shorthand for
1872                           --with-debug-level=fastdebug) [disabled]
1873   --disable-headful       disable building headful support (graphical UI
1874                           support) [enabled]
1875   --enable-hotspot-test-in-build
1876                           run the Queens test after Hotspot build [disabled]
1877   --enable-unlimited-crypto
1878                           Enable unlimited crypto policy [disabled]
1879   --enable-static-build   enable static library build [disabled]
1880   --disable-warnings-as-errors
1881                           do not consider native warnings to be an error
1882                           [enabled]
1883   --enable-java-debug-symbols
1884                           enable generating debug symbols in java class files
1885                           [disabled]
1886   --enable-debug-symbols  Deprecated. Option is kept for backwards
1887                           compatibility and is ignored
1888   --enable-zip-debug-info Deprecated. Option is kept for backwards
1889                           compatibility and is ignored
1890   --enable-native-coverage
1891                           enable native compilation with code coverage
1892                           data[disabled]
1893   --disable-freetype-bundling
1894                           disable bundling of the freetype library with the
1895                           build result [enabled on Windows or when using
1896                           --with-freetype, disabled otherwise]
1897   --enable-sjavac         use sjavac to do fast incremental compiles
1898                           [disabled]
1899   --disable-javac-server  disable javac server [enabled]
1900   --enable-icecc          enable distribted compilation of native code using
1901                           icecc/icecream [disabled]
1902   --disable-precompiled-headers
1903                           disable using precompiled headers when compiling C++
1904                           [enabled]
1905   --enable-ccache         enable using ccache to speed up recompilations
1906                           [disabled]
1907 
1908 Optional Packages:
1909   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1910   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1911   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1912                           support it), e.g. --with-target-bits=32 [guessed]
1913   --with-custom-make-dir  Deprecated. Option is kept for backwards
1914                           compatibility and is ignored
1915   --with-jdk-variant      JDK variant to build (normal) [normal]
1916   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1917   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1918                           client, minimal1, kernel, zero, zeroshark, core)
1919                           [server]
1920   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1921                           optimized (HotSpot build only)) [release]
1922   --with-devkit           use this devkit for compilers, tools and resources
1923   --with-sys-root         alias for --with-sysroot for backwards compatability
1924   --with-sysroot          use this directory as sysroot
1925   --with-tools-dir        alias for --with-toolchain-path for backwards
1926                           compatibility
1927   --with-toolchain-path   prepend these directories when searching for
1928                           toolchain binaries (compilers etc)
1929   --with-extra-path       prepend these directories to the default path
1930   --with-sdk-name         use the platform SDK of the given name. [macosx]
1931   --with-conf-name        use this as the name of the configuration [generated
1932                           from important configuration options]
1933   --with-output-sync      set make output sync type if supported by make.
1934                           [recurse]
1935   --with-cacerts-file     specify alternative cacerts file
1936   --with-milestone        Set milestone value for build [internal]
1937   --with-update-version   Set update version value for build [b00]
1938   --with-user-release-suffix
1939                           Add a custom string to the version string if build
1940                           number is not set.[username_builddateb00]
1941   --with-build-number     Set build number value for build [b00]
1942   --with-copyright-year   Set copyright year value for build [current year]
1943   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1944   --with-add-source-root  Deprecated. Option is kept for backwards
1945                           compatibility and is ignored
1946   --with-override-source-root
1947                           Deprecated. Option is kept for backwards
1948                           compatibility and is ignored
1949   --with-adds-and-overrides
1950                           Deprecated. Option is kept for backwards
1951                           compatibility and is ignored
1952   --with-override-langtools
1953                           Deprecated. Option is kept for backwards
1954                           compatibility and is ignored
1955   --with-override-corba   Deprecated. Option is kept for backwards
1956                           compatibility and is ignored
1957   --with-override-jaxp    Deprecated. Option is kept for backwards
1958                           compatibility and is ignored
1959   --with-override-jaxws   Deprecated. Option is kept for backwards
1960                           compatibility and is ignored
1961   --with-override-hotspot Deprecated. Option is kept for backwards
1962                           compatibility and is ignored
1963   --with-override-nashorn Deprecated. Option is kept for backwards
1964                           compatibility and is ignored
1965   --with-override-jdk     Deprecated. Option is kept for backwards
1966                           compatibility and is ignored
1967   --with-import-hotspot   import hotspot binaries from this jdk image or
1968                           hotspot build dist dir instead of building from
1969                           source
1970   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1971                           to show possible values [platform dependent]
1972   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1973   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1974   --with-extra-ldflags    extra flags to be used when linking jdk
1975   --with-toolchain-version
1976                           the version of the toolchain to look for, use
1977                           '--help' to show possible values [platform
1978                           dependent]
1979   --with-build-devkit     Devkit to use for the build platform toolchain
1980   --with-jtreg            Regression Test Harness [probed]
1981   --with-native-debug-symbols
1982                           set the native debug symbol configuration (none,
1983                           internal, external, zipped) [zipped]
1984   --with-stdc++lib=<static>,<dynamic>,<default>
1985                           force linking of the C++ runtime on Linux to either
1986                           static or dynamic, default is static with dynamic as
1987                           fallback
1988   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1989                           (Windows only) [probed]
1990   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1991                           (Windows only) [probed]
1992   --with-x                use the X Window System
1993   --with-cups             specify prefix directory for the cups package
1994                           (expecting the headers under PATH/include)
1995   --with-cups-include     specify directory for the cups include files
1996   --with-freetype         specify prefix directory for the freetype package
1997                           (expecting the libraries under PATH/lib and the
1998                           headers under PATH/include)
1999   --with-freetype-include specify directory for the freetype include files
2000   --with-freetype-lib     specify directory for the freetype library
2001   --with-freetype-src     specify directory with freetype sources to
2002                           automatically build the library (experimental,
2003                           Windows-only)
2004   --with-alsa             specify prefix directory for the alsa package
2005                           (expecting the libraries under PATH/lib and the
2006                           headers under PATH/include)
2007   --with-alsa-include     specify directory for the alsa include files
2008   --with-alsa-lib         specify directory for the alsa library
2009   --with-libffi           specify prefix directory for the libffi package
2010                           (expecting the libraries under PATH/lib and the
2011                           headers under PATH/include)
2012   --with-libffi-include   specify directory for the libffi include files
2013   --with-libffi-lib       specify directory for the libffi library
2014   --with-libjpeg          use libjpeg from build system or OpenJDK source
2015                           (system, bundled) [bundled]
2016   --with-giflib           use giflib from build system or OpenJDK source
2017                           (system, bundled) [bundled]
2018   --with-libpng           use libpng from build system or OpenJDK source
2019                           (system, bundled) [bundled]
2020   --with-zlib             use zlib from build system or OpenJDK source
2021                           (system, bundled) [bundled]
2022   --with-lcms             use lcms2 from build system or OpenJDK source
2023                           (system, bundled) [bundled]
2024   --with-dxsdk            Deprecated. Option is kept for backwards
2025                           compatibility and is ignored
2026   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2027                           compatibility and is ignored
2028   --with-dxsdk-include    Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-num-cores        number of cores in the build system, e.g.
2031                           --with-num-cores=8 [probed]
2032   --with-memory-size      memory (in MB) available in the build system, e.g.
2033                           --with-memory-size=1024 [probed]
2034   --with-jobs             number of parallel jobs to let make run [calculated
2035                           based on cores and memory]
2036   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2037                           invocations of boot JDK, overriding the default
2038                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2039                           -enableassertions"
2040   --with-sjavac-server-java
2041                           use this java binary for running the sjavac
2042                           background server [Boot JDK java]
2043   --with-ccache-dir       where to store ccache files [~/.ccache]
2044 
2045 Some influential environment variables:
2046   BASENAME    Override default value for BASENAME
2047   BASH        Override default value for BASH
2048   CAT         Override default value for CAT
2049   CHMOD       Override default value for CHMOD
2050   CMP         Override default value for CMP
2051   COMM        Override default value for COMM
2052   CP          Override default value for CP
2053   CUT         Override default value for CUT
2054   DATE        Override default value for DATE
2055   DIFF        Override default value for DIFF
2056   DIRNAME     Override default value for DIRNAME
2057   ECHO        Override default value for ECHO
2058   EXPR        Override default value for EXPR
2059   FILE        Override default value for FILE
2060   FIND        Override default value for FIND
2061   HEAD        Override default value for HEAD
2062   LN          Override default value for LN
2063   LS          Override default value for LS
2064   MKDIR       Override default value for MKDIR
2065   MKTEMP      Override default value for MKTEMP
2066   MV          Override default value for MV
2067   NAWK        Override default value for NAWK
2068   PRINTF      Override default value for PRINTF
2069   RM          Override default value for RM
2070   RMDIR       Override default value for RMDIR
2071   SH          Override default value for SH
2072   SORT        Override default value for SORT
2073   TAIL        Override default value for TAIL
2074   TAR         Override default value for TAR
2075   TEE         Override default value for TEE
2076   TOUCH       Override default value for TOUCH
2077   TR          Override default value for TR
2078   UNAME       Override default value for UNAME
2079   UNIQ        Override default value for UNIQ
2080   WC          Override default value for WC
2081   WHICH       Override default value for WHICH
2082   XARGS       Override default value for XARGS
2083   AWK         Override default value for AWK
2084   GREP        Override default value for GREP
2085   EGREP       Override default value for EGREP
2086   FGREP       Override default value for FGREP
2087   SED         Override default value for SED
2088   CYGPATH     Override default value for CYGPATH
2089   READLINK    Override default value for READLINK
2090   DF          Override default value for DF
2091   CPIO        Override default value for CPIO
2092   NICE        Override default value for NICE
2093   MAKE        Override default value for MAKE
2094   UNZIP       Override default value for UNZIP
2095   ZIP         Override default value for ZIP
2096   LDD         Override default value for LDD
2097   OTOOL       Override default value for OTOOL
2098   READELF     Override default value for READELF
2099   HG          Override default value for HG
2100   STAT        Override default value for STAT
2101   TIME        Override default value for TIME
2102   PATCH       Override default value for PATCH
2103   DSYMUTIL    Override default value for DSYMUTIL
2104   XATTR       Override default value for XATTR
2105   CODESIGN    Override default value for CODESIGN
2106   SETFILE     Override default value for SETFILE
2107   PKG_CONFIG  path to pkg-config utility
2108   JAVA        Override default value for JAVA
2109   JAVAC       Override default value for JAVAC
2110   JAVAH       Override default value for JAVAH
2111   JAR         Override default value for JAR
2112   JARSIGNER   Override default value for JARSIGNER
2113   CC          C compiler command
2114   CFLAGS      C compiler flags
2115   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2116               nonstandard directory <lib dir>
2117   LIBS        libraries to pass to the linker, e.g. -l<library>
2118   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2119               you have headers in a nonstandard directory <include dir>
2120   CXX         C++ compiler command
2121   CXXFLAGS    C++ compiler flags
2122   CPP         C preprocessor
2123   CXXCPP      C++ preprocessor
2124   AS          Override default value for AS
2125   AR          Override default value for AR
2126   LIPO        Override default value for LIPO
2127   STRIP       Override default value for STRIP
2128   NM          Override default value for NM
2129   GNM         Override default value for GNM
2130   OBJCOPY     Override default value for OBJCOPY
2131   OBJDUMP     Override default value for OBJDUMP
2132   BUILD_CC    Override default value for BUILD_CC
2133   BUILD_CXX   Override default value for BUILD_CXX
2134   BUILD_NM    Override default value for BUILD_NM
2135   BUILD_AR    Override default value for BUILD_AR
2136   JTREGEXE    Override default value for JTREGEXE
2137   XMKMF       Path to xmkmf, Makefile generator for X Window System
2138   FREETYPE_CFLAGS
2139               C compiler flags for FREETYPE, overriding pkg-config
2140   FREETYPE_LIBS
2141               linker flags for FREETYPE, overriding pkg-config
2142   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2143   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2144   LIBFFI_CFLAGS
2145               C compiler flags for LIBFFI, overriding pkg-config
2146   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2147   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2148   PNG_LIBS    linker flags for PNG, overriding pkg-config
2149   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2150   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2151   ICECC_CMD   Override default value for ICECC_CMD
2152   ICECC_CREATE_ENV
2153               Override default value for ICECC_CREATE_ENV
2154   ICECC_WRAPPER
2155               Override default value for ICECC_WRAPPER
2156   CCACHE      Override default value for CCACHE
2157 
2158 Use these variables to override the choices made by `configure' or to help
2159 it to find libraries and programs with nonstandard names/locations.
2160 
2161 Report bugs to <build-dev@openjdk.java.net>.
2162 OpenJDK home page: <http://openjdk.java.net>.
2163 _ACEOF
2164 ac_status=$?
2165 fi
2166 
2167 if test "$ac_init_help" = "recursive"; then
2168   # If there are subdirs, report their specific --help.
2169   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2170     test -d "$ac_dir" ||
2171       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2172       continue
2173     ac_builddir=.
2174 
2175 case "$ac_dir" in
2176 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2177 *)
2178   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2179   # A ".." for each directory in $ac_dir_suffix.
2180   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2181   case $ac_top_builddir_sub in
2182   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2183   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2184   esac ;;
2185 esac
2186 ac_abs_top_builddir=$ac_pwd
2187 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2188 # for backward compatibility:
2189 ac_top_builddir=$ac_top_build_prefix
2190 
2191 case $srcdir in
2192   .)  # We are building in place.
2193     ac_srcdir=.
2194     ac_top_srcdir=$ac_top_builddir_sub
2195     ac_abs_top_srcdir=$ac_pwd ;;
2196   [\\/]* | ?:[\\/]* )  # Absolute name.
2197     ac_srcdir=$srcdir$ac_dir_suffix;
2198     ac_top_srcdir=$srcdir
2199     ac_abs_top_srcdir=$srcdir ;;
2200   *) # Relative name.
2201     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2202     ac_top_srcdir=$ac_top_build_prefix$srcdir
2203     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2204 esac
2205 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2206 
2207     cd "$ac_dir" || { ac_status=$?; continue; }
2208     # Check for guested configure.
2209     if test -f "$ac_srcdir/configure.gnu"; then
2210       echo &&
2211       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2212     elif test -f "$ac_srcdir/configure"; then
2213       echo &&
2214       $SHELL "$ac_srcdir/configure" --help=recursive
2215     else
2216       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2217     fi || ac_status=$?
2218     cd "$ac_pwd" || { ac_status=$?; break; }
2219   done
2220 fi
2221 
2222 test -n "$ac_init_help" && exit $ac_status
2223 if $ac_init_version; then
2224   cat <<\_ACEOF
2225 OpenJDK configure jdk9
2226 generated by GNU Autoconf 2.69
2227 
2228 Copyright (C) 2012 Free Software Foundation, Inc.
2229 This configure script is free software; the Free Software Foundation
2230 gives unlimited permission to copy, distribute and modify it.
2231 _ACEOF
2232   exit
2233 fi
2234 
2235 ## ------------------------ ##
2236 ## Autoconf initialization. ##
2237 ## ------------------------ ##
2238 
2239 # ac_fn_c_try_compile LINENO
2240 # --------------------------
2241 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2242 ac_fn_c_try_compile ()
2243 {
2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245   rm -f conftest.$ac_objext
2246   if { { ac_try="$ac_compile"
2247 case "(($ac_try" in
2248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249   *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253   (eval "$ac_compile") 2>conftest.err
2254   ac_status=$?
2255   if test -s conftest.err; then
2256     grep -v '^ *+' conftest.err >conftest.er1
2257     cat conftest.er1 >&5
2258     mv -f conftest.er1 conftest.err
2259   fi
2260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261   test $ac_status = 0; } && {
2262          test -z "$ac_c_werror_flag" ||
2263          test ! -s conftest.err
2264        } && test -s conftest.$ac_objext; then :
2265   ac_retval=0
2266 else
2267   $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269 
2270         ac_retval=1
2271 fi
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273   as_fn_set_status $ac_retval
2274 
2275 } # ac_fn_c_try_compile
2276 
2277 # ac_fn_cxx_try_compile LINENO
2278 # ----------------------------
2279 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2280 ac_fn_cxx_try_compile ()
2281 {
2282   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283   rm -f conftest.$ac_objext
2284   if { { ac_try="$ac_compile"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291   (eval "$ac_compile") 2>conftest.err
2292   ac_status=$?
2293   if test -s conftest.err; then
2294     grep -v '^ *+' conftest.err >conftest.er1
2295     cat conftest.er1 >&5
2296     mv -f conftest.er1 conftest.err
2297   fi
2298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299   test $ac_status = 0; } && {
2300          test -z "$ac_cxx_werror_flag" ||
2301          test ! -s conftest.err
2302        } && test -s conftest.$ac_objext; then :
2303   ac_retval=0
2304 else
2305   $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307 
2308         ac_retval=1
2309 fi
2310   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311   as_fn_set_status $ac_retval
2312 
2313 } # ac_fn_cxx_try_compile
2314 
2315 # ac_fn_c_try_cpp LINENO
2316 # ----------------------
2317 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_c_try_cpp ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   if { { ac_try="$ac_cpp conftest.$ac_ext"
2322 case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327 $as_echo "$ac_try_echo"; } >&5
2328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2329   ac_status=$?
2330   if test -s conftest.err; then
2331     grep -v '^ *+' conftest.err >conftest.er1
2332     cat conftest.er1 >&5
2333     mv -f conftest.er1 conftest.err
2334   fi
2335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336   test $ac_status = 0; } > conftest.i && {
2337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2338          test ! -s conftest.err
2339        }; then :
2340   ac_retval=0
2341 else
2342   $as_echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344 
2345     ac_retval=1
2346 fi
2347   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348   as_fn_set_status $ac_retval
2349 
2350 } # ac_fn_c_try_cpp
2351 
2352 # ac_fn_cxx_try_cpp LINENO
2353 # ------------------------
2354 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_cxx_try_cpp ()
2356 {
2357   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358   if { { ac_try="$ac_cpp conftest.$ac_ext"
2359 case "(($ac_try" in
2360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361   *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2366   ac_status=$?
2367   if test -s conftest.err; then
2368     grep -v '^ *+' conftest.err >conftest.er1
2369     cat conftest.er1 >&5
2370     mv -f conftest.er1 conftest.err
2371   fi
2372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373   test $ac_status = 0; } > conftest.i && {
2374          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2375          test ! -s conftest.err
2376        }; then :
2377   ac_retval=0
2378 else
2379   $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381 
2382     ac_retval=1
2383 fi
2384   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385   as_fn_set_status $ac_retval
2386 
2387 } # ac_fn_cxx_try_cpp
2388 
2389 # ac_fn_c_try_link LINENO
2390 # -----------------------
2391 # Try to link conftest.$ac_ext, and return whether this succeeded.
2392 ac_fn_c_try_link ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   rm -f conftest.$ac_objext conftest$ac_exeext
2396   if { { ac_try="$ac_link"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403   (eval "$ac_link") 2>conftest.err
2404   ac_status=$?
2405   if test -s conftest.err; then
2406     grep -v '^ *+' conftest.err >conftest.er1
2407     cat conftest.er1 >&5
2408     mv -f conftest.er1 conftest.err
2409   fi
2410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411   test $ac_status = 0; } && {
2412          test -z "$ac_c_werror_flag" ||
2413          test ! -s conftest.err
2414        } && test -s conftest$ac_exeext && {
2415          test "$cross_compiling" = yes ||
2416          test -x conftest$ac_exeext
2417        }; then :
2418   ac_retval=0
2419 else
2420   $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422 
2423         ac_retval=1
2424 fi
2425   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2426   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2427   # interfere with the next link command; also delete a directory that is
2428   # left behind by Apple's compiler.  We do this before executing the actions.
2429   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2430   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431   as_fn_set_status $ac_retval
2432 
2433 } # ac_fn_c_try_link
2434 
2435 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2436 # ---------------------------------------------------------
2437 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2438 # the include files in INCLUDES and setting the cache variable VAR
2439 # accordingly.
2440 ac_fn_cxx_check_header_mongrel ()
2441 {
2442   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443   if eval \${$3+:} false; then :
2444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if eval \${$3+:} false; then :
2447   $as_echo_n "(cached) " >&6
2448 fi
2449 eval ac_res=\$$3
2450                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2451 $as_echo "$ac_res" >&6; }
2452 else
2453   # Is the header compilable?
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2455 $as_echo_n "checking $2 usability... " >&6; }
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h.  */
2458 $4
2459 #include <$2>
2460 _ACEOF
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2462   ac_header_compiler=yes
2463 else
2464   ac_header_compiler=no
2465 fi
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2468 $as_echo "$ac_header_compiler" >&6; }
2469 
2470 # Is the header present?
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2472 $as_echo_n "checking $2 presence... " >&6; }
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h.  */
2475 #include <$2>
2476 _ACEOF
2477 if ac_fn_cxx_try_cpp "$LINENO"; then :
2478   ac_header_preproc=yes
2479 else
2480   ac_header_preproc=no
2481 fi
2482 rm -f conftest.err conftest.i conftest.$ac_ext
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2484 $as_echo "$ac_header_preproc" >&6; }
2485 
2486 # So?  What about this header?
2487 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2488   yes:no: )
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2490 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2492 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2493     ;;
2494   no:yes:* )
2495     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2496 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2497     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2498 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2499     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2500 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2502 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2504 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2505 ( $as_echo "## ----------------------------------------- ##
2506 ## Report this to build-dev@openjdk.java.net ##
2507 ## ----------------------------------------- ##"
2508      ) | sed "s/^/$as_me: WARNING:     /" >&2
2509     ;;
2510 esac
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512 $as_echo_n "checking for $2... " >&6; }
2513 if eval \${$3+:} false; then :
2514   $as_echo_n "(cached) " >&6
2515 else
2516   eval "$3=\$ac_header_compiler"
2517 fi
2518 eval ac_res=\$$3
2519                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520 $as_echo "$ac_res" >&6; }
2521 fi
2522   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 
2524 } # ac_fn_cxx_check_header_mongrel
2525 
2526 # ac_fn_cxx_try_run LINENO
2527 # ------------------------
2528 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2529 # that executables *can* be run.
2530 ac_fn_cxx_try_run ()
2531 {
2532   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533   if { { ac_try="$ac_link"
2534 case "(($ac_try" in
2535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536   *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540   (eval "$ac_link") 2>&5
2541   ac_status=$?
2542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2544   { { case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2549 $as_echo "$ac_try_echo"; } >&5
2550   (eval "$ac_try") 2>&5
2551   ac_status=$?
2552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553   test $ac_status = 0; }; }; then :
2554   ac_retval=0
2555 else
2556   $as_echo "$as_me: program exited with status $ac_status" >&5
2557        $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559 
2560        ac_retval=$ac_status
2561 fi
2562   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564   as_fn_set_status $ac_retval
2565 
2566 } # ac_fn_cxx_try_run
2567 
2568 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2569 # ---------------------------------------------------------
2570 # Tests whether HEADER exists and can be compiled using the include files in
2571 # INCLUDES, setting the cache variable VAR accordingly.
2572 ac_fn_cxx_check_header_compile ()
2573 {
2574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if eval \${$3+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h.  */
2582 $4
2583 #include <$2>
2584 _ACEOF
2585 if ac_fn_cxx_try_compile "$LINENO"; then :
2586   eval "$3=yes"
2587 else
2588   eval "$3=no"
2589 fi
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 fi
2592 eval ac_res=\$$3
2593                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 
2597 } # ac_fn_cxx_check_header_compile
2598 
2599 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2600 # ----------------------------------------------
2601 # Tries to find the compile-time value of EXPR in a program that includes
2602 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2603 # computed
2604 ac_fn_cxx_compute_int ()
2605 {
2606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607   if test "$cross_compiling" = yes; then
2608     # Depending upon the size, compute the lo and hi bounds.
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $4
2612 int
2613 main ()
2614 {
2615 static int test_array [1 - 2 * !(($2) >= 0)];
2616 test_array [0] = 0;
2617 return test_array [0];
2618 
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 if ac_fn_cxx_try_compile "$LINENO"; then :
2624   ac_lo=0 ac_mid=0
2625   while :; do
2626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h.  */
2628 $4
2629 int
2630 main ()
2631 {
2632 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2633 test_array [0] = 0;
2634 return test_array [0];
2635 
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 if ac_fn_cxx_try_compile "$LINENO"; then :
2641   ac_hi=$ac_mid; break
2642 else
2643   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2644                         if test $ac_lo -le $ac_mid; then
2645                           ac_lo= ac_hi=
2646                           break
2647                         fi
2648                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2649 fi
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2651   done
2652 else
2653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h.  */
2655 $4
2656 int
2657 main ()
2658 {
2659 static int test_array [1 - 2 * !(($2) < 0)];
2660 test_array [0] = 0;
2661 return test_array [0];
2662 
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668   ac_hi=-1 ac_mid=-1
2669   while :; do
2670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h.  */
2672 $4
2673 int
2674 main ()
2675 {
2676 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2677 test_array [0] = 0;
2678 return test_array [0];
2679 
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 if ac_fn_cxx_try_compile "$LINENO"; then :
2685   ac_lo=$ac_mid; break
2686 else
2687   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2688                         if test $ac_mid -le $ac_hi; then
2689                           ac_lo= ac_hi=
2690                           break
2691                         fi
2692                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695   done
2696 else
2697   ac_lo= ac_hi=
2698 fi
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 # Binary search between lo and hi bounds.
2703 while test "x$ac_lo" != "x$ac_hi"; do
2704   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h.  */
2707 $4
2708 int
2709 main ()
2710 {
2711 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2712 test_array [0] = 0;
2713 return test_array [0];
2714 
2715   ;
2716   return 0;
2717 }
2718 _ACEOF
2719 if ac_fn_cxx_try_compile "$LINENO"; then :
2720   ac_hi=$ac_mid
2721 else
2722   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 done
2726 case $ac_lo in #((
2727 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2728 '') ac_retval=1 ;;
2729 esac
2730   else
2731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h.  */
2733 $4
2734 static long int longval () { return $2; }
2735 static unsigned long int ulongval () { return $2; }
2736 #include <stdio.h>
2737 #include <stdlib.h>
2738 int
2739 main ()
2740 {
2741 
2742   FILE *f = fopen ("conftest.val", "w");
2743   if (! f)
2744     return 1;
2745   if (($2) < 0)
2746     {
2747       long int i = longval ();
2748       if (i != ($2))
2749         return 1;
2750       fprintf (f, "%ld", i);
2751     }
2752   else
2753     {
2754       unsigned long int i = ulongval ();
2755       if (i != ($2))
2756         return 1;
2757       fprintf (f, "%lu", i);
2758     }
2759   /* Do not output a trailing newline, as this causes \r\n confusion
2760      on some platforms.  */
2761   return ferror (f) || fclose (f) != 0;
2762 
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 if ac_fn_cxx_try_run "$LINENO"; then :
2768   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2769 else
2770   ac_retval=1
2771 fi
2772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2773   conftest.$ac_objext conftest.beam conftest.$ac_ext
2774 rm -f conftest.val
2775 
2776   fi
2777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2778   as_fn_set_status $ac_retval
2779 
2780 } # ac_fn_cxx_compute_int
2781 
2782 # ac_fn_cxx_try_link LINENO
2783 # -------------------------
2784 # Try to link conftest.$ac_ext, and return whether this succeeded.
2785 ac_fn_cxx_try_link ()
2786 {
2787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2788   rm -f conftest.$ac_objext conftest$ac_exeext
2789   if { { ac_try="$ac_link"
2790 case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2795 $as_echo "$ac_try_echo"; } >&5
2796   (eval "$ac_link") 2>conftest.err
2797   ac_status=$?
2798   if test -s conftest.err; then
2799     grep -v '^ *+' conftest.err >conftest.er1
2800     cat conftest.er1 >&5
2801     mv -f conftest.er1 conftest.err
2802   fi
2803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804   test $ac_status = 0; } && {
2805          test -z "$ac_cxx_werror_flag" ||
2806          test ! -s conftest.err
2807        } && test -s conftest$ac_exeext && {
2808          test "$cross_compiling" = yes ||
2809          test -x conftest$ac_exeext
2810        }; then :
2811   ac_retval=0
2812 else
2813   $as_echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815 
2816         ac_retval=1
2817 fi
2818   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2819   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2820   # interfere with the next link command; also delete a directory that is
2821   # left behind by Apple's compiler.  We do this before executing the actions.
2822   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2823   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2824   as_fn_set_status $ac_retval
2825 
2826 } # ac_fn_cxx_try_link
2827 
2828 # ac_fn_cxx_check_func LINENO FUNC VAR
2829 # ------------------------------------
2830 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2831 ac_fn_cxx_check_func ()
2832 {
2833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2835 $as_echo_n "checking for $2... " >&6; }
2836 if eval \${$3+:} false; then :
2837   $as_echo_n "(cached) " >&6
2838 else
2839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h.  */
2841 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2843 #define $2 innocuous_$2
2844 
2845 /* System header to define __stub macros and hopefully few prototypes,
2846     which can conflict with char $2 (); below.
2847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2848     <limits.h> exists even on freestanding compilers.  */
2849 
2850 #ifdef __STDC__
2851 # include <limits.h>
2852 #else
2853 # include <assert.h>
2854 #endif
2855 
2856 #undef $2
2857 
2858 /* Override any GCC internal prototype to avoid an error.
2859    Use char because int might match the return type of a GCC
2860    builtin and then its argument prototype would still apply.  */
2861 #ifdef __cplusplus
2862 extern "C"
2863 #endif
2864 char $2 ();
2865 /* The GNU C library defines this for functions which it implements
2866     to always fail with ENOSYS.  Some functions are actually named
2867     something starting with __ and the normal name is an alias.  */
2868 #if defined __stub_$2 || defined __stub___$2
2869 choke me
2870 #endif
2871 
2872 int
2873 main ()
2874 {
2875 return $2 ();
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 if ac_fn_cxx_try_link "$LINENO"; then :
2881   eval "$3=yes"
2882 else
2883   eval "$3=no"
2884 fi
2885 rm -f core conftest.err conftest.$ac_objext \
2886     conftest$ac_exeext conftest.$ac_ext
2887 fi
2888 eval ac_res=\$$3
2889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2890 $as_echo "$ac_res" >&6; }
2891   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2892 
2893 } # ac_fn_cxx_check_func
2894 
2895 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2896 # -------------------------------------------------------
2897 # Tests whether HEADER exists and can be compiled using the include files in
2898 # INCLUDES, setting the cache variable VAR accordingly.
2899 ac_fn_c_check_header_compile ()
2900 {
2901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2903 $as_echo_n "checking for $2... " >&6; }
2904 if eval \${$3+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h.  */
2909 $4
2910 #include <$2>
2911 _ACEOF
2912 if ac_fn_c_try_compile "$LINENO"; then :
2913   eval "$3=yes"
2914 else
2915   eval "$3=no"
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 fi
2919 eval ac_res=\$$3
2920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2921 $as_echo "$ac_res" >&6; }
2922   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2923 
2924 } # ac_fn_c_check_header_compile
2925 cat >config.log <<_ACEOF
2926 This file contains any messages produced by compilers while
2927 running configure, to aid debugging if configure makes a mistake.
2928 
2929 It was created by OpenJDK $as_me jdk9, which was
2930 generated by GNU Autoconf 2.69.  Invocation command line was
2931 
2932   $ $0 $@
2933 
2934 _ACEOF
2935 exec 5>>config.log
2936 {
2937 cat <<_ASUNAME
2938 ## --------- ##
2939 ## Platform. ##
2940 ## --------- ##
2941 
2942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2947 
2948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2949 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2950 
2951 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2952 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2954 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2955 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2956 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2957 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2958 
2959 _ASUNAME
2960 
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964   IFS=$as_save_IFS
2965   test -z "$as_dir" && as_dir=.
2966     $as_echo "PATH: $as_dir"
2967   done
2968 IFS=$as_save_IFS
2969 
2970 } >&5
2971 
2972 cat >&5 <<_ACEOF
2973 
2974 
2975 ## ----------- ##
2976 ## Core tests. ##
2977 ## ----------- ##
2978 
2979 _ACEOF
2980 
2981 
2982 # Keep a trace of the command line.
2983 # Strip out --no-create and --no-recursion so they do not pile up.
2984 # Strip out --silent because we don't want to record it for future runs.
2985 # Also quote any args containing shell meta-characters.
2986 # Make two passes to allow for proper duplicate-argument suppression.
2987 ac_configure_args=
2988 ac_configure_args0=
2989 ac_configure_args1=
2990 ac_must_keep_next=false
2991 for ac_pass in 1 2
2992 do
2993   for ac_arg
2994   do
2995     case $ac_arg in
2996     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2997     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2998     | -silent | --silent | --silen | --sile | --sil)
2999       continue ;;
3000     *\'*)
3001       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3002     esac
3003     case $ac_pass in
3004     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3005     2)
3006       as_fn_append ac_configure_args1 " '$ac_arg'"
3007       if test $ac_must_keep_next = true; then
3008         ac_must_keep_next=false # Got value, back to normal.
3009       else
3010         case $ac_arg in
3011           *=* | --config-cache | -C | -disable-* | --disable-* \
3012           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3013           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3014           | -with-* | --with-* | -without-* | --without-* | --x)
3015             case "$ac_configure_args0 " in
3016               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3017             esac
3018             ;;
3019           -* ) ac_must_keep_next=true ;;
3020         esac
3021       fi
3022       as_fn_append ac_configure_args " '$ac_arg'"
3023       ;;
3024     esac
3025   done
3026 done
3027 { ac_configure_args0=; unset ac_configure_args0;}
3028 { ac_configure_args1=; unset ac_configure_args1;}
3029 
3030 # When interrupted or exit'd, cleanup temporary files, and complete
3031 # config.log.  We remove comments because anyway the quotes in there
3032 # would cause problems or look ugly.
3033 # WARNING: Use '\'' to represent an apostrophe within the trap.
3034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3035 trap 'exit_status=$?
3036   # Save into config.log some information that might help in debugging.
3037   {
3038     echo
3039 
3040     $as_echo "## ---------------- ##
3041 ## Cache variables. ##
3042 ## ---------------- ##"
3043     echo
3044     # The following way of writing the cache mishandles newlines in values,
3045 (
3046   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3047     eval ac_val=\$$ac_var
3048     case $ac_val in #(
3049     *${as_nl}*)
3050       case $ac_var in #(
3051       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3053       esac
3054       case $ac_var in #(
3055       _ | IFS | as_nl) ;; #(
3056       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3057       *) { eval $ac_var=; unset $ac_var;} ;;
3058       esac ;;
3059     esac
3060   done
3061   (set) 2>&1 |
3062     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3063     *${as_nl}ac_space=\ *)
3064       sed -n \
3065         "s/'\''/'\''\\\\'\'''\''/g;
3066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3067       ;; #(
3068     *)
3069       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3070       ;;
3071     esac |
3072     sort
3073 )
3074     echo
3075 
3076     $as_echo "## ----------------- ##
3077 ## Output variables. ##
3078 ## ----------------- ##"
3079     echo
3080     for ac_var in $ac_subst_vars
3081     do
3082       eval ac_val=\$$ac_var
3083       case $ac_val in
3084       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085       esac
3086       $as_echo "$ac_var='\''$ac_val'\''"
3087     done | sort
3088     echo
3089 
3090     if test -n "$ac_subst_files"; then
3091       $as_echo "## ------------------- ##
3092 ## File substitutions. ##
3093 ## ------------------- ##"
3094       echo
3095       for ac_var in $ac_subst_files
3096       do
3097         eval ac_val=\$$ac_var
3098         case $ac_val in
3099         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3100         esac
3101         $as_echo "$ac_var='\''$ac_val'\''"
3102       done | sort
3103       echo
3104     fi
3105 
3106     if test -s confdefs.h; then
3107       $as_echo "## ----------- ##
3108 ## confdefs.h. ##
3109 ## ----------- ##"
3110       echo
3111       cat confdefs.h
3112       echo
3113     fi
3114     test "$ac_signal" != 0 &&
3115       $as_echo "$as_me: caught signal $ac_signal"
3116     $as_echo "$as_me: exit $exit_status"
3117   } >&5
3118   rm -f core *.core core.conftest.* &&
3119     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3120     exit $exit_status
3121 ' 0
3122 for ac_signal in 1 2 13 15; do
3123   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3124 done
3125 ac_signal=0
3126 
3127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3128 rm -f -r conftest* confdefs.h
3129 
3130 $as_echo "/* confdefs.h */" > confdefs.h
3131 
3132 # Predefined preprocessor variables.
3133 
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_NAME "$PACKAGE_NAME"
3136 _ACEOF
3137 
3138 cat >>confdefs.h <<_ACEOF
3139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3140 _ACEOF
3141 
3142 cat >>confdefs.h <<_ACEOF
3143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3144 _ACEOF
3145 
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE_STRING "$PACKAGE_STRING"
3148 _ACEOF
3149 
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3152 _ACEOF
3153 
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_URL "$PACKAGE_URL"
3156 _ACEOF
3157 
3158 
3159 # Let the site file select an alternate cache file if it wants to.
3160 # Prefer an explicitly selected file to automatically selected ones.
3161 ac_site_file1=NONE
3162 ac_site_file2=NONE
3163 if test -n "$CONFIG_SITE"; then
3164   # We do not want a PATH search for config.site.
3165   case $CONFIG_SITE in #((
3166     -*)  ac_site_file1=./$CONFIG_SITE;;
3167     */*) ac_site_file1=$CONFIG_SITE;;
3168     *)   ac_site_file1=./$CONFIG_SITE;;
3169   esac
3170 elif test "x$prefix" != xNONE; then
3171   ac_site_file1=$prefix/share/config.site
3172   ac_site_file2=$prefix/etc/config.site
3173 else
3174   ac_site_file1=$ac_default_prefix/share/config.site
3175   ac_site_file2=$ac_default_prefix/etc/config.site
3176 fi
3177 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3178 do
3179   test "x$ac_site_file" = xNONE && continue
3180   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3181     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3182 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3183     sed 's/^/| /' "$ac_site_file" >&5
3184     . "$ac_site_file" \
3185       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "failed to load site script $ac_site_file
3188 See \`config.log' for more details" "$LINENO" 5; }
3189   fi
3190 done
3191 
3192 if test -r "$cache_file"; then
3193   # Some versions of bash will fail to source /dev/null (special files
3194   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3195   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3196     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3197 $as_echo "$as_me: loading cache $cache_file" >&6;}
3198     case $cache_file in
3199       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3200       *)                      . "./$cache_file";;
3201     esac
3202   fi
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3205 $as_echo "$as_me: creating cache $cache_file" >&6;}
3206   >$cache_file
3207 fi
3208 
3209 # Check that the precious variables saved in the cache have kept the same
3210 # value.
3211 ac_cache_corrupted=false
3212 for ac_var in $ac_precious_vars; do
3213   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3214   eval ac_new_set=\$ac_env_${ac_var}_set
3215   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3216   eval ac_new_val=\$ac_env_${ac_var}_value
3217   case $ac_old_set,$ac_new_set in
3218     set,)
3219       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3220 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3221       ac_cache_corrupted=: ;;
3222     ,set)
3223       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3224 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3225       ac_cache_corrupted=: ;;
3226     ,);;
3227     *)
3228       if test "x$ac_old_val" != "x$ac_new_val"; then
3229         # differences in whitespace do not lead to failure.
3230         ac_old_val_w=`echo x $ac_old_val`
3231         ac_new_val_w=`echo x $ac_new_val`
3232         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3233           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3234 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3235           ac_cache_corrupted=:
3236         else
3237           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3238 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3239           eval $ac_var=\$ac_old_val
3240         fi
3241         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3242 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3243         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3244 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3245       fi;;
3246   esac
3247   # Pass precious variables to config.status.
3248   if test "$ac_new_set" = set; then
3249     case $ac_new_val in
3250     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3251     *) ac_arg=$ac_var=$ac_new_val ;;
3252     esac
3253     case " $ac_configure_args " in
3254       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3255       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3256     esac
3257   fi
3258 done
3259 if $ac_cache_corrupted; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3263 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3264   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3265 fi
3266 ## -------------------- ##
3267 ## Main body of script. ##
3268 ## -------------------- ##
3269 
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 
3276 
3277 
3278 ac_aux_dir=
3279 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3280   if test -f "$ac_dir/install-sh"; then
3281     ac_aux_dir=$ac_dir
3282     ac_install_sh="$ac_aux_dir/install-sh -c"
3283     break
3284   elif test -f "$ac_dir/install.sh"; then
3285     ac_aux_dir=$ac_dir
3286     ac_install_sh="$ac_aux_dir/install.sh -c"
3287     break
3288   elif test -f "$ac_dir/shtool"; then
3289     ac_aux_dir=$ac_dir
3290     ac_install_sh="$ac_aux_dir/shtool install -c"
3291     break
3292   fi
3293 done
3294 if test -z "$ac_aux_dir"; then
3295   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
3296 fi
3297 
3298 # These three variables are undocumented and unsupported,
3299 # and are intended to be withdrawn in a future Autoconf release.
3300 # They can cause serious problems if a builder's source tree is in a directory
3301 # whose full name contains unusual characters.
3302 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3303 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3304 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3305 
3306 
3307 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3308 
3309 #
3310 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3311 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3312 #
3313 # This code is free software; you can redistribute it and/or modify it
3314 # under the terms of the GNU General Public License version 2 only, as
3315 # published by the Free Software Foundation.  Oracle designates this
3316 # particular file as subject to the "Classpath" exception as provided
3317 # by Oracle in the LICENSE file that accompanied this code.
3318 #
3319 # This code is distributed in the hope that it will be useful, but WITHOUT
3320 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3321 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3322 # version 2 for more details (a copy is included in the LICENSE file that
3323 # accompanied this code).
3324 #
3325 # You should have received a copy of the GNU General Public License version
3326 # 2 along with this work; if not, write to the Free Software Foundation,
3327 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3328 #
3329 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3330 # or visit www.oracle.com if you need additional information or have any
3331 # questions.
3332 #
3333 
3334 #
3335 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3336 #
3337 # This program is free software; you can redistribute it and/or modify
3338 # it under the terms of the GNU General Public License as published by
3339 # the Free Software Foundation; either version 2 of the License, or
3340 # (at your option) any later version.
3341 #
3342 # This program is distributed in the hope that it will be useful, but
3343 # WITHOUT ANY WARRANTY; without even the implied warranty of
3344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3345 # General Public License for more details.
3346 #
3347 # You should have received a copy of the GNU General Public License
3348 # along with this program; if not, write to the Free Software
3349 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3350 #
3351 # As a special exception to the GNU General Public License, if you
3352 # distribute this file as part of a program that contains a
3353 # configuration script generated by Autoconf, you may include it under
3354 # the same distribution terms that you use for the rest of that program.
3355 
3356 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3357 # ----------------------------------
3358 # PKG_PROG_PKG_CONFIG
3359 
3360 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3361 #
3362 # Check to see whether a particular set of modules exists.  Similar
3363 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3364 #
3365 #
3366 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3367 # this or PKG_CHECK_MODULES is called, or make sure to call
3368 # PKG_CHECK_EXISTS manually
3369 # --------------------------------------------------------------
3370 
3371 
3372 
3373 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3374 # ---------------------------------------------
3375 # _PKG_CONFIG
3376 
3377 # _PKG_SHORT_ERRORS_SUPPORTED
3378 # -----------------------------
3379 # _PKG_SHORT_ERRORS_SUPPORTED
3380 
3381 
3382 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3383 # [ACTION-IF-NOT-FOUND])
3384 #
3385 #
3386 # Note that if there is a possibility the first call to
3387 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3388 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3389 #
3390 #
3391 # --------------------------------------------------------------
3392 # PKG_CHECK_MODULES
3393 
3394 
3395 # Include these first...
3396 #
3397 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3398 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3399 #
3400 # This code is free software; you can redistribute it and/or modify it
3401 # under the terms of the GNU General Public License version 2 only, as
3402 # published by the Free Software Foundation.  Oracle designates this
3403 # particular file as subject to the "Classpath" exception as provided
3404 # by Oracle in the LICENSE file that accompanied this code.
3405 #
3406 # This code is distributed in the hope that it will be useful, but WITHOUT
3407 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3408 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3409 # version 2 for more details (a copy is included in the LICENSE file that
3410 # accompanied this code).
3411 #
3412 # You should have received a copy of the GNU General Public License version
3413 # 2 along with this work; if not, write to the Free Software Foundation,
3414 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3415 #
3416 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3417 # or visit www.oracle.com if you need additional information or have any
3418 # questions.
3419 #
3420 
3421 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3422 # If so, then append $1 to $2 \
3423 # Also set JVM_ARG_OK to true/false depending on outcome.
3424 
3425 
3426 # Appends a string to a path variable, only adding the : when needed.
3427 
3428 
3429 # Prepends a string to a path variable, only adding the : when needed.
3430 
3431 
3432 # This will make sure the given variable points to a full and proper
3433 # path. This means:
3434 # 1) There will be no spaces in the path. On unix platforms,
3435 #    spaces in the path will result in an error. On Windows,
3436 #    the path will be rewritten using short-style to be space-free.
3437 # 2) The path will be absolute, and it will be in unix-style (on
3438 #     cygwin).
3439 # $1: The name of the variable to fix
3440 
3441 
3442 # This will make sure the given variable points to a executable
3443 # with a full and proper path. This means:
3444 # 1) There will be no spaces in the path. On unix platforms,
3445 #    spaces in the path will result in an error. On Windows,
3446 #    the path will be rewritten using short-style to be space-free.
3447 # 2) The path will be absolute, and it will be in unix-style (on
3448 #     cygwin).
3449 # Any arguments given to the executable is preserved.
3450 # If the input variable does not have a directory specification, then
3451 # it need to be in the PATH.
3452 # $1: The name of the variable to fix
3453 
3454 
3455 
3456 
3457 # Register a --with argument but mark it as deprecated
3458 # $1: The name of the with argument to deprecate, not including --with-
3459 
3460 
3461 # Register a --enable argument but mark it as deprecated
3462 # $1: The name of the with argument to deprecate, not including --enable-
3463 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3464 
3465 
3466 
3467 
3468 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3469 # $1: variable to check
3470 
3471 
3472 # Check that there are no unprocessed overridden variables left.
3473 # If so, they are an incorrect argument and we will exit with an error.
3474 
3475 
3476 # Setup a tool for the given variable. If correctly specified by the user,
3477 # use that value, otherwise search for the tool using the supplied code snippet.
3478 # $1: variable to set
3479 # $2: code snippet to call to look for the tool
3480 # $3: code snippet to call if variable was used to find tool
3481 
3482 
3483 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3484 # $1: variable to set
3485 # $2: executable name (or list of names) to look for
3486 
3487 
3488 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3489 # $1: variable to set
3490 # $2: executable name (or list of names) to look for
3491 
3492 
3493 # Like BASIC_PATH_PROGS but fails if no tool was found.
3494 # $1: variable to set
3495 # $2: executable name (or list of names) to look for
3496 
3497 
3498 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3499 # $1: variable to set
3500 # $2: autoconf macro to call to look for the special tool
3501 
3502 
3503 # Setup the most fundamental tools that relies on not much else to set up,
3504 # but is used by much of the early bootstrap code.
3505 
3506 
3507 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3508 
3509 
3510 # Evaluates platform specific overrides for devkit variables.
3511 # $1: Name of variable
3512 
3513 
3514 
3515 
3516 
3517 
3518 #%%% Simple tools %%%
3519 
3520 # Check if we have found a usable version of make
3521 # $1: the path to a potential make binary (or empty)
3522 # $2: the description on how we found this
3523 
3524 
3525 
3526 
3527 # Goes looking for a usable version of GNU make.
3528 
3529 
3530 
3531 
3532 
3533 
3534 # Check if build directory is on local disk. If not possible to determine,
3535 # we prefer to claim it's local.
3536 # Argument 1: directory to test
3537 # Argument 2: what to do if it is on local disk
3538 # Argument 3: what to do otherwise (remote disk or failure)
3539 
3540 
3541 # Check that source files have basic read permissions set. This might
3542 # not be the case in cygwin in certain conditions.
3543 
3544 
3545 
3546 
3547 # Check for support for specific options in bash
3548 
3549 
3550 # Code to run after AC_OUTPUT
3551 
3552 
3553 #
3554 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3555 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3556 #
3557 # This code is free software; you can redistribute it and/or modify it
3558 # under the terms of the GNU General Public License version 2 only, as
3559 # published by the Free Software Foundation.  Oracle designates this
3560 # particular file as subject to the "Classpath" exception as provided
3561 # by Oracle in the LICENSE file that accompanied this code.
3562 #
3563 # This code is distributed in the hope that it will be useful, but WITHOUT
3564 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3565 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3566 # version 2 for more details (a copy is included in the LICENSE file that
3567 # accompanied this code).
3568 #
3569 # You should have received a copy of the GNU General Public License version
3570 # 2 along with this work; if not, write to the Free Software Foundation,
3571 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3572 #
3573 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3574 # or visit www.oracle.com if you need additional information or have any
3575 # questions.
3576 #
3577 
3578 
3579 
3580 
3581 
3582 # Helper function which possibly converts a path using DOS-style short mode.
3583 # If so, the updated path is stored in $new_path.
3584 # $1: The path to check
3585 
3586 
3587 # Helper function which possibly converts a path using DOS-style short mode.
3588 # If so, the updated path is stored in $new_path.
3589 # $1: The path to check
3590 
3591 
3592 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3593 # and could probably be heavily simplified. However, all changes in this
3594 # area tend to need lot of testing in different scenarios, and in lack of
3595 # proper unit testing, cleaning this up has not been deemed worth the effort
3596 # at the moment.
3597 
3598 
3599 
3600 
3601 
3602 
3603 
3604 
3605 
3606 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3607 
3608 
3609 
3610 
3611 # ... then the rest
3612 #
3613 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3614 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3615 #
3616 # This code is free software; you can redistribute it and/or modify it
3617 # under the terms of the GNU General Public License version 2 only, as
3618 # published by the Free Software Foundation.  Oracle designates this
3619 # particular file as subject to the "Classpath" exception as provided
3620 # by Oracle in the LICENSE file that accompanied this code.
3621 #
3622 # This code is distributed in the hope that it will be useful, but WITHOUT
3623 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3624 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3625 # version 2 for more details (a copy is included in the LICENSE file that
3626 # accompanied this code).
3627 #
3628 # You should have received a copy of the GNU General Public License version
3629 # 2 along with this work; if not, write to the Free Software Foundation,
3630 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3631 #
3632 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3633 # or visit www.oracle.com if you need additional information or have any
3634 # questions.
3635 #
3636 
3637 ########################################################################
3638 # This file handles detection of the Boot JDK. The Boot JDK detection
3639 # process has been developed as a response to solve a complex real-world
3640 # problem. Initially, it was simple, but it has grown as platform after
3641 # platform, idiosyncracy after idiosyncracy has been supported.
3642 #
3643 # The basic idea is this:
3644 # 1) You need an acceptable *) JDK to use as a Boot JDK
3645 # 2) There are several ways to locate a JDK, that are mostly platform
3646 #    dependent **)
3647 # 3) You can have multiple JDKs installed
3648 # 4) If possible, configure should try to dig out an acceptable JDK
3649 #    automatically, without having to resort to command-line options
3650 #
3651 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3652 #     javac) and not a JRE, etc.
3653 #
3654 # **) On Windows we typically use a well-known path.
3655 #     On MacOSX we typically use the tool java_home.
3656 #     On Linux we typically find javac in the $PATH, and then follow a
3657 #     chain of symlinks that often ends up in a real JDK.
3658 #
3659 # This leads to the code where we check in different ways to locate a
3660 # JDK, and if one is found, check if it is acceptable. If not, we print
3661 # our reasons for rejecting it (useful when debugging non-working
3662 # configure situations) and continue checking the next one.
3663 ########################################################################
3664 
3665 # Execute the check given as argument, and verify the result
3666 # If the Boot JDK was previously found, do nothing
3667 # $1 A command line (typically autoconf macro) to execute
3668 
3669 
3670 # Test: Is bootjdk explicitely set by command line arguments?
3671 
3672 
3673 # Test: Is $JAVA_HOME set?
3674 
3675 
3676 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3677 
3678 
3679 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3680 # $1: Argument to the java_home binary (optional)
3681 
3682 
3683 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3684 
3685 
3686 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3687 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3688 # $1 = Path to directory containing jdk installations.
3689 # $2 = String to append to the found JDK directory to get the proper JDK home
3690 
3691 
3692 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3693 # environmental variable as base for where to look.
3694 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3695 
3696 
3697 # Test: Is there a JDK installed in default, well-known locations?
3698 
3699 
3700 # Check that a command-line tool in the Boot JDK is correct
3701 # $1 = name of variable to assign
3702 # $2 = name of binary
3703 
3704 
3705 ###############################################################################
3706 #
3707 # We need a Boot JDK to bootstrap the build.
3708 #
3709 
3710 
3711 
3712 
3713 
3714 #
3715 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3716 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3717 #
3718 # This code is free software; you can redistribute it and/or modify it
3719 # under the terms of the GNU General Public License version 2 only, as
3720 # published by the Free Software Foundation.  Oracle designates this
3721 # particular file as subject to the "Classpath" exception as provided
3722 # by Oracle in the LICENSE file that accompanied this code.
3723 #
3724 # This code is distributed in the hope that it will be useful, but WITHOUT
3725 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3726 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3727 # version 2 for more details (a copy is included in the LICENSE file that
3728 # accompanied this code).
3729 #
3730 # You should have received a copy of the GNU General Public License version
3731 # 2 along with this work; if not, write to the Free Software Foundation,
3732 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3733 #
3734 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3735 # or visit www.oracle.com if you need additional information or have any
3736 # questions.
3737 #
3738 
3739 
3740 
3741 
3742 
3743 
3744 
3745 
3746 
3747 
3748 
3749 
3750 
3751 
3752 
3753 ################################################################################
3754 #
3755 # Optionally enable distributed compilation of native code using icecc/icecream
3756 #
3757 
3758 
3759 
3760 
3761 
3762 
3763 
3764 #
3765 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3766 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3767 #
3768 # This code is free software; you can redistribute it and/or modify it
3769 # under the terms of the GNU General Public License version 2 only, as
3770 # published by the Free Software Foundation.  Oracle designates this
3771 # particular file as subject to the "Classpath" exception as provided
3772 # by Oracle in the LICENSE file that accompanied this code.
3773 #
3774 # This code is distributed in the hope that it will be useful, but WITHOUT
3775 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3776 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3777 # version 2 for more details (a copy is included in the LICENSE file that
3778 # accompanied this code).
3779 #
3780 # You should have received a copy of the GNU General Public License version
3781 # 2 along with this work; if not, write to the Free Software Foundation,
3782 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3783 #
3784 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3785 # or visit www.oracle.com if you need additional information or have any
3786 # questions.
3787 #
3788 
3789 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3790 # corresponding configure arguments instead
3791 
3792 
3793 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3794 # that configure can use them while detecting compilers.
3795 # TOOLCHAIN_TYPE is available here.
3796 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3797 
3798 
3799 
3800 
3801 
3802 
3803 # Documentation on common flags used for solstudio in HIGHEST.
3804 #
3805 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3806 #          done with care, there are some assumptions below that need to
3807 #          be understood about the use of pointers, and IEEE behavior.
3808 #
3809 # -fns: Use non-standard floating point mode (not IEEE 754)
3810 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3811 # -fsingle: Use single precision floating point with 'float'
3812 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3813 #   (Source with excessing pointer casting and data access with mixed
3814 #    pointer types are not recommended)
3815 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3816 #   (If you expect perfect errno behavior, do not use this)
3817 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3818 # -xrestrict: Pointer parameters to functions do not overlap
3819 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3820 #    If you pass in multiple pointers to the same data, do not use this)
3821 # -xlibmil: Inline some library routines
3822 #   (If you expect perfect errno behavior, do not use this)
3823 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3824 #   (If you expect perfect errno behavior, do not use this)
3825 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3826 
3827     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3828     # Bug?
3829     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3830     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3831     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3832     #fi
3833 
3834 
3835 
3836 
3837 
3838 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3839 #                                   [RUN-IF-FALSE])
3840 # ------------------------------------------------------------
3841 # Check that the c and c++ compilers support an argument
3842 
3843 
3844 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3845 #                                    [RUN-IF-FALSE])
3846 # ------------------------------------------------------------
3847 # Check that the linker support an argument
3848 
3849 
3850 
3851 
3852 #
3853 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3854 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3855 #
3856 # This code is free software; you can redistribute it and/or modify it
3857 # under the terms of the GNU General Public License version 2 only, as
3858 # published by the Free Software Foundation.  Oracle designates this
3859 # particular file as subject to the "Classpath" exception as provided
3860 # by Oracle in the LICENSE file that accompanied this code.
3861 #
3862 # This code is distributed in the hope that it will be useful, but WITHOUT
3863 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3864 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3865 # version 2 for more details (a copy is included in the LICENSE file that
3866 # accompanied this code).
3867 #
3868 # You should have received a copy of the GNU General Public License version
3869 # 2 along with this work; if not, write to the Free Software Foundation,
3870 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3871 #
3872 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3873 # or visit www.oracle.com if you need additional information or have any
3874 # questions.
3875 #
3876 
3877 
3878 
3879 
3880 
3881 cygwin_help() {
3882   case $1 in
3883     unzip)
3884       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3885       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3886       ;;
3887     zip)
3888       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3889       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3890       ;;
3891     make)
3892       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3893       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3894       ;;
3895     freetype)
3896       HELP_MSG="
3897 The freetype library can now be build during the configure process.
3898 Download the freetype sources and unpack them into an arbitrary directory:
3899 
3900 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3901 tar -xzf freetype-2.5.3.tar.gz
3902 
3903 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3904 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3905 builds or into '<freetype_src>/lib32' for 32-bit builds.
3906 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3907 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3908       ;;
3909   esac
3910 }
3911 
3912 msys_help() {
3913   PKGHANDLER_COMMAND=""
3914 }
3915 
3916 apt_help() {
3917   case $1 in
3918     reduced)
3919       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3920     devkit)
3921       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3922     openjdk)
3923       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3924     alsa)
3925       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3926     cups)
3927       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3928     freetype)
3929       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3930     ffi)
3931       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3932     x11)
3933       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3934     ccache)
3935       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3936   esac
3937 }
3938 
3939 yum_help() {
3940   case $1 in
3941     devkit)
3942       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3943     openjdk)
3944       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3945     alsa)
3946       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3947     cups)
3948       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3949     freetype)
3950       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3951     x11)
3952       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3953     ccache)
3954       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3955   esac
3956 }
3957 
3958 port_help() {
3959   PKGHANDLER_COMMAND=""
3960 }
3961 
3962 pkgutil_help() {
3963   PKGHANDLER_COMMAND=""
3964 }
3965 
3966 pkgadd_help() {
3967   PKGHANDLER_COMMAND=""
3968 }
3969 
3970 # This function will check if we're called from the "configure" wrapper while
3971 # printing --help. If so, we will print out additional information that can
3972 # only be extracted within the autoconf script, and then exit. This must be
3973 # called at the very beginning in configure.ac.
3974 
3975 
3976 
3977 
3978 
3979 
3980 #
3981 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3982 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3983 #
3984 # This code is free software; you can redistribute it and/or modify it
3985 # under the terms of the GNU General Public License version 2 only, as
3986 # published by the Free Software Foundation.  Oracle designates this
3987 # particular file as subject to the "Classpath" exception as provided
3988 # by Oracle in the LICENSE file that accompanied this code.
3989 #
3990 # This code is distributed in the hope that it will be useful, but WITHOUT
3991 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3992 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3993 # version 2 for more details (a copy is included in the LICENSE file that
3994 # accompanied this code).
3995 #
3996 # You should have received a copy of the GNU General Public License version
3997 # 2 along with this work; if not, write to the Free Software Foundation,
3998 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3999 #
4000 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4001 # or visit www.oracle.com if you need additional information or have any
4002 # questions.
4003 #
4004 
4005 
4006 
4007 
4008 
4009 
4010 
4011 
4012 
4013 
4014 ###############################################################################
4015 #
4016 # Should we build only OpenJDK even if closed sources are present?
4017 #
4018 
4019 
4020 
4021 
4022 ###############################################################################
4023 #
4024 # Setup version numbers
4025 #
4026 
4027 
4028 
4029 
4030 
4031 
4032 ################################################################################
4033 #
4034 # Gcov coverage data for hotspot
4035 #
4036 
4037 
4038 ################################################################################
4039 #
4040 # Static build support.  When enabled will generate static
4041 # libraries instead of shared libraries for all JDK libs.
4042 #
4043 
4044 
4045 
4046 
4047 #
4048 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4049 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4050 #
4051 # This code is free software; you can redistribute it and/or modify it
4052 # under the terms of the GNU General Public License version 2 only, as
4053 # published by the Free Software Foundation.  Oracle designates this
4054 # particular file as subject to the "Classpath" exception as provided
4055 # by Oracle in the LICENSE file that accompanied this code.
4056 #
4057 # This code is distributed in the hope that it will be useful, but WITHOUT
4058 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4059 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4060 # version 2 for more details (a copy is included in the LICENSE file that
4061 # accompanied this code).
4062 #
4063 # You should have received a copy of the GNU General Public License version
4064 # 2 along with this work; if not, write to the Free Software Foundation,
4065 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4066 #
4067 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4068 # or visit www.oracle.com if you need additional information or have any
4069 # questions.
4070 #
4071 
4072 # Major library component reside in separate files.
4073 #
4074 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4075 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4076 #
4077 # This code is free software; you can redistribute it and/or modify it
4078 # under the terms of the GNU General Public License version 2 only, as
4079 # published by the Free Software Foundation.  Oracle designates this
4080 # particular file as subject to the "Classpath" exception as provided
4081 # by Oracle in the LICENSE file that accompanied this code.
4082 #
4083 # This code is distributed in the hope that it will be useful, but WITHOUT
4084 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4085 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4086 # version 2 for more details (a copy is included in the LICENSE file that
4087 # accompanied this code).
4088 #
4089 # You should have received a copy of the GNU General Public License version
4090 # 2 along with this work; if not, write to the Free Software Foundation,
4091 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4092 #
4093 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4094 # or visit www.oracle.com if you need additional information or have any
4095 # questions.
4096 #
4097 
4098 ################################################################################
4099 # Setup alsa (Advanced Linux Sound Architecture)
4100 ################################################################################
4101 
4102 
4103 #
4104 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4105 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4106 #
4107 # This code is free software; you can redistribute it and/or modify it
4108 # under the terms of the GNU General Public License version 2 only, as
4109 # published by the Free Software Foundation.  Oracle designates this
4110 # particular file as subject to the "Classpath" exception as provided
4111 # by Oracle in the LICENSE file that accompanied this code.
4112 #
4113 # This code is distributed in the hope that it will be useful, but WITHOUT
4114 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4115 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4116 # version 2 for more details (a copy is included in the LICENSE file that
4117 # accompanied this code).
4118 #
4119 # You should have received a copy of the GNU General Public License version
4120 # 2 along with this work; if not, write to the Free Software Foundation,
4121 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4122 #
4123 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4124 # or visit www.oracle.com if you need additional information or have any
4125 # questions.
4126 #
4127 
4128 ################################################################################
4129 # Setup bundled libraries.
4130 #
4131 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4132 # OpenJDK repository. Default is to use these libraries as bundled, but they
4133 # might be replaced by en external version by the user.
4134 ################################################################################
4135 
4136 
4137 ################################################################################
4138 # Setup libjpeg
4139 ################################################################################
4140 
4141 
4142 ################################################################################
4143 # Setup giflib
4144 ################################################################################
4145 
4146 
4147 ################################################################################
4148 # Setup libpng
4149 ################################################################################
4150 
4151 
4152 ################################################################################
4153 # Setup zlib
4154 ################################################################################
4155 
4156 
4157 ################################################################################
4158 # Setup lcms (Little CMS)
4159 ################################################################################
4160 
4161 
4162 #
4163 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4164 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4165 #
4166 # This code is free software; you can redistribute it and/or modify it
4167 # under the terms of the GNU General Public License version 2 only, as
4168 # published by the Free Software Foundation.  Oracle designates this
4169 # particular file as subject to the "Classpath" exception as provided
4170 # by Oracle in the LICENSE file that accompanied this code.
4171 #
4172 # This code is distributed in the hope that it will be useful, but WITHOUT
4173 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4174 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4175 # version 2 for more details (a copy is included in the LICENSE file that
4176 # accompanied this code).
4177 #
4178 # You should have received a copy of the GNU General Public License version
4179 # 2 along with this work; if not, write to the Free Software Foundation,
4180 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4181 #
4182 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4183 # or visit www.oracle.com if you need additional information or have any
4184 # questions.
4185 #
4186 
4187 ################################################################################
4188 # Setup cups (Common Unix Printing System)
4189 ################################################################################
4190 
4191 
4192 #
4193 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4194 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4195 #
4196 # This code is free software; you can redistribute it and/or modify it
4197 # under the terms of the GNU General Public License version 2 only, as
4198 # published by the Free Software Foundation.  Oracle designates this
4199 # particular file as subject to the "Classpath" exception as provided
4200 # by Oracle in the LICENSE file that accompanied this code.
4201 #
4202 # This code is distributed in the hope that it will be useful, but WITHOUT
4203 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4204 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4205 # version 2 for more details (a copy is included in the LICENSE file that
4206 # accompanied this code).
4207 #
4208 # You should have received a copy of the GNU General Public License version
4209 # 2 along with this work; if not, write to the Free Software Foundation,
4210 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4211 #
4212 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4213 # or visit www.oracle.com if you need additional information or have any
4214 # questions.
4215 #
4216 
4217 ################################################################################
4218 # Setup libffi (Foreign Function Interface)
4219 ################################################################################
4220 
4221 
4222 #
4223 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4224 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4225 #
4226 # This code is free software; you can redistribute it and/or modify it
4227 # under the terms of the GNU General Public License version 2 only, as
4228 # published by the Free Software Foundation.  Oracle designates this
4229 # particular file as subject to the "Classpath" exception as provided
4230 # by Oracle in the LICENSE file that accompanied this code.
4231 #
4232 # This code is distributed in the hope that it will be useful, but WITHOUT
4233 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4234 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4235 # version 2 for more details (a copy is included in the LICENSE file that
4236 # accompanied this code).
4237 #
4238 # You should have received a copy of the GNU General Public License version
4239 # 2 along with this work; if not, write to the Free Software Foundation,
4240 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4241 #
4242 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4243 # or visit www.oracle.com if you need additional information or have any
4244 # questions.
4245 #
4246 
4247 ################################################################################
4248 # Build the freetype lib from source
4249 ################################################################################
4250 
4251 
4252 ################################################################################
4253 # Check if a potential freeype library match is correct and usable
4254 ################################################################################
4255 
4256 
4257 ################################################################################
4258 # Setup freetype (The FreeType2 font rendering library)
4259 ################################################################################
4260 
4261 
4262 #
4263 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4264 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4265 #
4266 # This code is free software; you can redistribute it and/or modify it
4267 # under the terms of the GNU General Public License version 2 only, as
4268 # published by the Free Software Foundation.  Oracle designates this
4269 # particular file as subject to the "Classpath" exception as provided
4270 # by Oracle in the LICENSE file that accompanied this code.
4271 #
4272 # This code is distributed in the hope that it will be useful, but WITHOUT
4273 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4274 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4275 # version 2 for more details (a copy is included in the LICENSE file that
4276 # accompanied this code).
4277 #
4278 # You should have received a copy of the GNU General Public License version
4279 # 2 along with this work; if not, write to the Free Software Foundation,
4280 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4281 #
4282 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4283 # or visit www.oracle.com if you need additional information or have any
4284 # questions.
4285 #
4286 
4287 ################################################################################
4288 # Setup the standard C/C++ runtime libraries.
4289 #
4290 # Most importantly, determine if stdc++ should be linked statically or
4291 # dynamically.
4292 ################################################################################
4293 
4294 
4295 #
4296 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4298 #
4299 # This code is free software; you can redistribute it and/or modify it
4300 # under the terms of the GNU General Public License version 2 only, as
4301 # published by the Free Software Foundation.  Oracle designates this
4302 # particular file as subject to the "Classpath" exception as provided
4303 # by Oracle in the LICENSE file that accompanied this code.
4304 #
4305 # This code is distributed in the hope that it will be useful, but WITHOUT
4306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4307 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4308 # version 2 for more details (a copy is included in the LICENSE file that
4309 # accompanied this code).
4310 #
4311 # You should have received a copy of the GNU General Public License version
4312 # 2 along with this work; if not, write to the Free Software Foundation,
4313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4314 #
4315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4316 # or visit www.oracle.com if you need additional information or have any
4317 # questions.
4318 #
4319 
4320 ################################################################################
4321 # Setup X11 Windows system
4322 ################################################################################
4323 
4324 
4325 
4326 ################################################################################
4327 # Determine which libraries are needed for this configuration
4328 ################################################################################
4329 
4330 
4331 ################################################################################
4332 # Parse library options, and setup needed libraries
4333 ################################################################################
4334 
4335 
4336 ################################################################################
4337 # Setup llvm (Low-Level VM)
4338 ################################################################################
4339 
4340 
4341 ################################################################################
4342 # Setup various libraries, typically small system libraries
4343 ################################################################################
4344 
4345 
4346 #
4347 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4348 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4349 #
4350 # This code is free software; you can redistribute it and/or modify it
4351 # under the terms of the GNU General Public License version 2 only, as
4352 # published by the Free Software Foundation.  Oracle designates this
4353 # particular file as subject to the "Classpath" exception as provided
4354 # by Oracle in the LICENSE file that accompanied this code.
4355 #
4356 # This code is distributed in the hope that it will be useful, but WITHOUT
4357 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4358 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4359 # version 2 for more details (a copy is included in the LICENSE file that
4360 # accompanied this code).
4361 #
4362 # You should have received a copy of the GNU General Public License version
4363 # 2 along with this work; if not, write to the Free Software Foundation,
4364 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4365 #
4366 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4367 # or visit www.oracle.com if you need additional information or have any
4368 # questions.
4369 #
4370 
4371 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4372 # Converts autoconf style CPU name to OpenJDK style, into
4373 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4374 
4375 
4376 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4377 # Converts autoconf style OS name to OpenJDK style, into
4378 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4379 
4380 
4381 # Expects $host_os $host_cpu $build_os and $build_cpu
4382 # and $with_target_bits to have been setup!
4383 #
4384 # Translate the standard triplet(quadruplet) definition
4385 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4386 # OPENJDK_BUILD_OS, etc.
4387 
4388 
4389 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4390 # accordingly. Must be done after setting up build and target system, but before
4391 # doing anything else with these values.
4392 
4393 
4394 # Setup the legacy variables, for controlling the old makefiles.
4395 #
4396 
4397 
4398 
4399 
4400 #%%% Build and target systems %%%
4401 
4402 
4403 
4404 
4405 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4406 # Add -mX to various FLAGS variables.
4407 
4408 
4409 
4410 
4411 
4412 
4413 #
4414 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4415 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4416 #
4417 # This code is free software; you can redistribute it and/or modify it
4418 # under the terms of the GNU General Public License version 2 only, as
4419 # published by the Free Software Foundation.  Oracle designates this
4420 # particular file as subject to the "Classpath" exception as provided
4421 # by Oracle in the LICENSE file that accompanied this code.
4422 #
4423 # This code is distributed in the hope that it will be useful, but WITHOUT
4424 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4425 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4426 # version 2 for more details (a copy is included in the LICENSE file that
4427 # accompanied this code).
4428 #
4429 # You should have received a copy of the GNU General Public License version
4430 # 2 along with this work; if not, write to the Free Software Foundation,
4431 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4432 #
4433 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4434 # or visit www.oracle.com if you need additional information or have any
4435 # questions.
4436 #
4437 
4438 
4439 
4440 
4441 
4442 
4443 
4444 #
4445 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4446 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4447 #
4448 # This code is free software; you can redistribute it and/or modify it
4449 # under the terms of the GNU General Public License version 2 only, as
4450 # published by the Free Software Foundation.  Oracle designates this
4451 # particular file as subject to the "Classpath" exception as provided
4452 # by Oracle in the LICENSE file that accompanied this code.
4453 #
4454 # This code is distributed in the hope that it will be useful, but WITHOUT
4455 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4456 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4457 # version 2 for more details (a copy is included in the LICENSE file that
4458 # accompanied this code).
4459 #
4460 # You should have received a copy of the GNU General Public License version
4461 # 2 along with this work; if not, write to the Free Software Foundation,
4462 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4463 #
4464 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4465 # or visit www.oracle.com if you need additional information or have any
4466 # questions.
4467 #
4468 
4469 ########################################################################
4470 # This file is responsible for detecting, verifying and setting up the
4471 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4472 # proper paths to the binaries, but it will not setup any flags.
4473 #
4474 # The binaries used is determined by the toolchain type, which is the family of
4475 # compilers and related tools that are used.
4476 ########################################################################
4477 
4478 
4479 # All valid toolchains, regardless of platform (used by help.m4)
4480 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4481 
4482 # These toolchains are valid on different platforms
4483 VALID_TOOLCHAINS_linux="gcc clang"
4484 VALID_TOOLCHAINS_solaris="solstudio"
4485 VALID_TOOLCHAINS_macosx="gcc clang"
4486 VALID_TOOLCHAINS_aix="xlc"
4487 VALID_TOOLCHAINS_windows="microsoft"
4488 
4489 # Toolchain descriptions
4490 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4491 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4492 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4493 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4494 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4495 
4496 # Setup a number of variables describing how native output files are
4497 # named on this platform/toolchain.
4498 
4499 
4500 # Determine which toolchain type to use, and make sure it is valid for this
4501 # platform. Setup various information about the selected toolchain.
4502 
4503 
4504 # Before we start detecting the toolchain executables, we might need some
4505 # special setup, e.g. additional paths etc.
4506 
4507 
4508 # Restore path, etc
4509 
4510 
4511 # Check if a compiler is of the toolchain type we expect, and save the version
4512 # information from it. If the compiler does not match the expected type,
4513 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4514 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4515 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4516 #
4517 # $1 = compiler to test (CC or CXX)
4518 # $2 = human readable name of compiler (C or C++)
4519 
4520 
4521 # Try to locate the given C or C++ compiler in the path, or otherwise.
4522 #
4523 # $1 = compiler to test (CC or CXX)
4524 # $2 = human readable name of compiler (C or C++)
4525 # $3 = list of compiler names to search for
4526 
4527 
4528 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4529 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4530 # archiver (AR). Verify that the compilers are correct according to the
4531 # toolchain type.
4532 
4533 
4534 # Setup additional tools that is considered a part of the toolchain, but not the
4535 # core part. Many of these are highly platform-specific and do not exist,
4536 # and/or are not needed on all platforms.
4537 
4538 
4539 # Setup the build tools (i.e, the compiler and linker used to build programs
4540 # that should be run on the build platform, not the target platform, as a build
4541 # helper). Since the non-cross-compile case uses the normal, target compilers
4542 # for this, we can only do this after these have been setup.
4543 
4544 
4545 # Setup legacy variables that are still needed as alternative ways to refer to
4546 # parts of the toolchain.
4547 
4548 
4549 # Do some additional checks on the detected tools.
4550 
4551 
4552 # Setup the JTReg Regression Test Harness.
4553 
4554 
4555 #
4556 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4557 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4558 #
4559 # This code is free software; you can redistribute it and/or modify it
4560 # under the terms of the GNU General Public License version 2 only, as
4561 # published by the Free Software Foundation.  Oracle designates this
4562 # particular file as subject to the "Classpath" exception as provided
4563 # by Oracle in the LICENSE file that accompanied this code.
4564 #
4565 # This code is distributed in the hope that it will be useful, but WITHOUT
4566 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4567 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4568 # version 2 for more details (a copy is included in the LICENSE file that
4569 # accompanied this code).
4570 #
4571 # You should have received a copy of the GNU General Public License version
4572 # 2 along with this work; if not, write to the Free Software Foundation,
4573 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4574 #
4575 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4576 # or visit www.oracle.com if you need additional information or have any
4577 # questions.
4578 #
4579 
4580 ################################################################################
4581 # The order of these defines the priority by which we try to find them.
4582 VALID_VS_VERSIONS="2013 2012 2010"
4583 
4584 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4585 VS_VERSION_INTERNAL_2010=100
4586 VS_MSVCR_2010=msvcr100.dll
4587 # We don't use msvcp on Visual Studio 2010
4588 #VS_MSVCP_2010=msvcp100.dll
4589 VS_ENVVAR_2010="VS100COMNTOOLS"
4590 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4591 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4592 VS_VS_PLATFORM_NAME_2010="v100"
4593 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4594 
4595 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4596 VS_VERSION_INTERNAL_2012=110
4597 VS_MSVCR_2012=msvcr110.dll
4598 VS_MSVCP_2012=msvcp110.dll
4599 VS_ENVVAR_2012="VS110COMNTOOLS"
4600 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4601 VS_SDK_INSTALLDIR_2012=
4602 VS_VS_PLATFORM_NAME_2012="v110"
4603 VS_SDK_PLATFORM_NAME_2012=
4604 
4605 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4606 VS_VERSION_INTERNAL_2013=120
4607 VS_MSVCR_2013=msvcr120.dll
4608 VS_MSVCP_2013=msvcp120.dll
4609 VS_ENVVAR_2013="VS120COMNTOOLS"
4610 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4611 VS_SDK_INSTALLDIR_2013=
4612 VS_VS_PLATFORM_NAME_2013="v120"
4613 VS_SDK_PLATFORM_NAME_2013=
4614 
4615 ################################################################################
4616 
4617 
4618 
4619 ################################################################################
4620 
4621 
4622 
4623 ################################################################################
4624 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4625 # build environment and assigns it to VS_ENV_CMD
4626 
4627 
4628 ################################################################################
4629 
4630 
4631 
4632 ################################################################################
4633 # Check if the VS env variables were setup prior to running configure.
4634 # If not, then find vcvarsall.bat and run it automatically, and integrate
4635 # the set env variables into the spec file.
4636 
4637 
4638 
4639 
4640 
4641 
4642 
4643 
4644 
4645 
4646 
4647 
4648 
4649 
4650 # This line needs to be here, verbatim, after all includes and the dummy hook
4651 # definitions. It is replaced with custom functionality when building
4652 # custom sources.
4653 #CUSTOM_AUTOCONF_INCLUDE
4654 
4655 # Do not change or remove the following line, it is needed for consistency checks:
4656 DATE_WHEN_GENERATED=1448546432
4657 
4658 ###############################################################################
4659 #
4660 # Initialization / Boot-strapping
4661 #
4662 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4663 # thus it jumps back and forth, each time gaining something needed later on.
4664 #
4665 ###############################################################################
4666 
4667 # If we are requested to print additional help, do that and then exit.
4668 # This must be the very first call.
4669 
4670   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4671     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4672     $PRINTF "Which are valid to use depends on the build platform.\n"
4673     for toolchain in $VALID_TOOLCHAINS_all; do
4674       # Use indirect variable referencing
4675       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4676       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4677       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4678     done
4679 
4680     # And now exit directly
4681     exit 0
4682   fi
4683 
4684 
4685 # Basic initialization that must happen first of all in the normal process.
4686 
4687   # Save the original command line. This is passed to us by the wrapper configure script.
4688 
4689   # Save the path variable before it gets changed
4690   ORIGINAL_PATH="$PATH"
4691 
4692   DATE_WHEN_CONFIGURED=`LANG=C date`
4693 
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4695 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4697 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4698 
4699 
4700   # Start with tools that do not need have cross compilation support
4701   # and can be expected to be found in the default PATH. These tools are
4702   # used by configure.
4703 
4704   # First are all the simple required tools.
4705 
4706 
4707 
4708   # Publish this variable in the help.
4709 
4710 
4711   if [ -z "${BASENAME+x}" ]; then
4712     # The variable is not set by user, try to locate tool using the code snippet
4713     for ac_prog in basename
4714 do
4715   # Extract the first word of "$ac_prog", so it can be a program name with args.
4716 set dummy $ac_prog; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if ${ac_cv_path_BASENAME+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   case $BASENAME in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732     for ac_exec_ext in '' $ac_executable_extensions; do
4733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739   done
4740 IFS=$as_save_IFS
4741 
4742   ;;
4743 esac
4744 fi
4745 BASENAME=$ac_cv_path_BASENAME
4746 if test -n "$BASENAME"; then
4747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4748 $as_echo "$BASENAME" >&6; }
4749 else
4750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4752 fi
4753 
4754 
4755   test -n "$BASENAME" && break
4756 done
4757 
4758   else
4759     # The variable is set, but is it from the command line or the environment?
4760 
4761     # Try to remove the string !BASENAME! from our list.
4762     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4763     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4764       # If it failed, the variable was not from the command line. Ignore it,
4765       # but warn the user (except for BASH, which is always set by the calling BASH).
4766       if test "xBASENAME" != xBASH; then
4767         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4768 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4769       fi
4770       # Try to locate tool using the code snippet
4771       for ac_prog in basename
4772 do
4773   # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy $ac_prog; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if ${ac_cv_path_BASENAME+:} false; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   case $BASENAME in
4781   [\\/]* | ?:[\\/]*)
4782   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4783   ;;
4784   *)
4785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799 
4800   ;;
4801 esac
4802 fi
4803 BASENAME=$ac_cv_path_BASENAME
4804 if test -n "$BASENAME"; then
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4806 $as_echo "$BASENAME" >&6; }
4807 else
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811 
4812 
4813   test -n "$BASENAME" && break
4814 done
4815 
4816     else
4817       # If it succeeded, then it was overridden by the user. We will use it
4818       # for the tool.
4819 
4820       # First remove it from the list of overridden variables, so we can test
4821       # for unknown variables in the end.
4822       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4823 
4824       # Check if we try to supply an empty value
4825       if test "x$BASENAME" = x; then
4826         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4827 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4829 $as_echo_n "checking for BASENAME... " >&6; }
4830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4831 $as_echo "disabled" >&6; }
4832       else
4833         # Check if the provided tool contains a complete path.
4834         tool_specified="$BASENAME"
4835         tool_basename="${tool_specified##*/}"
4836         if test "x$tool_basename" = "x$tool_specified"; then
4837           # A command without a complete path is provided, search $PATH.
4838           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4839 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4840           # Extract the first word of "$tool_basename", so it can be a program name with args.
4841 set dummy $tool_basename; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_path_BASENAME+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   case $BASENAME in
4848   [\\/]* | ?:[\\/]*)
4849   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4850   ;;
4851   *)
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866 
4867   ;;
4868 esac
4869 fi
4870 BASENAME=$ac_cv_path_BASENAME
4871 if test -n "$BASENAME"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4873 $as_echo "$BASENAME" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878 
4879 
4880           if test "x$BASENAME" = x; then
4881             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4882           fi
4883         else
4884           # Otherwise we believe it is a complete path. Use it as it is.
4885           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4886 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4887           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4888 $as_echo_n "checking for BASENAME... " >&6; }
4889           if test ! -x "$tool_specified"; then
4890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4891 $as_echo "not found" >&6; }
4892             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4893           fi
4894           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4895 $as_echo "$tool_specified" >&6; }
4896         fi
4897       fi
4898     fi
4899 
4900   fi
4901 
4902 
4903 
4904   if test "x$BASENAME" = x; then
4905     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4906   fi
4907 
4908 
4909 
4910 
4911 
4912   # Publish this variable in the help.
4913 
4914 
4915   if [ -z "${BASH+x}" ]; then
4916     # The variable is not set by user, try to locate tool using the code snippet
4917     for ac_prog in bash
4918 do
4919   # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_path_BASH+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   case $BASH in
4927   [\\/]* | ?:[\\/]*)
4928   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4929   ;;
4930   *)
4931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945 
4946   ;;
4947 esac
4948 fi
4949 BASH=$ac_cv_path_BASH
4950 if test -n "$BASH"; then
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4952 $as_echo "$BASH" >&6; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957 
4958 
4959   test -n "$BASH" && break
4960 done
4961 
4962   else
4963     # The variable is set, but is it from the command line or the environment?
4964 
4965     # Try to remove the string !BASH! from our list.
4966     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4967     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4968       # If it failed, the variable was not from the command line. Ignore it,
4969       # but warn the user (except for BASH, which is always set by the calling BASH).
4970       if test "xBASH" != xBASH; then
4971         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4972 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4973       fi
4974       # Try to locate tool using the code snippet
4975       for ac_prog in bash
4976 do
4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_path_BASH+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   case $BASH in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994     for ac_exec_ext in '' $ac_executable_extensions; do
4995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001   done
5002 IFS=$as_save_IFS
5003 
5004   ;;
5005 esac
5006 fi
5007 BASH=$ac_cv_path_BASH
5008 if test -n "$BASH"; then
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5010 $as_echo "$BASH" >&6; }
5011 else
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5014 fi
5015 
5016 
5017   test -n "$BASH" && break
5018 done
5019 
5020     else
5021       # If it succeeded, then it was overridden by the user. We will use it
5022       # for the tool.
5023 
5024       # First remove it from the list of overridden variables, so we can test
5025       # for unknown variables in the end.
5026       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5027 
5028       # Check if we try to supply an empty value
5029       if test "x$BASH" = x; then
5030         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5031 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5033 $as_echo_n "checking for BASH... " >&6; }
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5035 $as_echo "disabled" >&6; }
5036       else
5037         # Check if the provided tool contains a complete path.
5038         tool_specified="$BASH"
5039         tool_basename="${tool_specified##*/}"
5040         if test "x$tool_basename" = "x$tool_specified"; then
5041           # A command without a complete path is provided, search $PATH.
5042           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5043 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5044           # Extract the first word of "$tool_basename", so it can be a program name with args.
5045 set dummy $tool_basename; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_path_BASH+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   case $BASH in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068   done
5069 IFS=$as_save_IFS
5070 
5071   ;;
5072 esac
5073 fi
5074 BASH=$ac_cv_path_BASH
5075 if test -n "$BASH"; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5077 $as_echo "$BASH" >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082 
5083 
5084           if test "x$BASH" = x; then
5085             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5086           fi
5087         else
5088           # Otherwise we believe it is a complete path. Use it as it is.
5089           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5090 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5091           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5092 $as_echo_n "checking for BASH... " >&6; }
5093           if test ! -x "$tool_specified"; then
5094             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5095 $as_echo "not found" >&6; }
5096             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5097           fi
5098           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5099 $as_echo "$tool_specified" >&6; }
5100         fi
5101       fi
5102     fi
5103 
5104   fi
5105 
5106 
5107 
5108   if test "x$BASH" = x; then
5109     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5110   fi
5111 
5112 
5113 
5114 
5115 
5116   # Publish this variable in the help.
5117 
5118 
5119   if [ -z "${CAT+x}" ]; then
5120     # The variable is not set by user, try to locate tool using the code snippet
5121     for ac_prog in cat
5122 do
5123   # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_CAT+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   case $CAT in
5131   [\\/]* | ?:[\\/]*)
5132   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5133   ;;
5134   *)
5135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149 
5150   ;;
5151 esac
5152 fi
5153 CAT=$ac_cv_path_CAT
5154 if test -n "$CAT"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5156 $as_echo "$CAT" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161 
5162 
5163   test -n "$CAT" && break
5164 done
5165 
5166   else
5167     # The variable is set, but is it from the command line or the environment?
5168 
5169     # Try to remove the string !CAT! from our list.
5170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5172       # If it failed, the variable was not from the command line. Ignore it,
5173       # but warn the user (except for BASH, which is always set by the calling BASH).
5174       if test "xCAT" != xBASH; then
5175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5176 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5177       fi
5178       # Try to locate tool using the code snippet
5179       for ac_prog in cat
5180 do
5181   # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_CAT+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case $CAT in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207 
5208   ;;
5209 esac
5210 fi
5211 CAT=$ac_cv_path_CAT
5212 if test -n "$CAT"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5214 $as_echo "$CAT" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219 
5220 
5221   test -n "$CAT" && break
5222 done
5223 
5224     else
5225       # If it succeeded, then it was overridden by the user. We will use it
5226       # for the tool.
5227 
5228       # First remove it from the list of overridden variables, so we can test
5229       # for unknown variables in the end.
5230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5231 
5232       # Check if we try to supply an empty value
5233       if test "x$CAT" = x; then
5234         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5235 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5237 $as_echo_n "checking for CAT... " >&6; }
5238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5239 $as_echo "disabled" >&6; }
5240       else
5241         # Check if the provided tool contains a complete path.
5242         tool_specified="$CAT"
5243         tool_basename="${tool_specified##*/}"
5244         if test "x$tool_basename" = "x$tool_specified"; then
5245           # A command without a complete path is provided, search $PATH.
5246           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5247 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5248           # Extract the first word of "$tool_basename", so it can be a program name with args.
5249 set dummy $tool_basename; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if ${ac_cv_path_CAT+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   case $CAT in
5256   [\\/]* | ?:[\\/]*)
5257   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5258   ;;
5259   *)
5260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274 
5275   ;;
5276 esac
5277 fi
5278 CAT=$ac_cv_path_CAT
5279 if test -n "$CAT"; then
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5281 $as_echo "$CAT" >&6; }
5282 else
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 fi
5286 
5287 
5288           if test "x$CAT" = x; then
5289             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5290           fi
5291         else
5292           # Otherwise we believe it is a complete path. Use it as it is.
5293           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5294 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5295           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5296 $as_echo_n "checking for CAT... " >&6; }
5297           if test ! -x "$tool_specified"; then
5298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5299 $as_echo "not found" >&6; }
5300             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5301           fi
5302           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5303 $as_echo "$tool_specified" >&6; }
5304         fi
5305       fi
5306     fi
5307 
5308   fi
5309 
5310 
5311 
5312   if test "x$CAT" = x; then
5313     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5314   fi
5315 
5316 
5317 
5318 
5319 
5320   # Publish this variable in the help.
5321 
5322 
5323   if [ -z "${CHMOD+x}" ]; then
5324     # The variable is not set by user, try to locate tool using the code snippet
5325     for ac_prog in chmod
5326 do
5327   # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set 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; }
5331 if ${ac_cv_path_CHMOD+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   case $CHMOD in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
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_CHMOD="$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
5350 done
5351   done
5352 IFS=$as_save_IFS
5353 
5354   ;;
5355 esac
5356 fi
5357 CHMOD=$ac_cv_path_CHMOD
5358 if test -n "$CHMOD"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5360 $as_echo "$CHMOD" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365 
5366 
5367   test -n "$CHMOD" && break
5368 done
5369 
5370   else
5371     # The variable is set, but is it from the command line or the environment?
5372 
5373     # Try to remove the string !CHMOD! from our list.
5374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5376       # If it failed, the variable was not from the command line. Ignore it,
5377       # but warn the user (except for BASH, which is always set by the calling BASH).
5378       if test "xCHMOD" != xBASH; then
5379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5380 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5381       fi
5382       # Try to locate tool using the code snippet
5383       for ac_prog in chmod
5384 do
5385   # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; 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; }
5389 if ${ac_cv_path_CHMOD+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   case $CHMOD in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
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_CHMOD="$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
5408 done
5409   done
5410 IFS=$as_save_IFS
5411 
5412   ;;
5413 esac
5414 fi
5415 CHMOD=$ac_cv_path_CHMOD
5416 if test -n "$CHMOD"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5418 $as_echo "$CHMOD" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423 
5424 
5425   test -n "$CHMOD" && break
5426 done
5427 
5428     else
5429       # If it succeeded, then it was overridden by the user. We will use it
5430       # for the tool.
5431 
5432       # First remove it from the list of overridden variables, so we can test
5433       # for unknown variables in the end.
5434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5435 
5436       # Check if we try to supply an empty value
5437       if test "x$CHMOD" = x; then
5438         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5439 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5441 $as_echo_n "checking for CHMOD... " >&6; }
5442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5443 $as_echo "disabled" >&6; }
5444       else
5445         # Check if the provided tool contains a complete path.
5446         tool_specified="$CHMOD"
5447         tool_basename="${tool_specified##*/}"
5448         if test "x$tool_basename" = "x$tool_specified"; then
5449           # A command without a complete path is provided, search $PATH.
5450           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5451 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5452           # Extract the first word of "$tool_basename", so it can be a program name with args.
5453 set dummy $tool_basename; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_path_CHMOD+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   case $CHMOD in
5460   [\\/]* | ?:[\\/]*)
5461   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5462   ;;
5463   *)
5464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469     for ac_exec_ext in '' $ac_executable_extensions; do
5470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476   done
5477 IFS=$as_save_IFS
5478 
5479   ;;
5480 esac
5481 fi
5482 CHMOD=$ac_cv_path_CHMOD
5483 if test -n "$CHMOD"; then
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5485 $as_echo "$CHMOD" >&6; }
5486 else
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490 
5491 
5492           if test "x$CHMOD" = x; then
5493             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5494           fi
5495         else
5496           # Otherwise we believe it is a complete path. Use it as it is.
5497           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5498 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5499           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5500 $as_echo_n "checking for CHMOD... " >&6; }
5501           if test ! -x "$tool_specified"; then
5502             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5503 $as_echo "not found" >&6; }
5504             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5505           fi
5506           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5507 $as_echo "$tool_specified" >&6; }
5508         fi
5509       fi
5510     fi
5511 
5512   fi
5513 
5514 
5515 
5516   if test "x$CHMOD" = x; then
5517     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5518   fi
5519 
5520 
5521 
5522 
5523 
5524   # Publish this variable in the help.
5525 
5526 
5527   if [ -z "${CMP+x}" ]; then
5528     # The variable is not set by user, try to locate tool using the code snippet
5529     for ac_prog in cmp
5530 do
5531   # Extract the first word of "$ac_prog", so it can be a program name with args.
5532 set dummy $ac_prog; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_path_CMP+:} false; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538   case $CMP in
5539   [\\/]* | ?:[\\/]*)
5540   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5541   ;;
5542   *)
5543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557 
5558   ;;
5559 esac
5560 fi
5561 CMP=$ac_cv_path_CMP
5562 if test -n "$CMP"; then
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5564 $as_echo "$CMP" >&6; }
5565 else
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569 
5570 
5571   test -n "$CMP" && break
5572 done
5573 
5574   else
5575     # The variable is set, but is it from the command line or the environment?
5576 
5577     # Try to remove the string !CMP! from our list.
5578     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5579     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5580       # If it failed, the variable was not from the command line. Ignore it,
5581       # but warn the user (except for BASH, which is always set by the calling BASH).
5582       if test "xCMP" != xBASH; then
5583         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5584 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5585       fi
5586       # Try to locate tool using the code snippet
5587       for ac_prog in cmp
5588 do
5589   # Extract the first word of "$ac_prog", so it can be a program name with args.
5590 set dummy $ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_path_CMP+:} false; then :
5594   $as_echo_n "(cached) " >&6
5595 else
5596   case $CMP in
5597   [\\/]* | ?:[\\/]*)
5598   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5599   ;;
5600   *)
5601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604   IFS=$as_save_IFS
5605   test -z "$as_dir" && as_dir=.
5606     for ac_exec_ext in '' $ac_executable_extensions; do
5607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610     break 2
5611   fi
5612 done
5613   done
5614 IFS=$as_save_IFS
5615 
5616   ;;
5617 esac
5618 fi
5619 CMP=$ac_cv_path_CMP
5620 if test -n "$CMP"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5622 $as_echo "$CMP" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627 
5628 
5629   test -n "$CMP" && break
5630 done
5631 
5632     else
5633       # If it succeeded, then it was overridden by the user. We will use it
5634       # for the tool.
5635 
5636       # First remove it from the list of overridden variables, so we can test
5637       # for unknown variables in the end.
5638       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5639 
5640       # Check if we try to supply an empty value
5641       if test "x$CMP" = x; then
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5643 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5644         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5645 $as_echo_n "checking for CMP... " >&6; }
5646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5647 $as_echo "disabled" >&6; }
5648       else
5649         # Check if the provided tool contains a complete path.
5650         tool_specified="$CMP"
5651         tool_basename="${tool_specified##*/}"
5652         if test "x$tool_basename" = "x$tool_specified"; then
5653           # A command without a complete path is provided, search $PATH.
5654           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5655 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5656           # Extract the first word of "$tool_basename", so it can be a program name with args.
5657 set dummy $tool_basename; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_path_CMP+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   case $CMP in
5664   [\\/]* | ?:[\\/]*)
5665   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5666   ;;
5667   *)
5668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_exec_ext in '' $ac_executable_extensions; do
5674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680   done
5681 IFS=$as_save_IFS
5682 
5683   ;;
5684 esac
5685 fi
5686 CMP=$ac_cv_path_CMP
5687 if test -n "$CMP"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5689 $as_echo "$CMP" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694 
5695 
5696           if test "x$CMP" = x; then
5697             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5698           fi
5699         else
5700           # Otherwise we believe it is a complete path. Use it as it is.
5701           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5702 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5704 $as_echo_n "checking for CMP... " >&6; }
5705           if test ! -x "$tool_specified"; then
5706             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5707 $as_echo "not found" >&6; }
5708             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5709           fi
5710           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5711 $as_echo "$tool_specified" >&6; }
5712         fi
5713       fi
5714     fi
5715 
5716   fi
5717 
5718 
5719 
5720   if test "x$CMP" = x; then
5721     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5722   fi
5723 
5724 
5725 
5726 
5727 
5728   # Publish this variable in the help.
5729 
5730 
5731   if [ -z "${COMM+x}" ]; then
5732     # The variable is not set by user, try to locate tool using the code snippet
5733     for ac_prog in comm
5734 do
5735   # Extract the first word of "$ac_prog", so it can be a program name with args.
5736 set dummy $ac_prog; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_path_COMM+:} false; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   case $COMM in
5743   [\\/]* | ?:[\\/]*)
5744   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752     for ac_exec_ext in '' $ac_executable_extensions; do
5753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759   done
5760 IFS=$as_save_IFS
5761 
5762   ;;
5763 esac
5764 fi
5765 COMM=$ac_cv_path_COMM
5766 if test -n "$COMM"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5768 $as_echo "$COMM" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773 
5774 
5775   test -n "$COMM" && break
5776 done
5777 
5778   else
5779     # The variable is set, but is it from the command line or the environment?
5780 
5781     # Try to remove the string !COMM! from our list.
5782     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5783     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5784       # If it failed, the variable was not from the command line. Ignore it,
5785       # but warn the user (except for BASH, which is always set by the calling BASH).
5786       if test "xCOMM" != xBASH; then
5787         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5788 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5789       fi
5790       # Try to locate tool using the code snippet
5791       for ac_prog in comm
5792 do
5793   # Extract the first word of "$ac_prog", so it can be a program name with args.
5794 set dummy $ac_prog; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_path_COMM+:} false; then :
5798   $as_echo_n "(cached) " >&6
5799 else
5800   case $COMM in
5801   [\\/]* | ?:[\\/]*)
5802   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5803   ;;
5804   *)
5805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819 
5820   ;;
5821 esac
5822 fi
5823 COMM=$ac_cv_path_COMM
5824 if test -n "$COMM"; then
5825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5826 $as_echo "$COMM" >&6; }
5827 else
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 fi
5831 
5832 
5833   test -n "$COMM" && break
5834 done
5835 
5836     else
5837       # If it succeeded, then it was overridden by the user. We will use it
5838       # for the tool.
5839 
5840       # First remove it from the list of overridden variables, so we can test
5841       # for unknown variables in the end.
5842       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5843 
5844       # Check if we try to supply an empty value
5845       if test "x$COMM" = x; then
5846         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5847 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5849 $as_echo_n "checking for COMM... " >&6; }
5850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5851 $as_echo "disabled" >&6; }
5852       else
5853         # Check if the provided tool contains a complete path.
5854         tool_specified="$COMM"
5855         tool_basename="${tool_specified##*/}"
5856         if test "x$tool_basename" = "x$tool_specified"; then
5857           # A command without a complete path is provided, search $PATH.
5858           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5859 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5860           # Extract the first word of "$tool_basename", so it can be a program name with args.
5861 set dummy $tool_basename; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_path_COMM+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   case $COMM in
5868   [\\/]* | ?:[\\/]*)
5869   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5870   ;;
5871   *)
5872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886 
5887   ;;
5888 esac
5889 fi
5890 COMM=$ac_cv_path_COMM
5891 if test -n "$COMM"; then
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5893 $as_echo "$COMM" >&6; }
5894 else
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898 
5899 
5900           if test "x$COMM" = x; then
5901             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5902           fi
5903         else
5904           # Otherwise we believe it is a complete path. Use it as it is.
5905           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5906 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5907           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5908 $as_echo_n "checking for COMM... " >&6; }
5909           if test ! -x "$tool_specified"; then
5910             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5911 $as_echo "not found" >&6; }
5912             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5913           fi
5914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5915 $as_echo "$tool_specified" >&6; }
5916         fi
5917       fi
5918     fi
5919 
5920   fi
5921 
5922 
5923 
5924   if test "x$COMM" = x; then
5925     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5926   fi
5927 
5928 
5929 
5930 
5931 
5932   # Publish this variable in the help.
5933 
5934 
5935   if [ -z "${CP+x}" ]; then
5936     # The variable is not set by user, try to locate tool using the code snippet
5937     for ac_prog in cp
5938 do
5939   # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if ${ac_cv_path_CP+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   case $CP in
5947   [\\/]* | ?:[\\/]*)
5948   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5949   ;;
5950   *)
5951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956     for ac_exec_ext in '' $ac_executable_extensions; do
5957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963   done
5964 IFS=$as_save_IFS
5965 
5966   ;;
5967 esac
5968 fi
5969 CP=$ac_cv_path_CP
5970 if test -n "$CP"; then
5971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5972 $as_echo "$CP" >&6; }
5973 else
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975 $as_echo "no" >&6; }
5976 fi
5977 
5978 
5979   test -n "$CP" && break
5980 done
5981 
5982   else
5983     # The variable is set, but is it from the command line or the environment?
5984 
5985     # Try to remove the string !CP! from our list.
5986     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5987     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5988       # If it failed, the variable was not from the command line. Ignore it,
5989       # but warn the user (except for BASH, which is always set by the calling BASH).
5990       if test "xCP" != xBASH; then
5991         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5992 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5993       fi
5994       # Try to locate tool using the code snippet
5995       for ac_prog in cp
5996 do
5997   # Extract the first word of "$ac_prog", so it can be a program name with args.
5998 set dummy $ac_prog; ac_word=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_path_CP+:} false; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   case $CP in
6005   [\\/]* | ?:[\\/]*)
6006   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6007   ;;
6008   *)
6009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023 
6024   ;;
6025 esac
6026 fi
6027 CP=$ac_cv_path_CP
6028 if test -n "$CP"; then
6029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6030 $as_echo "$CP" >&6; }
6031 else
6032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035 
6036 
6037   test -n "$CP" && break
6038 done
6039 
6040     else
6041       # If it succeeded, then it was overridden by the user. We will use it
6042       # for the tool.
6043 
6044       # First remove it from the list of overridden variables, so we can test
6045       # for unknown variables in the end.
6046       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6047 
6048       # Check if we try to supply an empty value
6049       if test "x$CP" = x; then
6050         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6051 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6053 $as_echo_n "checking for CP... " >&6; }
6054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6055 $as_echo "disabled" >&6; }
6056       else
6057         # Check if the provided tool contains a complete path.
6058         tool_specified="$CP"
6059         tool_basename="${tool_specified##*/}"
6060         if test "x$tool_basename" = "x$tool_specified"; then
6061           # A command without a complete path is provided, search $PATH.
6062           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6063 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6064           # Extract the first word of "$tool_basename", so it can be a program name with args.
6065 set dummy $tool_basename; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_path_CP+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   case $CP in
6072   [\\/]* | ?:[\\/]*)
6073   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6074   ;;
6075   *)
6076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081     for ac_exec_ext in '' $ac_executable_extensions; do
6082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6083     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088   done
6089 IFS=$as_save_IFS
6090 
6091   ;;
6092 esac
6093 fi
6094 CP=$ac_cv_path_CP
6095 if test -n "$CP"; then
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6097 $as_echo "$CP" >&6; }
6098 else
6099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102 
6103 
6104           if test "x$CP" = x; then
6105             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6106           fi
6107         else
6108           # Otherwise we believe it is a complete path. Use it as it is.
6109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6110 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6112 $as_echo_n "checking for CP... " >&6; }
6113           if test ! -x "$tool_specified"; then
6114             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6115 $as_echo "not found" >&6; }
6116             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6117           fi
6118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6119 $as_echo "$tool_specified" >&6; }
6120         fi
6121       fi
6122     fi
6123 
6124   fi
6125 
6126 
6127 
6128   if test "x$CP" = x; then
6129     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6130   fi
6131 
6132 
6133 
6134 
6135 
6136   # Publish this variable in the help.
6137 
6138 
6139   if [ -z "${CUT+x}" ]; then
6140     # The variable is not set by user, try to locate tool using the code snippet
6141     for ac_prog in cut
6142 do
6143   # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy $ac_prog; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if ${ac_cv_path_CUT+:} false; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   case $CUT in
6151   [\\/]* | ?:[\\/]*)
6152   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6153   ;;
6154   *)
6155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160     for ac_exec_ext in '' $ac_executable_extensions; do
6161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167   done
6168 IFS=$as_save_IFS
6169 
6170   ;;
6171 esac
6172 fi
6173 CUT=$ac_cv_path_CUT
6174 if test -n "$CUT"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6176 $as_echo "$CUT" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181 
6182 
6183   test -n "$CUT" && break
6184 done
6185 
6186   else
6187     # The variable is set, but is it from the command line or the environment?
6188 
6189     # Try to remove the string !CUT! from our list.
6190     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6191     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6192       # If it failed, the variable was not from the command line. Ignore it,
6193       # but warn the user (except for BASH, which is always set by the calling BASH).
6194       if test "xCUT" != xBASH; then
6195         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6196 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6197       fi
6198       # Try to locate tool using the code snippet
6199       for ac_prog in cut
6200 do
6201   # Extract the first word of "$ac_prog", so it can be a program name with args.
6202 set dummy $ac_prog; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_path_CUT+:} false; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208   case $CUT in
6209   [\\/]* | ?:[\\/]*)
6210   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6211   ;;
6212   *)
6213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216   IFS=$as_save_IFS
6217   test -z "$as_dir" && as_dir=.
6218     for ac_exec_ext in '' $ac_executable_extensions; do
6219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222     break 2
6223   fi
6224 done
6225   done
6226 IFS=$as_save_IFS
6227 
6228   ;;
6229 esac
6230 fi
6231 CUT=$ac_cv_path_CUT
6232 if test -n "$CUT"; then
6233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6234 $as_echo "$CUT" >&6; }
6235 else
6236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6238 fi
6239 
6240 
6241   test -n "$CUT" && break
6242 done
6243 
6244     else
6245       # If it succeeded, then it was overridden by the user. We will use it
6246       # for the tool.
6247 
6248       # First remove it from the list of overridden variables, so we can test
6249       # for unknown variables in the end.
6250       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6251 
6252       # Check if we try to supply an empty value
6253       if test "x$CUT" = x; then
6254         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6255 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6256         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6257 $as_echo_n "checking for CUT... " >&6; }
6258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6259 $as_echo "disabled" >&6; }
6260       else
6261         # Check if the provided tool contains a complete path.
6262         tool_specified="$CUT"
6263         tool_basename="${tool_specified##*/}"
6264         if test "x$tool_basename" = "x$tool_specified"; then
6265           # A command without a complete path is provided, search $PATH.
6266           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6267 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6268           # Extract the first word of "$tool_basename", so it can be a program name with args.
6269 set dummy $tool_basename; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_path_CUT+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   case $CUT in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6278   ;;
6279   *)
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294 
6295   ;;
6296 esac
6297 fi
6298 CUT=$ac_cv_path_CUT
6299 if test -n "$CUT"; then
6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6301 $as_echo "$CUT" >&6; }
6302 else
6303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306 
6307 
6308           if test "x$CUT" = x; then
6309             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6310           fi
6311         else
6312           # Otherwise we believe it is a complete path. Use it as it is.
6313           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6314 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6315           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6316 $as_echo_n "checking for CUT... " >&6; }
6317           if test ! -x "$tool_specified"; then
6318             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6319 $as_echo "not found" >&6; }
6320             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6321           fi
6322           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6323 $as_echo "$tool_specified" >&6; }
6324         fi
6325       fi
6326     fi
6327 
6328   fi
6329 
6330 
6331 
6332   if test "x$CUT" = x; then
6333     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6334   fi
6335 
6336 
6337 
6338 
6339 
6340   # Publish this variable in the help.
6341 
6342 
6343   if [ -z "${DATE+x}" ]; then
6344     # The variable is not set by user, try to locate tool using the code snippet
6345     for ac_prog in date
6346 do
6347   # Extract the first word of "$ac_prog", so it can be a program name with args.
6348 set dummy $ac_prog; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_path_DATE+:} false; then :
6352   $as_echo_n "(cached) " >&6
6353 else
6354   case $DATE in
6355   [\\/]* | ?:[\\/]*)
6356   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6357   ;;
6358   *)
6359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373 
6374   ;;
6375 esac
6376 fi
6377 DATE=$ac_cv_path_DATE
6378 if test -n "$DATE"; then
6379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6380 $as_echo "$DATE" >&6; }
6381 else
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385 
6386 
6387   test -n "$DATE" && break
6388 done
6389 
6390   else
6391     # The variable is set, but is it from the command line or the environment?
6392 
6393     # Try to remove the string !DATE! from our list.
6394     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6395     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6396       # If it failed, the variable was not from the command line. Ignore it,
6397       # but warn the user (except for BASH, which is always set by the calling BASH).
6398       if test "xDATE" != xBASH; then
6399         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6400 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6401       fi
6402       # Try to locate tool using the code snippet
6403       for ac_prog in date
6404 do
6405   # Extract the first word of "$ac_prog", so it can be a program name with args.
6406 set dummy $ac_prog; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if ${ac_cv_path_DATE+:} false; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   case $DATE in
6413   [\\/]* | ?:[\\/]*)
6414   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6415   ;;
6416   *)
6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422     for ac_exec_ext in '' $ac_executable_extensions; do
6423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429   done
6430 IFS=$as_save_IFS
6431 
6432   ;;
6433 esac
6434 fi
6435 DATE=$ac_cv_path_DATE
6436 if test -n "$DATE"; then
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6438 $as_echo "$DATE" >&6; }
6439 else
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443 
6444 
6445   test -n "$DATE" && break
6446 done
6447 
6448     else
6449       # If it succeeded, then it was overridden by the user. We will use it
6450       # for the tool.
6451 
6452       # First remove it from the list of overridden variables, so we can test
6453       # for unknown variables in the end.
6454       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6455 
6456       # Check if we try to supply an empty value
6457       if test "x$DATE" = x; then
6458         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6459 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6461 $as_echo_n "checking for DATE... " >&6; }
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6463 $as_echo "disabled" >&6; }
6464       else
6465         # Check if the provided tool contains a complete path.
6466         tool_specified="$DATE"
6467         tool_basename="${tool_specified##*/}"
6468         if test "x$tool_basename" = "x$tool_specified"; then
6469           # A command without a complete path is provided, search $PATH.
6470           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6471 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6472           # Extract the first word of "$tool_basename", so it can be a program name with args.
6473 set dummy $tool_basename; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_path_DATE+:} false; then :
6477   $as_echo_n "(cached) " >&6
6478 else
6479   case $DATE in
6480   [\\/]* | ?:[\\/]*)
6481   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6482   ;;
6483   *)
6484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498 
6499   ;;
6500 esac
6501 fi
6502 DATE=$ac_cv_path_DATE
6503 if test -n "$DATE"; then
6504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6505 $as_echo "$DATE" >&6; }
6506 else
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510 
6511 
6512           if test "x$DATE" = x; then
6513             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6514           fi
6515         else
6516           # Otherwise we believe it is a complete path. Use it as it is.
6517           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6518 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6519           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6520 $as_echo_n "checking for DATE... " >&6; }
6521           if test ! -x "$tool_specified"; then
6522             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6523 $as_echo "not found" >&6; }
6524             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6525           fi
6526           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6527 $as_echo "$tool_specified" >&6; }
6528         fi
6529       fi
6530     fi
6531 
6532   fi
6533 
6534 
6535 
6536   if test "x$DATE" = x; then
6537     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6538   fi
6539 
6540 
6541 
6542 
6543 
6544   # Publish this variable in the help.
6545 
6546 
6547   if [ -z "${DIFF+x}" ]; then
6548     # The variable is not set by user, try to locate tool using the code snippet
6549     for ac_prog in gdiff diff
6550 do
6551   # Extract the first word of "$ac_prog", so it can be a program name with args.
6552 set dummy $ac_prog; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_path_DIFF+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   case $DIFF in
6559   [\\/]* | ?:[\\/]*)
6560   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6561   ;;
6562   *)
6563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568     for ac_exec_ext in '' $ac_executable_extensions; do
6569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575   done
6576 IFS=$as_save_IFS
6577 
6578   ;;
6579 esac
6580 fi
6581 DIFF=$ac_cv_path_DIFF
6582 if test -n "$DIFF"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6584 $as_echo "$DIFF" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589 
6590 
6591   test -n "$DIFF" && break
6592 done
6593 
6594   else
6595     # The variable is set, but is it from the command line or the environment?
6596 
6597     # Try to remove the string !DIFF! from our list.
6598     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6599     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6600       # If it failed, the variable was not from the command line. Ignore it,
6601       # but warn the user (except for BASH, which is always set by the calling BASH).
6602       if test "xDIFF" != xBASH; then
6603         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6604 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6605       fi
6606       # Try to locate tool using the code snippet
6607       for ac_prog in gdiff diff
6608 do
6609   # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_DIFF+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   case $DIFF in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635 
6636   ;;
6637 esac
6638 fi
6639 DIFF=$ac_cv_path_DIFF
6640 if test -n "$DIFF"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6642 $as_echo "$DIFF" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647 
6648 
6649   test -n "$DIFF" && break
6650 done
6651 
6652     else
6653       # If it succeeded, then it was overridden by the user. We will use it
6654       # for the tool.
6655 
6656       # First remove it from the list of overridden variables, so we can test
6657       # for unknown variables in the end.
6658       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6659 
6660       # Check if we try to supply an empty value
6661       if test "x$DIFF" = x; then
6662         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6663 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6665 $as_echo_n "checking for DIFF... " >&6; }
6666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6667 $as_echo "disabled" >&6; }
6668       else
6669         # Check if the provided tool contains a complete path.
6670         tool_specified="$DIFF"
6671         tool_basename="${tool_specified##*/}"
6672         if test "x$tool_basename" = "x$tool_specified"; then
6673           # A command without a complete path is provided, search $PATH.
6674           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6675 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6676           # Extract the first word of "$tool_basename", so it can be a program name with args.
6677 set dummy $tool_basename; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_path_DIFF+:} false; then :
6681   $as_echo_n "(cached) " >&6
6682 else
6683   case $DIFF in
6684   [\\/]* | ?:[\\/]*)
6685   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6686   ;;
6687   *)
6688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693     for ac_exec_ext in '' $ac_executable_extensions; do
6694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700   done
6701 IFS=$as_save_IFS
6702 
6703   ;;
6704 esac
6705 fi
6706 DIFF=$ac_cv_path_DIFF
6707 if test -n "$DIFF"; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6709 $as_echo "$DIFF" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 $as_echo "no" >&6; }
6713 fi
6714 
6715 
6716           if test "x$DIFF" = x; then
6717             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6718           fi
6719         else
6720           # Otherwise we believe it is a complete path. Use it as it is.
6721           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6722 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6723           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6724 $as_echo_n "checking for DIFF... " >&6; }
6725           if test ! -x "$tool_specified"; then
6726             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6727 $as_echo "not found" >&6; }
6728             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6729           fi
6730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6731 $as_echo "$tool_specified" >&6; }
6732         fi
6733       fi
6734     fi
6735 
6736   fi
6737 
6738 
6739 
6740   if test "x$DIFF" = x; then
6741     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6742   fi
6743 
6744 
6745 
6746 
6747 
6748   # Publish this variable in the help.
6749 
6750 
6751   if [ -z "${DIRNAME+x}" ]; then
6752     # The variable is not set by user, try to locate tool using the code snippet
6753     for ac_prog in dirname
6754 do
6755   # Extract the first word of "$ac_prog", so it can be a program name with args.
6756 set dummy $ac_prog; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_path_DIRNAME+:} false; then :
6760   $as_echo_n "(cached) " >&6
6761 else
6762   case $DIRNAME in
6763   [\\/]* | ?:[\\/]*)
6764   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6765   ;;
6766   *)
6767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770   IFS=$as_save_IFS
6771   test -z "$as_dir" && as_dir=.
6772     for ac_exec_ext in '' $ac_executable_extensions; do
6773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6774     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776     break 2
6777   fi
6778 done
6779   done
6780 IFS=$as_save_IFS
6781 
6782   ;;
6783 esac
6784 fi
6785 DIRNAME=$ac_cv_path_DIRNAME
6786 if test -n "$DIRNAME"; then
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6788 $as_echo "$DIRNAME" >&6; }
6789 else
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6792 fi
6793 
6794 
6795   test -n "$DIRNAME" && break
6796 done
6797 
6798   else
6799     # The variable is set, but is it from the command line or the environment?
6800 
6801     # Try to remove the string !DIRNAME! from our list.
6802     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6803     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6804       # If it failed, the variable was not from the command line. Ignore it,
6805       # but warn the user (except for BASH, which is always set by the calling BASH).
6806       if test "xDIRNAME" != xBASH; then
6807         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6808 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6809       fi
6810       # Try to locate tool using the code snippet
6811       for ac_prog in dirname
6812 do
6813   # Extract the first word of "$ac_prog", so it can be a program name with args.
6814 set 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; }
6817 if ${ac_cv_path_DIRNAME+:} false; then :
6818   $as_echo_n "(cached) " >&6
6819 else
6820   case $DIRNAME in
6821   [\\/]* | ?:[\\/]*)
6822   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6823   ;;
6824   *)
6825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
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_DIRNAME="$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
6836 done
6837   done
6838 IFS=$as_save_IFS
6839 
6840   ;;
6841 esac
6842 fi
6843 DIRNAME=$ac_cv_path_DIRNAME
6844 if test -n "$DIRNAME"; then
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6846 $as_echo "$DIRNAME" >&6; }
6847 else
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851 
6852 
6853   test -n "$DIRNAME" && break
6854 done
6855 
6856     else
6857       # If it succeeded, then it was overridden by the user. We will use it
6858       # for the tool.
6859 
6860       # First remove it from the list of overridden variables, so we can test
6861       # for unknown variables in the end.
6862       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6863 
6864       # Check if we try to supply an empty value
6865       if test "x$DIRNAME" = x; then
6866         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6867 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6869 $as_echo_n "checking for DIRNAME... " >&6; }
6870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6871 $as_echo "disabled" >&6; }
6872       else
6873         # Check if the provided tool contains a complete path.
6874         tool_specified="$DIRNAME"
6875         tool_basename="${tool_specified##*/}"
6876         if test "x$tool_basename" = "x$tool_specified"; then
6877           # A command without a complete path is provided, search $PATH.
6878           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6879 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6880           # Extract the first word of "$tool_basename", so it can be a program name with args.
6881 set dummy $tool_basename; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_path_DIRNAME+:} false; then :
6885   $as_echo_n "(cached) " >&6
6886 else
6887   case $DIRNAME in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906 
6907   ;;
6908 esac
6909 fi
6910 DIRNAME=$ac_cv_path_DIRNAME
6911 if test -n "$DIRNAME"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6913 $as_echo "$DIRNAME" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918 
6919 
6920           if test "x$DIRNAME" = x; then
6921             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6922           fi
6923         else
6924           # Otherwise we believe it is a complete path. Use it as it is.
6925           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6926 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6927           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6928 $as_echo_n "checking for DIRNAME... " >&6; }
6929           if test ! -x "$tool_specified"; then
6930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6931 $as_echo "not found" >&6; }
6932             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6933           fi
6934           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6935 $as_echo "$tool_specified" >&6; }
6936         fi
6937       fi
6938     fi
6939 
6940   fi
6941 
6942 
6943 
6944   if test "x$DIRNAME" = x; then
6945     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6946   fi
6947 
6948 
6949 
6950 
6951 
6952   # Publish this variable in the help.
6953 
6954 
6955   if [ -z "${ECHO+x}" ]; then
6956     # The variable is not set by user, try to locate tool using the code snippet
6957     for ac_prog in echo
6958 do
6959   # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_path_ECHO+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   case $ECHO in
6967   [\\/]* | ?:[\\/]*)
6968   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6969   ;;
6970   *)
6971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976     for ac_exec_ext in '' $ac_executable_extensions; do
6977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983   done
6984 IFS=$as_save_IFS
6985 
6986   ;;
6987 esac
6988 fi
6989 ECHO=$ac_cv_path_ECHO
6990 if test -n "$ECHO"; then
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6992 $as_echo "$ECHO" >&6; }
6993 else
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997 
6998 
6999   test -n "$ECHO" && break
7000 done
7001 
7002   else
7003     # The variable is set, but is it from the command line or the environment?
7004 
7005     # Try to remove the string !ECHO! from our list.
7006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7008       # If it failed, the variable was not from the command line. Ignore it,
7009       # but warn the user (except for BASH, which is always set by the calling BASH).
7010       if test "xECHO" != xBASH; then
7011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7012 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7013       fi
7014       # Try to locate tool using the code snippet
7015       for ac_prog in echo
7016 do
7017   # Extract the first word of "$ac_prog", so it can be a program name with args.
7018 set dummy $ac_prog; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_path_ECHO+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   case $ECHO in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034     for ac_exec_ext in '' $ac_executable_extensions; do
7035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041   done
7042 IFS=$as_save_IFS
7043 
7044   ;;
7045 esac
7046 fi
7047 ECHO=$ac_cv_path_ECHO
7048 if test -n "$ECHO"; then
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7050 $as_echo "$ECHO" >&6; }
7051 else
7052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055 
7056 
7057   test -n "$ECHO" && break
7058 done
7059 
7060     else
7061       # If it succeeded, then it was overridden by the user. We will use it
7062       # for the tool.
7063 
7064       # First remove it from the list of overridden variables, so we can test
7065       # for unknown variables in the end.
7066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7067 
7068       # Check if we try to supply an empty value
7069       if test "x$ECHO" = x; then
7070         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7071 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7072         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7073 $as_echo_n "checking for ECHO... " >&6; }
7074         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7075 $as_echo "disabled" >&6; }
7076       else
7077         # Check if the provided tool contains a complete path.
7078         tool_specified="$ECHO"
7079         tool_basename="${tool_specified##*/}"
7080         if test "x$tool_basename" = "x$tool_specified"; then
7081           # A command without a complete path is provided, search $PATH.
7082           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7083 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7084           # Extract the first word of "$tool_basename", so it can be a program name with args.
7085 set dummy $tool_basename; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_path_ECHO+:} false; then :
7089   $as_echo_n "(cached) " >&6
7090 else
7091   case $ECHO in
7092   [\\/]* | ?:[\\/]*)
7093   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7094   ;;
7095   *)
7096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101     for ac_exec_ext in '' $ac_executable_extensions; do
7102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108   done
7109 IFS=$as_save_IFS
7110 
7111   ;;
7112 esac
7113 fi
7114 ECHO=$ac_cv_path_ECHO
7115 if test -n "$ECHO"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7117 $as_echo "$ECHO" >&6; }
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122 
7123 
7124           if test "x$ECHO" = x; then
7125             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7126           fi
7127         else
7128           # Otherwise we believe it is a complete path. Use it as it is.
7129           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7130 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7131           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7132 $as_echo_n "checking for ECHO... " >&6; }
7133           if test ! -x "$tool_specified"; then
7134             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7135 $as_echo "not found" >&6; }
7136             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7137           fi
7138           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7139 $as_echo "$tool_specified" >&6; }
7140         fi
7141       fi
7142     fi
7143 
7144   fi
7145 
7146 
7147 
7148   if test "x$ECHO" = x; then
7149     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7150   fi
7151 
7152 
7153 
7154 
7155 
7156   # Publish this variable in the help.
7157 
7158 
7159   if [ -z "${EXPR+x}" ]; then
7160     # The variable is not set by user, try to locate tool using the code snippet
7161     for ac_prog in expr
7162 do
7163   # Extract the first word of "$ac_prog", so it can be a program name with args.
7164 set dummy $ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_path_EXPR+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   case $EXPR in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189 
7190   ;;
7191 esac
7192 fi
7193 EXPR=$ac_cv_path_EXPR
7194 if test -n "$EXPR"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7196 $as_echo "$EXPR" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201 
7202 
7203   test -n "$EXPR" && break
7204 done
7205 
7206   else
7207     # The variable is set, but is it from the command line or the environment?
7208 
7209     # Try to remove the string !EXPR! from our list.
7210     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7211     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7212       # If it failed, the variable was not from the command line. Ignore it,
7213       # but warn the user (except for BASH, which is always set by the calling BASH).
7214       if test "xEXPR" != xBASH; then
7215         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7216 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7217       fi
7218       # Try to locate tool using the code snippet
7219       for ac_prog in expr
7220 do
7221   # Extract the first word of "$ac_prog", so it can be a program name with args.
7222 set dummy $ac_prog; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_path_EXPR+:} false; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   case $EXPR in
7229   [\\/]* | ?:[\\/]*)
7230   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7231   ;;
7232   *)
7233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 for as_dir in $PATH
7235 do
7236   IFS=$as_save_IFS
7237   test -z "$as_dir" && as_dir=.
7238     for ac_exec_ext in '' $ac_executable_extensions; do
7239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242     break 2
7243   fi
7244 done
7245   done
7246 IFS=$as_save_IFS
7247 
7248   ;;
7249 esac
7250 fi
7251 EXPR=$ac_cv_path_EXPR
7252 if test -n "$EXPR"; then
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7254 $as_echo "$EXPR" >&6; }
7255 else
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7258 fi
7259 
7260 
7261   test -n "$EXPR" && break
7262 done
7263 
7264     else
7265       # If it succeeded, then it was overridden by the user. We will use it
7266       # for the tool.
7267 
7268       # First remove it from the list of overridden variables, so we can test
7269       # for unknown variables in the end.
7270       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7271 
7272       # Check if we try to supply an empty value
7273       if test "x$EXPR" = x; then
7274         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7275 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7277 $as_echo_n "checking for EXPR... " >&6; }
7278         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7279 $as_echo "disabled" >&6; }
7280       else
7281         # Check if the provided tool contains a complete path.
7282         tool_specified="$EXPR"
7283         tool_basename="${tool_specified##*/}"
7284         if test "x$tool_basename" = "x$tool_specified"; then
7285           # A command without a complete path is provided, search $PATH.
7286           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7287 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7288           # Extract the first word of "$tool_basename", so it can be a program name with args.
7289 set dummy $tool_basename; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_path_EXPR+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   case $EXPR in
7296   [\\/]* | ?:[\\/]*)
7297   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7298   ;;
7299   *)
7300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314 
7315   ;;
7316 esac
7317 fi
7318 EXPR=$ac_cv_path_EXPR
7319 if test -n "$EXPR"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7321 $as_echo "$EXPR" >&6; }
7322 else
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326 
7327 
7328           if test "x$EXPR" = x; then
7329             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7330           fi
7331         else
7332           # Otherwise we believe it is a complete path. Use it as it is.
7333           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7334 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7335           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7336 $as_echo_n "checking for EXPR... " >&6; }
7337           if test ! -x "$tool_specified"; then
7338             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7339 $as_echo "not found" >&6; }
7340             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7341           fi
7342           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7343 $as_echo "$tool_specified" >&6; }
7344         fi
7345       fi
7346     fi
7347 
7348   fi
7349 
7350 
7351 
7352   if test "x$EXPR" = x; then
7353     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7354   fi
7355 
7356 
7357 
7358 
7359 
7360   # Publish this variable in the help.
7361 
7362 
7363   if [ -z "${FILE+x}" ]; then
7364     # The variable is not set by user, try to locate tool using the code snippet
7365     for ac_prog in file
7366 do
7367   # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if ${ac_cv_path_FILE+:} false; then :
7372   $as_echo_n "(cached) " >&6
7373 else
7374   case $FILE in
7375   [\\/]* | ?:[\\/]*)
7376   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7377   ;;
7378   *)
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384     for ac_exec_ext in '' $ac_executable_extensions; do
7385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391   done
7392 IFS=$as_save_IFS
7393 
7394   ;;
7395 esac
7396 fi
7397 FILE=$ac_cv_path_FILE
7398 if test -n "$FILE"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7400 $as_echo "$FILE" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405 
7406 
7407   test -n "$FILE" && break
7408 done
7409 
7410   else
7411     # The variable is set, but is it from the command line or the environment?
7412 
7413     # Try to remove the string !FILE! from our list.
7414     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7415     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7416       # If it failed, the variable was not from the command line. Ignore it,
7417       # but warn the user (except for BASH, which is always set by the calling BASH).
7418       if test "xFILE" != xBASH; then
7419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7420 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7421       fi
7422       # Try to locate tool using the code snippet
7423       for ac_prog in file
7424 do
7425   # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_path_FILE+:} false; then :
7430   $as_echo_n "(cached) " >&6
7431 else
7432   case $FILE in
7433   [\\/]* | ?:[\\/]*)
7434   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7435   ;;
7436   *)
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_exec_ext in '' $ac_executable_extensions; do
7443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449   done
7450 IFS=$as_save_IFS
7451 
7452   ;;
7453 esac
7454 fi
7455 FILE=$ac_cv_path_FILE
7456 if test -n "$FILE"; then
7457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7458 $as_echo "$FILE" >&6; }
7459 else
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463 
7464 
7465   test -n "$FILE" && break
7466 done
7467 
7468     else
7469       # If it succeeded, then it was overridden by the user. We will use it
7470       # for the tool.
7471 
7472       # First remove it from the list of overridden variables, so we can test
7473       # for unknown variables in the end.
7474       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7475 
7476       # Check if we try to supply an empty value
7477       if test "x$FILE" = x; then
7478         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7479 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7480         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7481 $as_echo_n "checking for FILE... " >&6; }
7482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7483 $as_echo "disabled" >&6; }
7484       else
7485         # Check if the provided tool contains a complete path.
7486         tool_specified="$FILE"
7487         tool_basename="${tool_specified##*/}"
7488         if test "x$tool_basename" = "x$tool_specified"; then
7489           # A command without a complete path is provided, search $PATH.
7490           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7491 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7492           # Extract the first word of "$tool_basename", so it can be a program name with args.
7493 set dummy $tool_basename; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_path_FILE+:} false; then :
7497   $as_echo_n "(cached) " >&6
7498 else
7499   case $FILE in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518 
7519   ;;
7520 esac
7521 fi
7522 FILE=$ac_cv_path_FILE
7523 if test -n "$FILE"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7525 $as_echo "$FILE" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530 
7531 
7532           if test "x$FILE" = x; then
7533             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7534           fi
7535         else
7536           # Otherwise we believe it is a complete path. Use it as it is.
7537           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7538 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7539           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7540 $as_echo_n "checking for FILE... " >&6; }
7541           if test ! -x "$tool_specified"; then
7542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7543 $as_echo "not found" >&6; }
7544             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7545           fi
7546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7547 $as_echo "$tool_specified" >&6; }
7548         fi
7549       fi
7550     fi
7551 
7552   fi
7553 
7554 
7555 
7556   if test "x$FILE" = x; then
7557     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7558   fi
7559 
7560 
7561 
7562 
7563 
7564   # Publish this variable in the help.
7565 
7566 
7567   if [ -z "${FIND+x}" ]; then
7568     # The variable is not set by user, try to locate tool using the code snippet
7569     for ac_prog in find
7570 do
7571   # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_path_FIND+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   case $FIND in
7579   [\\/]* | ?:[\\/]*)
7580   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7581   ;;
7582   *)
7583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597 
7598   ;;
7599 esac
7600 fi
7601 FIND=$ac_cv_path_FIND
7602 if test -n "$FIND"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7604 $as_echo "$FIND" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609 
7610 
7611   test -n "$FIND" && break
7612 done
7613 
7614   else
7615     # The variable is set, but is it from the command line or the environment?
7616 
7617     # Try to remove the string !FIND! from our list.
7618     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7619     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7620       # If it failed, the variable was not from the command line. Ignore it,
7621       # but warn the user (except for BASH, which is always set by the calling BASH).
7622       if test "xFIND" != xBASH; then
7623         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7624 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7625       fi
7626       # Try to locate tool using the code snippet
7627       for ac_prog in find
7628 do
7629   # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy $ac_prog; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_path_FIND+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   case $FIND in
7637   [\\/]* | ?:[\\/]*)
7638   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7639   ;;
7640   *)
7641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655 
7656   ;;
7657 esac
7658 fi
7659 FIND=$ac_cv_path_FIND
7660 if test -n "$FIND"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7662 $as_echo "$FIND" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667 
7668 
7669   test -n "$FIND" && break
7670 done
7671 
7672     else
7673       # If it succeeded, then it was overridden by the user. We will use it
7674       # for the tool.
7675 
7676       # First remove it from the list of overridden variables, so we can test
7677       # for unknown variables in the end.
7678       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7679 
7680       # Check if we try to supply an empty value
7681       if test "x$FIND" = x; then
7682         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7683 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7685 $as_echo_n "checking for FIND... " >&6; }
7686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7687 $as_echo "disabled" >&6; }
7688       else
7689         # Check if the provided tool contains a complete path.
7690         tool_specified="$FIND"
7691         tool_basename="${tool_specified##*/}"
7692         if test "x$tool_basename" = "x$tool_specified"; then
7693           # A command without a complete path is provided, search $PATH.
7694           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7695 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7696           # Extract the first word of "$tool_basename", so it can be a program name with args.
7697 set dummy $tool_basename; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_path_FIND+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703   case $FIND in
7704   [\\/]* | ?:[\\/]*)
7705   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7706   ;;
7707   *)
7708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722 
7723   ;;
7724 esac
7725 fi
7726 FIND=$ac_cv_path_FIND
7727 if test -n "$FIND"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7729 $as_echo "$FIND" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734 
7735 
7736           if test "x$FIND" = x; then
7737             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7738           fi
7739         else
7740           # Otherwise we believe it is a complete path. Use it as it is.
7741           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7742 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7744 $as_echo_n "checking for FIND... " >&6; }
7745           if test ! -x "$tool_specified"; then
7746             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7747 $as_echo "not found" >&6; }
7748             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7749           fi
7750           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7751 $as_echo "$tool_specified" >&6; }
7752         fi
7753       fi
7754     fi
7755 
7756   fi
7757 
7758 
7759 
7760   if test "x$FIND" = x; then
7761     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7762   fi
7763 
7764 
7765 
7766 
7767 
7768   # Publish this variable in the help.
7769 
7770 
7771   if [ -z "${HEAD+x}" ]; then
7772     # The variable is not set by user, try to locate tool using the code snippet
7773     for ac_prog in head
7774 do
7775   # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_path_HEAD+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   case $HEAD in
7783   [\\/]* | ?:[\\/]*)
7784   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7785   ;;
7786   *)
7787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801 
7802   ;;
7803 esac
7804 fi
7805 HEAD=$ac_cv_path_HEAD
7806 if test -n "$HEAD"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7808 $as_echo "$HEAD" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813 
7814 
7815   test -n "$HEAD" && break
7816 done
7817 
7818   else
7819     # The variable is set, but is it from the command line or the environment?
7820 
7821     # Try to remove the string !HEAD! from our list.
7822     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7823     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7824       # If it failed, the variable was not from the command line. Ignore it,
7825       # but warn the user (except for BASH, which is always set by the calling BASH).
7826       if test "xHEAD" != xBASH; then
7827         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7828 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7829       fi
7830       # Try to locate tool using the code snippet
7831       for ac_prog in head
7832 do
7833   # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy $ac_prog; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_HEAD+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   case $HEAD in
7841   [\\/]* | ?:[\\/]*)
7842   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7843   ;;
7844   *)
7845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859 
7860   ;;
7861 esac
7862 fi
7863 HEAD=$ac_cv_path_HEAD
7864 if test -n "$HEAD"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7866 $as_echo "$HEAD" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871 
7872 
7873   test -n "$HEAD" && break
7874 done
7875 
7876     else
7877       # If it succeeded, then it was overridden by the user. We will use it
7878       # for the tool.
7879 
7880       # First remove it from the list of overridden variables, so we can test
7881       # for unknown variables in the end.
7882       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7883 
7884       # Check if we try to supply an empty value
7885       if test "x$HEAD" = x; then
7886         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7887 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7889 $as_echo_n "checking for HEAD... " >&6; }
7890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7891 $as_echo "disabled" >&6; }
7892       else
7893         # Check if the provided tool contains a complete path.
7894         tool_specified="$HEAD"
7895         tool_basename="${tool_specified##*/}"
7896         if test "x$tool_basename" = "x$tool_specified"; then
7897           # A command without a complete path is provided, search $PATH.
7898           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7899 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7900           # Extract the first word of "$tool_basename", so it can be a program name with args.
7901 set dummy $tool_basename; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_path_HEAD+:} false; then :
7905   $as_echo_n "(cached) " >&6
7906 else
7907   case $HEAD in
7908   [\\/]* | ?:[\\/]*)
7909   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7910   ;;
7911   *)
7912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915   IFS=$as_save_IFS
7916   test -z "$as_dir" && as_dir=.
7917     for ac_exec_ext in '' $ac_executable_extensions; do
7918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921     break 2
7922   fi
7923 done
7924   done
7925 IFS=$as_save_IFS
7926 
7927   ;;
7928 esac
7929 fi
7930 HEAD=$ac_cv_path_HEAD
7931 if test -n "$HEAD"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7933 $as_echo "$HEAD" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938 
7939 
7940           if test "x$HEAD" = x; then
7941             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7942           fi
7943         else
7944           # Otherwise we believe it is a complete path. Use it as it is.
7945           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7946 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7947           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7948 $as_echo_n "checking for HEAD... " >&6; }
7949           if test ! -x "$tool_specified"; then
7950             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7951 $as_echo "not found" >&6; }
7952             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7953           fi
7954           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7955 $as_echo "$tool_specified" >&6; }
7956         fi
7957       fi
7958     fi
7959 
7960   fi
7961 
7962 
7963 
7964   if test "x$HEAD" = x; then
7965     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7966   fi
7967 
7968 
7969 
7970 
7971 
7972   # Publish this variable in the help.
7973 
7974 
7975   if [ -z "${LN+x}" ]; then
7976     # The variable is not set by user, try to locate tool using the code snippet
7977     for ac_prog in ln
7978 do
7979   # Extract the first word of "$ac_prog", so it can be a program name with args.
7980 set dummy $ac_prog; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_path_LN+:} false; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   case $LN in
7987   [\\/]* | ?:[\\/]*)
7988   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7989   ;;
7990   *)
7991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005 
8006   ;;
8007 esac
8008 fi
8009 LN=$ac_cv_path_LN
8010 if test -n "$LN"; then
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8012 $as_echo "$LN" >&6; }
8013 else
8014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017 
8018 
8019   test -n "$LN" && break
8020 done
8021 
8022   else
8023     # The variable is set, but is it from the command line or the environment?
8024 
8025     # Try to remove the string !LN! from our list.
8026     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8027     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8028       # If it failed, the variable was not from the command line. Ignore it,
8029       # but warn the user (except for BASH, which is always set by the calling BASH).
8030       if test "xLN" != xBASH; then
8031         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8032 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8033       fi
8034       # Try to locate tool using the code snippet
8035       for ac_prog in ln
8036 do
8037   # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_path_LN+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   case $LN in
8045   [\\/]* | ?:[\\/]*)
8046   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8047   ;;
8048   *)
8049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8051 do
8052   IFS=$as_save_IFS
8053   test -z "$as_dir" && as_dir=.
8054     for ac_exec_ext in '' $ac_executable_extensions; do
8055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8056     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058     break 2
8059   fi
8060 done
8061   done
8062 IFS=$as_save_IFS
8063 
8064   ;;
8065 esac
8066 fi
8067 LN=$ac_cv_path_LN
8068 if test -n "$LN"; then
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8070 $as_echo "$LN" >&6; }
8071 else
8072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075 
8076 
8077   test -n "$LN" && break
8078 done
8079 
8080     else
8081       # If it succeeded, then it was overridden by the user. We will use it
8082       # for the tool.
8083 
8084       # First remove it from the list of overridden variables, so we can test
8085       # for unknown variables in the end.
8086       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8087 
8088       # Check if we try to supply an empty value
8089       if test "x$LN" = x; then
8090         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8091 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8093 $as_echo_n "checking for LN... " >&6; }
8094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8095 $as_echo "disabled" >&6; }
8096       else
8097         # Check if the provided tool contains a complete path.
8098         tool_specified="$LN"
8099         tool_basename="${tool_specified##*/}"
8100         if test "x$tool_basename" = "x$tool_specified"; then
8101           # A command without a complete path is provided, search $PATH.
8102           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8103 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8104           # Extract the first word of "$tool_basename", so it can be a program name with args.
8105 set dummy $tool_basename; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_path_LN+:} false; then :
8109   $as_echo_n "(cached) " >&6
8110 else
8111   case $LN in
8112   [\\/]* | ?:[\\/]*)
8113   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8114   ;;
8115   *)
8116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119   IFS=$as_save_IFS
8120   test -z "$as_dir" && as_dir=.
8121     for ac_exec_ext in '' $ac_executable_extensions; do
8122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125     break 2
8126   fi
8127 done
8128   done
8129 IFS=$as_save_IFS
8130 
8131   ;;
8132 esac
8133 fi
8134 LN=$ac_cv_path_LN
8135 if test -n "$LN"; then
8136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8137 $as_echo "$LN" >&6; }
8138 else
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142 
8143 
8144           if test "x$LN" = x; then
8145             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8146           fi
8147         else
8148           # Otherwise we believe it is a complete path. Use it as it is.
8149           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8150 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8151           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8152 $as_echo_n "checking for LN... " >&6; }
8153           if test ! -x "$tool_specified"; then
8154             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8155 $as_echo "not found" >&6; }
8156             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8157           fi
8158           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8159 $as_echo "$tool_specified" >&6; }
8160         fi
8161       fi
8162     fi
8163 
8164   fi
8165 
8166 
8167 
8168   if test "x$LN" = x; then
8169     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8170   fi
8171 
8172 
8173 
8174 
8175 
8176   # Publish this variable in the help.
8177 
8178 
8179   if [ -z "${LS+x}" ]; then
8180     # The variable is not set by user, try to locate tool using the code snippet
8181     for ac_prog in ls
8182 do
8183   # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_path_LS+:} false; then :
8188   $as_echo_n "(cached) " >&6
8189 else
8190   case $LS in
8191   [\\/]* | ?:[\\/]*)
8192   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8193   ;;
8194   *)
8195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200     for ac_exec_ext in '' $ac_executable_extensions; do
8201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207   done
8208 IFS=$as_save_IFS
8209 
8210   ;;
8211 esac
8212 fi
8213 LS=$ac_cv_path_LS
8214 if test -n "$LS"; then
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8216 $as_echo "$LS" >&6; }
8217 else
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }
8220 fi
8221 
8222 
8223   test -n "$LS" && break
8224 done
8225 
8226   else
8227     # The variable is set, but is it from the command line or the environment?
8228 
8229     # Try to remove the string !LS! from our list.
8230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8232       # If it failed, the variable was not from the command line. Ignore it,
8233       # but warn the user (except for BASH, which is always set by the calling BASH).
8234       if test "xLS" != xBASH; then
8235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8236 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8237       fi
8238       # Try to locate tool using the code snippet
8239       for ac_prog in ls
8240 do
8241   # Extract the first word of "$ac_prog", so it can be a program name with args.
8242 set dummy $ac_prog; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_path_LS+:} false; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   case $LS in
8249   [\\/]* | ?:[\\/]*)
8250   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8251   ;;
8252   *)
8253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267 
8268   ;;
8269 esac
8270 fi
8271 LS=$ac_cv_path_LS
8272 if test -n "$LS"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8274 $as_echo "$LS" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279 
8280 
8281   test -n "$LS" && break
8282 done
8283 
8284     else
8285       # If it succeeded, then it was overridden by the user. We will use it
8286       # for the tool.
8287 
8288       # First remove it from the list of overridden variables, so we can test
8289       # for unknown variables in the end.
8290       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8291 
8292       # Check if we try to supply an empty value
8293       if test "x$LS" = x; then
8294         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8295 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8297 $as_echo_n "checking for LS... " >&6; }
8298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8299 $as_echo "disabled" >&6; }
8300       else
8301         # Check if the provided tool contains a complete path.
8302         tool_specified="$LS"
8303         tool_basename="${tool_specified##*/}"
8304         if test "x$tool_basename" = "x$tool_specified"; then
8305           # A command without a complete path is provided, search $PATH.
8306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8307 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8308           # Extract the first word of "$tool_basename", so it can be a program name with args.
8309 set dummy $tool_basename; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_path_LS+:} false; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   case $LS in
8316   [\\/]* | ?:[\\/]*)
8317   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8318   ;;
8319   *)
8320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323   IFS=$as_save_IFS
8324   test -z "$as_dir" && as_dir=.
8325     for ac_exec_ext in '' $ac_executable_extensions; do
8326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329     break 2
8330   fi
8331 done
8332   done
8333 IFS=$as_save_IFS
8334 
8335   ;;
8336 esac
8337 fi
8338 LS=$ac_cv_path_LS
8339 if test -n "$LS"; then
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8341 $as_echo "$LS" >&6; }
8342 else
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346 
8347 
8348           if test "x$LS" = x; then
8349             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8350           fi
8351         else
8352           # Otherwise we believe it is a complete path. Use it as it is.
8353           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8354 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8355           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8356 $as_echo_n "checking for LS... " >&6; }
8357           if test ! -x "$tool_specified"; then
8358             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8359 $as_echo "not found" >&6; }
8360             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8361           fi
8362           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8363 $as_echo "$tool_specified" >&6; }
8364         fi
8365       fi
8366     fi
8367 
8368   fi
8369 
8370 
8371 
8372   if test "x$LS" = x; then
8373     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8374   fi
8375 
8376 
8377 
8378 
8379 
8380   # Publish this variable in the help.
8381 
8382 
8383   if [ -z "${MKDIR+x}" ]; then
8384     # The variable is not set by user, try to locate tool using the code snippet
8385     for ac_prog in mkdir
8386 do
8387   # Extract the first word of "$ac_prog", so it can be a program name with args.
8388 set dummy $ac_prog; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_path_MKDIR+:} false; then :
8392   $as_echo_n "(cached) " >&6
8393 else
8394   case $MKDIR in
8395   [\\/]* | ?:[\\/]*)
8396   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8397   ;;
8398   *)
8399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404     for ac_exec_ext in '' $ac_executable_extensions; do
8405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411   done
8412 IFS=$as_save_IFS
8413 
8414   ;;
8415 esac
8416 fi
8417 MKDIR=$ac_cv_path_MKDIR
8418 if test -n "$MKDIR"; then
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8420 $as_echo "$MKDIR" >&6; }
8421 else
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8424 fi
8425 
8426 
8427   test -n "$MKDIR" && break
8428 done
8429 
8430   else
8431     # The variable is set, but is it from the command line or the environment?
8432 
8433     # Try to remove the string !MKDIR! from our list.
8434     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8435     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8436       # If it failed, the variable was not from the command line. Ignore it,
8437       # but warn the user (except for BASH, which is always set by the calling BASH).
8438       if test "xMKDIR" != xBASH; then
8439         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8440 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8441       fi
8442       # Try to locate tool using the code snippet
8443       for ac_prog in mkdir
8444 do
8445   # Extract the first word of "$ac_prog", so it can be a program name with args.
8446 set dummy $ac_prog; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_path_MKDIR+:} false; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   case $MKDIR in
8453   [\\/]* | ?:[\\/]*)
8454   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8455   ;;
8456   *)
8457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462     for ac_exec_ext in '' $ac_executable_extensions; do
8463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469   done
8470 IFS=$as_save_IFS
8471 
8472   ;;
8473 esac
8474 fi
8475 MKDIR=$ac_cv_path_MKDIR
8476 if test -n "$MKDIR"; then
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8478 $as_echo "$MKDIR" >&6; }
8479 else
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483 
8484 
8485   test -n "$MKDIR" && break
8486 done
8487 
8488     else
8489       # If it succeeded, then it was overridden by the user. We will use it
8490       # for the tool.
8491 
8492       # First remove it from the list of overridden variables, so we can test
8493       # for unknown variables in the end.
8494       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8495 
8496       # Check if we try to supply an empty value
8497       if test "x$MKDIR" = x; then
8498         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8499 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8500         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8501 $as_echo_n "checking for MKDIR... " >&6; }
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8503 $as_echo "disabled" >&6; }
8504       else
8505         # Check if the provided tool contains a complete path.
8506         tool_specified="$MKDIR"
8507         tool_basename="${tool_specified##*/}"
8508         if test "x$tool_basename" = "x$tool_specified"; then
8509           # A command without a complete path is provided, search $PATH.
8510           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8511 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8512           # Extract the first word of "$tool_basename", so it can be a program name with args.
8513 set dummy $tool_basename; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_path_MKDIR+:} false; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   case $MKDIR in
8520   [\\/]* | ?:[\\/]*)
8521   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8522   ;;
8523   *)
8524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8526 do
8527   IFS=$as_save_IFS
8528   test -z "$as_dir" && as_dir=.
8529     for ac_exec_ext in '' $ac_executable_extensions; do
8530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533     break 2
8534   fi
8535 done
8536   done
8537 IFS=$as_save_IFS
8538 
8539   ;;
8540 esac
8541 fi
8542 MKDIR=$ac_cv_path_MKDIR
8543 if test -n "$MKDIR"; then
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8545 $as_echo "$MKDIR" >&6; }
8546 else
8547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550 
8551 
8552           if test "x$MKDIR" = x; then
8553             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8554           fi
8555         else
8556           # Otherwise we believe it is a complete path. Use it as it is.
8557           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8558 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8559           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8560 $as_echo_n "checking for MKDIR... " >&6; }
8561           if test ! -x "$tool_specified"; then
8562             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8563 $as_echo "not found" >&6; }
8564             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8565           fi
8566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8567 $as_echo "$tool_specified" >&6; }
8568         fi
8569       fi
8570     fi
8571 
8572   fi
8573 
8574 
8575 
8576   if test "x$MKDIR" = x; then
8577     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8578   fi
8579 
8580 
8581 
8582 
8583 
8584   # Publish this variable in the help.
8585 
8586 
8587   if [ -z "${MKTEMP+x}" ]; then
8588     # The variable is not set by user, try to locate tool using the code snippet
8589     for ac_prog in mktemp
8590 do
8591   # Extract the first word of "$ac_prog", so it can be a program name with args.
8592 set dummy $ac_prog; ac_word=$2
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594 $as_echo_n "checking for $ac_word... " >&6; }
8595 if ${ac_cv_path_MKTEMP+:} false; then :
8596   $as_echo_n "(cached) " >&6
8597 else
8598   case $MKTEMP in
8599   [\\/]* | ?:[\\/]*)
8600   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8601   ;;
8602   *)
8603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606   IFS=$as_save_IFS
8607   test -z "$as_dir" && as_dir=.
8608     for ac_exec_ext in '' $ac_executable_extensions; do
8609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8610     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612     break 2
8613   fi
8614 done
8615   done
8616 IFS=$as_save_IFS
8617 
8618   ;;
8619 esac
8620 fi
8621 MKTEMP=$ac_cv_path_MKTEMP
8622 if test -n "$MKTEMP"; then
8623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8624 $as_echo "$MKTEMP" >&6; }
8625 else
8626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629 
8630 
8631   test -n "$MKTEMP" && break
8632 done
8633 
8634   else
8635     # The variable is set, but is it from the command line or the environment?
8636 
8637     # Try to remove the string !MKTEMP! from our list.
8638     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8639     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8640       # If it failed, the variable was not from the command line. Ignore it,
8641       # but warn the user (except for BASH, which is always set by the calling BASH).
8642       if test "xMKTEMP" != xBASH; then
8643         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8644 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8645       fi
8646       # Try to locate tool using the code snippet
8647       for ac_prog in mktemp
8648 do
8649   # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_path_MKTEMP+:} false; then :
8654   $as_echo_n "(cached) " >&6
8655 else
8656   case $MKTEMP in
8657   [\\/]* | ?:[\\/]*)
8658   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8659   ;;
8660   *)
8661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 for as_dir in $PATH
8663 do
8664   IFS=$as_save_IFS
8665   test -z "$as_dir" && as_dir=.
8666     for ac_exec_ext in '' $ac_executable_extensions; do
8667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8668     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670     break 2
8671   fi
8672 done
8673   done
8674 IFS=$as_save_IFS
8675 
8676   ;;
8677 esac
8678 fi
8679 MKTEMP=$ac_cv_path_MKTEMP
8680 if test -n "$MKTEMP"; then
8681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8682 $as_echo "$MKTEMP" >&6; }
8683 else
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8686 fi
8687 
8688 
8689   test -n "$MKTEMP" && break
8690 done
8691 
8692     else
8693       # If it succeeded, then it was overridden by the user. We will use it
8694       # for the tool.
8695 
8696       # First remove it from the list of overridden variables, so we can test
8697       # for unknown variables in the end.
8698       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8699 
8700       # Check if we try to supply an empty value
8701       if test "x$MKTEMP" = x; then
8702         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8703 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8705 $as_echo_n "checking for MKTEMP... " >&6; }
8706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8707 $as_echo "disabled" >&6; }
8708       else
8709         # Check if the provided tool contains a complete path.
8710         tool_specified="$MKTEMP"
8711         tool_basename="${tool_specified##*/}"
8712         if test "x$tool_basename" = "x$tool_specified"; then
8713           # A command without a complete path is provided, search $PATH.
8714           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8715 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8716           # Extract the first word of "$tool_basename", so it can be a program name with args.
8717 set dummy $tool_basename; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_path_MKTEMP+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   case $MKTEMP in
8724   [\\/]* | ?:[\\/]*)
8725   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8726   ;;
8727   *)
8728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8730 do
8731   IFS=$as_save_IFS
8732   test -z "$as_dir" && as_dir=.
8733     for ac_exec_ext in '' $ac_executable_extensions; do
8734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737     break 2
8738   fi
8739 done
8740   done
8741 IFS=$as_save_IFS
8742 
8743   ;;
8744 esac
8745 fi
8746 MKTEMP=$ac_cv_path_MKTEMP
8747 if test -n "$MKTEMP"; then
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8749 $as_echo "$MKTEMP" >&6; }
8750 else
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8753 fi
8754 
8755 
8756           if test "x$MKTEMP" = x; then
8757             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8758           fi
8759         else
8760           # Otherwise we believe it is a complete path. Use it as it is.
8761           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8762 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8764 $as_echo_n "checking for MKTEMP... " >&6; }
8765           if test ! -x "$tool_specified"; then
8766             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8767 $as_echo "not found" >&6; }
8768             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8769           fi
8770           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8771 $as_echo "$tool_specified" >&6; }
8772         fi
8773       fi
8774     fi
8775 
8776   fi
8777 
8778 
8779 
8780   if test "x$MKTEMP" = x; then
8781     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8782   fi
8783 
8784 
8785 
8786 
8787 
8788   # Publish this variable in the help.
8789 
8790 
8791   if [ -z "${MV+x}" ]; then
8792     # The variable is not set by user, try to locate tool using the code snippet
8793     for ac_prog in mv
8794 do
8795   # Extract the first word of "$ac_prog", so it can be a program name with args.
8796 set dummy $ac_prog; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_path_MV+:} false; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   case $MV in
8803   [\\/]* | ?:[\\/]*)
8804   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8805   ;;
8806   *)
8807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810   IFS=$as_save_IFS
8811   test -z "$as_dir" && as_dir=.
8812     for ac_exec_ext in '' $ac_executable_extensions; do
8813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8814     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816     break 2
8817   fi
8818 done
8819   done
8820 IFS=$as_save_IFS
8821 
8822   ;;
8823 esac
8824 fi
8825 MV=$ac_cv_path_MV
8826 if test -n "$MV"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8828 $as_echo "$MV" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833 
8834 
8835   test -n "$MV" && break
8836 done
8837 
8838   else
8839     # The variable is set, but is it from the command line or the environment?
8840 
8841     # Try to remove the string !MV! from our list.
8842     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8843     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8844       # If it failed, the variable was not from the command line. Ignore it,
8845       # but warn the user (except for BASH, which is always set by the calling BASH).
8846       if test "xMV" != xBASH; then
8847         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8848 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8849       fi
8850       # Try to locate tool using the code snippet
8851       for ac_prog in mv
8852 do
8853   # Extract the first word of "$ac_prog", so it can be a program name with args.
8854 set dummy $ac_prog; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_path_MV+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   case $MV in
8861   [\\/]* | ?:[\\/]*)
8862   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8863   ;;
8864   *)
8865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868   IFS=$as_save_IFS
8869   test -z "$as_dir" && as_dir=.
8870     for ac_exec_ext in '' $ac_executable_extensions; do
8871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874     break 2
8875   fi
8876 done
8877   done
8878 IFS=$as_save_IFS
8879 
8880   ;;
8881 esac
8882 fi
8883 MV=$ac_cv_path_MV
8884 if test -n "$MV"; then
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8886 $as_echo "$MV" >&6; }
8887 else
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891 
8892 
8893   test -n "$MV" && break
8894 done
8895 
8896     else
8897       # If it succeeded, then it was overridden by the user. We will use it
8898       # for the tool.
8899 
8900       # First remove it from the list of overridden variables, so we can test
8901       # for unknown variables in the end.
8902       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8903 
8904       # Check if we try to supply an empty value
8905       if test "x$MV" = x; then
8906         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8907 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8909 $as_echo_n "checking for MV... " >&6; }
8910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8911 $as_echo "disabled" >&6; }
8912       else
8913         # Check if the provided tool contains a complete path.
8914         tool_specified="$MV"
8915         tool_basename="${tool_specified##*/}"
8916         if test "x$tool_basename" = "x$tool_specified"; then
8917           # A command without a complete path is provided, search $PATH.
8918           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8919 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8920           # Extract the first word of "$tool_basename", so it can be a program name with args.
8921 set dummy $tool_basename; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if ${ac_cv_path_MV+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   case $MV in
8928   [\\/]* | ?:[\\/]*)
8929   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8930   ;;
8931   *)
8932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8934 do
8935   IFS=$as_save_IFS
8936   test -z "$as_dir" && as_dir=.
8937     for ac_exec_ext in '' $ac_executable_extensions; do
8938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941     break 2
8942   fi
8943 done
8944   done
8945 IFS=$as_save_IFS
8946 
8947   ;;
8948 esac
8949 fi
8950 MV=$ac_cv_path_MV
8951 if test -n "$MV"; then
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8953 $as_echo "$MV" >&6; }
8954 else
8955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8957 fi
8958 
8959 
8960           if test "x$MV" = x; then
8961             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8962           fi
8963         else
8964           # Otherwise we believe it is a complete path. Use it as it is.
8965           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8966 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8967           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8968 $as_echo_n "checking for MV... " >&6; }
8969           if test ! -x "$tool_specified"; then
8970             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8971 $as_echo "not found" >&6; }
8972             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8973           fi
8974           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8975 $as_echo "$tool_specified" >&6; }
8976         fi
8977       fi
8978     fi
8979 
8980   fi
8981 
8982 
8983 
8984   if test "x$MV" = x; then
8985     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8986   fi
8987 
8988 
8989 
8990 
8991 
8992   # Publish this variable in the help.
8993 
8994 
8995   if [ -z "${NAWK+x}" ]; then
8996     # The variable is not set by user, try to locate tool using the code snippet
8997     for ac_prog in nawk gawk awk
8998 do
8999   # Extract the first word of "$ac_prog", so it can be a program name with args.
9000 set dummy $ac_prog; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_path_NAWK+:} false; then :
9004   $as_echo_n "(cached) " >&6
9005 else
9006   case $NAWK in
9007   [\\/]* | ?:[\\/]*)
9008   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9009   ;;
9010   *)
9011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9013 do
9014   IFS=$as_save_IFS
9015   test -z "$as_dir" && as_dir=.
9016     for ac_exec_ext in '' $ac_executable_extensions; do
9017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020     break 2
9021   fi
9022 done
9023   done
9024 IFS=$as_save_IFS
9025 
9026   ;;
9027 esac
9028 fi
9029 NAWK=$ac_cv_path_NAWK
9030 if test -n "$NAWK"; then
9031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9032 $as_echo "$NAWK" >&6; }
9033 else
9034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9036 fi
9037 
9038 
9039   test -n "$NAWK" && break
9040 done
9041 
9042   else
9043     # The variable is set, but is it from the command line or the environment?
9044 
9045     # Try to remove the string !NAWK! from our list.
9046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9048       # If it failed, the variable was not from the command line. Ignore it,
9049       # but warn the user (except for BASH, which is always set by the calling BASH).
9050       if test "xNAWK" != xBASH; then
9051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9052 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9053       fi
9054       # Try to locate tool using the code snippet
9055       for ac_prog in nawk gawk awk
9056 do
9057   # Extract the first word of "$ac_prog", so it can be a program name with args.
9058 set dummy $ac_prog; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if ${ac_cv_path_NAWK+:} false; then :
9062   $as_echo_n "(cached) " >&6
9063 else
9064   case $NAWK in
9065   [\\/]* | ?:[\\/]*)
9066   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9067   ;;
9068   *)
9069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9071 do
9072   IFS=$as_save_IFS
9073   test -z "$as_dir" && as_dir=.
9074     for ac_exec_ext in '' $ac_executable_extensions; do
9075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9076     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078     break 2
9079   fi
9080 done
9081   done
9082 IFS=$as_save_IFS
9083 
9084   ;;
9085 esac
9086 fi
9087 NAWK=$ac_cv_path_NAWK
9088 if test -n "$NAWK"; then
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9090 $as_echo "$NAWK" >&6; }
9091 else
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9094 fi
9095 
9096 
9097   test -n "$NAWK" && break
9098 done
9099 
9100     else
9101       # If it succeeded, then it was overridden by the user. We will use it
9102       # for the tool.
9103 
9104       # First remove it from the list of overridden variables, so we can test
9105       # for unknown variables in the end.
9106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9107 
9108       # Check if we try to supply an empty value
9109       if test "x$NAWK" = x; then
9110         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9111 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9113 $as_echo_n "checking for NAWK... " >&6; }
9114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9115 $as_echo "disabled" >&6; }
9116       else
9117         # Check if the provided tool contains a complete path.
9118         tool_specified="$NAWK"
9119         tool_basename="${tool_specified##*/}"
9120         if test "x$tool_basename" = "x$tool_specified"; then
9121           # A command without a complete path is provided, search $PATH.
9122           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9123 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9124           # Extract the first word of "$tool_basename", so it can be a program name with args.
9125 set dummy $tool_basename; ac_word=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if ${ac_cv_path_NAWK+:} false; then :
9129   $as_echo_n "(cached) " >&6
9130 else
9131   case $NAWK in
9132   [\\/]* | ?:[\\/]*)
9133   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9134   ;;
9135   *)
9136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137 for as_dir in $PATH
9138 do
9139   IFS=$as_save_IFS
9140   test -z "$as_dir" && as_dir=.
9141     for ac_exec_ext in '' $ac_executable_extensions; do
9142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9143     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9145     break 2
9146   fi
9147 done
9148   done
9149 IFS=$as_save_IFS
9150 
9151   ;;
9152 esac
9153 fi
9154 NAWK=$ac_cv_path_NAWK
9155 if test -n "$NAWK"; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9157 $as_echo "$NAWK" >&6; }
9158 else
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162 
9163 
9164           if test "x$NAWK" = x; then
9165             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9166           fi
9167         else
9168           # Otherwise we believe it is a complete path. Use it as it is.
9169           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9170 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9171           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9172 $as_echo_n "checking for NAWK... " >&6; }
9173           if test ! -x "$tool_specified"; then
9174             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9175 $as_echo "not found" >&6; }
9176             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9177           fi
9178           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9179 $as_echo "$tool_specified" >&6; }
9180         fi
9181       fi
9182     fi
9183 
9184   fi
9185 
9186 
9187 
9188   if test "x$NAWK" = x; then
9189     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9190   fi
9191 
9192 
9193 
9194 
9195 
9196   # Publish this variable in the help.
9197 
9198 
9199   if [ -z "${PRINTF+x}" ]; then
9200     # The variable is not set by user, try to locate tool using the code snippet
9201     for ac_prog in printf
9202 do
9203   # Extract the first word of "$ac_prog", so it can be a program name with args.
9204 set dummy $ac_prog; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_path_PRINTF+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   case $PRINTF in
9211   [\\/]* | ?:[\\/]*)
9212   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9213   ;;
9214   *)
9215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9222     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229 
9230   ;;
9231 esac
9232 fi
9233 PRINTF=$ac_cv_path_PRINTF
9234 if test -n "$PRINTF"; then
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9236 $as_echo "$PRINTF" >&6; }
9237 else
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9240 fi
9241 
9242 
9243   test -n "$PRINTF" && break
9244 done
9245 
9246   else
9247     # The variable is set, but is it from the command line or the environment?
9248 
9249     # Try to remove the string !PRINTF! from our list.
9250     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9251     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9252       # If it failed, the variable was not from the command line. Ignore it,
9253       # but warn the user (except for BASH, which is always set by the calling BASH).
9254       if test "xPRINTF" != xBASH; then
9255         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9256 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9257       fi
9258       # Try to locate tool using the code snippet
9259       for ac_prog in printf
9260 do
9261   # Extract the first word of "$ac_prog", so it can be a program name with args.
9262 set dummy $ac_prog; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_PRINTF+:} false; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   case $PRINTF in
9269   [\\/]* | ?:[\\/]*)
9270   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9271   ;;
9272   *)
9273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287 
9288   ;;
9289 esac
9290 fi
9291 PRINTF=$ac_cv_path_PRINTF
9292 if test -n "$PRINTF"; then
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9294 $as_echo "$PRINTF" >&6; }
9295 else
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9298 fi
9299 
9300 
9301   test -n "$PRINTF" && break
9302 done
9303 
9304     else
9305       # If it succeeded, then it was overridden by the user. We will use it
9306       # for the tool.
9307 
9308       # First remove it from the list of overridden variables, so we can test
9309       # for unknown variables in the end.
9310       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9311 
9312       # Check if we try to supply an empty value
9313       if test "x$PRINTF" = x; then
9314         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9315 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9317 $as_echo_n "checking for PRINTF... " >&6; }
9318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9319 $as_echo "disabled" >&6; }
9320       else
9321         # Check if the provided tool contains a complete path.
9322         tool_specified="$PRINTF"
9323         tool_basename="${tool_specified##*/}"
9324         if test "x$tool_basename" = "x$tool_specified"; then
9325           # A command without a complete path is provided, search $PATH.
9326           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9327 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9328           # Extract the first word of "$tool_basename", so it can be a program name with args.
9329 set dummy $tool_basename; ac_word=$2
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9331 $as_echo_n "checking for $ac_word... " >&6; }
9332 if ${ac_cv_path_PRINTF+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   case $PRINTF in
9336   [\\/]* | ?:[\\/]*)
9337   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9338   ;;
9339   *)
9340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341 for as_dir in $PATH
9342 do
9343   IFS=$as_save_IFS
9344   test -z "$as_dir" && as_dir=.
9345     for ac_exec_ext in '' $ac_executable_extensions; do
9346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9347     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349     break 2
9350   fi
9351 done
9352   done
9353 IFS=$as_save_IFS
9354 
9355   ;;
9356 esac
9357 fi
9358 PRINTF=$ac_cv_path_PRINTF
9359 if test -n "$PRINTF"; then
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9361 $as_echo "$PRINTF" >&6; }
9362 else
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9365 fi
9366 
9367 
9368           if test "x$PRINTF" = x; then
9369             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9370           fi
9371         else
9372           # Otherwise we believe it is a complete path. Use it as it is.
9373           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9374 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9375           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9376 $as_echo_n "checking for PRINTF... " >&6; }
9377           if test ! -x "$tool_specified"; then
9378             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9379 $as_echo "not found" >&6; }
9380             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9381           fi
9382           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9383 $as_echo "$tool_specified" >&6; }
9384         fi
9385       fi
9386     fi
9387 
9388   fi
9389 
9390 
9391 
9392   if test "x$PRINTF" = x; then
9393     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9394   fi
9395 
9396 
9397 
9398 
9399 
9400   # Publish this variable in the help.
9401 
9402 
9403   if [ -z "${RM+x}" ]; then
9404     # The variable is not set by user, try to locate tool using the code snippet
9405     for ac_prog in rm
9406 do
9407   # Extract the first word of "$ac_prog", so it can be a program name with args.
9408 set dummy $ac_prog; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_path_RM+:} false; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   case $RM in
9415   [\\/]* | ?:[\\/]*)
9416   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9417   ;;
9418   *)
9419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9421 do
9422   IFS=$as_save_IFS
9423   test -z "$as_dir" && as_dir=.
9424     for ac_exec_ext in '' $ac_executable_extensions; do
9425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9426     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428     break 2
9429   fi
9430 done
9431   done
9432 IFS=$as_save_IFS
9433 
9434   ;;
9435 esac
9436 fi
9437 RM=$ac_cv_path_RM
9438 if test -n "$RM"; then
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9440 $as_echo "$RM" >&6; }
9441 else
9442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9444 fi
9445 
9446 
9447   test -n "$RM" && break
9448 done
9449 
9450   else
9451     # The variable is set, but is it from the command line or the environment?
9452 
9453     # Try to remove the string !RM! from our list.
9454     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9455     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9456       # If it failed, the variable was not from the command line. Ignore it,
9457       # but warn the user (except for BASH, which is always set by the calling BASH).
9458       if test "xRM" != xBASH; then
9459         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9460 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9461       fi
9462       # Try to locate tool using the code snippet
9463       for ac_prog in rm
9464 do
9465   # Extract the first word of "$ac_prog", so it can be a program name with args.
9466 set dummy $ac_prog; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if ${ac_cv_path_RM+:} false; then :
9470   $as_echo_n "(cached) " >&6
9471 else
9472   case $RM in
9473   [\\/]* | ?:[\\/]*)
9474   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9475   ;;
9476   *)
9477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9479 do
9480   IFS=$as_save_IFS
9481   test -z "$as_dir" && as_dir=.
9482     for ac_exec_ext in '' $ac_executable_extensions; do
9483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9484     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486     break 2
9487   fi
9488 done
9489   done
9490 IFS=$as_save_IFS
9491 
9492   ;;
9493 esac
9494 fi
9495 RM=$ac_cv_path_RM
9496 if test -n "$RM"; then
9497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9498 $as_echo "$RM" >&6; }
9499 else
9500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9502 fi
9503 
9504 
9505   test -n "$RM" && break
9506 done
9507 
9508     else
9509       # If it succeeded, then it was overridden by the user. We will use it
9510       # for the tool.
9511 
9512       # First remove it from the list of overridden variables, so we can test
9513       # for unknown variables in the end.
9514       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9515 
9516       # Check if we try to supply an empty value
9517       if test "x$RM" = x; then
9518         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9519 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9520         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9521 $as_echo_n "checking for RM... " >&6; }
9522         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9523 $as_echo "disabled" >&6; }
9524       else
9525         # Check if the provided tool contains a complete path.
9526         tool_specified="$RM"
9527         tool_basename="${tool_specified##*/}"
9528         if test "x$tool_basename" = "x$tool_specified"; then
9529           # A command without a complete path is provided, search $PATH.
9530           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9531 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9532           # Extract the first word of "$tool_basename", so it can be a program name with args.
9533 set dummy $tool_basename; ac_word=$2
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9535 $as_echo_n "checking for $ac_word... " >&6; }
9536 if ${ac_cv_path_RM+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   case $RM in
9540   [\\/]* | ?:[\\/]*)
9541   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9542   ;;
9543   *)
9544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545 for as_dir in $PATH
9546 do
9547   IFS=$as_save_IFS
9548   test -z "$as_dir" && as_dir=.
9549     for ac_exec_ext in '' $ac_executable_extensions; do
9550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553     break 2
9554   fi
9555 done
9556   done
9557 IFS=$as_save_IFS
9558 
9559   ;;
9560 esac
9561 fi
9562 RM=$ac_cv_path_RM
9563 if test -n "$RM"; then
9564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9565 $as_echo "$RM" >&6; }
9566 else
9567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568 $as_echo "no" >&6; }
9569 fi
9570 
9571 
9572           if test "x$RM" = x; then
9573             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9574           fi
9575         else
9576           # Otherwise we believe it is a complete path. Use it as it is.
9577           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9578 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9579           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9580 $as_echo_n "checking for RM... " >&6; }
9581           if test ! -x "$tool_specified"; then
9582             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9583 $as_echo "not found" >&6; }
9584             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9585           fi
9586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9587 $as_echo "$tool_specified" >&6; }
9588         fi
9589       fi
9590     fi
9591 
9592   fi
9593 
9594 
9595 
9596   if test "x$RM" = x; then
9597     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9598   fi
9599 
9600 
9601 
9602 
9603 
9604   # Publish this variable in the help.
9605 
9606 
9607   if [ -z "${RMDIR+x}" ]; then
9608     # The variable is not set by user, try to locate tool using the code snippet
9609     for ac_prog in rmdir
9610 do
9611   # Extract the first word of "$ac_prog", so it can be a program name with args.
9612 set dummy $ac_prog; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if ${ac_cv_path_RMDIR+:} false; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   case $RMDIR in
9619   [\\/]* | ?:[\\/]*)
9620   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9621   ;;
9622   *)
9623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 for as_dir in $PATH
9625 do
9626   IFS=$as_save_IFS
9627   test -z "$as_dir" && as_dir=.
9628     for ac_exec_ext in '' $ac_executable_extensions; do
9629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9630     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9632     break 2
9633   fi
9634 done
9635   done
9636 IFS=$as_save_IFS
9637 
9638   ;;
9639 esac
9640 fi
9641 RMDIR=$ac_cv_path_RMDIR
9642 if test -n "$RMDIR"; then
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9644 $as_echo "$RMDIR" >&6; }
9645 else
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9648 fi
9649 
9650 
9651   test -n "$RMDIR" && break
9652 done
9653 
9654   else
9655     # The variable is set, but is it from the command line or the environment?
9656 
9657     # Try to remove the string !RMDIR! from our list.
9658     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9659     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9660       # If it failed, the variable was not from the command line. Ignore it,
9661       # but warn the user (except for BASH, which is always set by the calling BASH).
9662       if test "xRMDIR" != xBASH; then
9663         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9664 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9665       fi
9666       # Try to locate tool using the code snippet
9667       for ac_prog in rmdir
9668 do
9669   # Extract the first word of "$ac_prog", so it can be a program name with args.
9670 set dummy $ac_prog; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_path_RMDIR+:} false; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   case $RMDIR in
9677   [\\/]* | ?:[\\/]*)
9678   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9679   ;;
9680   *)
9681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684   IFS=$as_save_IFS
9685   test -z "$as_dir" && as_dir=.
9686     for ac_exec_ext in '' $ac_executable_extensions; do
9687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690     break 2
9691   fi
9692 done
9693   done
9694 IFS=$as_save_IFS
9695 
9696   ;;
9697 esac
9698 fi
9699 RMDIR=$ac_cv_path_RMDIR
9700 if test -n "$RMDIR"; then
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9702 $as_echo "$RMDIR" >&6; }
9703 else
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9706 fi
9707 
9708 
9709   test -n "$RMDIR" && break
9710 done
9711 
9712     else
9713       # If it succeeded, then it was overridden by the user. We will use it
9714       # for the tool.
9715 
9716       # First remove it from the list of overridden variables, so we can test
9717       # for unknown variables in the end.
9718       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9719 
9720       # Check if we try to supply an empty value
9721       if test "x$RMDIR" = x; then
9722         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9723 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9725 $as_echo_n "checking for RMDIR... " >&6; }
9726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9727 $as_echo "disabled" >&6; }
9728       else
9729         # Check if the provided tool contains a complete path.
9730         tool_specified="$RMDIR"
9731         tool_basename="${tool_specified##*/}"
9732         if test "x$tool_basename" = "x$tool_specified"; then
9733           # A command without a complete path is provided, search $PATH.
9734           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9735 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9736           # Extract the first word of "$tool_basename", so it can be a program name with args.
9737 set dummy $tool_basename; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if ${ac_cv_path_RMDIR+:} false; then :
9741   $as_echo_n "(cached) " >&6
9742 else
9743   case $RMDIR in
9744   [\\/]* | ?:[\\/]*)
9745   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9746   ;;
9747   *)
9748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $PATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753     for ac_exec_ext in '' $ac_executable_extensions; do
9754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760   done
9761 IFS=$as_save_IFS
9762 
9763   ;;
9764 esac
9765 fi
9766 RMDIR=$ac_cv_path_RMDIR
9767 if test -n "$RMDIR"; then
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9769 $as_echo "$RMDIR" >&6; }
9770 else
9771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772 $as_echo "no" >&6; }
9773 fi
9774 
9775 
9776           if test "x$RMDIR" = x; then
9777             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9778           fi
9779         else
9780           # Otherwise we believe it is a complete path. Use it as it is.
9781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9782 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9783           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9784 $as_echo_n "checking for RMDIR... " >&6; }
9785           if test ! -x "$tool_specified"; then
9786             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9787 $as_echo "not found" >&6; }
9788             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9789           fi
9790           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9791 $as_echo "$tool_specified" >&6; }
9792         fi
9793       fi
9794     fi
9795 
9796   fi
9797 
9798 
9799 
9800   if test "x$RMDIR" = x; then
9801     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9802   fi
9803 
9804 
9805 
9806 
9807 
9808   # Publish this variable in the help.
9809 
9810 
9811   if [ -z "${SH+x}" ]; then
9812     # The variable is not set by user, try to locate tool using the code snippet
9813     for ac_prog in sh
9814 do
9815   # Extract the first word of "$ac_prog", so it can be a program name with args.
9816 set dummy $ac_prog; ac_word=$2
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818 $as_echo_n "checking for $ac_word... " >&6; }
9819 if ${ac_cv_path_SH+:} false; then :
9820   $as_echo_n "(cached) " >&6
9821 else
9822   case $SH in
9823   [\\/]* | ?:[\\/]*)
9824   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9825   ;;
9826   *)
9827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9829 do
9830   IFS=$as_save_IFS
9831   test -z "$as_dir" && as_dir=.
9832     for ac_exec_ext in '' $ac_executable_extensions; do
9833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9834     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836     break 2
9837   fi
9838 done
9839   done
9840 IFS=$as_save_IFS
9841 
9842   ;;
9843 esac
9844 fi
9845 SH=$ac_cv_path_SH
9846 if test -n "$SH"; then
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9848 $as_echo "$SH" >&6; }
9849 else
9850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9852 fi
9853 
9854 
9855   test -n "$SH" && break
9856 done
9857 
9858   else
9859     # The variable is set, but is it from the command line or the environment?
9860 
9861     # Try to remove the string !SH! from our list.
9862     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9863     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9864       # If it failed, the variable was not from the command line. Ignore it,
9865       # but warn the user (except for BASH, which is always set by the calling BASH).
9866       if test "xSH" != xBASH; then
9867         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9868 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9869       fi
9870       # Try to locate tool using the code snippet
9871       for ac_prog in sh
9872 do
9873   # Extract the first word of "$ac_prog", so it can be a program name with args.
9874 set dummy $ac_prog; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_path_SH+:} false; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   case $SH in
9881   [\\/]* | ?:[\\/]*)
9882   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9883   ;;
9884   *)
9885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890     for ac_exec_ext in '' $ac_executable_extensions; do
9891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894     break 2
9895   fi
9896 done
9897   done
9898 IFS=$as_save_IFS
9899 
9900   ;;
9901 esac
9902 fi
9903 SH=$ac_cv_path_SH
9904 if test -n "$SH"; then
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9906 $as_echo "$SH" >&6; }
9907 else
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9910 fi
9911 
9912 
9913   test -n "$SH" && break
9914 done
9915 
9916     else
9917       # If it succeeded, then it was overridden by the user. We will use it
9918       # for the tool.
9919 
9920       # First remove it from the list of overridden variables, so we can test
9921       # for unknown variables in the end.
9922       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9923 
9924       # Check if we try to supply an empty value
9925       if test "x$SH" = x; then
9926         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9927 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9929 $as_echo_n "checking for SH... " >&6; }
9930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9931 $as_echo "disabled" >&6; }
9932       else
9933         # Check if the provided tool contains a complete path.
9934         tool_specified="$SH"
9935         tool_basename="${tool_specified##*/}"
9936         if test "x$tool_basename" = "x$tool_specified"; then
9937           # A command without a complete path is provided, search $PATH.
9938           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9939 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9940           # Extract the first word of "$tool_basename", so it can be a program name with args.
9941 set dummy $tool_basename; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_path_SH+:} false; then :
9945   $as_echo_n "(cached) " >&6
9946 else
9947   case $SH in
9948   [\\/]* | ?:[\\/]*)
9949   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9950   ;;
9951   *)
9952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955   IFS=$as_save_IFS
9956   test -z "$as_dir" && as_dir=.
9957     for ac_exec_ext in '' $ac_executable_extensions; do
9958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961     break 2
9962   fi
9963 done
9964   done
9965 IFS=$as_save_IFS
9966 
9967   ;;
9968 esac
9969 fi
9970 SH=$ac_cv_path_SH
9971 if test -n "$SH"; then
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9973 $as_echo "$SH" >&6; }
9974 else
9975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9977 fi
9978 
9979 
9980           if test "x$SH" = x; then
9981             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9982           fi
9983         else
9984           # Otherwise we believe it is a complete path. Use it as it is.
9985           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9986 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9987           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9988 $as_echo_n "checking for SH... " >&6; }
9989           if test ! -x "$tool_specified"; then
9990             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9991 $as_echo "not found" >&6; }
9992             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9993           fi
9994           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9995 $as_echo "$tool_specified" >&6; }
9996         fi
9997       fi
9998     fi
9999 
10000   fi
10001 
10002 
10003 
10004   if test "x$SH" = x; then
10005     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10006   fi
10007 
10008 
10009 
10010 
10011 
10012   # Publish this variable in the help.
10013 
10014 
10015   if [ -z "${SORT+x}" ]; then
10016     # The variable is not set by user, try to locate tool using the code snippet
10017     for ac_prog in sort
10018 do
10019   # Extract the first word of "$ac_prog", so it can be a program name with args.
10020 set dummy $ac_prog; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if ${ac_cv_path_SORT+:} false; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   case $SORT in
10027   [\\/]* | ?:[\\/]*)
10028   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10029   ;;
10030   *)
10031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034   IFS=$as_save_IFS
10035   test -z "$as_dir" && as_dir=.
10036     for ac_exec_ext in '' $ac_executable_extensions; do
10037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10038     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040     break 2
10041   fi
10042 done
10043   done
10044 IFS=$as_save_IFS
10045 
10046   ;;
10047 esac
10048 fi
10049 SORT=$ac_cv_path_SORT
10050 if test -n "$SORT"; then
10051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10052 $as_echo "$SORT" >&6; }
10053 else
10054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057 
10058 
10059   test -n "$SORT" && break
10060 done
10061 
10062   else
10063     # The variable is set, but is it from the command line or the environment?
10064 
10065     # Try to remove the string !SORT! from our list.
10066     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10067     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10068       # If it failed, the variable was not from the command line. Ignore it,
10069       # but warn the user (except for BASH, which is always set by the calling BASH).
10070       if test "xSORT" != xBASH; then
10071         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10072 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10073       fi
10074       # Try to locate tool using the code snippet
10075       for ac_prog in sort
10076 do
10077   # Extract the first word of "$ac_prog", so it can be a program name with args.
10078 set dummy $ac_prog; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if ${ac_cv_path_SORT+:} false; then :
10082   $as_echo_n "(cached) " >&6
10083 else
10084   case $SORT in
10085   [\\/]* | ?:[\\/]*)
10086   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10087   ;;
10088   *)
10089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10091 do
10092   IFS=$as_save_IFS
10093   test -z "$as_dir" && as_dir=.
10094     for ac_exec_ext in '' $ac_executable_extensions; do
10095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098     break 2
10099   fi
10100 done
10101   done
10102 IFS=$as_save_IFS
10103 
10104   ;;
10105 esac
10106 fi
10107 SORT=$ac_cv_path_SORT
10108 if test -n "$SORT"; then
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10110 $as_echo "$SORT" >&6; }
10111 else
10112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10113 $as_echo "no" >&6; }
10114 fi
10115 
10116 
10117   test -n "$SORT" && break
10118 done
10119 
10120     else
10121       # If it succeeded, then it was overridden by the user. We will use it
10122       # for the tool.
10123 
10124       # First remove it from the list of overridden variables, so we can test
10125       # for unknown variables in the end.
10126       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10127 
10128       # Check if we try to supply an empty value
10129       if test "x$SORT" = x; then
10130         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10131 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10132         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10133 $as_echo_n "checking for SORT... " >&6; }
10134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10135 $as_echo "disabled" >&6; }
10136       else
10137         # Check if the provided tool contains a complete path.
10138         tool_specified="$SORT"
10139         tool_basename="${tool_specified##*/}"
10140         if test "x$tool_basename" = "x$tool_specified"; then
10141           # A command without a complete path is provided, search $PATH.
10142           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10143 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10144           # Extract the first word of "$tool_basename", so it can be a program name with args.
10145 set dummy $tool_basename; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if ${ac_cv_path_SORT+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   case $SORT in
10152   [\\/]* | ?:[\\/]*)
10153   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10154   ;;
10155   *)
10156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159   IFS=$as_save_IFS
10160   test -z "$as_dir" && as_dir=.
10161     for ac_exec_ext in '' $ac_executable_extensions; do
10162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10163     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165     break 2
10166   fi
10167 done
10168   done
10169 IFS=$as_save_IFS
10170 
10171   ;;
10172 esac
10173 fi
10174 SORT=$ac_cv_path_SORT
10175 if test -n "$SORT"; then
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10177 $as_echo "$SORT" >&6; }
10178 else
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180 $as_echo "no" >&6; }
10181 fi
10182 
10183 
10184           if test "x$SORT" = x; then
10185             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10186           fi
10187         else
10188           # Otherwise we believe it is a complete path. Use it as it is.
10189           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10190 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10191           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10192 $as_echo_n "checking for SORT... " >&6; }
10193           if test ! -x "$tool_specified"; then
10194             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10195 $as_echo "not found" >&6; }
10196             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10197           fi
10198           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10199 $as_echo "$tool_specified" >&6; }
10200         fi
10201       fi
10202     fi
10203 
10204   fi
10205 
10206 
10207 
10208   if test "x$SORT" = x; then
10209     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10210   fi
10211 
10212 
10213 
10214 
10215 
10216   # Publish this variable in the help.
10217 
10218 
10219   if [ -z "${TAIL+x}" ]; then
10220     # The variable is not set by user, try to locate tool using the code snippet
10221     for ac_prog in tail
10222 do
10223   # Extract the first word of "$ac_prog", so it can be a program name with args.
10224 set dummy $ac_prog; ac_word=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if ${ac_cv_path_TAIL+:} false; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   case $TAIL in
10231   [\\/]* | ?:[\\/]*)
10232   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10233   ;;
10234   *)
10235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10236 for as_dir in $PATH
10237 do
10238   IFS=$as_save_IFS
10239   test -z "$as_dir" && as_dir=.
10240     for ac_exec_ext in '' $ac_executable_extensions; do
10241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10242     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244     break 2
10245   fi
10246 done
10247   done
10248 IFS=$as_save_IFS
10249 
10250   ;;
10251 esac
10252 fi
10253 TAIL=$ac_cv_path_TAIL
10254 if test -n "$TAIL"; then
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10256 $as_echo "$TAIL" >&6; }
10257 else
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10260 fi
10261 
10262 
10263   test -n "$TAIL" && break
10264 done
10265 
10266   else
10267     # The variable is set, but is it from the command line or the environment?
10268 
10269     # Try to remove the string !TAIL! from our list.
10270     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10271     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10272       # If it failed, the variable was not from the command line. Ignore it,
10273       # but warn the user (except for BASH, which is always set by the calling BASH).
10274       if test "xTAIL" != xBASH; then
10275         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10276 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10277       fi
10278       # Try to locate tool using the code snippet
10279       for ac_prog in tail
10280 do
10281   # Extract the first word of "$ac_prog", so it can be a program name with args.
10282 set dummy $ac_prog; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if ${ac_cv_path_TAIL+:} false; then :
10286   $as_echo_n "(cached) " >&6
10287 else
10288   case $TAIL in
10289   [\\/]* | ?:[\\/]*)
10290   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10291   ;;
10292   *)
10293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10295 do
10296   IFS=$as_save_IFS
10297   test -z "$as_dir" && as_dir=.
10298     for ac_exec_ext in '' $ac_executable_extensions; do
10299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302     break 2
10303   fi
10304 done
10305   done
10306 IFS=$as_save_IFS
10307 
10308   ;;
10309 esac
10310 fi
10311 TAIL=$ac_cv_path_TAIL
10312 if test -n "$TAIL"; then
10313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10314 $as_echo "$TAIL" >&6; }
10315 else
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10318 fi
10319 
10320 
10321   test -n "$TAIL" && break
10322 done
10323 
10324     else
10325       # If it succeeded, then it was overridden by the user. We will use it
10326       # for the tool.
10327 
10328       # First remove it from the list of overridden variables, so we can test
10329       # for unknown variables in the end.
10330       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10331 
10332       # Check if we try to supply an empty value
10333       if test "x$TAIL" = x; then
10334         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10335 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10337 $as_echo_n "checking for TAIL... " >&6; }
10338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10339 $as_echo "disabled" >&6; }
10340       else
10341         # Check if the provided tool contains a complete path.
10342         tool_specified="$TAIL"
10343         tool_basename="${tool_specified##*/}"
10344         if test "x$tool_basename" = "x$tool_specified"; then
10345           # A command without a complete path is provided, search $PATH.
10346           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10347 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10348           # Extract the first word of "$tool_basename", so it can be a program name with args.
10349 set dummy $tool_basename; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if ${ac_cv_path_TAIL+:} false; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   case $TAIL in
10356   [\\/]* | ?:[\\/]*)
10357   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10358   ;;
10359   *)
10360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363   IFS=$as_save_IFS
10364   test -z "$as_dir" && as_dir=.
10365     for ac_exec_ext in '' $ac_executable_extensions; do
10366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10367     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369     break 2
10370   fi
10371 done
10372   done
10373 IFS=$as_save_IFS
10374 
10375   ;;
10376 esac
10377 fi
10378 TAIL=$ac_cv_path_TAIL
10379 if test -n "$TAIL"; then
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10381 $as_echo "$TAIL" >&6; }
10382 else
10383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 fi
10386 
10387 
10388           if test "x$TAIL" = x; then
10389             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10390           fi
10391         else
10392           # Otherwise we believe it is a complete path. Use it as it is.
10393           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10394 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10395           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10396 $as_echo_n "checking for TAIL... " >&6; }
10397           if test ! -x "$tool_specified"; then
10398             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10399 $as_echo "not found" >&6; }
10400             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10401           fi
10402           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10403 $as_echo "$tool_specified" >&6; }
10404         fi
10405       fi
10406     fi
10407 
10408   fi
10409 
10410 
10411 
10412   if test "x$TAIL" = x; then
10413     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10414   fi
10415 
10416 
10417 
10418 
10419 
10420   # Publish this variable in the help.
10421 
10422 
10423   if [ -z "${TAR+x}" ]; then
10424     # The variable is not set by user, try to locate tool using the code snippet
10425     for ac_prog in tar
10426 do
10427   # Extract the first word of "$ac_prog", so it can be a program name with args.
10428 set dummy $ac_prog; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_path_TAR+:} false; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   case $TAR in
10435   [\\/]* | ?:[\\/]*)
10436   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10437   ;;
10438   *)
10439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10441 do
10442   IFS=$as_save_IFS
10443   test -z "$as_dir" && as_dir=.
10444     for ac_exec_ext in '' $ac_executable_extensions; do
10445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448     break 2
10449   fi
10450 done
10451   done
10452 IFS=$as_save_IFS
10453 
10454   ;;
10455 esac
10456 fi
10457 TAR=$ac_cv_path_TAR
10458 if test -n "$TAR"; then
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10460 $as_echo "$TAR" >&6; }
10461 else
10462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; }
10464 fi
10465 
10466 
10467   test -n "$TAR" && break
10468 done
10469 
10470   else
10471     # The variable is set, but is it from the command line or the environment?
10472 
10473     # Try to remove the string !TAR! from our list.
10474     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10475     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10476       # If it failed, the variable was not from the command line. Ignore it,
10477       # but warn the user (except for BASH, which is always set by the calling BASH).
10478       if test "xTAR" != xBASH; then
10479         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10480 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10481       fi
10482       # Try to locate tool using the code snippet
10483       for ac_prog in tar
10484 do
10485   # Extract the first word of "$ac_prog", so it can be a program name with args.
10486 set dummy $ac_prog; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if ${ac_cv_path_TAR+:} false; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   case $TAR in
10493   [\\/]* | ?:[\\/]*)
10494   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10495   ;;
10496   *)
10497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502     for ac_exec_ext in '' $ac_executable_extensions; do
10503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506     break 2
10507   fi
10508 done
10509   done
10510 IFS=$as_save_IFS
10511 
10512   ;;
10513 esac
10514 fi
10515 TAR=$ac_cv_path_TAR
10516 if test -n "$TAR"; then
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10518 $as_echo "$TAR" >&6; }
10519 else
10520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10522 fi
10523 
10524 
10525   test -n "$TAR" && break
10526 done
10527 
10528     else
10529       # If it succeeded, then it was overridden by the user. We will use it
10530       # for the tool.
10531 
10532       # First remove it from the list of overridden variables, so we can test
10533       # for unknown variables in the end.
10534       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10535 
10536       # Check if we try to supply an empty value
10537       if test "x$TAR" = x; then
10538         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10539 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10541 $as_echo_n "checking for TAR... " >&6; }
10542         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10543 $as_echo "disabled" >&6; }
10544       else
10545         # Check if the provided tool contains a complete path.
10546         tool_specified="$TAR"
10547         tool_basename="${tool_specified##*/}"
10548         if test "x$tool_basename" = "x$tool_specified"; then
10549           # A command without a complete path is provided, search $PATH.
10550           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10551 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10552           # Extract the first word of "$tool_basename", so it can be a program name with args.
10553 set dummy $tool_basename; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_path_TAR+:} false; then :
10557   $as_echo_n "(cached) " >&6
10558 else
10559   case $TAR in
10560   [\\/]* | ?:[\\/]*)
10561   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10562   ;;
10563   *)
10564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10566 do
10567   IFS=$as_save_IFS
10568   test -z "$as_dir" && as_dir=.
10569     for ac_exec_ext in '' $ac_executable_extensions; do
10570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10571     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573     break 2
10574   fi
10575 done
10576   done
10577 IFS=$as_save_IFS
10578 
10579   ;;
10580 esac
10581 fi
10582 TAR=$ac_cv_path_TAR
10583 if test -n "$TAR"; then
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10585 $as_echo "$TAR" >&6; }
10586 else
10587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589 fi
10590 
10591 
10592           if test "x$TAR" = x; then
10593             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10594           fi
10595         else
10596           # Otherwise we believe it is a complete path. Use it as it is.
10597           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10598 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10599           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10600 $as_echo_n "checking for TAR... " >&6; }
10601           if test ! -x "$tool_specified"; then
10602             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10603 $as_echo "not found" >&6; }
10604             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10605           fi
10606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10607 $as_echo "$tool_specified" >&6; }
10608         fi
10609       fi
10610     fi
10611 
10612   fi
10613 
10614 
10615 
10616   if test "x$TAR" = x; then
10617     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10618   fi
10619 
10620 
10621 
10622 
10623 
10624   # Publish this variable in the help.
10625 
10626 
10627   if [ -z "${TEE+x}" ]; then
10628     # The variable is not set by user, try to locate tool using the code snippet
10629     for ac_prog in tee
10630 do
10631   # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_TEE+:} false; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   case $TEE in
10639   [\\/]* | ?:[\\/]*)
10640   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10641   ;;
10642   *)
10643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657 
10658   ;;
10659 esac
10660 fi
10661 TEE=$ac_cv_path_TEE
10662 if test -n "$TEE"; then
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10664 $as_echo "$TEE" >&6; }
10665 else
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 
10670 
10671   test -n "$TEE" && break
10672 done
10673 
10674   else
10675     # The variable is set, but is it from the command line or the environment?
10676 
10677     # Try to remove the string !TEE! from our list.
10678     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10679     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10680       # If it failed, the variable was not from the command line. Ignore it,
10681       # but warn the user (except for BASH, which is always set by the calling BASH).
10682       if test "xTEE" != xBASH; then
10683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10684 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10685       fi
10686       # Try to locate tool using the code snippet
10687       for ac_prog in tee
10688 do
10689   # Extract the first word of "$ac_prog", so it can be a program name with args.
10690 set dummy $ac_prog; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_TEE+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   case $TEE in
10697   [\\/]* | ?:[\\/]*)
10698   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10699   ;;
10700   *)
10701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 
10716   ;;
10717 esac
10718 fi
10719 TEE=$ac_cv_path_TEE
10720 if test -n "$TEE"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10722 $as_echo "$TEE" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727 
10728 
10729   test -n "$TEE" && break
10730 done
10731 
10732     else
10733       # If it succeeded, then it was overridden by the user. We will use it
10734       # for the tool.
10735 
10736       # First remove it from the list of overridden variables, so we can test
10737       # for unknown variables in the end.
10738       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10739 
10740       # Check if we try to supply an empty value
10741       if test "x$TEE" = x; then
10742         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10743 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10744         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10745 $as_echo_n "checking for TEE... " >&6; }
10746         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10747 $as_echo "disabled" >&6; }
10748       else
10749         # Check if the provided tool contains a complete path.
10750         tool_specified="$TEE"
10751         tool_basename="${tool_specified##*/}"
10752         if test "x$tool_basename" = "x$tool_specified"; then
10753           # A command without a complete path is provided, search $PATH.
10754           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10755 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10756           # Extract the first word of "$tool_basename", so it can be a program name with args.
10757 set dummy $tool_basename; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if ${ac_cv_path_TEE+:} false; then :
10761   $as_echo_n "(cached) " >&6
10762 else
10763   case $TEE in
10764   [\\/]* | ?:[\\/]*)
10765   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10766   ;;
10767   *)
10768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10770 do
10771   IFS=$as_save_IFS
10772   test -z "$as_dir" && as_dir=.
10773     for ac_exec_ext in '' $ac_executable_extensions; do
10774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10775     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10777     break 2
10778   fi
10779 done
10780   done
10781 IFS=$as_save_IFS
10782 
10783   ;;
10784 esac
10785 fi
10786 TEE=$ac_cv_path_TEE
10787 if test -n "$TEE"; then
10788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10789 $as_echo "$TEE" >&6; }
10790 else
10791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10793 fi
10794 
10795 
10796           if test "x$TEE" = x; then
10797             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10798           fi
10799         else
10800           # Otherwise we believe it is a complete path. Use it as it is.
10801           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10802 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10803           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10804 $as_echo_n "checking for TEE... " >&6; }
10805           if test ! -x "$tool_specified"; then
10806             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10807 $as_echo "not found" >&6; }
10808             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10809           fi
10810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10811 $as_echo "$tool_specified" >&6; }
10812         fi
10813       fi
10814     fi
10815 
10816   fi
10817 
10818 
10819 
10820   if test "x$TEE" = x; then
10821     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10822   fi
10823 
10824 
10825 
10826 
10827 
10828   # Publish this variable in the help.
10829 
10830 
10831   if [ -z "${TOUCH+x}" ]; then
10832     # The variable is not set by user, try to locate tool using the code snippet
10833     for ac_prog in touch
10834 do
10835   # Extract the first word of "$ac_prog", so it can be a program name with args.
10836 set dummy $ac_prog; ac_word=$2
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10838 $as_echo_n "checking for $ac_word... " >&6; }
10839 if ${ac_cv_path_TOUCH+:} false; then :
10840   $as_echo_n "(cached) " >&6
10841 else
10842   case $TOUCH in
10843   [\\/]* | ?:[\\/]*)
10844   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10845   ;;
10846   *)
10847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848 for as_dir in $PATH
10849 do
10850   IFS=$as_save_IFS
10851   test -z "$as_dir" && as_dir=.
10852     for ac_exec_ext in '' $ac_executable_extensions; do
10853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10854     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856     break 2
10857   fi
10858 done
10859   done
10860 IFS=$as_save_IFS
10861 
10862   ;;
10863 esac
10864 fi
10865 TOUCH=$ac_cv_path_TOUCH
10866 if test -n "$TOUCH"; then
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10868 $as_echo "$TOUCH" >&6; }
10869 else
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }
10872 fi
10873 
10874 
10875   test -n "$TOUCH" && break
10876 done
10877 
10878   else
10879     # The variable is set, but is it from the command line or the environment?
10880 
10881     # Try to remove the string !TOUCH! from our list.
10882     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10883     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10884       # If it failed, the variable was not from the command line. Ignore it,
10885       # but warn the user (except for BASH, which is always set by the calling BASH).
10886       if test "xTOUCH" != xBASH; then
10887         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10888 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10889       fi
10890       # Try to locate tool using the code snippet
10891       for ac_prog in touch
10892 do
10893   # Extract the first word of "$ac_prog", so it can be a program name with args.
10894 set dummy $ac_prog; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if ${ac_cv_path_TOUCH+:} false; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900   case $TOUCH in
10901   [\\/]* | ?:[\\/]*)
10902   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10903   ;;
10904   *)
10905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908   IFS=$as_save_IFS
10909   test -z "$as_dir" && as_dir=.
10910     for ac_exec_ext in '' $ac_executable_extensions; do
10911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914     break 2
10915   fi
10916 done
10917   done
10918 IFS=$as_save_IFS
10919 
10920   ;;
10921 esac
10922 fi
10923 TOUCH=$ac_cv_path_TOUCH
10924 if test -n "$TOUCH"; then
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10926 $as_echo "$TOUCH" >&6; }
10927 else
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; }
10930 fi
10931 
10932 
10933   test -n "$TOUCH" && break
10934 done
10935 
10936     else
10937       # If it succeeded, then it was overridden by the user. We will use it
10938       # for the tool.
10939 
10940       # First remove it from the list of overridden variables, so we can test
10941       # for unknown variables in the end.
10942       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10943 
10944       # Check if we try to supply an empty value
10945       if test "x$TOUCH" = x; then
10946         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10947 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10948         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10949 $as_echo_n "checking for TOUCH... " >&6; }
10950         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10951 $as_echo "disabled" >&6; }
10952       else
10953         # Check if the provided tool contains a complete path.
10954         tool_specified="$TOUCH"
10955         tool_basename="${tool_specified##*/}"
10956         if test "x$tool_basename" = "x$tool_specified"; then
10957           # A command without a complete path is provided, search $PATH.
10958           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10959 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10960           # Extract the first word of "$tool_basename", so it can be a program name with args.
10961 set dummy $tool_basename; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_path_TOUCH+:} false; then :
10965   $as_echo_n "(cached) " >&6
10966 else
10967   case $TOUCH in
10968   [\\/]* | ?:[\\/]*)
10969   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10970   ;;
10971   *)
10972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975   IFS=$as_save_IFS
10976   test -z "$as_dir" && as_dir=.
10977     for ac_exec_ext in '' $ac_executable_extensions; do
10978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981     break 2
10982   fi
10983 done
10984   done
10985 IFS=$as_save_IFS
10986 
10987   ;;
10988 esac
10989 fi
10990 TOUCH=$ac_cv_path_TOUCH
10991 if test -n "$TOUCH"; then
10992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10993 $as_echo "$TOUCH" >&6; }
10994 else
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997 fi
10998 
10999 
11000           if test "x$TOUCH" = x; then
11001             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11002           fi
11003         else
11004           # Otherwise we believe it is a complete path. Use it as it is.
11005           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11006 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11007           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11008 $as_echo_n "checking for TOUCH... " >&6; }
11009           if test ! -x "$tool_specified"; then
11010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11011 $as_echo "not found" >&6; }
11012             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11013           fi
11014           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11015 $as_echo "$tool_specified" >&6; }
11016         fi
11017       fi
11018     fi
11019 
11020   fi
11021 
11022 
11023 
11024   if test "x$TOUCH" = x; then
11025     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11026   fi
11027 
11028 
11029 
11030 
11031 
11032   # Publish this variable in the help.
11033 
11034 
11035   if [ -z "${TR+x}" ]; then
11036     # The variable is not set by user, try to locate tool using the code snippet
11037     for ac_prog in tr
11038 do
11039   # Extract the first word of "$ac_prog", so it can be a program name with args.
11040 set dummy $ac_prog; ac_word=$2
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11042 $as_echo_n "checking for $ac_word... " >&6; }
11043 if ${ac_cv_path_TR+:} false; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   case $TR in
11047   [\\/]* | ?:[\\/]*)
11048   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11049   ;;
11050   *)
11051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11052 for as_dir in $PATH
11053 do
11054   IFS=$as_save_IFS
11055   test -z "$as_dir" && as_dir=.
11056     for ac_exec_ext in '' $ac_executable_extensions; do
11057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11058     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11060     break 2
11061   fi
11062 done
11063   done
11064 IFS=$as_save_IFS
11065 
11066   ;;
11067 esac
11068 fi
11069 TR=$ac_cv_path_TR
11070 if test -n "$TR"; then
11071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11072 $as_echo "$TR" >&6; }
11073 else
11074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075 $as_echo "no" >&6; }
11076 fi
11077 
11078 
11079   test -n "$TR" && break
11080 done
11081 
11082   else
11083     # The variable is set, but is it from the command line or the environment?
11084 
11085     # Try to remove the string !TR! from our list.
11086     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11087     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11088       # If it failed, the variable was not from the command line. Ignore it,
11089       # but warn the user (except for BASH, which is always set by the calling BASH).
11090       if test "xTR" != xBASH; then
11091         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11092 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11093       fi
11094       # Try to locate tool using the code snippet
11095       for ac_prog in tr
11096 do
11097   # Extract the first word of "$ac_prog", so it can be a program name with args.
11098 set dummy $ac_prog; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if ${ac_cv_path_TR+:} false; then :
11102   $as_echo_n "(cached) " >&6
11103 else
11104   case $TR in
11105   [\\/]* | ?:[\\/]*)
11106   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11107   ;;
11108   *)
11109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112   IFS=$as_save_IFS
11113   test -z "$as_dir" && as_dir=.
11114     for ac_exec_ext in '' $ac_executable_extensions; do
11115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118     break 2
11119   fi
11120 done
11121   done
11122 IFS=$as_save_IFS
11123 
11124   ;;
11125 esac
11126 fi
11127 TR=$ac_cv_path_TR
11128 if test -n "$TR"; then
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11130 $as_echo "$TR" >&6; }
11131 else
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11134 fi
11135 
11136 
11137   test -n "$TR" && break
11138 done
11139 
11140     else
11141       # If it succeeded, then it was overridden by the user. We will use it
11142       # for the tool.
11143 
11144       # First remove it from the list of overridden variables, so we can test
11145       # for unknown variables in the end.
11146       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11147 
11148       # Check if we try to supply an empty value
11149       if test "x$TR" = x; then
11150         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11151 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11153 $as_echo_n "checking for TR... " >&6; }
11154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11155 $as_echo "disabled" >&6; }
11156       else
11157         # Check if the provided tool contains a complete path.
11158         tool_specified="$TR"
11159         tool_basename="${tool_specified##*/}"
11160         if test "x$tool_basename" = "x$tool_specified"; then
11161           # A command without a complete path is provided, search $PATH.
11162           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11163 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11164           # Extract the first word of "$tool_basename", so it can be a program name with args.
11165 set dummy $tool_basename; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_TR+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   case $TR in
11172   [\\/]* | ?:[\\/]*)
11173   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11174   ;;
11175   *)
11176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   test -z "$as_dir" && as_dir=.
11181     for ac_exec_ext in '' $ac_executable_extensions; do
11182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185     break 2
11186   fi
11187 done
11188   done
11189 IFS=$as_save_IFS
11190 
11191   ;;
11192 esac
11193 fi
11194 TR=$ac_cv_path_TR
11195 if test -n "$TR"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11197 $as_echo "$TR" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202 
11203 
11204           if test "x$TR" = x; then
11205             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11206           fi
11207         else
11208           # Otherwise we believe it is a complete path. Use it as it is.
11209           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11210 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11211           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11212 $as_echo_n "checking for TR... " >&6; }
11213           if test ! -x "$tool_specified"; then
11214             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11215 $as_echo "not found" >&6; }
11216             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11217           fi
11218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11219 $as_echo "$tool_specified" >&6; }
11220         fi
11221       fi
11222     fi
11223 
11224   fi
11225 
11226 
11227 
11228   if test "x$TR" = x; then
11229     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11230   fi
11231 
11232 
11233 
11234 
11235 
11236   # Publish this variable in the help.
11237 
11238 
11239   if [ -z "${UNAME+x}" ]; then
11240     # The variable is not set by user, try to locate tool using the code snippet
11241     for ac_prog in uname
11242 do
11243   # Extract the first word of "$ac_prog", so it can be a program name with args.
11244 set dummy $ac_prog; ac_word=$2
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11246 $as_echo_n "checking for $ac_word... " >&6; }
11247 if ${ac_cv_path_UNAME+:} false; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250   case $UNAME in
11251   [\\/]* | ?:[\\/]*)
11252   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11253   ;;
11254   *)
11255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11257 do
11258   IFS=$as_save_IFS
11259   test -z "$as_dir" && as_dir=.
11260     for ac_exec_ext in '' $ac_executable_extensions; do
11261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11262     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264     break 2
11265   fi
11266 done
11267   done
11268 IFS=$as_save_IFS
11269 
11270   ;;
11271 esac
11272 fi
11273 UNAME=$ac_cv_path_UNAME
11274 if test -n "$UNAME"; then
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11276 $as_echo "$UNAME" >&6; }
11277 else
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279 $as_echo "no" >&6; }
11280 fi
11281 
11282 
11283   test -n "$UNAME" && break
11284 done
11285 
11286   else
11287     # The variable is set, but is it from the command line or the environment?
11288 
11289     # Try to remove the string !UNAME! from our list.
11290     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11291     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11292       # If it failed, the variable was not from the command line. Ignore it,
11293       # but warn the user (except for BASH, which is always set by the calling BASH).
11294       if test "xUNAME" != xBASH; then
11295         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11296 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11297       fi
11298       # Try to locate tool using the code snippet
11299       for ac_prog in uname
11300 do
11301   # Extract the first word of "$ac_prog", so it can be a program name with args.
11302 set dummy $ac_prog; ac_word=$2
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304 $as_echo_n "checking for $ac_word... " >&6; }
11305 if ${ac_cv_path_UNAME+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   case $UNAME in
11309   [\\/]* | ?:[\\/]*)
11310   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11311   ;;
11312   *)
11313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11315 do
11316   IFS=$as_save_IFS
11317   test -z "$as_dir" && as_dir=.
11318     for ac_exec_ext in '' $ac_executable_extensions; do
11319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11320     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322     break 2
11323   fi
11324 done
11325   done
11326 IFS=$as_save_IFS
11327 
11328   ;;
11329 esac
11330 fi
11331 UNAME=$ac_cv_path_UNAME
11332 if test -n "$UNAME"; then
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11334 $as_echo "$UNAME" >&6; }
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339 
11340 
11341   test -n "$UNAME" && break
11342 done
11343 
11344     else
11345       # If it succeeded, then it was overridden by the user. We will use it
11346       # for the tool.
11347 
11348       # First remove it from the list of overridden variables, so we can test
11349       # for unknown variables in the end.
11350       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11351 
11352       # Check if we try to supply an empty value
11353       if test "x$UNAME" = x; then
11354         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11355 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11357 $as_echo_n "checking for UNAME... " >&6; }
11358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11359 $as_echo "disabled" >&6; }
11360       else
11361         # Check if the provided tool contains a complete path.
11362         tool_specified="$UNAME"
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 UNAME=$tool_basename" >&5
11367 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11368           # Extract the first word of "$tool_basename", so it can be a program name with args.
11369 set 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; }
11372 if ${ac_cv_path_UNAME+:} false; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   case $UNAME in
11376   [\\/]* | ?:[\\/]*)
11377   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11378   ;;
11379   *)
11380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381 for as_dir in $PATH
11382 do
11383   IFS=$as_save_IFS
11384   test -z "$as_dir" && as_dir=.
11385     for ac_exec_ext in '' $ac_executable_extensions; do
11386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11387     ac_cv_path_UNAME="$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
11391 done
11392   done
11393 IFS=$as_save_IFS
11394 
11395   ;;
11396 esac
11397 fi
11398 UNAME=$ac_cv_path_UNAME
11399 if test -n "$UNAME"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11401 $as_echo "$UNAME" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406 
11407 
11408           if test "x$UNAME" = 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 UNAME=$tool_specified" >&5
11414 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11415           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11416 $as_echo_n "checking for UNAME... " >&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 UNAME=$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   fi
11429 
11430 
11431 
11432   if test "x$UNAME" = x; then
11433     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11434   fi
11435 
11436 
11437 
11438 
11439 
11440   # Publish this variable in the help.
11441 
11442 
11443   if [ -z "${UNIQ+x}" ]; then
11444     # The variable is not set by user, try to locate tool using the code snippet
11445     for ac_prog in uniq
11446 do
11447   # Extract the first word of "$ac_prog", so it can be a program name with args.
11448 set dummy $ac_prog; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_path_UNIQ+:} false; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   case $UNIQ in
11455   [\\/]* | ?:[\\/]*)
11456   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11457   ;;
11458   *)
11459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11461 do
11462   IFS=$as_save_IFS
11463   test -z "$as_dir" && as_dir=.
11464     for ac_exec_ext in '' $ac_executable_extensions; do
11465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11466     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468     break 2
11469   fi
11470 done
11471   done
11472 IFS=$as_save_IFS
11473 
11474   ;;
11475 esac
11476 fi
11477 UNIQ=$ac_cv_path_UNIQ
11478 if test -n "$UNIQ"; then
11479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11480 $as_echo "$UNIQ" >&6; }
11481 else
11482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11484 fi
11485 
11486 
11487   test -n "$UNIQ" && break
11488 done
11489 
11490   else
11491     # The variable is set, but is it from the command line or the environment?
11492 
11493     # Try to remove the string !UNIQ! from our list.
11494     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11495     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11496       # If it failed, the variable was not from the command line. Ignore it,
11497       # but warn the user (except for BASH, which is always set by the calling BASH).
11498       if test "xUNIQ" != xBASH; then
11499         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11500 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11501       fi
11502       # Try to locate tool using the code snippet
11503       for ac_prog in uniq
11504 do
11505   # Extract the first word of "$ac_prog", so it can be a program name with args.
11506 set dummy $ac_prog; ac_word=$2
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508 $as_echo_n "checking for $ac_word... " >&6; }
11509 if ${ac_cv_path_UNIQ+:} false; then :
11510   $as_echo_n "(cached) " >&6
11511 else
11512   case $UNIQ in
11513   [\\/]* | ?:[\\/]*)
11514   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11515   ;;
11516   *)
11517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11518 for as_dir in $PATH
11519 do
11520   IFS=$as_save_IFS
11521   test -z "$as_dir" && as_dir=.
11522     for ac_exec_ext in '' $ac_executable_extensions; do
11523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11524     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11526     break 2
11527   fi
11528 done
11529   done
11530 IFS=$as_save_IFS
11531 
11532   ;;
11533 esac
11534 fi
11535 UNIQ=$ac_cv_path_UNIQ
11536 if test -n "$UNIQ"; then
11537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11538 $as_echo "$UNIQ" >&6; }
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542 fi
11543 
11544 
11545   test -n "$UNIQ" && break
11546 done
11547 
11548     else
11549       # If it succeeded, then it was overridden by the user. We will use it
11550       # for the tool.
11551 
11552       # First remove it from the list of overridden variables, so we can test
11553       # for unknown variables in the end.
11554       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11555 
11556       # Check if we try to supply an empty value
11557       if test "x$UNIQ" = x; then
11558         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11559 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11560         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11561 $as_echo_n "checking for UNIQ... " >&6; }
11562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11563 $as_echo "disabled" >&6; }
11564       else
11565         # Check if the provided tool contains a complete path.
11566         tool_specified="$UNIQ"
11567         tool_basename="${tool_specified##*/}"
11568         if test "x$tool_basename" = "x$tool_specified"; then
11569           # A command without a complete path is provided, search $PATH.
11570           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11571 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11572           # Extract the first word of "$tool_basename", so it can be a program name with args.
11573 set dummy $tool_basename; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_path_UNIQ+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   case $UNIQ in
11580   [\\/]* | ?:[\\/]*)
11581   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11582   ;;
11583   *)
11584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587   IFS=$as_save_IFS
11588   test -z "$as_dir" && as_dir=.
11589     for ac_exec_ext in '' $ac_executable_extensions; do
11590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11591     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593     break 2
11594   fi
11595 done
11596   done
11597 IFS=$as_save_IFS
11598 
11599   ;;
11600 esac
11601 fi
11602 UNIQ=$ac_cv_path_UNIQ
11603 if test -n "$UNIQ"; then
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11605 $as_echo "$UNIQ" >&6; }
11606 else
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11609 fi
11610 
11611 
11612           if test "x$UNIQ" = x; then
11613             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11614           fi
11615         else
11616           # Otherwise we believe it is a complete path. Use it as it is.
11617           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11618 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11619           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11620 $as_echo_n "checking for UNIQ... " >&6; }
11621           if test ! -x "$tool_specified"; then
11622             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11623 $as_echo "not found" >&6; }
11624             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11625           fi
11626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11627 $as_echo "$tool_specified" >&6; }
11628         fi
11629       fi
11630     fi
11631 
11632   fi
11633 
11634 
11635 
11636   if test "x$UNIQ" = x; then
11637     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11638   fi
11639 
11640 
11641 
11642 
11643 
11644   # Publish this variable in the help.
11645 
11646 
11647   if [ -z "${WC+x}" ]; then
11648     # The variable is not set by user, try to locate tool using the code snippet
11649     for ac_prog in wc
11650 do
11651   # Extract the first word of "$ac_prog", so it can be a program name with args.
11652 set dummy $ac_prog; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if ${ac_cv_path_WC+:} false; then :
11656   $as_echo_n "(cached) " >&6
11657 else
11658   case $WC in
11659   [\\/]* | ?:[\\/]*)
11660   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11661   ;;
11662   *)
11663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668     for ac_exec_ext in '' $ac_executable_extensions; do
11669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675   done
11676 IFS=$as_save_IFS
11677 
11678   ;;
11679 esac
11680 fi
11681 WC=$ac_cv_path_WC
11682 if test -n "$WC"; then
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11684 $as_echo "$WC" >&6; }
11685 else
11686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11688 fi
11689 
11690 
11691   test -n "$WC" && break
11692 done
11693 
11694   else
11695     # The variable is set, but is it from the command line or the environment?
11696 
11697     # Try to remove the string !WC! from our list.
11698     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11699     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11700       # If it failed, the variable was not from the command line. Ignore it,
11701       # but warn the user (except for BASH, which is always set by the calling BASH).
11702       if test "xWC" != xBASH; then
11703         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11704 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11705       fi
11706       # Try to locate tool using the code snippet
11707       for ac_prog in wc
11708 do
11709   # Extract the first word of "$ac_prog", so it can be a program name with args.
11710 set dummy $ac_prog; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_path_WC+:} false; then :
11714   $as_echo_n "(cached) " >&6
11715 else
11716   case $WC in
11717   [\\/]* | ?:[\\/]*)
11718   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11719   ;;
11720   *)
11721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724   IFS=$as_save_IFS
11725   test -z "$as_dir" && as_dir=.
11726     for ac_exec_ext in '' $ac_executable_extensions; do
11727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11728     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730     break 2
11731   fi
11732 done
11733   done
11734 IFS=$as_save_IFS
11735 
11736   ;;
11737 esac
11738 fi
11739 WC=$ac_cv_path_WC
11740 if test -n "$WC"; then
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11742 $as_echo "$WC" >&6; }
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 fi
11747 
11748 
11749   test -n "$WC" && break
11750 done
11751 
11752     else
11753       # If it succeeded, then it was overridden by the user. We will use it
11754       # for the tool.
11755 
11756       # First remove it from the list of overridden variables, so we can test
11757       # for unknown variables in the end.
11758       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11759 
11760       # Check if we try to supply an empty value
11761       if test "x$WC" = x; then
11762         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11763 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11764         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11765 $as_echo_n "checking for WC... " >&6; }
11766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11767 $as_echo "disabled" >&6; }
11768       else
11769         # Check if the provided tool contains a complete path.
11770         tool_specified="$WC"
11771         tool_basename="${tool_specified##*/}"
11772         if test "x$tool_basename" = "x$tool_specified"; then
11773           # A command without a complete path is provided, search $PATH.
11774           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11775 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11776           # Extract the first word of "$tool_basename", so it can be a program name with args.
11777 set dummy $tool_basename; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if ${ac_cv_path_WC+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   case $WC in
11784   [\\/]* | ?:[\\/]*)
11785   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11786   ;;
11787   *)
11788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11790 do
11791   IFS=$as_save_IFS
11792   test -z "$as_dir" && as_dir=.
11793     for ac_exec_ext in '' $ac_executable_extensions; do
11794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11797     break 2
11798   fi
11799 done
11800   done
11801 IFS=$as_save_IFS
11802 
11803   ;;
11804 esac
11805 fi
11806 WC=$ac_cv_path_WC
11807 if test -n "$WC"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11809 $as_echo "$WC" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814 
11815 
11816           if test "x$WC" = x; then
11817             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11818           fi
11819         else
11820           # Otherwise we believe it is a complete path. Use it as it is.
11821           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11822 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11823           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11824 $as_echo_n "checking for WC... " >&6; }
11825           if test ! -x "$tool_specified"; then
11826             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11827 $as_echo "not found" >&6; }
11828             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11829           fi
11830           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11831 $as_echo "$tool_specified" >&6; }
11832         fi
11833       fi
11834     fi
11835 
11836   fi
11837 
11838 
11839 
11840   if test "x$WC" = x; then
11841     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11842   fi
11843 
11844 
11845 
11846 
11847 
11848   # Publish this variable in the help.
11849 
11850 
11851   if [ -z "${WHICH+x}" ]; then
11852     # The variable is not set by user, try to locate tool using the code snippet
11853     for ac_prog in which
11854 do
11855   # Extract the first word of "$ac_prog", so it can be a program name with args.
11856 set dummy $ac_prog; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_WHICH+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   case $WHICH in
11863   [\\/]* | ?:[\\/]*)
11864   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11865   ;;
11866   *)
11867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $PATH
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872     for ac_exec_ext in '' $ac_executable_extensions; do
11873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876     break 2
11877   fi
11878 done
11879   done
11880 IFS=$as_save_IFS
11881 
11882   ;;
11883 esac
11884 fi
11885 WHICH=$ac_cv_path_WHICH
11886 if test -n "$WHICH"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11888 $as_echo "$WHICH" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893 
11894 
11895   test -n "$WHICH" && break
11896 done
11897 
11898   else
11899     # The variable is set, but is it from the command line or the environment?
11900 
11901     # Try to remove the string !WHICH! from our list.
11902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11904       # If it failed, the variable was not from the command line. Ignore it,
11905       # but warn the user (except for BASH, which is always set by the calling BASH).
11906       if test "xWHICH" != xBASH; then
11907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11908 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11909       fi
11910       # Try to locate tool using the code snippet
11911       for ac_prog in which
11912 do
11913   # Extract the first word of "$ac_prog", so it can be a program name with args.
11914 set dummy $ac_prog; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_WHICH+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   case $WHICH in
11921   [\\/]* | ?:[\\/]*)
11922   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11923   ;;
11924   *)
11925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939 
11940   ;;
11941 esac
11942 fi
11943 WHICH=$ac_cv_path_WHICH
11944 if test -n "$WHICH"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11946 $as_echo "$WHICH" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951 
11952 
11953   test -n "$WHICH" && break
11954 done
11955 
11956     else
11957       # If it succeeded, then it was overridden by the user. We will use it
11958       # for the tool.
11959 
11960       # First remove it from the list of overridden variables, so we can test
11961       # for unknown variables in the end.
11962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11963 
11964       # Check if we try to supply an empty value
11965       if test "x$WHICH" = x; then
11966         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11967 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11969 $as_echo_n "checking for WHICH... " >&6; }
11970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11971 $as_echo "disabled" >&6; }
11972       else
11973         # Check if the provided tool contains a complete path.
11974         tool_specified="$WHICH"
11975         tool_basename="${tool_specified##*/}"
11976         if test "x$tool_basename" = "x$tool_specified"; then
11977           # A command without a complete path is provided, search $PATH.
11978           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11979 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11980           # Extract the first word of "$tool_basename", so it can be a program name with args.
11981 set dummy $tool_basename; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983 $as_echo_n "checking for $ac_word... " >&6; }
11984 if ${ac_cv_path_WHICH+:} false; then :
11985   $as_echo_n "(cached) " >&6
11986 else
11987   case $WHICH in
11988   [\\/]* | ?:[\\/]*)
11989   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11990   ;;
11991   *)
11992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995   IFS=$as_save_IFS
11996   test -z "$as_dir" && as_dir=.
11997     for ac_exec_ext in '' $ac_executable_extensions; do
11998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001     break 2
12002   fi
12003 done
12004   done
12005 IFS=$as_save_IFS
12006 
12007   ;;
12008 esac
12009 fi
12010 WHICH=$ac_cv_path_WHICH
12011 if test -n "$WHICH"; then
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12013 $as_echo "$WHICH" >&6; }
12014 else
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12016 $as_echo "no" >&6; }
12017 fi
12018 
12019 
12020           if test "x$WHICH" = x; then
12021             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12022           fi
12023         else
12024           # Otherwise we believe it is a complete path. Use it as it is.
12025           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12026 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12028 $as_echo_n "checking for WHICH... " >&6; }
12029           if test ! -x "$tool_specified"; then
12030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12031 $as_echo "not found" >&6; }
12032             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12033           fi
12034           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12035 $as_echo "$tool_specified" >&6; }
12036         fi
12037       fi
12038     fi
12039 
12040   fi
12041 
12042 
12043 
12044   if test "x$WHICH" = x; then
12045     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12046   fi
12047 
12048 
12049 
12050 
12051 
12052   # Publish this variable in the help.
12053 
12054 
12055   if [ -z "${XARGS+x}" ]; then
12056     # The variable is not set by user, try to locate tool using the code snippet
12057     for ac_prog in xargs
12058 do
12059   # Extract the first word of "$ac_prog", so it can be a program name with args.
12060 set dummy $ac_prog; ac_word=$2
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12062 $as_echo_n "checking for $ac_word... " >&6; }
12063 if ${ac_cv_path_XARGS+:} false; then :
12064   $as_echo_n "(cached) " >&6
12065 else
12066   case $XARGS in
12067   [\\/]* | ?:[\\/]*)
12068   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12069   ;;
12070   *)
12071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076     for ac_exec_ext in '' $ac_executable_extensions; do
12077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12078     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12080     break 2
12081   fi
12082 done
12083   done
12084 IFS=$as_save_IFS
12085 
12086   ;;
12087 esac
12088 fi
12089 XARGS=$ac_cv_path_XARGS
12090 if test -n "$XARGS"; then
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12092 $as_echo "$XARGS" >&6; }
12093 else
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 fi
12097 
12098 
12099   test -n "$XARGS" && break
12100 done
12101 
12102   else
12103     # The variable is set, but is it from the command line or the environment?
12104 
12105     # Try to remove the string !XARGS! from our list.
12106     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12107     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12108       # If it failed, the variable was not from the command line. Ignore it,
12109       # but warn the user (except for BASH, which is always set by the calling BASH).
12110       if test "xXARGS" != xBASH; then
12111         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12112 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12113       fi
12114       # Try to locate tool using the code snippet
12115       for ac_prog in xargs
12116 do
12117   # Extract the first word of "$ac_prog", so it can be a program name with args.
12118 set dummy $ac_prog; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_path_XARGS+:} false; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   case $XARGS in
12125   [\\/]* | ?:[\\/]*)
12126   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12127   ;;
12128   *)
12129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130 for as_dir in $PATH
12131 do
12132   IFS=$as_save_IFS
12133   test -z "$as_dir" && as_dir=.
12134     for ac_exec_ext in '' $ac_executable_extensions; do
12135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138     break 2
12139   fi
12140 done
12141   done
12142 IFS=$as_save_IFS
12143 
12144   ;;
12145 esac
12146 fi
12147 XARGS=$ac_cv_path_XARGS
12148 if test -n "$XARGS"; then
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12150 $as_echo "$XARGS" >&6; }
12151 else
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155 
12156 
12157   test -n "$XARGS" && break
12158 done
12159 
12160     else
12161       # If it succeeded, then it was overridden by the user. We will use it
12162       # for the tool.
12163 
12164       # First remove it from the list of overridden variables, so we can test
12165       # for unknown variables in the end.
12166       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12167 
12168       # Check if we try to supply an empty value
12169       if test "x$XARGS" = x; then
12170         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12171 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12173 $as_echo_n "checking for XARGS... " >&6; }
12174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12175 $as_echo "disabled" >&6; }
12176       else
12177         # Check if the provided tool contains a complete path.
12178         tool_specified="$XARGS"
12179         tool_basename="${tool_specified##*/}"
12180         if test "x$tool_basename" = "x$tool_specified"; then
12181           # A command without a complete path is provided, search $PATH.
12182           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12183 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12184           # Extract the first word of "$tool_basename", so it can be a program name with args.
12185 set dummy $tool_basename; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_path_XARGS+:} false; then :
12189   $as_echo_n "(cached) " >&6
12190 else
12191   case $XARGS in
12192   [\\/]* | ?:[\\/]*)
12193   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12194   ;;
12195   *)
12196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199   IFS=$as_save_IFS
12200   test -z "$as_dir" && as_dir=.
12201     for ac_exec_ext in '' $ac_executable_extensions; do
12202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205     break 2
12206   fi
12207 done
12208   done
12209 IFS=$as_save_IFS
12210 
12211   ;;
12212 esac
12213 fi
12214 XARGS=$ac_cv_path_XARGS
12215 if test -n "$XARGS"; then
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12217 $as_echo "$XARGS" >&6; }
12218 else
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12221 fi
12222 
12223 
12224           if test "x$XARGS" = x; then
12225             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12226           fi
12227         else
12228           # Otherwise we believe it is a complete path. Use it as it is.
12229           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12230 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12231           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12232 $as_echo_n "checking for XARGS... " >&6; }
12233           if test ! -x "$tool_specified"; then
12234             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12235 $as_echo "not found" >&6; }
12236             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12237           fi
12238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12239 $as_echo "$tool_specified" >&6; }
12240         fi
12241       fi
12242     fi
12243 
12244   fi
12245 
12246 
12247 
12248   if test "x$XARGS" = x; then
12249     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12250   fi
12251 
12252 
12253 
12254   # Then required tools that require some special treatment.
12255 
12256 
12257   # Publish this variable in the help.
12258 
12259 
12260   if [ -z "${AWK+x}" ]; then
12261     # The variable is not set by user, try to locate tool using the code snippet
12262     for ac_prog in gawk mawk nawk awk
12263 do
12264   # Extract the first word of "$ac_prog", so it can be a program name with args.
12265 set dummy $ac_prog; ac_word=$2
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if ${ac_cv_prog_AWK+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   if test -n "$AWK"; then
12272   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12273 else
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12276 do
12277   IFS=$as_save_IFS
12278   test -z "$as_dir" && as_dir=.
12279     for ac_exec_ext in '' $ac_executable_extensions; do
12280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12281     ac_cv_prog_AWK="$ac_prog"
12282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283     break 2
12284   fi
12285 done
12286   done
12287 IFS=$as_save_IFS
12288 
12289 fi
12290 fi
12291 AWK=$ac_cv_prog_AWK
12292 if test -n "$AWK"; then
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12294 $as_echo "$AWK" >&6; }
12295 else
12296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12298 fi
12299 
12300 
12301   test -n "$AWK" && break
12302 done
12303 
12304   else
12305     # The variable is set, but is it from the command line or the environment?
12306 
12307     # Try to remove the string !AWK! from our list.
12308     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12309     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12310       # If it failed, the variable was not from the command line. Ignore it,
12311       # but warn the user (except for BASH, which is always set by the calling BASH).
12312       if test "xAWK" != xBASH; then
12313         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12314 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12315       fi
12316       # Try to locate tool using the code snippet
12317       for ac_prog in gawk mawk nawk awk
12318 do
12319   # Extract the first word of "$ac_prog", so it can be a program name with args.
12320 set dummy $ac_prog; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_prog_AWK+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   if test -n "$AWK"; then
12327   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_exec_ext in '' $ac_executable_extensions; do
12335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336     ac_cv_prog_AWK="$ac_prog"
12337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338     break 2
12339   fi
12340 done
12341   done
12342 IFS=$as_save_IFS
12343 
12344 fi
12345 fi
12346 AWK=$ac_cv_prog_AWK
12347 if test -n "$AWK"; then
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12349 $as_echo "$AWK" >&6; }
12350 else
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354 
12355 
12356   test -n "$AWK" && break
12357 done
12358 
12359     else
12360       # If it succeeded, then it was overridden by the user. We will use it
12361       # for the tool.
12362 
12363       # First remove it from the list of overridden variables, so we can test
12364       # for unknown variables in the end.
12365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12366 
12367       # Check if we try to supply an empty value
12368       if test "x$AWK" = x; then
12369         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12370 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12372 $as_echo_n "checking for AWK... " >&6; }
12373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12374 $as_echo "disabled" >&6; }
12375       else
12376         # Check if the provided tool contains a complete path.
12377         tool_specified="$AWK"
12378         tool_basename="${tool_specified##*/}"
12379         if test "x$tool_basename" = "x$tool_specified"; then
12380           # A command without a complete path is provided, search $PATH.
12381           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12382 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12383           # Extract the first word of "$tool_basename", so it can be a program name with args.
12384 set dummy $tool_basename; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_path_AWK+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390   case $AWK in
12391   [\\/]* | ?:[\\/]*)
12392   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12393   ;;
12394   *)
12395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in $PATH
12397 do
12398   IFS=$as_save_IFS
12399   test -z "$as_dir" && as_dir=.
12400     for ac_exec_ext in '' $ac_executable_extensions; do
12401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12402     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404     break 2
12405   fi
12406 done
12407   done
12408 IFS=$as_save_IFS
12409 
12410   ;;
12411 esac
12412 fi
12413 AWK=$ac_cv_path_AWK
12414 if test -n "$AWK"; then
12415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12416 $as_echo "$AWK" >&6; }
12417 else
12418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421 
12422 
12423           if test "x$AWK" = x; then
12424             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12425           fi
12426         else
12427           # Otherwise we believe it is a complete path. Use it as it is.
12428           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12429 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12430           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12431 $as_echo_n "checking for AWK... " >&6; }
12432           if test ! -x "$tool_specified"; then
12433             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12434 $as_echo "not found" >&6; }
12435             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12436           fi
12437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12438 $as_echo "$tool_specified" >&6; }
12439         fi
12440       fi
12441     fi
12442 
12443   fi
12444 
12445 
12446   if test "x$AWK" = x; then
12447     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12448   fi
12449 
12450 
12451 
12452 
12453   # Publish this variable in the help.
12454 
12455 
12456   if [ -z "${GREP+x}" ]; then
12457     # The variable is not set by user, try to locate tool using the code snippet
12458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12459 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12460 if ${ac_cv_path_GREP+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   if test -z "$GREP"; then
12464   ac_path_GREP_found=false
12465   # Loop through the user's path and test for each of PROGNAME-LIST
12466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12468 do
12469   IFS=$as_save_IFS
12470   test -z "$as_dir" && as_dir=.
12471     for ac_prog in grep ggrep; do
12472     for ac_exec_ext in '' $ac_executable_extensions; do
12473       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12474       as_fn_executable_p "$ac_path_GREP" || continue
12475 # Check for GNU ac_path_GREP and select it if it is found.
12476   # Check for GNU $ac_path_GREP
12477 case `"$ac_path_GREP" --version 2>&1` in
12478 *GNU*)
12479   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12480 *)
12481   ac_count=0
12482   $as_echo_n 0123456789 >"conftest.in"
12483   while :
12484   do
12485     cat "conftest.in" "conftest.in" >"conftest.tmp"
12486     mv "conftest.tmp" "conftest.in"
12487     cp "conftest.in" "conftest.nl"
12488     $as_echo 'GREP' >> "conftest.nl"
12489     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12490     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12491     as_fn_arith $ac_count + 1 && ac_count=$as_val
12492     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12493       # Best one so far, save it but keep looking for a better one
12494       ac_cv_path_GREP="$ac_path_GREP"
12495       ac_path_GREP_max=$ac_count
12496     fi
12497     # 10*(2^10) chars as input seems more than enough
12498     test $ac_count -gt 10 && break
12499   done
12500   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12501 esac
12502 
12503       $ac_path_GREP_found && break 3
12504     done
12505   done
12506   done
12507 IFS=$as_save_IFS
12508   if test -z "$ac_cv_path_GREP"; then
12509     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12510   fi
12511 else
12512   ac_cv_path_GREP=$GREP
12513 fi
12514 
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12517 $as_echo "$ac_cv_path_GREP" >&6; }
12518  GREP="$ac_cv_path_GREP"
12519 
12520 
12521   else
12522     # The variable is set, but is it from the command line or the environment?
12523 
12524     # Try to remove the string !GREP! from our list.
12525     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12526     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12527       # If it failed, the variable was not from the command line. Ignore it,
12528       # but warn the user (except for BASH, which is always set by the calling BASH).
12529       if test "xGREP" != xBASH; then
12530         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12531 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12532       fi
12533       # Try to locate tool using the code snippet
12534       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12535 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12536 if ${ac_cv_path_GREP+:} false; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   if test -z "$GREP"; then
12540   ac_path_GREP_found=false
12541   # Loop through the user's path and test for each of PROGNAME-LIST
12542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12544 do
12545   IFS=$as_save_IFS
12546   test -z "$as_dir" && as_dir=.
12547     for ac_prog in grep ggrep; do
12548     for ac_exec_ext in '' $ac_executable_extensions; do
12549       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12550       as_fn_executable_p "$ac_path_GREP" || continue
12551 # Check for GNU ac_path_GREP and select it if it is found.
12552   # Check for GNU $ac_path_GREP
12553 case `"$ac_path_GREP" --version 2>&1` in
12554 *GNU*)
12555   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12556 *)
12557   ac_count=0
12558   $as_echo_n 0123456789 >"conftest.in"
12559   while :
12560   do
12561     cat "conftest.in" "conftest.in" >"conftest.tmp"
12562     mv "conftest.tmp" "conftest.in"
12563     cp "conftest.in" "conftest.nl"
12564     $as_echo 'GREP' >> "conftest.nl"
12565     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12567     as_fn_arith $ac_count + 1 && ac_count=$as_val
12568     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12569       # Best one so far, save it but keep looking for a better one
12570       ac_cv_path_GREP="$ac_path_GREP"
12571       ac_path_GREP_max=$ac_count
12572     fi
12573     # 10*(2^10) chars as input seems more than enough
12574     test $ac_count -gt 10 && break
12575   done
12576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12577 esac
12578 
12579       $ac_path_GREP_found && break 3
12580     done
12581   done
12582   done
12583 IFS=$as_save_IFS
12584   if test -z "$ac_cv_path_GREP"; then
12585     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12586   fi
12587 else
12588   ac_cv_path_GREP=$GREP
12589 fi
12590 
12591 fi
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12593 $as_echo "$ac_cv_path_GREP" >&6; }
12594  GREP="$ac_cv_path_GREP"
12595 
12596 
12597     else
12598       # If it succeeded, then it was overridden by the user. We will use it
12599       # for the tool.
12600 
12601       # First remove it from the list of overridden variables, so we can test
12602       # for unknown variables in the end.
12603       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12604 
12605       # Check if we try to supply an empty value
12606       if test "x$GREP" = x; then
12607         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12608 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12609         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12610 $as_echo_n "checking for GREP... " >&6; }
12611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12612 $as_echo "disabled" >&6; }
12613       else
12614         # Check if the provided tool contains a complete path.
12615         tool_specified="$GREP"
12616         tool_basename="${tool_specified##*/}"
12617         if test "x$tool_basename" = "x$tool_specified"; then
12618           # A command without a complete path is provided, search $PATH.
12619           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12620 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12621           # Extract the first word of "$tool_basename", so it can be a program name with args.
12622 set dummy $tool_basename; ac_word=$2
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12624 $as_echo_n "checking for $ac_word... " >&6; }
12625 if ${ac_cv_path_GREP+:} false; then :
12626   $as_echo_n "(cached) " >&6
12627 else
12628   case $GREP in
12629   [\\/]* | ?:[\\/]*)
12630   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12631   ;;
12632   *)
12633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12635 do
12636   IFS=$as_save_IFS
12637   test -z "$as_dir" && as_dir=.
12638     for ac_exec_ext in '' $ac_executable_extensions; do
12639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12640     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12642     break 2
12643   fi
12644 done
12645   done
12646 IFS=$as_save_IFS
12647 
12648   ;;
12649 esac
12650 fi
12651 GREP=$ac_cv_path_GREP
12652 if test -n "$GREP"; then
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12654 $as_echo "$GREP" >&6; }
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12658 fi
12659 
12660 
12661           if test "x$GREP" = x; then
12662             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12663           fi
12664         else
12665           # Otherwise we believe it is a complete path. Use it as it is.
12666           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12667 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12668           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12669 $as_echo_n "checking for GREP... " >&6; }
12670           if test ! -x "$tool_specified"; then
12671             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12672 $as_echo "not found" >&6; }
12673             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12674           fi
12675           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12676 $as_echo "$tool_specified" >&6; }
12677         fi
12678       fi
12679     fi
12680 
12681   fi
12682 
12683 
12684   if test "x$GREP" = x; then
12685     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12686   fi
12687 
12688 
12689 
12690 
12691   # Publish this variable in the help.
12692 
12693 
12694   if [ -z "${EGREP+x}" ]; then
12695     # The variable is not set by user, try to locate tool using the code snippet
12696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12697 $as_echo_n "checking for egrep... " >&6; }
12698 if ${ac_cv_path_EGREP+:} false; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12702    then ac_cv_path_EGREP="$GREP -E"
12703    else
12704      if test -z "$EGREP"; then
12705   ac_path_EGREP_found=false
12706   # Loop through the user's path and test for each of PROGNAME-LIST
12707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712     for ac_prog in egrep; do
12713     for ac_exec_ext in '' $ac_executable_extensions; do
12714       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12715       as_fn_executable_p "$ac_path_EGREP" || continue
12716 # Check for GNU ac_path_EGREP and select it if it is found.
12717   # Check for GNU $ac_path_EGREP
12718 case `"$ac_path_EGREP" --version 2>&1` in
12719 *GNU*)
12720   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12721 *)
12722   ac_count=0
12723   $as_echo_n 0123456789 >"conftest.in"
12724   while :
12725   do
12726     cat "conftest.in" "conftest.in" >"conftest.tmp"
12727     mv "conftest.tmp" "conftest.in"
12728     cp "conftest.in" "conftest.nl"
12729     $as_echo 'EGREP' >> "conftest.nl"
12730     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12732     as_fn_arith $ac_count + 1 && ac_count=$as_val
12733     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12734       # Best one so far, save it but keep looking for a better one
12735       ac_cv_path_EGREP="$ac_path_EGREP"
12736       ac_path_EGREP_max=$ac_count
12737     fi
12738     # 10*(2^10) chars as input seems more than enough
12739     test $ac_count -gt 10 && break
12740   done
12741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12742 esac
12743 
12744       $ac_path_EGREP_found && break 3
12745     done
12746   done
12747   done
12748 IFS=$as_save_IFS
12749   if test -z "$ac_cv_path_EGREP"; then
12750     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12751   fi
12752 else
12753   ac_cv_path_EGREP=$EGREP
12754 fi
12755 
12756    fi
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12759 $as_echo "$ac_cv_path_EGREP" >&6; }
12760  EGREP="$ac_cv_path_EGREP"
12761 
12762 
12763   else
12764     # The variable is set, but is it from the command line or the environment?
12765 
12766     # Try to remove the string !EGREP! from our list.
12767     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12768     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12769       # If it failed, the variable was not from the command line. Ignore it,
12770       # but warn the user (except for BASH, which is always set by the calling BASH).
12771       if test "xEGREP" != xBASH; then
12772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12773 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12774       fi
12775       # Try to locate tool using the code snippet
12776       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12777 $as_echo_n "checking for egrep... " >&6; }
12778 if ${ac_cv_path_EGREP+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12782    then ac_cv_path_EGREP="$GREP -E"
12783    else
12784      if test -z "$EGREP"; then
12785   ac_path_EGREP_found=false
12786   # Loop through the user's path and test for each of PROGNAME-LIST
12787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12789 do
12790   IFS=$as_save_IFS
12791   test -z "$as_dir" && as_dir=.
12792     for ac_prog in egrep; do
12793     for ac_exec_ext in '' $ac_executable_extensions; do
12794       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12795       as_fn_executable_p "$ac_path_EGREP" || continue
12796 # Check for GNU ac_path_EGREP and select it if it is found.
12797   # Check for GNU $ac_path_EGREP
12798 case `"$ac_path_EGREP" --version 2>&1` in
12799 *GNU*)
12800   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12801 *)
12802   ac_count=0
12803   $as_echo_n 0123456789 >"conftest.in"
12804   while :
12805   do
12806     cat "conftest.in" "conftest.in" >"conftest.tmp"
12807     mv "conftest.tmp" "conftest.in"
12808     cp "conftest.in" "conftest.nl"
12809     $as_echo 'EGREP' >> "conftest.nl"
12810     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12811     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12812     as_fn_arith $ac_count + 1 && ac_count=$as_val
12813     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12814       # Best one so far, save it but keep looking for a better one
12815       ac_cv_path_EGREP="$ac_path_EGREP"
12816       ac_path_EGREP_max=$ac_count
12817     fi
12818     # 10*(2^10) chars as input seems more than enough
12819     test $ac_count -gt 10 && break
12820   done
12821   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12822 esac
12823 
12824       $ac_path_EGREP_found && break 3
12825     done
12826   done
12827   done
12828 IFS=$as_save_IFS
12829   if test -z "$ac_cv_path_EGREP"; then
12830     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12831   fi
12832 else
12833   ac_cv_path_EGREP=$EGREP
12834 fi
12835 
12836    fi
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12839 $as_echo "$ac_cv_path_EGREP" >&6; }
12840  EGREP="$ac_cv_path_EGREP"
12841 
12842 
12843     else
12844       # If it succeeded, then it was overridden by the user. We will use it
12845       # for the tool.
12846 
12847       # First remove it from the list of overridden variables, so we can test
12848       # for unknown variables in the end.
12849       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12850 
12851       # Check if we try to supply an empty value
12852       if test "x$EGREP" = x; then
12853         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12854 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12856 $as_echo_n "checking for EGREP... " >&6; }
12857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12858 $as_echo "disabled" >&6; }
12859       else
12860         # Check if the provided tool contains a complete path.
12861         tool_specified="$EGREP"
12862         tool_basename="${tool_specified##*/}"
12863         if test "x$tool_basename" = "x$tool_specified"; then
12864           # A command without a complete path is provided, search $PATH.
12865           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12866 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12867           # Extract the first word of "$tool_basename", so it can be a program name with args.
12868 set dummy $tool_basename; ac_word=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_path_EGREP+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874   case $EGREP in
12875   [\\/]* | ?:[\\/]*)
12876   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12877   ;;
12878   *)
12879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882   IFS=$as_save_IFS
12883   test -z "$as_dir" && as_dir=.
12884     for ac_exec_ext in '' $ac_executable_extensions; do
12885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888     break 2
12889   fi
12890 done
12891   done
12892 IFS=$as_save_IFS
12893 
12894   ;;
12895 esac
12896 fi
12897 EGREP=$ac_cv_path_EGREP
12898 if test -n "$EGREP"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12900 $as_echo "$EGREP" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905 
12906 
12907           if test "x$EGREP" = x; then
12908             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12909           fi
12910         else
12911           # Otherwise we believe it is a complete path. Use it as it is.
12912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12913 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12914           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12915 $as_echo_n "checking for EGREP... " >&6; }
12916           if test ! -x "$tool_specified"; then
12917             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12918 $as_echo "not found" >&6; }
12919             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12920           fi
12921           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12922 $as_echo "$tool_specified" >&6; }
12923         fi
12924       fi
12925     fi
12926 
12927   fi
12928 
12929 
12930   if test "x$EGREP" = x; then
12931     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12932   fi
12933 
12934 
12935 
12936 
12937   # Publish this variable in the help.
12938 
12939 
12940   if [ -z "${FGREP+x}" ]; then
12941     # The variable is not set by user, try to locate tool using the code snippet
12942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12943 $as_echo_n "checking for fgrep... " >&6; }
12944 if ${ac_cv_path_FGREP+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12948    then ac_cv_path_FGREP="$GREP -F"
12949    else
12950      if test -z "$FGREP"; then
12951   ac_path_FGREP_found=false
12952   # Loop through the user's path and test for each of PROGNAME-LIST
12953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12955 do
12956   IFS=$as_save_IFS
12957   test -z "$as_dir" && as_dir=.
12958     for ac_prog in fgrep; do
12959     for ac_exec_ext in '' $ac_executable_extensions; do
12960       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12961       as_fn_executable_p "$ac_path_FGREP" || continue
12962 # Check for GNU ac_path_FGREP and select it if it is found.
12963   # Check for GNU $ac_path_FGREP
12964 case `"$ac_path_FGREP" --version 2>&1` in
12965 *GNU*)
12966   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12967 *)
12968   ac_count=0
12969   $as_echo_n 0123456789 >"conftest.in"
12970   while :
12971   do
12972     cat "conftest.in" "conftest.in" >"conftest.tmp"
12973     mv "conftest.tmp" "conftest.in"
12974     cp "conftest.in" "conftest.nl"
12975     $as_echo 'FGREP' >> "conftest.nl"
12976     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12977     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12978     as_fn_arith $ac_count + 1 && ac_count=$as_val
12979     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12980       # Best one so far, save it but keep looking for a better one
12981       ac_cv_path_FGREP="$ac_path_FGREP"
12982       ac_path_FGREP_max=$ac_count
12983     fi
12984     # 10*(2^10) chars as input seems more than enough
12985     test $ac_count -gt 10 && break
12986   done
12987   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12988 esac
12989 
12990       $ac_path_FGREP_found && break 3
12991     done
12992   done
12993   done
12994 IFS=$as_save_IFS
12995   if test -z "$ac_cv_path_FGREP"; then
12996     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12997   fi
12998 else
12999   ac_cv_path_FGREP=$FGREP
13000 fi
13001 
13002    fi
13003 fi
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13005 $as_echo "$ac_cv_path_FGREP" >&6; }
13006  FGREP="$ac_cv_path_FGREP"
13007 
13008 
13009   else
13010     # The variable is set, but is it from the command line or the environment?
13011 
13012     # Try to remove the string !FGREP! from our list.
13013     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13014     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13015       # If it failed, the variable was not from the command line. Ignore it,
13016       # but warn the user (except for BASH, which is always set by the calling BASH).
13017       if test "xFGREP" != xBASH; then
13018         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13019 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13020       fi
13021       # Try to locate tool using the code snippet
13022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13023 $as_echo_n "checking for fgrep... " >&6; }
13024 if ${ac_cv_path_FGREP+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13028    then ac_cv_path_FGREP="$GREP -F"
13029    else
13030      if test -z "$FGREP"; then
13031   ac_path_FGREP_found=false
13032   # Loop through the user's path and test for each of PROGNAME-LIST
13033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13035 do
13036   IFS=$as_save_IFS
13037   test -z "$as_dir" && as_dir=.
13038     for ac_prog in fgrep; do
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13041       as_fn_executable_p "$ac_path_FGREP" || continue
13042 # Check for GNU ac_path_FGREP and select it if it is found.
13043   # Check for GNU $ac_path_FGREP
13044 case `"$ac_path_FGREP" --version 2>&1` in
13045 *GNU*)
13046   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13047 *)
13048   ac_count=0
13049   $as_echo_n 0123456789 >"conftest.in"
13050   while :
13051   do
13052     cat "conftest.in" "conftest.in" >"conftest.tmp"
13053     mv "conftest.tmp" "conftest.in"
13054     cp "conftest.in" "conftest.nl"
13055     $as_echo 'FGREP' >> "conftest.nl"
13056     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13057     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13058     as_fn_arith $ac_count + 1 && ac_count=$as_val
13059     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13060       # Best one so far, save it but keep looking for a better one
13061       ac_cv_path_FGREP="$ac_path_FGREP"
13062       ac_path_FGREP_max=$ac_count
13063     fi
13064     # 10*(2^10) chars as input seems more than enough
13065     test $ac_count -gt 10 && break
13066   done
13067   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13068 esac
13069 
13070       $ac_path_FGREP_found && break 3
13071     done
13072   done
13073   done
13074 IFS=$as_save_IFS
13075   if test -z "$ac_cv_path_FGREP"; then
13076     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13077   fi
13078 else
13079   ac_cv_path_FGREP=$FGREP
13080 fi
13081 
13082    fi
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13085 $as_echo "$ac_cv_path_FGREP" >&6; }
13086  FGREP="$ac_cv_path_FGREP"
13087 
13088 
13089     else
13090       # If it succeeded, then it was overridden by the user. We will use it
13091       # for the tool.
13092 
13093       # First remove it from the list of overridden variables, so we can test
13094       # for unknown variables in the end.
13095       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13096 
13097       # Check if we try to supply an empty value
13098       if test "x$FGREP" = x; then
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13100 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13102 $as_echo_n "checking for FGREP... " >&6; }
13103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13104 $as_echo "disabled" >&6; }
13105       else
13106         # Check if the provided tool contains a complete path.
13107         tool_specified="$FGREP"
13108         tool_basename="${tool_specified##*/}"
13109         if test "x$tool_basename" = "x$tool_specified"; then
13110           # A command without a complete path is provided, search $PATH.
13111           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13112 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13113           # Extract the first word of "$tool_basename", so it can be a program name with args.
13114 set dummy $tool_basename; ac_word=$2
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 $as_echo_n "checking for $ac_word... " >&6; }
13117 if ${ac_cv_path_FGREP+:} false; then :
13118   $as_echo_n "(cached) " >&6
13119 else
13120   case $FGREP in
13121   [\\/]* | ?:[\\/]*)
13122   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13123   ;;
13124   *)
13125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13127 do
13128   IFS=$as_save_IFS
13129   test -z "$as_dir" && as_dir=.
13130     for ac_exec_ext in '' $ac_executable_extensions; do
13131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13132     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13134     break 2
13135   fi
13136 done
13137   done
13138 IFS=$as_save_IFS
13139 
13140   ;;
13141 esac
13142 fi
13143 FGREP=$ac_cv_path_FGREP
13144 if test -n "$FGREP"; then
13145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13146 $as_echo "$FGREP" >&6; }
13147 else
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 fi
13151 
13152 
13153           if test "x$FGREP" = x; then
13154             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13155           fi
13156         else
13157           # Otherwise we believe it is a complete path. Use it as it is.
13158           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13159 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13160           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13161 $as_echo_n "checking for FGREP... " >&6; }
13162           if test ! -x "$tool_specified"; then
13163             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13164 $as_echo "not found" >&6; }
13165             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13166           fi
13167           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13168 $as_echo "$tool_specified" >&6; }
13169         fi
13170       fi
13171     fi
13172 
13173   fi
13174 
13175 
13176   if test "x$FGREP" = x; then
13177     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13178   fi
13179 
13180 
13181 
13182 
13183   # Publish this variable in the help.
13184 
13185 
13186   if [ -z "${SED+x}" ]; then
13187     # The variable is not set by user, try to locate tool using the code snippet
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13190 if ${ac_cv_path_SED+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13194      for ac_i in 1 2 3 4 5 6 7; do
13195        ac_script="$ac_script$as_nl$ac_script"
13196      done
13197      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13198      { ac_script=; unset ac_script;}
13199      if test -z "$SED"; then
13200   ac_path_SED_found=false
13201   # Loop through the user's path and test for each of PROGNAME-LIST
13202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203 for as_dir in $PATH
13204 do
13205   IFS=$as_save_IFS
13206   test -z "$as_dir" && as_dir=.
13207     for ac_prog in sed gsed; do
13208     for ac_exec_ext in '' $ac_executable_extensions; do
13209       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13210       as_fn_executable_p "$ac_path_SED" || continue
13211 # Check for GNU ac_path_SED and select it if it is found.
13212   # Check for GNU $ac_path_SED
13213 case `"$ac_path_SED" --version 2>&1` in
13214 *GNU*)
13215   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13216 *)
13217   ac_count=0
13218   $as_echo_n 0123456789 >"conftest.in"
13219   while :
13220   do
13221     cat "conftest.in" "conftest.in" >"conftest.tmp"
13222     mv "conftest.tmp" "conftest.in"
13223     cp "conftest.in" "conftest.nl"
13224     $as_echo '' >> "conftest.nl"
13225     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13227     as_fn_arith $ac_count + 1 && ac_count=$as_val
13228     if test $ac_count -gt ${ac_path_SED_max-0}; then
13229       # Best one so far, save it but keep looking for a better one
13230       ac_cv_path_SED="$ac_path_SED"
13231       ac_path_SED_max=$ac_count
13232     fi
13233     # 10*(2^10) chars as input seems more than enough
13234     test $ac_count -gt 10 && break
13235   done
13236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13237 esac
13238 
13239       $ac_path_SED_found && break 3
13240     done
13241   done
13242   done
13243 IFS=$as_save_IFS
13244   if test -z "$ac_cv_path_SED"; then
13245     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13246   fi
13247 else
13248   ac_cv_path_SED=$SED
13249 fi
13250 
13251 fi
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13253 $as_echo "$ac_cv_path_SED" >&6; }
13254  SED="$ac_cv_path_SED"
13255   rm -f conftest.sed
13256 
13257   else
13258     # The variable is set, but is it from the command line or the environment?
13259 
13260     # Try to remove the string !SED! from our list.
13261     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13262     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13263       # If it failed, the variable was not from the command line. Ignore it,
13264       # but warn the user (except for BASH, which is always set by the calling BASH).
13265       if test "xSED" != xBASH; then
13266         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13267 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13268       fi
13269       # Try to locate tool using the code snippet
13270       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13271 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13272 if ${ac_cv_path_SED+:} false; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13276      for ac_i in 1 2 3 4 5 6 7; do
13277        ac_script="$ac_script$as_nl$ac_script"
13278      done
13279      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13280      { ac_script=; unset ac_script;}
13281      if test -z "$SED"; then
13282   ac_path_SED_found=false
13283   # Loop through the user's path and test for each of PROGNAME-LIST
13284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287   IFS=$as_save_IFS
13288   test -z "$as_dir" && as_dir=.
13289     for ac_prog in sed gsed; do
13290     for ac_exec_ext in '' $ac_executable_extensions; do
13291       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13292       as_fn_executable_p "$ac_path_SED" || continue
13293 # Check for GNU ac_path_SED and select it if it is found.
13294   # Check for GNU $ac_path_SED
13295 case `"$ac_path_SED" --version 2>&1` in
13296 *GNU*)
13297   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13298 *)
13299   ac_count=0
13300   $as_echo_n 0123456789 >"conftest.in"
13301   while :
13302   do
13303     cat "conftest.in" "conftest.in" >"conftest.tmp"
13304     mv "conftest.tmp" "conftest.in"
13305     cp "conftest.in" "conftest.nl"
13306     $as_echo '' >> "conftest.nl"
13307     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13308     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13309     as_fn_arith $ac_count + 1 && ac_count=$as_val
13310     if test $ac_count -gt ${ac_path_SED_max-0}; then
13311       # Best one so far, save it but keep looking for a better one
13312       ac_cv_path_SED="$ac_path_SED"
13313       ac_path_SED_max=$ac_count
13314     fi
13315     # 10*(2^10) chars as input seems more than enough
13316     test $ac_count -gt 10 && break
13317   done
13318   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13319 esac
13320 
13321       $ac_path_SED_found && break 3
13322     done
13323   done
13324   done
13325 IFS=$as_save_IFS
13326   if test -z "$ac_cv_path_SED"; then
13327     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13328   fi
13329 else
13330   ac_cv_path_SED=$SED
13331 fi
13332 
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13335 $as_echo "$ac_cv_path_SED" >&6; }
13336  SED="$ac_cv_path_SED"
13337   rm -f conftest.sed
13338 
13339     else
13340       # If it succeeded, then it was overridden by the user. We will use it
13341       # for the tool.
13342 
13343       # First remove it from the list of overridden variables, so we can test
13344       # for unknown variables in the end.
13345       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13346 
13347       # Check if we try to supply an empty value
13348       if test "x$SED" = x; then
13349         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13350 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13352 $as_echo_n "checking for SED... " >&6; }
13353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13354 $as_echo "disabled" >&6; }
13355       else
13356         # Check if the provided tool contains a complete path.
13357         tool_specified="$SED"
13358         tool_basename="${tool_specified##*/}"
13359         if test "x$tool_basename" = "x$tool_specified"; then
13360           # A command without a complete path is provided, search $PATH.
13361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13362 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13363           # Extract the first word of "$tool_basename", so it can be a program name with args.
13364 set dummy $tool_basename; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if ${ac_cv_path_SED+:} false; then :
13368   $as_echo_n "(cached) " >&6
13369 else
13370   case $SED in
13371   [\\/]* | ?:[\\/]*)
13372   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13373   ;;
13374   *)
13375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13377 do
13378   IFS=$as_save_IFS
13379   test -z "$as_dir" && as_dir=.
13380     for ac_exec_ext in '' $ac_executable_extensions; do
13381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13382     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384     break 2
13385   fi
13386 done
13387   done
13388 IFS=$as_save_IFS
13389 
13390   ;;
13391 esac
13392 fi
13393 SED=$ac_cv_path_SED
13394 if test -n "$SED"; then
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13396 $as_echo "$SED" >&6; }
13397 else
13398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400 fi
13401 
13402 
13403           if test "x$SED" = x; then
13404             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13405           fi
13406         else
13407           # Otherwise we believe it is a complete path. Use it as it is.
13408           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13409 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13411 $as_echo_n "checking for SED... " >&6; }
13412           if test ! -x "$tool_specified"; then
13413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13414 $as_echo "not found" >&6; }
13415             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13416           fi
13417           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13418 $as_echo "$tool_specified" >&6; }
13419         fi
13420       fi
13421     fi
13422 
13423   fi
13424 
13425 
13426   if test "x$SED" = x; then
13427     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13428   fi
13429 
13430 
13431 
13432   # Always force rm.
13433   RM="$RM -f"
13434 
13435   # pwd behaves differently on various platforms and some don't support the -L flag.
13436   # Always use the bash builtin pwd to get uniform behavior.
13437   THEPWDCMD=pwd
13438 
13439   # These are not required on all platforms
13440 
13441 
13442   # Publish this variable in the help.
13443 
13444 
13445   if [ -z "${CYGPATH+x}" ]; then
13446     # The variable is not set by user, try to locate tool using the code snippet
13447     for ac_prog in cygpath
13448 do
13449   # Extract the first word of "$ac_prog", so it can be a program name with args.
13450 set dummy $ac_prog; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if ${ac_cv_path_CYGPATH+:} false; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   case $CYGPATH in
13457   [\\/]* | ?:[\\/]*)
13458   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13459   ;;
13460   *)
13461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462 for as_dir in $PATH
13463 do
13464   IFS=$as_save_IFS
13465   test -z "$as_dir" && as_dir=.
13466     for ac_exec_ext in '' $ac_executable_extensions; do
13467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13468     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13470     break 2
13471   fi
13472 done
13473   done
13474 IFS=$as_save_IFS
13475 
13476   ;;
13477 esac
13478 fi
13479 CYGPATH=$ac_cv_path_CYGPATH
13480 if test -n "$CYGPATH"; then
13481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13482 $as_echo "$CYGPATH" >&6; }
13483 else
13484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 fi
13487 
13488 
13489   test -n "$CYGPATH" && break
13490 done
13491 
13492   else
13493     # The variable is set, but is it from the command line or the environment?
13494 
13495     # Try to remove the string !CYGPATH! from our list.
13496     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13497     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13498       # If it failed, the variable was not from the command line. Ignore it,
13499       # but warn the user (except for BASH, which is always set by the calling BASH).
13500       if test "xCYGPATH" != xBASH; then
13501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13502 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13503       fi
13504       # Try to locate tool using the code snippet
13505       for ac_prog in cygpath
13506 do
13507   # Extract the first word of "$ac_prog", so it can be a program name with args.
13508 set dummy $ac_prog; ac_word=$2
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13510 $as_echo_n "checking for $ac_word... " >&6; }
13511 if ${ac_cv_path_CYGPATH+:} false; then :
13512   $as_echo_n "(cached) " >&6
13513 else
13514   case $CYGPATH in
13515   [\\/]* | ?:[\\/]*)
13516   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13517   ;;
13518   *)
13519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13521 do
13522   IFS=$as_save_IFS
13523   test -z "$as_dir" && as_dir=.
13524     for ac_exec_ext in '' $ac_executable_extensions; do
13525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13526     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528     break 2
13529   fi
13530 done
13531   done
13532 IFS=$as_save_IFS
13533 
13534   ;;
13535 esac
13536 fi
13537 CYGPATH=$ac_cv_path_CYGPATH
13538 if test -n "$CYGPATH"; then
13539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13540 $as_echo "$CYGPATH" >&6; }
13541 else
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545 
13546 
13547   test -n "$CYGPATH" && break
13548 done
13549 
13550     else
13551       # If it succeeded, then it was overridden by the user. We will use it
13552       # for the tool.
13553 
13554       # First remove it from the list of overridden variables, so we can test
13555       # for unknown variables in the end.
13556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13557 
13558       # Check if we try to supply an empty value
13559       if test "x$CYGPATH" = x; then
13560         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13561 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13563 $as_echo_n "checking for CYGPATH... " >&6; }
13564         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13565 $as_echo "disabled" >&6; }
13566       else
13567         # Check if the provided tool contains a complete path.
13568         tool_specified="$CYGPATH"
13569         tool_basename="${tool_specified##*/}"
13570         if test "x$tool_basename" = "x$tool_specified"; then
13571           # A command without a complete path is provided, search $PATH.
13572           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13573 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13574           # Extract the first word of "$tool_basename", so it can be a program name with args.
13575 set dummy $tool_basename; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13577 $as_echo_n "checking for $ac_word... " >&6; }
13578 if ${ac_cv_path_CYGPATH+:} false; then :
13579   $as_echo_n "(cached) " >&6
13580 else
13581   case $CYGPATH in
13582   [\\/]* | ?:[\\/]*)
13583   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13584   ;;
13585   *)
13586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589   IFS=$as_save_IFS
13590   test -z "$as_dir" && as_dir=.
13591     for ac_exec_ext in '' $ac_executable_extensions; do
13592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13593     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595     break 2
13596   fi
13597 done
13598   done
13599 IFS=$as_save_IFS
13600 
13601   ;;
13602 esac
13603 fi
13604 CYGPATH=$ac_cv_path_CYGPATH
13605 if test -n "$CYGPATH"; then
13606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13607 $as_echo "$CYGPATH" >&6; }
13608 else
13609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611 fi
13612 
13613 
13614           if test "x$CYGPATH" = x; then
13615             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13616           fi
13617         else
13618           # Otherwise we believe it is a complete path. Use it as it is.
13619           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13620 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13621           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13622 $as_echo_n "checking for CYGPATH... " >&6; }
13623           if test ! -x "$tool_specified"; then
13624             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13625 $as_echo "not found" >&6; }
13626             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13627           fi
13628           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13629 $as_echo "$tool_specified" >&6; }
13630         fi
13631       fi
13632     fi
13633 
13634   fi
13635 
13636 
13637 
13638 
13639   # Publish this variable in the help.
13640 
13641 
13642   if [ -z "${READLINK+x}" ]; then
13643     # The variable is not set by user, try to locate tool using the code snippet
13644     for ac_prog in greadlink readlink
13645 do
13646   # Extract the first word of "$ac_prog", so it can be a program name with args.
13647 set dummy $ac_prog; ac_word=$2
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13649 $as_echo_n "checking for $ac_word... " >&6; }
13650 if ${ac_cv_path_READLINK+:} false; then :
13651   $as_echo_n "(cached) " >&6
13652 else
13653   case $READLINK in
13654   [\\/]* | ?:[\\/]*)
13655   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13656   ;;
13657   *)
13658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13660 do
13661   IFS=$as_save_IFS
13662   test -z "$as_dir" && as_dir=.
13663     for ac_exec_ext in '' $ac_executable_extensions; do
13664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667     break 2
13668   fi
13669 done
13670   done
13671 IFS=$as_save_IFS
13672 
13673   ;;
13674 esac
13675 fi
13676 READLINK=$ac_cv_path_READLINK
13677 if test -n "$READLINK"; then
13678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13679 $as_echo "$READLINK" >&6; }
13680 else
13681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683 fi
13684 
13685 
13686   test -n "$READLINK" && break
13687 done
13688 
13689   else
13690     # The variable is set, but is it from the command line or the environment?
13691 
13692     # Try to remove the string !READLINK! from our list.
13693     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13694     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13695       # If it failed, the variable was not from the command line. Ignore it,
13696       # but warn the user (except for BASH, which is always set by the calling BASH).
13697       if test "xREADLINK" != xBASH; then
13698         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13699 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13700       fi
13701       # Try to locate tool using the code snippet
13702       for ac_prog in greadlink readlink
13703 do
13704   # Extract the first word of "$ac_prog", so it can be a program name with args.
13705 set dummy $ac_prog; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if ${ac_cv_path_READLINK+:} false; then :
13709   $as_echo_n "(cached) " >&6
13710 else
13711   case $READLINK in
13712   [\\/]* | ?:[\\/]*)
13713   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13714   ;;
13715   *)
13716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13718 do
13719   IFS=$as_save_IFS
13720   test -z "$as_dir" && as_dir=.
13721     for ac_exec_ext in '' $ac_executable_extensions; do
13722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13723     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13725     break 2
13726   fi
13727 done
13728   done
13729 IFS=$as_save_IFS
13730 
13731   ;;
13732 esac
13733 fi
13734 READLINK=$ac_cv_path_READLINK
13735 if test -n "$READLINK"; then
13736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13737 $as_echo "$READLINK" >&6; }
13738 else
13739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740 $as_echo "no" >&6; }
13741 fi
13742 
13743 
13744   test -n "$READLINK" && break
13745 done
13746 
13747     else
13748       # If it succeeded, then it was overridden by the user. We will use it
13749       # for the tool.
13750 
13751       # First remove it from the list of overridden variables, so we can test
13752       # for unknown variables in the end.
13753       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13754 
13755       # Check if we try to supply an empty value
13756       if test "x$READLINK" = x; then
13757         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13758 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13760 $as_echo_n "checking for READLINK... " >&6; }
13761         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13762 $as_echo "disabled" >&6; }
13763       else
13764         # Check if the provided tool contains a complete path.
13765         tool_specified="$READLINK"
13766         tool_basename="${tool_specified##*/}"
13767         if test "x$tool_basename" = "x$tool_specified"; then
13768           # A command without a complete path is provided, search $PATH.
13769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13770 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13771           # Extract the first word of "$tool_basename", so it can be a program name with args.
13772 set dummy $tool_basename; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if ${ac_cv_path_READLINK+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   case $READLINK in
13779   [\\/]* | ?:[\\/]*)
13780   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13781   ;;
13782   *)
13783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13785 do
13786   IFS=$as_save_IFS
13787   test -z "$as_dir" && as_dir=.
13788     for ac_exec_ext in '' $ac_executable_extensions; do
13789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792     break 2
13793   fi
13794 done
13795   done
13796 IFS=$as_save_IFS
13797 
13798   ;;
13799 esac
13800 fi
13801 READLINK=$ac_cv_path_READLINK
13802 if test -n "$READLINK"; then
13803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13804 $as_echo "$READLINK" >&6; }
13805 else
13806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13808 fi
13809 
13810 
13811           if test "x$READLINK" = x; then
13812             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13813           fi
13814         else
13815           # Otherwise we believe it is a complete path. Use it as it is.
13816           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13817 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13819 $as_echo_n "checking for READLINK... " >&6; }
13820           if test ! -x "$tool_specified"; then
13821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13822 $as_echo "not found" >&6; }
13823             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13824           fi
13825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13826 $as_echo "$tool_specified" >&6; }
13827         fi
13828       fi
13829     fi
13830 
13831   fi
13832 
13833 
13834 
13835 
13836   # Publish this variable in the help.
13837 
13838 
13839   if [ -z "${DF+x}" ]; then
13840     # The variable is not set by user, try to locate tool using the code snippet
13841     for ac_prog in df
13842 do
13843   # Extract the first word of "$ac_prog", so it can be a program name with args.
13844 set dummy $ac_prog; ac_word=$2
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13846 $as_echo_n "checking for $ac_word... " >&6; }
13847 if ${ac_cv_path_DF+:} false; then :
13848   $as_echo_n "(cached) " >&6
13849 else
13850   case $DF in
13851   [\\/]* | ?:[\\/]*)
13852   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13853   ;;
13854   *)
13855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856 for as_dir in $PATH
13857 do
13858   IFS=$as_save_IFS
13859   test -z "$as_dir" && as_dir=.
13860     for ac_exec_ext in '' $ac_executable_extensions; do
13861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13862     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864     break 2
13865   fi
13866 done
13867   done
13868 IFS=$as_save_IFS
13869 
13870   ;;
13871 esac
13872 fi
13873 DF=$ac_cv_path_DF
13874 if test -n "$DF"; then
13875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13876 $as_echo "$DF" >&6; }
13877 else
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13880 fi
13881 
13882 
13883   test -n "$DF" && break
13884 done
13885 
13886   else
13887     # The variable is set, but is it from the command line or the environment?
13888 
13889     # Try to remove the string !DF! from our list.
13890     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13891     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13892       # If it failed, the variable was not from the command line. Ignore it,
13893       # but warn the user (except for BASH, which is always set by the calling BASH).
13894       if test "xDF" != xBASH; then
13895         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13896 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13897       fi
13898       # Try to locate tool using the code snippet
13899       for ac_prog in df
13900 do
13901   # Extract the first word of "$ac_prog", so it can be a program name with args.
13902 set dummy $ac_prog; ac_word=$2
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13904 $as_echo_n "checking for $ac_word... " >&6; }
13905 if ${ac_cv_path_DF+:} false; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   case $DF in
13909   [\\/]* | ?:[\\/]*)
13910   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13911   ;;
13912   *)
13913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914 for as_dir in $PATH
13915 do
13916   IFS=$as_save_IFS
13917   test -z "$as_dir" && as_dir=.
13918     for ac_exec_ext in '' $ac_executable_extensions; do
13919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13920     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922     break 2
13923   fi
13924 done
13925   done
13926 IFS=$as_save_IFS
13927 
13928   ;;
13929 esac
13930 fi
13931 DF=$ac_cv_path_DF
13932 if test -n "$DF"; then
13933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13934 $as_echo "$DF" >&6; }
13935 else
13936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938 fi
13939 
13940 
13941   test -n "$DF" && break
13942 done
13943 
13944     else
13945       # If it succeeded, then it was overridden by the user. We will use it
13946       # for the tool.
13947 
13948       # First remove it from the list of overridden variables, so we can test
13949       # for unknown variables in the end.
13950       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13951 
13952       # Check if we try to supply an empty value
13953       if test "x$DF" = x; then
13954         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13955 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13956         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13957 $as_echo_n "checking for DF... " >&6; }
13958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13959 $as_echo "disabled" >&6; }
13960       else
13961         # Check if the provided tool contains a complete path.
13962         tool_specified="$DF"
13963         tool_basename="${tool_specified##*/}"
13964         if test "x$tool_basename" = "x$tool_specified"; then
13965           # A command without a complete path is provided, search $PATH.
13966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13967 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13968           # Extract the first word of "$tool_basename", so it can be a program name with args.
13969 set dummy $tool_basename; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13971 $as_echo_n "checking for $ac_word... " >&6; }
13972 if ${ac_cv_path_DF+:} false; then :
13973   $as_echo_n "(cached) " >&6
13974 else
13975   case $DF in
13976   [\\/]* | ?:[\\/]*)
13977   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13978   ;;
13979   *)
13980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981 for as_dir in $PATH
13982 do
13983   IFS=$as_save_IFS
13984   test -z "$as_dir" && as_dir=.
13985     for ac_exec_ext in '' $ac_executable_extensions; do
13986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13987     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13989     break 2
13990   fi
13991 done
13992   done
13993 IFS=$as_save_IFS
13994 
13995   ;;
13996 esac
13997 fi
13998 DF=$ac_cv_path_DF
13999 if test -n "$DF"; then
14000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14001 $as_echo "$DF" >&6; }
14002 else
14003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14005 fi
14006 
14007 
14008           if test "x$DF" = x; then
14009             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14010           fi
14011         else
14012           # Otherwise we believe it is a complete path. Use it as it is.
14013           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14014 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14015           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14016 $as_echo_n "checking for DF... " >&6; }
14017           if test ! -x "$tool_specified"; then
14018             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14019 $as_echo "not found" >&6; }
14020             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14021           fi
14022           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14023 $as_echo "$tool_specified" >&6; }
14024         fi
14025       fi
14026     fi
14027 
14028   fi
14029 
14030 
14031 
14032 
14033   # Publish this variable in the help.
14034 
14035 
14036   if [ -z "${CPIO+x}" ]; then
14037     # The variable is not set by user, try to locate tool using the code snippet
14038     for ac_prog in cpio bsdcpio
14039 do
14040   # Extract the first word of "$ac_prog", so it can be a program name with args.
14041 set dummy $ac_prog; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if ${ac_cv_path_CPIO+:} false; then :
14045   $as_echo_n "(cached) " >&6
14046 else
14047   case $CPIO in
14048   [\\/]* | ?:[\\/]*)
14049   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14050   ;;
14051   *)
14052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14054 do
14055   IFS=$as_save_IFS
14056   test -z "$as_dir" && as_dir=.
14057     for ac_exec_ext in '' $ac_executable_extensions; do
14058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14059     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14061     break 2
14062   fi
14063 done
14064   done
14065 IFS=$as_save_IFS
14066 
14067   ;;
14068 esac
14069 fi
14070 CPIO=$ac_cv_path_CPIO
14071 if test -n "$CPIO"; then
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14073 $as_echo "$CPIO" >&6; }
14074 else
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078 
14079 
14080   test -n "$CPIO" && break
14081 done
14082 
14083   else
14084     # The variable is set, but is it from the command line or the environment?
14085 
14086     # Try to remove the string !CPIO! from our list.
14087     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14088     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14089       # If it failed, the variable was not from the command line. Ignore it,
14090       # but warn the user (except for BASH, which is always set by the calling BASH).
14091       if test "xCPIO" != xBASH; then
14092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14093 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14094       fi
14095       # Try to locate tool using the code snippet
14096       for ac_prog in cpio bsdcpio
14097 do
14098   # Extract the first word of "$ac_prog", so it can be a program name with args.
14099 set dummy $ac_prog; ac_word=$2
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101 $as_echo_n "checking for $ac_word... " >&6; }
14102 if ${ac_cv_path_CPIO+:} false; then :
14103   $as_echo_n "(cached) " >&6
14104 else
14105   case $CPIO in
14106   [\\/]* | ?:[\\/]*)
14107   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14108   ;;
14109   *)
14110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111 for as_dir in $PATH
14112 do
14113   IFS=$as_save_IFS
14114   test -z "$as_dir" && as_dir=.
14115     for ac_exec_ext in '' $ac_executable_extensions; do
14116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14117     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14119     break 2
14120   fi
14121 done
14122   done
14123 IFS=$as_save_IFS
14124 
14125   ;;
14126 esac
14127 fi
14128 CPIO=$ac_cv_path_CPIO
14129 if test -n "$CPIO"; then
14130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14131 $as_echo "$CPIO" >&6; }
14132 else
14133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14135 fi
14136 
14137 
14138   test -n "$CPIO" && break
14139 done
14140 
14141     else
14142       # If it succeeded, then it was overridden by the user. We will use it
14143       # for the tool.
14144 
14145       # First remove it from the list of overridden variables, so we can test
14146       # for unknown variables in the end.
14147       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14148 
14149       # Check if we try to supply an empty value
14150       if test "x$CPIO" = x; then
14151         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14152 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14154 $as_echo_n "checking for CPIO... " >&6; }
14155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14156 $as_echo "disabled" >&6; }
14157       else
14158         # Check if the provided tool contains a complete path.
14159         tool_specified="$CPIO"
14160         tool_basename="${tool_specified##*/}"
14161         if test "x$tool_basename" = "x$tool_specified"; then
14162           # A command without a complete path is provided, search $PATH.
14163           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14164 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14165           # Extract the first word of "$tool_basename", so it can be a program name with args.
14166 set dummy $tool_basename; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_path_CPIO+:} false; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   case $CPIO in
14173   [\\/]* | ?:[\\/]*)
14174   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14175   ;;
14176   *)
14177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178 for as_dir in $PATH
14179 do
14180   IFS=$as_save_IFS
14181   test -z "$as_dir" && as_dir=.
14182     for ac_exec_ext in '' $ac_executable_extensions; do
14183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14184     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14186     break 2
14187   fi
14188 done
14189   done
14190 IFS=$as_save_IFS
14191 
14192   ;;
14193 esac
14194 fi
14195 CPIO=$ac_cv_path_CPIO
14196 if test -n "$CPIO"; then
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14198 $as_echo "$CPIO" >&6; }
14199 else
14200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14202 fi
14203 
14204 
14205           if test "x$CPIO" = x; then
14206             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14207           fi
14208         else
14209           # Otherwise we believe it is a complete path. Use it as it is.
14210           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14211 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14212           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14213 $as_echo_n "checking for CPIO... " >&6; }
14214           if test ! -x "$tool_specified"; then
14215             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14216 $as_echo "not found" >&6; }
14217             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14218           fi
14219           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14220 $as_echo "$tool_specified" >&6; }
14221         fi
14222       fi
14223     fi
14224 
14225   fi
14226 
14227 
14228 
14229 
14230   # Publish this variable in the help.
14231 
14232 
14233   if [ -z "${NICE+x}" ]; then
14234     # The variable is not set by user, try to locate tool using the code snippet
14235     for ac_prog in nice
14236 do
14237   # Extract the first word of "$ac_prog", so it can be a program name with args.
14238 set dummy $ac_prog; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if ${ac_cv_path_NICE+:} false; then :
14242   $as_echo_n "(cached) " >&6
14243 else
14244   case $NICE in
14245   [\\/]* | ?:[\\/]*)
14246   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14247   ;;
14248   *)
14249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252   IFS=$as_save_IFS
14253   test -z "$as_dir" && as_dir=.
14254     for ac_exec_ext in '' $ac_executable_extensions; do
14255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258     break 2
14259   fi
14260 done
14261   done
14262 IFS=$as_save_IFS
14263 
14264   ;;
14265 esac
14266 fi
14267 NICE=$ac_cv_path_NICE
14268 if test -n "$NICE"; then
14269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14270 $as_echo "$NICE" >&6; }
14271 else
14272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14274 fi
14275 
14276 
14277   test -n "$NICE" && break
14278 done
14279 
14280   else
14281     # The variable is set, but is it from the command line or the environment?
14282 
14283     # Try to remove the string !NICE! from our list.
14284     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14285     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14286       # If it failed, the variable was not from the command line. Ignore it,
14287       # but warn the user (except for BASH, which is always set by the calling BASH).
14288       if test "xNICE" != xBASH; then
14289         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14290 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14291       fi
14292       # Try to locate tool using the code snippet
14293       for ac_prog in nice
14294 do
14295   # Extract the first word of "$ac_prog", so it can be a program name with args.
14296 set dummy $ac_prog; ac_word=$2
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14298 $as_echo_n "checking for $ac_word... " >&6; }
14299 if ${ac_cv_path_NICE+:} false; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   case $NICE in
14303   [\\/]* | ?:[\\/]*)
14304   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14305   ;;
14306   *)
14307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14309 do
14310   IFS=$as_save_IFS
14311   test -z "$as_dir" && as_dir=.
14312     for ac_exec_ext in '' $ac_executable_extensions; do
14313   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14314     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14316     break 2
14317   fi
14318 done
14319   done
14320 IFS=$as_save_IFS
14321 
14322   ;;
14323 esac
14324 fi
14325 NICE=$ac_cv_path_NICE
14326 if test -n "$NICE"; then
14327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14328 $as_echo "$NICE" >&6; }
14329 else
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331 $as_echo "no" >&6; }
14332 fi
14333 
14334 
14335   test -n "$NICE" && break
14336 done
14337 
14338     else
14339       # If it succeeded, then it was overridden by the user. We will use it
14340       # for the tool.
14341 
14342       # First remove it from the list of overridden variables, so we can test
14343       # for unknown variables in the end.
14344       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14345 
14346       # Check if we try to supply an empty value
14347       if test "x$NICE" = x; then
14348         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14349 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14351 $as_echo_n "checking for NICE... " >&6; }
14352         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14353 $as_echo "disabled" >&6; }
14354       else
14355         # Check if the provided tool contains a complete path.
14356         tool_specified="$NICE"
14357         tool_basename="${tool_specified##*/}"
14358         if test "x$tool_basename" = "x$tool_specified"; then
14359           # A command without a complete path is provided, search $PATH.
14360           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14361 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14362           # Extract the first word of "$tool_basename", so it can be a program name with args.
14363 set dummy $tool_basename; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365 $as_echo_n "checking for $ac_word... " >&6; }
14366 if ${ac_cv_path_NICE+:} false; then :
14367   $as_echo_n "(cached) " >&6
14368 else
14369   case $NICE in
14370   [\\/]* | ?:[\\/]*)
14371   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14372   ;;
14373   *)
14374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14376 do
14377   IFS=$as_save_IFS
14378   test -z "$as_dir" && as_dir=.
14379     for ac_exec_ext in '' $ac_executable_extensions; do
14380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14381     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383     break 2
14384   fi
14385 done
14386   done
14387 IFS=$as_save_IFS
14388 
14389   ;;
14390 esac
14391 fi
14392 NICE=$ac_cv_path_NICE
14393 if test -n "$NICE"; then
14394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14395 $as_echo "$NICE" >&6; }
14396 else
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14399 fi
14400 
14401 
14402           if test "x$NICE" = x; then
14403             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14404           fi
14405         else
14406           # Otherwise we believe it is a complete path. Use it as it is.
14407           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14408 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14409           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14410 $as_echo_n "checking for NICE... " >&6; }
14411           if test ! -x "$tool_specified"; then
14412             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14413 $as_echo "not found" >&6; }
14414             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14415           fi
14416           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14417 $as_echo "$tool_specified" >&6; }
14418         fi
14419       fi
14420     fi
14421 
14422   fi
14423 
14424 
14425 
14426 
14427 # Now we can determine OpenJDK build and target platforms. This is required to
14428 # have early on.
14429 # Make sure we can run config.sub.
14430 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14431   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14432 
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14434 $as_echo_n "checking build system type... " >&6; }
14435 if ${ac_cv_build+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   ac_build_alias=$build_alias
14439 test "x$ac_build_alias" = x &&
14440   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14441 test "x$ac_build_alias" = x &&
14442   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14443 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14444   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14445 
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14448 $as_echo "$ac_cv_build" >&6; }
14449 case $ac_cv_build in
14450 *-*-*) ;;
14451 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14452 esac
14453 build=$ac_cv_build
14454 ac_save_IFS=$IFS; IFS='-'
14455 set x $ac_cv_build
14456 shift
14457 build_cpu=$1
14458 build_vendor=$2
14459 shift; shift
14460 # Remember, the first character of IFS is used to create $*,
14461 # except with old shells:
14462 build_os=$*
14463 IFS=$ac_save_IFS
14464 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14465 
14466 
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14468 $as_echo_n "checking host system type... " >&6; }
14469 if ${ac_cv_host+:} false; then :
14470   $as_echo_n "(cached) " >&6
14471 else
14472   if test "x$host_alias" = x; then
14473   ac_cv_host=$ac_cv_build
14474 else
14475   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14476     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14477 fi
14478 
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14481 $as_echo "$ac_cv_host" >&6; }
14482 case $ac_cv_host in
14483 *-*-*) ;;
14484 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14485 esac
14486 host=$ac_cv_host
14487 ac_save_IFS=$IFS; IFS='-'
14488 set x $ac_cv_host
14489 shift
14490 host_cpu=$1
14491 host_vendor=$2
14492 shift; shift
14493 # Remember, the first character of IFS is used to create $*,
14494 # except with old shells:
14495 host_os=$*
14496 IFS=$ac_save_IFS
14497 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14498 
14499 
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14501 $as_echo_n "checking target system type... " >&6; }
14502 if ${ac_cv_target+:} false; then :
14503   $as_echo_n "(cached) " >&6
14504 else
14505   if test "x$target_alias" = x; then
14506   ac_cv_target=$ac_cv_host
14507 else
14508   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14509     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14510 fi
14511 
14512 fi
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14514 $as_echo "$ac_cv_target" >&6; }
14515 case $ac_cv_target in
14516 *-*-*) ;;
14517 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14518 esac
14519 target=$ac_cv_target
14520 ac_save_IFS=$IFS; IFS='-'
14521 set x $ac_cv_target
14522 shift
14523 target_cpu=$1
14524 target_vendor=$2
14525 shift; shift
14526 # Remember, the first character of IFS is used to create $*,
14527 # except with old shells:
14528 target_os=$*
14529 IFS=$ac_save_IFS
14530 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14531 
14532 
14533 # The aliases save the names the user supplied, while $host etc.
14534 # will get canonicalized.
14535 test -n "$target_alias" &&
14536   test "$program_prefix$program_suffix$program_transform_name" = \
14537     NONENONEs,x,x, &&
14538   program_prefix=${target_alias}-
14539 
14540   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14541   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14542   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14543   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14544   # to use the configure naming style.
14545 
14546 
14547 
14548 
14549 
14550   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14551   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14552   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14553   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14554   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14555   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14556 
14557 
14558 
14559   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14560 
14561   case "$build_os" in
14562     *linux*)
14563       VAR_OS=linux
14564       VAR_OS_TYPE=unix
14565       ;;
14566     *solaris*)
14567       VAR_OS=solaris
14568       VAR_OS_TYPE=unix
14569       ;;
14570     *darwin*)
14571       VAR_OS=macosx
14572       VAR_OS_TYPE=unix
14573       ;;
14574     *bsd*)
14575       VAR_OS=bsd
14576       VAR_OS_TYPE=unix
14577       ;;
14578     *cygwin*)
14579       VAR_OS=windows
14580       VAR_OS_ENV=windows.cygwin
14581       ;;
14582     *mingw*)
14583       VAR_OS=windows
14584       VAR_OS_ENV=windows.msys
14585       ;;
14586     *aix*)
14587       VAR_OS=aix
14588       VAR_OS_TYPE=unix
14589       ;;
14590     *)
14591       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14592       ;;
14593   esac
14594 
14595 
14596   # First argument is the cpu name from the trip/quad
14597   case "$build_cpu" in
14598     x86_64)
14599       VAR_CPU=x86_64
14600       VAR_CPU_ARCH=x86
14601       VAR_CPU_BITS=64
14602       VAR_CPU_ENDIAN=little
14603       ;;
14604     i?86)
14605       VAR_CPU=x86
14606       VAR_CPU_ARCH=x86
14607       VAR_CPU_BITS=32
14608       VAR_CPU_ENDIAN=little
14609       ;;
14610     arm*)
14611       VAR_CPU=arm
14612       VAR_CPU_ARCH=arm
14613       VAR_CPU_BITS=32
14614       VAR_CPU_ENDIAN=little
14615       ;;
14616     aarch64)
14617       VAR_CPU=aarch64
14618       VAR_CPU_ARCH=aarch64
14619       VAR_CPU_BITS=64
14620       VAR_CPU_ENDIAN=little
14621       ;;
14622     powerpc)
14623       VAR_CPU=ppc
14624       VAR_CPU_ARCH=ppc
14625       VAR_CPU_BITS=32
14626       VAR_CPU_ENDIAN=big
14627       ;;
14628     powerpc64)
14629       VAR_CPU=ppc64
14630       VAR_CPU_ARCH=ppc
14631       VAR_CPU_BITS=64
14632       VAR_CPU_ENDIAN=big
14633       ;;
14634     powerpc64le)
14635       VAR_CPU=ppc64
14636       VAR_CPU_ARCH=ppc
14637       VAR_CPU_BITS=64
14638       VAR_CPU_ENDIAN=little
14639       ;;
14640     s390)
14641       VAR_CPU=s390
14642       VAR_CPU_ARCH=s390
14643       VAR_CPU_BITS=32
14644       VAR_CPU_ENDIAN=big
14645       ;;
14646     s390x)
14647       VAR_CPU=s390x
14648       VAR_CPU_ARCH=s390
14649       VAR_CPU_BITS=64
14650       VAR_CPU_ENDIAN=big
14651       ;;
14652     sparc)
14653       VAR_CPU=sparc
14654       VAR_CPU_ARCH=sparc
14655       VAR_CPU_BITS=32
14656       VAR_CPU_ENDIAN=big
14657       ;;
14658     sparcv9|sparc64)
14659       VAR_CPU=sparcv9
14660       VAR_CPU_ARCH=sparc
14661       VAR_CPU_BITS=64
14662       VAR_CPU_ENDIAN=big
14663       ;;
14664     *)
14665       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14666       ;;
14667   esac
14668 
14669   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14670   OPENJDK_BUILD_OS="$VAR_OS"
14671   if test "x$VAR_OS_TYPE" != x; then
14672     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14673   else
14674     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14675   fi
14676   if test "x$VAR_OS_ENV" != x; then
14677     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14678   else
14679     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14680   fi
14681   OPENJDK_BUILD_CPU="$VAR_CPU"
14682   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14683   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14684   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14685 
14686 
14687 
14688 
14689 
14690 
14691 
14692 
14693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14694 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14696 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14697 
14698   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14699 
14700   case "$host_os" in
14701     *linux*)
14702       VAR_OS=linux
14703       VAR_OS_TYPE=unix
14704       ;;
14705     *solaris*)
14706       VAR_OS=solaris
14707       VAR_OS_TYPE=unix
14708       ;;
14709     *darwin*)
14710       VAR_OS=macosx
14711       VAR_OS_TYPE=unix
14712       ;;
14713     *bsd*)
14714       VAR_OS=bsd
14715       VAR_OS_TYPE=unix
14716       ;;
14717     *cygwin*)
14718       VAR_OS=windows
14719       VAR_OS_ENV=windows.cygwin
14720       ;;
14721     *mingw*)
14722       VAR_OS=windows
14723       VAR_OS_ENV=windows.msys
14724       ;;
14725     *aix*)
14726       VAR_OS=aix
14727       VAR_OS_TYPE=unix
14728       ;;
14729     *)
14730       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14731       ;;
14732   esac
14733 
14734 
14735   # First argument is the cpu name from the trip/quad
14736   case "$host_cpu" in
14737     x86_64)
14738       VAR_CPU=x86_64
14739       VAR_CPU_ARCH=x86
14740       VAR_CPU_BITS=64
14741       VAR_CPU_ENDIAN=little
14742       ;;
14743     i?86)
14744       VAR_CPU=x86
14745       VAR_CPU_ARCH=x86
14746       VAR_CPU_BITS=32
14747       VAR_CPU_ENDIAN=little
14748       ;;
14749     arm*)
14750       VAR_CPU=arm
14751       VAR_CPU_ARCH=arm
14752       VAR_CPU_BITS=32
14753       VAR_CPU_ENDIAN=little
14754       ;;
14755     aarch64)
14756       VAR_CPU=aarch64
14757       VAR_CPU_ARCH=aarch64
14758       VAR_CPU_BITS=64
14759       VAR_CPU_ENDIAN=little
14760       ;;
14761     powerpc)
14762       VAR_CPU=ppc
14763       VAR_CPU_ARCH=ppc
14764       VAR_CPU_BITS=32
14765       VAR_CPU_ENDIAN=big
14766       ;;
14767     powerpc64)
14768       VAR_CPU=ppc64
14769       VAR_CPU_ARCH=ppc
14770       VAR_CPU_BITS=64
14771       VAR_CPU_ENDIAN=big
14772       ;;
14773     powerpc64le)
14774       VAR_CPU=ppc64
14775       VAR_CPU_ARCH=ppc
14776       VAR_CPU_BITS=64
14777       VAR_CPU_ENDIAN=little
14778       ;;
14779     s390)
14780       VAR_CPU=s390
14781       VAR_CPU_ARCH=s390
14782       VAR_CPU_BITS=32
14783       VAR_CPU_ENDIAN=big
14784       ;;
14785     s390x)
14786       VAR_CPU=s390x
14787       VAR_CPU_ARCH=s390
14788       VAR_CPU_BITS=64
14789       VAR_CPU_ENDIAN=big
14790       ;;
14791     sparc)
14792       VAR_CPU=sparc
14793       VAR_CPU_ARCH=sparc
14794       VAR_CPU_BITS=32
14795       VAR_CPU_ENDIAN=big
14796       ;;
14797     sparcv9|sparc64)
14798       VAR_CPU=sparcv9
14799       VAR_CPU_ARCH=sparc
14800       VAR_CPU_BITS=64
14801       VAR_CPU_ENDIAN=big
14802       ;;
14803     *)
14804       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14805       ;;
14806   esac
14807 
14808   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14809   OPENJDK_TARGET_OS="$VAR_OS"
14810   if test "x$VAR_OS_TYPE" != x; then
14811     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14812   else
14813     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14814   fi
14815   if test "x$VAR_OS_ENV" != x; then
14816     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14817   else
14818     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14819   fi
14820   OPENJDK_TARGET_CPU="$VAR_CPU"
14821   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14822   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14823   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14824 
14825 
14826 
14827 
14828 
14829 
14830 
14831 
14832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14833 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14835 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14836 
14837 
14838 
14839 # Check whether --with-target-bits was given.
14840 if test "${with_target_bits+set}" = set; then :
14841   withval=$with_target_bits;
14842 fi
14843 
14844 
14845   # We have three types of compiles:
14846   # native  == normal compilation, target system == build system
14847   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14848   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14849   #
14850   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14851     # We're doing a proper cross-compilation
14852     COMPILE_TYPE="cross"
14853   else
14854     COMPILE_TYPE="native"
14855   fi
14856 
14857   if test "x$with_target_bits" != x; then
14858     if test "x$COMPILE_TYPE" = "xcross"; then
14859       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14860     fi
14861 
14862     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14863       # A reduced build is requested
14864       COMPILE_TYPE="reduced"
14865       OPENJDK_TARGET_CPU_BITS=32
14866       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14867         OPENJDK_TARGET_CPU=x86
14868       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14869         OPENJDK_TARGET_CPU=sparc
14870       else
14871         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14872       fi
14873     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14874       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
14875     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14876       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14877 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14878     else
14879       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14880     fi
14881   fi
14882 
14883 
14884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14885 $as_echo_n "checking compilation type... " >&6; }
14886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14887 $as_echo "$COMPILE_TYPE" >&6; }
14888 
14889 
14890   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14891     REQUIRED_OS_NAME=SunOS
14892     REQUIRED_OS_VERSION=5.10
14893   fi
14894   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14895     REQUIRED_OS_NAME=Linux
14896     REQUIRED_OS_VERSION=2.6
14897   fi
14898   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14899     REQUIRED_OS_NAME=Windows
14900     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14901       REQUIRED_OS_VERSION=5.2
14902     else
14903       REQUIRED_OS_VERSION=5.1
14904     fi
14905   fi
14906   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14907     REQUIRED_OS_NAME=Darwin
14908     REQUIRED_OS_VERSION=11.2
14909   fi
14910 
14911 
14912 
14913 
14914 
14915   # Also store the legacy naming of the cpu.
14916   # Ie i586 and amd64 instead of x86 and x86_64
14917   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14918   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14919     OPENJDK_TARGET_CPU_LEGACY="i586"
14920   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14921     # On all platforms except MacOSX replace x86_64 with amd64.
14922     OPENJDK_TARGET_CPU_LEGACY="amd64"
14923   fi
14924 
14925 
14926   # And the second legacy naming of the cpu.
14927   # Ie i386 and amd64 instead of x86 and x86_64.
14928   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14929   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14930     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14931   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14932     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14933   fi
14934 
14935 
14936   # This is the name of the cpu (but using i386 and amd64 instead of
14937   # x86 and x86_64, respectively), preceeded by a /, to be used when
14938   # locating libraries. On macosx, it's empty, though.
14939   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14940   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14941     OPENJDK_TARGET_CPU_LIBDIR=""
14942   fi
14943 
14944 
14945   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14946   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14947   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14948   OPENJDK_TARGET_CPU_ISADIR=""
14949   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14950     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14951       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14952     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14953       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14954     fi
14955   fi
14956 
14957 
14958   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14959   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14960   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14961     # On linux only, we replace x86 with i386.
14962     OPENJDK_TARGET_CPU_OSARCH="i386"
14963   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14964     # On all platforms except macosx, we replace x86_64 with amd64.
14965     OPENJDK_TARGET_CPU_OSARCH="amd64"
14966   fi
14967 
14968 
14969   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14970   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14971     OPENJDK_TARGET_CPU_JLI="i386"
14972   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14973     # On all platforms except macosx, we replace x86_64 with amd64.
14974     OPENJDK_TARGET_CPU_JLI="amd64"
14975   fi
14976   # Now setup the -D flags for building libjli.
14977   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14978   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14979     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14980       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14981     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14982       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14983     fi
14984   fi
14985 
14986 
14987   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14988       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14989   else
14990       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14991   fi
14992 
14993 
14994   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14995     A_LP64="LP64:="
14996     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14997     # unpack200.exe
14998     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14999       ADD_LP64="-D_LP64=1"
15000     fi
15001   fi
15002   LP64=$A_LP64
15003 
15004 
15005   if test "x$COMPILE_TYPE" = "xcross"; then
15006     # FIXME: ... or should this include reduced builds..?
15007     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15008   else
15009     DEFINE_CROSS_COMPILE_ARCH=""
15010   fi
15011 
15012 
15013   # ZERO_ARCHDEF is used to enable architecture-specific code
15014   case "${OPENJDK_TARGET_CPU}" in
15015     ppc)     ZERO_ARCHDEF=PPC32 ;;
15016     ppc64)   ZERO_ARCHDEF=PPC64 ;;
15017     s390*)   ZERO_ARCHDEF=S390  ;;
15018     sparc*)  ZERO_ARCHDEF=SPARC ;;
15019     x86_64*) ZERO_ARCHDEF=AMD64 ;;
15020     x86)     ZERO_ARCHDEF=IA32  ;;
15021     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
15022   esac
15023 
15024 
15025 
15026 
15027 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15028 
15029   # Save the current directory this script was started from
15030   CURDIR="$PWD"
15031 
15032   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15033   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15034   # was not available at that time.
15035   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15036   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15037     ORIGINAL_PATH="$REWRITTEN_PATH"
15038     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15039 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15040   fi
15041 
15042   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15043     PATH_SEP=";"
15044 
15045   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15046   if test $SRC_ROOT_LENGTH -gt 100; then
15047     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15048   fi
15049 
15050   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15052 $as_echo_n "checking cygwin release... " >&6; }
15053     CYGWIN_VERSION=`$UNAME -r`
15054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15055 $as_echo "$CYGWIN_VERSION" >&6; }
15056     WINDOWS_ENV_VENDOR='cygwin'
15057     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15058 
15059     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15060     if test "x$CYGWIN_VERSION_OLD" != x; then
15061       { $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
15062 $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;}
15063       as_fn_error $? "Cannot continue" "$LINENO" 5
15064     fi
15065     if test "x$CYGPATH" = x; then
15066       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15067     fi
15068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15069 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15070     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15071     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15072     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15073     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15075 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15076     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15077     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15078     if test "x$test_cygdrive_prefix" = x; then
15079       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15080     fi
15081   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15083 $as_echo_n "checking msys release... " >&6; }
15084     MSYS_VERSION=`$UNAME -r`
15085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15086 $as_echo "$MSYS_VERSION" >&6; }
15087 
15088     WINDOWS_ENV_VENDOR='msys'
15089     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15090 
15091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15092 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15093     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15094     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15095 
15096   windows_path="$MSYS_ROOT_PATH"
15097   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15098     unix_path=`$CYGPATH -u "$windows_path"`
15099     MSYS_ROOT_PATH="$unix_path"
15100   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15101     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15102     MSYS_ROOT_PATH="$unix_path"
15103   fi
15104 
15105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15106 $as_echo "$MSYS_ROOT_PATH" >&6; }
15107     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15108   else
15109     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15110   fi
15111 
15112   # Test if windows or unix (cygwin/msys) find is first in path.
15113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15114 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15115   FIND_BINARY_OUTPUT=`find --version 2>&1`
15116   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15118 $as_echo "unix style" >&6; }
15119   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15121 $as_echo "Windows" >&6; }
15122     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15123 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15124     { $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
15125 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15126     as_fn_error $? "Cannot continue" "$LINENO" 5
15127   else
15128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15129 $as_echo "unknown" >&6; }
15130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15131 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15132   fi
15133 
15134   else
15135     PATH_SEP=":"
15136   fi
15137 
15138 
15139   # We get the top-level directory from the supporting wrappers.
15140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15141 $as_echo_n "checking for top-level directory... " >&6; }
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15143 $as_echo "$TOPDIR" >&6; }
15144 
15145 
15146   # Save the original version of TOPDIR for string comparisons
15147   ORIGINAL_TOPDIR="$TOPDIR"
15148 
15149 
15150   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15151 
15152   # Only process if variable expands to non-empty
15153 
15154   if test "x$CURDIR" != x; then
15155     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15156 
15157   # Input might be given as Windows format, start by converting to
15158   # unix format.
15159   path="$CURDIR"
15160   new_path=`$CYGPATH -u "$path"`
15161 
15162   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15163   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15164   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15165   # "foo.exe" is OK but "foo" is an error.
15166   #
15167   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15168   # It is also a way to make sure we got the proper file name for the real test later on.
15169   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15170   if test "x$test_shortpath" = x; then
15171     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15172 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15173     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15174   fi
15175 
15176   # Call helper function which possibly converts this using DOS-style short mode.
15177   # If so, the updated path is stored in $new_path.
15178 
15179   input_path="$new_path"
15180   # Check if we need to convert this using DOS-style short mode. If the path
15181   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15182   # take no chances and rewrite it.
15183   # Note: m4 eats our [], so we need to use [ and ] instead.
15184   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15185   if test "x$has_forbidden_chars" != x; then
15186     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15187     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15188     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15189     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15190       # Going to short mode and back again did indeed matter. Since short mode is
15191       # case insensitive, let's make it lowercase to improve readability.
15192       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15193       # Now convert it back to Unix-style (cygpath)
15194       input_path=`$CYGPATH -u "$shortmode_path"`
15195       new_path="$input_path"
15196     fi
15197   fi
15198 
15199   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15200   if test "x$test_cygdrive_prefix" = x; then
15201     # As a simple fix, exclude /usr/bin since it's not a real path.
15202     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15203       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15204       # a path prefixed by /cygdrive for fixpath to work.
15205       new_path="$CYGWIN_ROOT_PATH$input_path"
15206     fi
15207   fi
15208 
15209 
15210   if test "x$path" != "x$new_path"; then
15211     CURDIR="$new_path"
15212     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15213 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15214   fi
15215 
15216     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15217 
15218   path="$CURDIR"
15219   has_colon=`$ECHO $path | $GREP ^.:`
15220   new_path="$path"
15221   if test "x$has_colon" = x; then
15222     # Not in mixed or Windows style, start by that.
15223     new_path=`cmd //c echo $path`
15224   fi
15225 
15226 
15227   input_path="$new_path"
15228   # Check if we need to convert this using DOS-style short mode. If the path
15229   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15230   # take no chances and rewrite it.
15231   # Note: m4 eats our [], so we need to use [ and ] instead.
15232   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15233   if test "x$has_forbidden_chars" != x; then
15234     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15235     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15236   fi
15237 
15238 
15239   windows_path="$new_path"
15240   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15241     unix_path=`$CYGPATH -u "$windows_path"`
15242     new_path="$unix_path"
15243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15244     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15245     new_path="$unix_path"
15246   fi
15247 
15248   if test "x$path" != "x$new_path"; then
15249     CURDIR="$new_path"
15250     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15251 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15252   fi
15253 
15254   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15255   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15256 
15257     else
15258       # We're on a unix platform. Hooray! :)
15259       path="$CURDIR"
15260       has_space=`$ECHO "$path" | $GREP " "`
15261       if test "x$has_space" != x; then
15262         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15263 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15264         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15265       fi
15266 
15267       # Use eval to expand a potential ~
15268       eval path="$path"
15269       if test ! -f "$path" && test ! -d "$path"; then
15270         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15271       fi
15272 
15273       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15274     fi
15275   fi
15276 
15277 
15278   # Only process if variable expands to non-empty
15279 
15280   if test "x$TOPDIR" != x; then
15281     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15282 
15283   # Input might be given as Windows format, start by converting to
15284   # unix format.
15285   path="$TOPDIR"
15286   new_path=`$CYGPATH -u "$path"`
15287 
15288   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15289   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15290   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15291   # "foo.exe" is OK but "foo" is an error.
15292   #
15293   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15294   # It is also a way to make sure we got the proper file name for the real test later on.
15295   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15296   if test "x$test_shortpath" = x; then
15297     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15298 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15299     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15300   fi
15301 
15302   # Call helper function which possibly converts this using DOS-style short mode.
15303   # If so, the updated path is stored in $new_path.
15304 
15305   input_path="$new_path"
15306   # Check if we need to convert this using DOS-style short mode. If the path
15307   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15308   # take no chances and rewrite it.
15309   # Note: m4 eats our [], so we need to use [ and ] instead.
15310   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15311   if test "x$has_forbidden_chars" != x; then
15312     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15313     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15314     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15315     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15316       # Going to short mode and back again did indeed matter. Since short mode is
15317       # case insensitive, let's make it lowercase to improve readability.
15318       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15319       # Now convert it back to Unix-style (cygpath)
15320       input_path=`$CYGPATH -u "$shortmode_path"`
15321       new_path="$input_path"
15322     fi
15323   fi
15324 
15325   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15326   if test "x$test_cygdrive_prefix" = x; then
15327     # As a simple fix, exclude /usr/bin since it's not a real path.
15328     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15329       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15330       # a path prefixed by /cygdrive for fixpath to work.
15331       new_path="$CYGWIN_ROOT_PATH$input_path"
15332     fi
15333   fi
15334 
15335 
15336   if test "x$path" != "x$new_path"; then
15337     TOPDIR="$new_path"
15338     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15339 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15340   fi
15341 
15342     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15343 
15344   path="$TOPDIR"
15345   has_colon=`$ECHO $path | $GREP ^.:`
15346   new_path="$path"
15347   if test "x$has_colon" = x; then
15348     # Not in mixed or Windows style, start by that.
15349     new_path=`cmd //c echo $path`
15350   fi
15351 
15352 
15353   input_path="$new_path"
15354   # Check if we need to convert this using DOS-style short mode. If the path
15355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15356   # take no chances and rewrite it.
15357   # Note: m4 eats our [], so we need to use [ and ] instead.
15358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15359   if test "x$has_forbidden_chars" != x; then
15360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15361     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15362   fi
15363 
15364 
15365   windows_path="$new_path"
15366   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15367     unix_path=`$CYGPATH -u "$windows_path"`
15368     new_path="$unix_path"
15369   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15370     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15371     new_path="$unix_path"
15372   fi
15373 
15374   if test "x$path" != "x$new_path"; then
15375     TOPDIR="$new_path"
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15377 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15378   fi
15379 
15380   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15381   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15382 
15383     else
15384       # We're on a unix platform. Hooray! :)
15385       path="$TOPDIR"
15386       has_space=`$ECHO "$path" | $GREP " "`
15387       if test "x$has_space" != x; then
15388         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15389 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15390         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15391       fi
15392 
15393       # Use eval to expand a potential ~
15394       eval path="$path"
15395       if test ! -f "$path" && test ! -d "$path"; then
15396         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15397       fi
15398 
15399       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15400     fi
15401   fi
15402 
15403   # SRC_ROOT is a traditional alias for TOPDIR.
15404   SRC_ROOT=$TOPDIR
15405 
15406   # Calculate a canonical version of TOPDIR for string comparisons
15407   CANONICAL_TOPDIR=$TOPDIR
15408 
15409   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15410     # Follow a chain of symbolic links. Use readlink
15411     # where it exists, else fall back to horribly
15412     # complicated shell code.
15413     if test "x$READLINK_TESTED" != yes; then
15414       # On MacOSX there is a readlink tool with a different
15415       # purpose than the GNU readlink tool. Check the found readlink.
15416       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15417       if test "x$ISGNU" = x; then
15418         # A readlink that we do not know how to use.
15419         # Are there other non-GNU readlinks out there?
15420         READLINK_TESTED=yes
15421         READLINK=
15422       fi
15423     fi
15424 
15425     if test "x$READLINK" != x; then
15426       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15427     else
15428       # Save the current directory for restoring afterwards
15429       STARTDIR=$PWD
15430       COUNTER=0
15431       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15432       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15433       cd $sym_link_dir
15434       # Use -P flag to resolve symlinks in directories.
15435       cd `$THEPWDCMD -P`
15436       sym_link_dir=`$THEPWDCMD -P`
15437       # Resolve file symlinks
15438       while test $COUNTER -lt 20; do
15439         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15440         if test "x$ISLINK" == x; then
15441           # This is not a symbolic link! We are done!
15442           break
15443         fi
15444         # Again resolve directory symlinks since the target of the just found
15445         # link could be in a different directory
15446         cd `$DIRNAME $ISLINK`
15447         sym_link_dir=`$THEPWDCMD -P`
15448         sym_link_file=`$BASENAME $ISLINK`
15449         let COUNTER=COUNTER+1
15450       done
15451       cd $STARTDIR
15452       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15453     fi
15454   fi
15455 
15456 
15457 
15458   # Locate the directory of this script.
15459   AUTOCONF_DIR=$TOPDIR/common/autoconf
15460 
15461 
15462 # Check if it's a pure open build or if custom sources are to be used.
15463 
15464   # Check whether --enable-openjdk-only was given.
15465 if test "${enable_openjdk_only+set}" = set; then :
15466   enableval=$enable_openjdk_only;
15467 else
15468   enable_openjdk_only="no"
15469 fi
15470 
15471 
15472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15473 $as_echo_n "checking for presence of closed sources... " >&6; }
15474   if test -d "$SRC_ROOT/jdk/src/closed"; then
15475     CLOSED_SOURCE_PRESENT=yes
15476   else
15477     CLOSED_SOURCE_PRESENT=no
15478   fi
15479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15480 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15481 
15482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15483 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15484   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15486 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15487 
15488   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15489     OPENJDK=true
15490     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15491       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15492 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15493     fi
15494   else
15495     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15496       OPENJDK=true
15497     else
15498       OPENJDK=false
15499     fi
15500   fi
15501 
15502   if test "x$OPENJDK" = "xtrue"; then
15503     SET_OPENJDK="OPENJDK=true"
15504   fi
15505 
15506 
15507 
15508   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15509   # the IncludeCustomExtension macro.
15510 
15511 
15512 # Check whether --with-custom-make-dir was given.
15513 if test "${with_custom_make_dir+set}" = set; then :
15514   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
15515 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15516 fi
15517 
15518 
15519 
15520 
15521 # These are needed to be able to create a configuration name (and thus the output directory)
15522 
15523   ###############################################################################
15524   #
15525   # Check which variant of the JDK that we want to build.
15526   # Currently we have:
15527   #    normal:   standard edition
15528   # but the custom make system may add other variants
15529   #
15530   # Effectively the JDK variant gives a name to a specific set of
15531   # modules to compile into the JDK. In the future, these modules
15532   # might even be Jigsaw modules.
15533   #
15534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15535 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15536 
15537 # Check whether --with-jdk-variant was given.
15538 if test "${with_jdk_variant+set}" = set; then :
15539   withval=$with_jdk_variant;
15540 fi
15541 
15542 
15543   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15544     JDK_VARIANT="normal"
15545   else
15546     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15547   fi
15548 
15549 
15550 
15551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15552 $as_echo "$JDK_VARIANT" >&6; }
15553 
15554 
15555 ###############################################################################
15556 #
15557 # Check which interpreter of the JVM we want to build.
15558 # Currently we have:
15559 #    template: Template interpreter (the default)
15560 #    cpp     : C++ interpreter
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15562 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15563 
15564 # Check whether --with-jvm-interpreter was given.
15565 if test "${with_jvm_interpreter+set}" = set; then :
15566   withval=$with_jvm_interpreter;
15567 fi
15568 
15569 
15570 if test "x$with_jvm_interpreter" = x; then
15571      with_jvm_interpreter="template"
15572 fi
15573 
15574 JVM_INTERPRETER="$with_jvm_interpreter"
15575 
15576 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15577    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15578 fi
15579 
15580 
15581 
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15583 $as_echo "$with_jvm_interpreter" >&6; }
15584 
15585 
15586 
15587   ###############################################################################
15588   #
15589   # Check which variants of the JVM that we want to build.
15590   # Currently we have:
15591   #    server: normal interpreter and a tiered C1/C2 compiler
15592   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15593   #    minimal1: reduced form of client with optional VM services and features stripped out
15594   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15595   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15596   #    zero: no machine code interpreter, no compiler
15597   #    zeroshark: zero interpreter and shark/llvm compiler backend
15598 #    core: interpreter only, no compiler (only works on some platforms)
15599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15600 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15601 
15602 # Check whether --with-jvm-variants was given.
15603 if test "${with_jvm_variants+set}" = set; then :
15604   withval=$with_jvm_variants;
15605 fi
15606 
15607 
15608   if test "x$with_jvm_variants" = x; then
15609     with_jvm_variants="server"
15610   fi
15611 
15612   JVM_VARIANTS=",$with_jvm_variants,"
15613   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,//'`
15614 
15615   if test "x$TEST_VARIANTS" != "x,"; then
15616      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15617   fi
15618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15619 $as_echo "$with_jvm_variants" >&6; }
15620 
15621   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15622   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15623   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15624   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15625   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15626   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15627   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15628 
15629   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15630     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15631       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15632     fi
15633   fi
15634   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15635     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15636       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15637     fi
15638   fi
15639   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15640     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15641       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15642     fi
15643   fi
15644 
15645   # Replace the commas with AND for use in the build directory name.
15646   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15647   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/'`
15648   if test "x$COUNT_VARIANTS" != "x,1"; then
15649     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15650   else
15651     BUILDING_MULTIPLE_JVM_VARIANTS=no
15652   fi
15653 
15654 
15655 
15656 
15657 
15658 
15659 
15660 
15661 
15662 
15663   INCLUDE_SA=true
15664   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15665     INCLUDE_SA=false
15666   fi
15667   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15668     INCLUDE_SA=false
15669   fi
15670   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15671     INCLUDE_SA=false
15672   fi
15673   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15674     INCLUDE_SA=false
15675   fi
15676 
15677 
15678   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15679     MACOSX_UNIVERSAL="true"
15680   fi
15681 
15682 
15683 
15684 
15685   ###############################################################################
15686   #
15687   # Set the debug level
15688   #    release: no debug information, all optimizations, no asserts.
15689   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15690   #    fastdebug: debug information (-g), all optimizations, all asserts
15691   #    slowdebug: debug information (-g), no optimizations, all asserts
15692   #
15693   DEBUG_LEVEL="release"
15694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15695 $as_echo_n "checking which debug level to use... " >&6; }
15696   # Check whether --enable-debug was given.
15697 if test "${enable_debug+set}" = set; then :
15698   enableval=$enable_debug;
15699         ENABLE_DEBUG="${enableval}"
15700         DEBUG_LEVEL="fastdebug"
15701 
15702 else
15703   ENABLE_DEBUG="no"
15704 fi
15705 
15706 
15707 
15708 # Check whether --with-debug-level was given.
15709 if test "${with_debug_level+set}" = set; then :
15710   withval=$with_debug_level;
15711         DEBUG_LEVEL="${withval}"
15712         if test "x$ENABLE_DEBUG" = xyes; then
15713           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15714         fi
15715 
15716 fi
15717 
15718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15719 $as_echo "$DEBUG_LEVEL" >&6; }
15720 
15721   if test "x$DEBUG_LEVEL" != xrelease && \
15722       test "x$DEBUG_LEVEL" != xoptimized && \
15723       test "x$DEBUG_LEVEL" != xfastdebug && \
15724       test "x$DEBUG_LEVEL" != xslowdebug; then
15725     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15726   fi
15727 
15728 
15729   ###############################################################################
15730   #
15731   # Setup legacy vars/targets and new vars to deal with different debug levels.
15732   #
15733 
15734   case $DEBUG_LEVEL in
15735     release )
15736       VARIANT="OPT"
15737       FASTDEBUG="false"
15738       DEBUG_CLASSFILES="false"
15739       BUILD_VARIANT_RELEASE=""
15740       HOTSPOT_DEBUG_LEVEL="product"
15741       HOTSPOT_EXPORT="product"
15742       ;;
15743     fastdebug )
15744       VARIANT="DBG"
15745       FASTDEBUG="true"
15746       DEBUG_CLASSFILES="true"
15747       BUILD_VARIANT_RELEASE="-fastdebug"
15748       HOTSPOT_DEBUG_LEVEL="fastdebug"
15749       HOTSPOT_EXPORT="fastdebug"
15750       ;;
15751     slowdebug )
15752       VARIANT="DBG"
15753       FASTDEBUG="false"
15754       DEBUG_CLASSFILES="true"
15755       BUILD_VARIANT_RELEASE="-debug"
15756       HOTSPOT_DEBUG_LEVEL="debug"
15757       HOTSPOT_EXPORT="debug"
15758       ;;
15759     optimized )
15760       VARIANT="OPT"
15761       FASTDEBUG="false"
15762       DEBUG_CLASSFILES="false"
15763       BUILD_VARIANT_RELEASE="-optimized"
15764       HOTSPOT_DEBUG_LEVEL="optimized"
15765       HOTSPOT_EXPORT="optimized"
15766       ;;
15767   esac
15768 
15769   # The debug level 'optimized' is a little special because it is currently only
15770   # applicable to the HotSpot build where it means to build a completely
15771   # optimized version of the VM without any debugging code (like for the
15772   # 'release' debug level which is called 'product' in the HotSpot build) but
15773   # with the exception that it can contain additional code which is otherwise
15774   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15775   # test new and/or experimental features which are not intended for customer
15776   # shipment. Because these new features need to be tested and benchmarked in
15777   # real world scenarios, we want to build the containing JDK at the 'release'
15778   # debug level.
15779   if test "x$DEBUG_LEVEL" = xoptimized; then
15780     DEBUG_LEVEL="release"
15781   fi
15782 
15783   #####
15784   # Generate the legacy makefile targets for hotspot.
15785   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15786   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15787   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15788   # But until then ...
15789   HOTSPOT_TARGET=""
15790 
15791   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15792     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15793   fi
15794 
15795   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15796     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15797   fi
15798 
15799   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15800     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15801   fi
15802 
15803   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15804     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15805   fi
15806 
15807   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15808     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15809   fi
15810 
15811   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15812     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15813   fi
15814 
15815   if test "x$JVM_VARIANT_CORE" = xtrue; then
15816     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15817   fi
15818 
15819   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15820 
15821   # On Macosx universal binaries are produced, but they only contain
15822   # 64 bit intel. This invalidates control of which jvms are built
15823   # from configure, but only server is valid anyway. Fix this
15824   # when hotspot makefiles are rewritten.
15825   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15826     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15827   fi
15828 
15829   #####
15830 
15831 
15832 
15833 
15834 
15835 
15836 
15837 
15838 # With basic setup done, call the custom early hook.
15839 
15840 
15841 # Check if we have devkits, extra paths or sysroot set.
15842 
15843 
15844 # Check whether --with-devkit was given.
15845 if test "${with_devkit+set}" = set; then :
15846   withval=$with_devkit;
15847 
15848   # Only process if variable expands to non-empty
15849 
15850   if test "x$with_devkit" != x; then
15851     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15852 
15853   # Input might be given as Windows format, start by converting to
15854   # unix format.
15855   path="$with_devkit"
15856   new_path=`$CYGPATH -u "$path"`
15857 
15858   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15859   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15860   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15861   # "foo.exe" is OK but "foo" is an error.
15862   #
15863   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15864   # It is also a way to make sure we got the proper file name for the real test later on.
15865   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15866   if test "x$test_shortpath" = x; then
15867     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15868 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15869     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15870   fi
15871 
15872   # Call helper function which possibly converts this using DOS-style short mode.
15873   # If so, the updated path is stored in $new_path.
15874 
15875   input_path="$new_path"
15876   # Check if we need to convert this using DOS-style short mode. If the path
15877   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15878   # take no chances and rewrite it.
15879   # Note: m4 eats our [], so we need to use [ and ] instead.
15880   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15881   if test "x$has_forbidden_chars" != x; then
15882     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15883     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15884     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15885     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15886       # Going to short mode and back again did indeed matter. Since short mode is
15887       # case insensitive, let's make it lowercase to improve readability.
15888       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15889       # Now convert it back to Unix-style (cygpath)
15890       input_path=`$CYGPATH -u "$shortmode_path"`
15891       new_path="$input_path"
15892     fi
15893   fi
15894 
15895   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15896   if test "x$test_cygdrive_prefix" = x; then
15897     # As a simple fix, exclude /usr/bin since it's not a real path.
15898     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15899       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15900       # a path prefixed by /cygdrive for fixpath to work.
15901       new_path="$CYGWIN_ROOT_PATH$input_path"
15902     fi
15903   fi
15904 
15905 
15906   if test "x$path" != "x$new_path"; then
15907     with_devkit="$new_path"
15908     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15909 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15910   fi
15911 
15912     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15913 
15914   path="$with_devkit"
15915   has_colon=`$ECHO $path | $GREP ^.:`
15916   new_path="$path"
15917   if test "x$has_colon" = x; then
15918     # Not in mixed or Windows style, start by that.
15919     new_path=`cmd //c echo $path`
15920   fi
15921 
15922 
15923   input_path="$new_path"
15924   # Check if we need to convert this using DOS-style short mode. If the path
15925   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15926   # take no chances and rewrite it.
15927   # Note: m4 eats our [], so we need to use [ and ] instead.
15928   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15929   if test "x$has_forbidden_chars" != x; then
15930     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15931     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15932   fi
15933 
15934 
15935   windows_path="$new_path"
15936   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15937     unix_path=`$CYGPATH -u "$windows_path"`
15938     new_path="$unix_path"
15939   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15940     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15941     new_path="$unix_path"
15942   fi
15943 
15944   if test "x$path" != "x$new_path"; then
15945     with_devkit="$new_path"
15946     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15947 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15948   fi
15949 
15950   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15951   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15952 
15953     else
15954       # We're on a unix platform. Hooray! :)
15955       path="$with_devkit"
15956       has_space=`$ECHO "$path" | $GREP " "`
15957       if test "x$has_space" != x; then
15958         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15959 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15960         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15961       fi
15962 
15963       # Use eval to expand a potential ~
15964       eval path="$path"
15965       if test ! -f "$path" && test ! -d "$path"; then
15966         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15967       fi
15968 
15969       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15970     fi
15971   fi
15972 
15973         DEVKIT_ROOT="$with_devkit"
15974         # Check for a meta data info file in the root of the devkit
15975         if test -f "$DEVKIT_ROOT/devkit.info"; then
15976           . $DEVKIT_ROOT/devkit.info
15977           # This potentially sets the following:
15978           # A descriptive name of the devkit
15979 
15980   if test "x$DEVKIT_NAME" = x; then
15981     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15982   fi
15983 
15984           # Corresponds to --with-extra-path
15985 
15986   if test "x$DEVKIT_EXTRA_PATH" = x; then
15987     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15988   fi
15989 
15990           # Corresponds to --with-toolchain-path
15991 
15992   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15993     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15994   fi
15995 
15996           # Corresponds to --with-sysroot
15997 
15998   if test "x$DEVKIT_SYSROOT" = x; then
15999     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16000   fi
16001 
16002 
16003           # Identifies the Visual Studio version in the devkit
16004 
16005   if test "x$DEVKIT_VS_VERSION" = x; then
16006     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16007   fi
16008 
16009           # The Visual Studio include environment variable
16010 
16011   if test "x$DEVKIT_VS_INCLUDE" = x; then
16012     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16013   fi
16014 
16015           # The Visual Studio lib environment variable
16016 
16017   if test "x$DEVKIT_VS_LIB" = x; then
16018     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16019   fi
16020 
16021           # Corresponds to --with-msvcr-dll
16022 
16023   if test "x$DEVKIT_MSVCR_DLL" = x; then
16024     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16025   fi
16026 
16027           # Corresponds to --with-msvcp-dll
16028 
16029   if test "x$DEVKIT_MSVCP_DLL" = x; then
16030     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16031   fi
16032 
16033         fi
16034 
16035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16036 $as_echo_n "checking for devkit... " >&6; }
16037         if test "x$DEVKIT_NAME" != x; then
16038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16039 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16040         else
16041           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16042 $as_echo "$DEVKIT_ROOT" >&6; }
16043         fi
16044 
16045 
16046   if test "x$DEVKIT_EXTRA_PATH" != x; then
16047     if test "x$EXTRA_PATH" = x; then
16048       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16049     else
16050       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16051     fi
16052   fi
16053 
16054 
16055         # Fallback default of just /bin if DEVKIT_PATH is not defined
16056         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16057           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16058         fi
16059 
16060   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16061     if test "x$TOOLCHAIN_PATH" = x; then
16062       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16063     else
16064       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16065     fi
16066   fi
16067 
16068 
16069         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16070         # places for backwards compatiblity.
16071         if test "x$DEVKIT_SYSROOT" != x; then
16072           SYSROOT="$DEVKIT_SYSROOT"
16073         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16074           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16075         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16076           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16077         fi
16078 
16079 
16080 fi
16081 
16082 
16083   # You can force the sysroot if the sysroot encoded into the compiler tools
16084   # is not correct.
16085 
16086 # Check whether --with-sys-root was given.
16087 if test "${with_sys_root+set}" = set; then :
16088   withval=$with_sys_root; SYSROOT=$with_sys_root
16089 
16090 fi
16091 
16092 
16093 
16094 # Check whether --with-sysroot was given.
16095 if test "${with_sysroot+set}" = set; then :
16096   withval=$with_sysroot; SYSROOT=$with_sysroot
16097 
16098 fi
16099 
16100 
16101 
16102 # Check whether --with-tools-dir was given.
16103 if test "${with_tools_dir+set}" = set; then :
16104   withval=$with_tools_dir;
16105   if test "x$with_tools_dir" != x; then
16106     if test "x$TOOLCHAIN_PATH" = x; then
16107       TOOLCHAIN_PATH="$with_tools_dir"
16108     else
16109       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16110     fi
16111   fi
16112 
16113 
16114 fi
16115 
16116 
16117 
16118 # Check whether --with-toolchain-path was given.
16119 if test "${with_toolchain_path+set}" = set; then :
16120   withval=$with_toolchain_path;
16121   if test "x$with_toolchain_path" != x; then
16122     if test "x$TOOLCHAIN_PATH" = x; then
16123       TOOLCHAIN_PATH="$with_toolchain_path"
16124     else
16125       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16126     fi
16127   fi
16128 
16129 
16130 fi
16131 
16132 
16133 
16134 # Check whether --with-extra-path was given.
16135 if test "${with_extra_path+set}" = set; then :
16136   withval=$with_extra_path;
16137   if test "x$with_extra_path" != x; then
16138     if test "x$EXTRA_PATH" = x; then
16139       EXTRA_PATH="$with_extra_path"
16140     else
16141       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16142     fi
16143   fi
16144 
16145 
16146 fi
16147 
16148 
16149   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16150     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16151     # If not, detect if Xcode is installed by running xcodebuild -version
16152     # if no Xcode installed, xcodebuild exits with 1
16153     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16154     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16155       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16156       # fall back on the stub binary in /usr/bin/xcodebuild
16157       # Extract the first word of "xcodebuild", so it can be a program name with args.
16158 set dummy xcodebuild; ac_word=$2
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16160 $as_echo_n "checking for $ac_word... " >&6; }
16161 if ${ac_cv_path_XCODEBUILD+:} false; then :
16162   $as_echo_n "(cached) " >&6
16163 else
16164   case $XCODEBUILD in
16165   [\\/]* | ?:[\\/]*)
16166   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16167   ;;
16168   *)
16169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16170 for as_dir in $TOOLCHAIN_PATH
16171 do
16172   IFS=$as_save_IFS
16173   test -z "$as_dir" && as_dir=.
16174     for ac_exec_ext in '' $ac_executable_extensions; do
16175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16176     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16178     break 2
16179   fi
16180 done
16181   done
16182 IFS=$as_save_IFS
16183 
16184   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16185   ;;
16186 esac
16187 fi
16188 XCODEBUILD=$ac_cv_path_XCODEBUILD
16189 if test -n "$XCODEBUILD"; then
16190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16191 $as_echo "$XCODEBUILD" >&6; }
16192 else
16193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16194 $as_echo "no" >&6; }
16195 fi
16196 
16197 
16198     else
16199       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16200       # when only the command line tools are installed there are no SDKs, so headers
16201       # are copied into the system frameworks
16202       XCODEBUILD=
16203 
16204     fi
16205 
16206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16207 $as_echo_n "checking for sdk name... " >&6; }
16208 
16209 # Check whether --with-sdk-name was given.
16210 if test "${with_sdk_name+set}" = set; then :
16211   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16212 
16213 fi
16214 
16215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16216 $as_echo "$SDKNAME" >&6; }
16217 
16218     # if toolchain path is specified then don't rely on system headers, they may not compile
16219     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16220     test -z "$TOOLCHAIN_PATH" && \
16221       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16222 
16223     if test -z "$SYSROOT"; then
16224       if test -n "$XCODEBUILD"; then
16225         # if we don't have system headers, use default SDK name (last resort)
16226         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16227           SDKNAME=${SDKNAME:-macosx}
16228         fi
16229 
16230         if test -n "$SDKNAME"; then
16231           # Call xcodebuild to determine SYSROOT
16232           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16233         fi
16234       else
16235         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16236           as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5
16237         fi
16238       fi
16239     else
16240       # warn user if --with-sdk-name was also set
16241       if test -n "$with_sdk_name"; then
16242         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16243 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16244       fi
16245     fi
16246 
16247     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16248       # If no system framework headers, then SYSROOT must be set, or we won't build
16249       as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5
16250     fi
16251 
16252     # Perform a basic sanity test
16253     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16254       if test -z "$SYSROOT"; then
16255         as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5
16256       else
16257         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16258       fi
16259     fi
16260 
16261     # set SDKROOT too, Xcode tools will pick it up
16262     SDKROOT=$SYSROOT
16263 
16264   fi
16265 
16266   # Prepend the extra path to the global path
16267 
16268   if test "x$EXTRA_PATH" != x; then
16269     if test "x$PATH" = x; then
16270       PATH="$EXTRA_PATH"
16271     else
16272       PATH="$EXTRA_PATH:$PATH"
16273     fi
16274   fi
16275 
16276 
16277   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16278     # Add extra search paths on solaris for utilities like ar and as etc...
16279     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16280   fi
16281 
16282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16283 $as_echo_n "checking for sysroot... " >&6; }
16284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16285 $as_echo "$SYSROOT" >&6; }
16286   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16287 $as_echo_n "checking for toolchain path... " >&6; }
16288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16289 $as_echo "$TOOLCHAIN_PATH" >&6; }
16290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16291 $as_echo_n "checking for extra path... " >&6; }
16292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16293 $as_echo "$EXTRA_PATH" >&6; }
16294 
16295 
16296 # To properly create a configuration name, we need to have the OpenJDK target
16297 # and options (variants and debug level) parsed.
16298 
16299 
16300 
16301 # Check whether --with-conf-name was given.
16302 if test "${with_conf_name+set}" = set; then :
16303   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16304 fi
16305 
16306 
16307   # Test from where we are running configure, in or outside of src root.
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16309 $as_echo_n "checking where to store configuration... " >&6; }
16310   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16311       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16312       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16313     # We are running configure from the src root.
16314     # Create a default ./build/target-variant-debuglevel output root.
16315     if test "x${CONF_NAME}" = x; then
16316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16317 $as_echo "in default location" >&6; }
16318       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16319     else
16320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16321 $as_echo "in build directory with custom name" >&6; }
16322     fi
16323     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16324     $MKDIR -p "$OUTPUT_ROOT"
16325     if test ! -d "$OUTPUT_ROOT"; then
16326       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16327     fi
16328   else
16329     # We are running configure from outside of the src dir.
16330     # Then use the current directory as output dir!
16331     # If configuration is situated in normal build directory, just use the build
16332     # directory name as configuration name, otherwise use the complete path.
16333     if test "x${CONF_NAME}" = x; then
16334       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16335     fi
16336     OUTPUT_ROOT="$CURDIR"
16337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16338 $as_echo "in current directory" >&6; }
16339 
16340     # WARNING: This might be a bad thing to do. You need to be sure you want to
16341     # have a configuration in this directory. Do some sanity checks!
16342 
16343     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16344       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16345       # other files
16346       files_present=`$LS $OUTPUT_ROOT`
16347       # Configure has already touched config.log and confdefs.h in the current dir when this check
16348       # is performed.
16349       filtered_files=`$ECHO "$files_present" \
16350           | $SED -e 's/config.log//g' \
16351               -e 's/configure.log//g' \
16352               -e 's/confdefs.h//g' \
16353               -e 's/ //g' \
16354           | $TR -d '\n'`
16355       if test "x$filtered_files" != x; then
16356         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16357 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16358         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16359 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16360         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16361 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16362         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16363 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16364         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16365 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16366         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16367 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16368         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16369 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16370         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16371       fi
16372     fi
16373   fi
16374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16375 $as_echo_n "checking what configuration name to use... " >&6; }
16376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16377 $as_echo "$CONF_NAME" >&6; }
16378 
16379 
16380   # Only process if variable expands to non-empty
16381 
16382   if test "x$OUTPUT_ROOT" != x; then
16383     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16384 
16385   # Input might be given as Windows format, start by converting to
16386   # unix format.
16387   path="$OUTPUT_ROOT"
16388   new_path=`$CYGPATH -u "$path"`
16389 
16390   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16391   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16392   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16393   # "foo.exe" is OK but "foo" is an error.
16394   #
16395   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16396   # It is also a way to make sure we got the proper file name for the real test later on.
16397   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16398   if test "x$test_shortpath" = x; then
16399     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16400 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16401     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16402   fi
16403 
16404   # Call helper function which possibly converts this using DOS-style short mode.
16405   # If so, the updated path is stored in $new_path.
16406 
16407   input_path="$new_path"
16408   # Check if we need to convert this using DOS-style short mode. If the path
16409   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16410   # take no chances and rewrite it.
16411   # Note: m4 eats our [], so we need to use [ and ] instead.
16412   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16413   if test "x$has_forbidden_chars" != x; then
16414     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16415     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16416     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16417     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16418       # Going to short mode and back again did indeed matter. Since short mode is
16419       # case insensitive, let's make it lowercase to improve readability.
16420       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16421       # Now convert it back to Unix-style (cygpath)
16422       input_path=`$CYGPATH -u "$shortmode_path"`
16423       new_path="$input_path"
16424     fi
16425   fi
16426 
16427   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16428   if test "x$test_cygdrive_prefix" = x; then
16429     # As a simple fix, exclude /usr/bin since it's not a real path.
16430     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16431       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16432       # a path prefixed by /cygdrive for fixpath to work.
16433       new_path="$CYGWIN_ROOT_PATH$input_path"
16434     fi
16435   fi
16436 
16437 
16438   if test "x$path" != "x$new_path"; then
16439     OUTPUT_ROOT="$new_path"
16440     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16441 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16442   fi
16443 
16444     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16445 
16446   path="$OUTPUT_ROOT"
16447   has_colon=`$ECHO $path | $GREP ^.:`
16448   new_path="$path"
16449   if test "x$has_colon" = x; then
16450     # Not in mixed or Windows style, start by that.
16451     new_path=`cmd //c echo $path`
16452   fi
16453 
16454 
16455   input_path="$new_path"
16456   # Check if we need to convert this using DOS-style short mode. If the path
16457   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16458   # take no chances and rewrite it.
16459   # Note: m4 eats our [], so we need to use [ and ] instead.
16460   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16461   if test "x$has_forbidden_chars" != x; then
16462     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16463     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16464   fi
16465 
16466 
16467   windows_path="$new_path"
16468   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16469     unix_path=`$CYGPATH -u "$windows_path"`
16470     new_path="$unix_path"
16471   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16472     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16473     new_path="$unix_path"
16474   fi
16475 
16476   if test "x$path" != "x$new_path"; then
16477     OUTPUT_ROOT="$new_path"
16478     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16479 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16480   fi
16481 
16482   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16483   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16484 
16485     else
16486       # We're on a unix platform. Hooray! :)
16487       path="$OUTPUT_ROOT"
16488       has_space=`$ECHO "$path" | $GREP " "`
16489       if test "x$has_space" != x; then
16490         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16491 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16492         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16493       fi
16494 
16495       # Use eval to expand a potential ~
16496       eval path="$path"
16497       if test ! -f "$path" && test ! -d "$path"; then
16498         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16499       fi
16500 
16501       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16502     fi
16503   fi
16504 
16505 
16506   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16507   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16508 
16509   SPEC=$OUTPUT_ROOT/spec.gmk
16510 
16511   CONF_NAME=$CONF_NAME
16512 
16513   OUTPUT_ROOT=$OUTPUT_ROOT
16514 
16515 
16516 
16517   # The spec.gmk file contains all variables for the make system.
16518   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16519 
16520   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16521   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16522 
16523   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16524   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16525 
16526   # The compare.sh is used to compare the build output to other builds.
16527   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16528 
16529   # The generated Makefile knows where the spec.gmk is and where the source is.
16530   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16531   # which will look for generated configurations
16532   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16533 
16534 
16535 
16536 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16537 
16538   for ac_prog in apt-get yum port pkgutil pkgadd
16539 do
16540   # Extract the first word of "$ac_prog", so it can be a program name with args.
16541 set dummy $ac_prog; ac_word=$2
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16543 $as_echo_n "checking for $ac_word... " >&6; }
16544 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16545   $as_echo_n "(cached) " >&6
16546 else
16547   if test -n "$PKGHANDLER"; then
16548   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16549 else
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $PATH
16552 do
16553   IFS=$as_save_IFS
16554   test -z "$as_dir" && as_dir=.
16555     for ac_exec_ext in '' $ac_executable_extensions; do
16556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557     ac_cv_prog_PKGHANDLER="$ac_prog"
16558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16559     break 2
16560   fi
16561 done
16562   done
16563 IFS=$as_save_IFS
16564 
16565 fi
16566 fi
16567 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16568 if test -n "$PKGHANDLER"; then
16569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16570 $as_echo "$PKGHANDLER" >&6; }
16571 else
16572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16574 fi
16575 
16576 
16577   test -n "$PKGHANDLER" && break
16578 done
16579 
16580 
16581 
16582 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16583 
16584 
16585 
16586   # Publish this variable in the help.
16587 
16588 
16589   if [ -z "${MAKE+x}" ]; then
16590     # The variable is not set by user, try to locate tool using the code snippet
16591 
16592     # Try our hardest to locate a correct version of GNU make
16593     for ac_prog in gmake
16594 do
16595   # Extract the first word of "$ac_prog", so it can be a program name with args.
16596 set dummy $ac_prog; ac_word=$2
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16598 $as_echo_n "checking for $ac_word... " >&6; }
16599 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16600   $as_echo_n "(cached) " >&6
16601 else
16602   case $CHECK_GMAKE in
16603   [\\/]* | ?:[\\/]*)
16604   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16605   ;;
16606   *)
16607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $PATH
16609 do
16610   IFS=$as_save_IFS
16611   test -z "$as_dir" && as_dir=.
16612     for ac_exec_ext in '' $ac_executable_extensions; do
16613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16616     break 2
16617   fi
16618 done
16619   done
16620 IFS=$as_save_IFS
16621 
16622   ;;
16623 esac
16624 fi
16625 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16626 if test -n "$CHECK_GMAKE"; then
16627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16628 $as_echo "$CHECK_GMAKE" >&6; }
16629 else
16630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631 $as_echo "no" >&6; }
16632 fi
16633 
16634 
16635   test -n "$CHECK_GMAKE" && break
16636 done
16637 
16638 
16639   MAKE_CANDIDATE=""$CHECK_GMAKE""
16640   DESCRIPTION="gmake in PATH"
16641 
16642   # On Cygwin, we require a newer version of make than on other platforms
16643   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16644     MAKE_VERSION_EXPR="-e 4\."
16645     MAKE_REQUIRED_VERSION="4.0"
16646    else
16647     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16648     MAKE_REQUIRED_VERSION="3.81"
16649   fi
16650 
16651   if test "x$MAKE_CANDIDATE" != x; then
16652     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16653 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16654     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16655     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16656     if test "x$IS_GNU_MAKE" = x; then
16657       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16658 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16659     else
16660       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16661       if test "x$IS_MODERN_MAKE" = x; then
16662         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16663 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16664       else
16665         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16666           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16667             MAKE_EXPECTED_ENV='cygwin'
16668           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16669             MAKE_EXPECTED_ENV='msys'
16670           else
16671             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16672           fi
16673           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16674           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16675         else
16676           # Not relevant for non-Windows
16677           IS_MAKE_CORRECT_ENV=true
16678         fi
16679         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16680           { $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
16681 $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;}
16682         else
16683           FOUND_MAKE=$MAKE_CANDIDATE
16684 
16685   # Only process if variable expands to non-empty
16686 
16687   if test "x$FOUND_MAKE" != x; then
16688     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16689 
16690   # First separate the path from the arguments. This will split at the first
16691   # space.
16692   complete="$FOUND_MAKE"
16693   path="${complete%% *}"
16694   tmp="$complete EOL"
16695   arguments="${tmp#* }"
16696 
16697   # Input might be given as Windows format, start by converting to
16698   # unix format.
16699   new_path=`$CYGPATH -u "$path"`
16700 
16701   # Now try to locate executable using which
16702   new_path=`$WHICH "$new_path" 2> /dev/null`
16703   # bat and cmd files are not always considered executable in cygwin causing which
16704   # to not find them
16705   if test "x$new_path" = x \
16706       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16707       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16708     new_path=`$CYGPATH -u "$path"`
16709   fi
16710   if test "x$new_path" = x; then
16711     # Oops. Which didn't find the executable.
16712     # The splitting of arguments from the executable at a space might have been incorrect,
16713     # since paths with space are more likely in Windows. Give it another try with the whole
16714     # argument.
16715     path="$complete"
16716     arguments="EOL"
16717     new_path=`$CYGPATH -u "$path"`
16718     new_path=`$WHICH "$new_path" 2> /dev/null`
16719     # bat and cmd files are not always considered executable in cygwin causing which
16720     # to not find them
16721     if test "x$new_path" = x \
16722         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16723         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16724       new_path=`$CYGPATH -u "$path"`
16725     fi
16726     if test "x$new_path" = x; then
16727       # It's still not found. Now this is an unrecoverable error.
16728       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16729 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16730       has_space=`$ECHO "$complete" | $GREP " "`
16731       if test "x$has_space" != x; then
16732         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16733 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16734       fi
16735       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16736     fi
16737   fi
16738 
16739   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16740   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16741   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16742   # "foo.exe" is OK but "foo" is an error.
16743   #
16744   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16745   # It is also a way to make sure we got the proper file name for the real test later on.
16746   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16747   if test "x$test_shortpath" = x; then
16748     # Short path failed, file does not exist as specified.
16749     # Try adding .exe or .cmd
16750     if test -f "${new_path}.exe"; then
16751       input_to_shortpath="${new_path}.exe"
16752     elif test -f "${new_path}.cmd"; then
16753       input_to_shortpath="${new_path}.cmd"
16754     else
16755       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16756 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16757       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16758 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16759       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16760     fi
16761   else
16762     input_to_shortpath="$new_path"
16763   fi
16764 
16765   # Call helper function which possibly converts this using DOS-style short mode.
16766   # If so, the updated path is stored in $new_path.
16767   new_path="$input_to_shortpath"
16768 
16769   input_path="$input_to_shortpath"
16770   # Check if we need to convert this using DOS-style short mode. If the path
16771   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16772   # take no chances and rewrite it.
16773   # Note: m4 eats our [], so we need to use [ and ] instead.
16774   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16775   if test "x$has_forbidden_chars" != x; then
16776     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16777     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16778     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16779     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16780       # Going to short mode and back again did indeed matter. Since short mode is
16781       # case insensitive, let's make it lowercase to improve readability.
16782       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16783       # Now convert it back to Unix-style (cygpath)
16784       input_path=`$CYGPATH -u "$shortmode_path"`
16785       new_path="$input_path"
16786     fi
16787   fi
16788 
16789   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16790   if test "x$test_cygdrive_prefix" = x; then
16791     # As a simple fix, exclude /usr/bin since it's not a real path.
16792     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16793       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16794       # a path prefixed by /cygdrive for fixpath to work.
16795       new_path="$CYGWIN_ROOT_PATH$input_path"
16796     fi
16797   fi
16798 
16799   # remove trailing .exe if any
16800   new_path="${new_path/%.exe/}"
16801 
16802     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16803 
16804   # First separate the path from the arguments. This will split at the first
16805   # space.
16806   complete="$FOUND_MAKE"
16807   path="${complete%% *}"
16808   tmp="$complete EOL"
16809   arguments="${tmp#* }"
16810 
16811   # Input might be given as Windows format, start by converting to
16812   # unix format.
16813   new_path="$path"
16814 
16815   windows_path="$new_path"
16816   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16817     unix_path=`$CYGPATH -u "$windows_path"`
16818     new_path="$unix_path"
16819   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16820     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16821     new_path="$unix_path"
16822   fi
16823 
16824 
16825   # Now try to locate executable using which
16826   new_path=`$WHICH "$new_path" 2> /dev/null`
16827 
16828   if test "x$new_path" = x; then
16829     # Oops. Which didn't find the executable.
16830     # The splitting of arguments from the executable at a space might have been incorrect,
16831     # since paths with space are more likely in Windows. Give it another try with the whole
16832     # argument.
16833     path="$complete"
16834     arguments="EOL"
16835     new_path="$path"
16836 
16837   windows_path="$new_path"
16838   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16839     unix_path=`$CYGPATH -u "$windows_path"`
16840     new_path="$unix_path"
16841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16842     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16843     new_path="$unix_path"
16844   fi
16845 
16846 
16847     new_path=`$WHICH "$new_path" 2> /dev/null`
16848     # bat and cmd files are not always considered executable in MSYS causing which
16849     # to not find them
16850     if test "x$new_path" = x \
16851         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16852         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16853       new_path="$path"
16854 
16855   windows_path="$new_path"
16856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16857     unix_path=`$CYGPATH -u "$windows_path"`
16858     new_path="$unix_path"
16859   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16860     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16861     new_path="$unix_path"
16862   fi
16863 
16864     fi
16865 
16866     if test "x$new_path" = x; then
16867       # It's still not found. Now this is an unrecoverable error.
16868       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16869 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16870       has_space=`$ECHO "$complete" | $GREP " "`
16871       if test "x$has_space" != x; then
16872         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16873 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16874       fi
16875       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16876     fi
16877   fi
16878 
16879   # Now new_path has a complete unix path to the binary
16880   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16881     # Keep paths in /bin as-is, but remove trailing .exe if any
16882     new_path="${new_path/%.exe/}"
16883     # Do not save /bin paths to all_fixpath_prefixes!
16884   else
16885     # Not in mixed or Windows style, start by that.
16886     new_path=`cmd //c echo $new_path`
16887 
16888   input_path="$new_path"
16889   # Check if we need to convert this using DOS-style short mode. If the path
16890   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16891   # take no chances and rewrite it.
16892   # Note: m4 eats our [], so we need to use [ and ] instead.
16893   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16894   if test "x$has_forbidden_chars" != x; then
16895     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16896     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16897   fi
16898 
16899     # Output is in $new_path
16900 
16901   windows_path="$new_path"
16902   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16903     unix_path=`$CYGPATH -u "$windows_path"`
16904     new_path="$unix_path"
16905   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16906     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16907     new_path="$unix_path"
16908   fi
16909 
16910     # remove trailing .exe if any
16911     new_path="${new_path/%.exe/}"
16912 
16913     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16914     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16915   fi
16916 
16917     else
16918       # We're on a unix platform. Hooray! :)
16919       # First separate the path from the arguments. This will split at the first
16920       # space.
16921       complete="$FOUND_MAKE"
16922       path="${complete%% *}"
16923       tmp="$complete EOL"
16924       arguments="${tmp#* }"
16925 
16926       # Cannot rely on the command "which" here since it doesn't always work.
16927       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16928       if test -z "$is_absolute_path"; then
16929         # Path to executable is not absolute. Find it.
16930         IFS_save="$IFS"
16931         IFS=:
16932         for p in $PATH; do
16933           if test -f "$p/$path" && test -x "$p/$path"; then
16934             new_path="$p/$path"
16935             break
16936           fi
16937         done
16938         IFS="$IFS_save"
16939       else
16940         # This is an absolute path, we can use it without further modifications.
16941         new_path="$path"
16942       fi
16943 
16944       if test "x$new_path" = x; then
16945         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16946 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16947         has_space=`$ECHO "$complete" | $GREP " "`
16948         if test "x$has_space" != x; then
16949           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16950 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16951         fi
16952         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16953       fi
16954     fi
16955 
16956     # Now join together the path and the arguments once again
16957     if test "x$arguments" != xEOL; then
16958       new_complete="$new_path ${arguments% *}"
16959     else
16960       new_complete="$new_path"
16961     fi
16962 
16963     if test "x$complete" != "x$new_complete"; then
16964       FOUND_MAKE="$new_complete"
16965       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16966 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16967     fi
16968   fi
16969 
16970         fi
16971       fi
16972     fi
16973   fi
16974 
16975 
16976     if test "x$FOUND_MAKE" = x; then
16977       for ac_prog in make
16978 do
16979   # Extract the first word of "$ac_prog", so it can be a program name with args.
16980 set dummy $ac_prog; ac_word=$2
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16982 $as_echo_n "checking for $ac_word... " >&6; }
16983 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16984   $as_echo_n "(cached) " >&6
16985 else
16986   case $CHECK_MAKE in
16987   [\\/]* | ?:[\\/]*)
16988   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16989   ;;
16990   *)
16991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16992 for as_dir in $PATH
16993 do
16994   IFS=$as_save_IFS
16995   test -z "$as_dir" && as_dir=.
16996     for ac_exec_ext in '' $ac_executable_extensions; do
16997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16998     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17000     break 2
17001   fi
17002 done
17003   done
17004 IFS=$as_save_IFS
17005 
17006   ;;
17007 esac
17008 fi
17009 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17010 if test -n "$CHECK_MAKE"; then
17011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17012 $as_echo "$CHECK_MAKE" >&6; }
17013 else
17014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17016 fi
17017 
17018 
17019   test -n "$CHECK_MAKE" && break
17020 done
17021 
17022 
17023   MAKE_CANDIDATE=""$CHECK_MAKE""
17024   DESCRIPTION="make in PATH"
17025 
17026   # On Cygwin, we require a newer version of make than on other platforms
17027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17028     MAKE_VERSION_EXPR="-e 4\."
17029     MAKE_REQUIRED_VERSION="4.0"
17030    else
17031     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17032     MAKE_REQUIRED_VERSION="3.81"
17033   fi
17034 
17035   if test "x$MAKE_CANDIDATE" != x; then
17036     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17037 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17038     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17039     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17040     if test "x$IS_GNU_MAKE" = x; then
17041       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17042 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17043     else
17044       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17045       if test "x$IS_MODERN_MAKE" = x; then
17046         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17047 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17048       else
17049         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17050           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17051             MAKE_EXPECTED_ENV='cygwin'
17052           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17053             MAKE_EXPECTED_ENV='msys'
17054           else
17055             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17056           fi
17057           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17058           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17059         else
17060           # Not relevant for non-Windows
17061           IS_MAKE_CORRECT_ENV=true
17062         fi
17063         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17064           { $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
17065 $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;}
17066         else
17067           FOUND_MAKE=$MAKE_CANDIDATE
17068 
17069   # Only process if variable expands to non-empty
17070 
17071   if test "x$FOUND_MAKE" != x; then
17072     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17073 
17074   # First separate the path from the arguments. This will split at the first
17075   # space.
17076   complete="$FOUND_MAKE"
17077   path="${complete%% *}"
17078   tmp="$complete EOL"
17079   arguments="${tmp#* }"
17080 
17081   # Input might be given as Windows format, start by converting to
17082   # unix format.
17083   new_path=`$CYGPATH -u "$path"`
17084 
17085   # Now try to locate executable using which
17086   new_path=`$WHICH "$new_path" 2> /dev/null`
17087   # bat and cmd files are not always considered executable in cygwin causing which
17088   # to not find them
17089   if test "x$new_path" = x \
17090       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17091       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17092     new_path=`$CYGPATH -u "$path"`
17093   fi
17094   if test "x$new_path" = x; then
17095     # Oops. Which didn't find the executable.
17096     # The splitting of arguments from the executable at a space might have been incorrect,
17097     # since paths with space are more likely in Windows. Give it another try with the whole
17098     # argument.
17099     path="$complete"
17100     arguments="EOL"
17101     new_path=`$CYGPATH -u "$path"`
17102     new_path=`$WHICH "$new_path" 2> /dev/null`
17103     # bat and cmd files are not always considered executable in cygwin causing which
17104     # to not find them
17105     if test "x$new_path" = x \
17106         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17107         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17108       new_path=`$CYGPATH -u "$path"`
17109     fi
17110     if test "x$new_path" = x; then
17111       # It's still not found. Now this is an unrecoverable error.
17112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17113 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17114       has_space=`$ECHO "$complete" | $GREP " "`
17115       if test "x$has_space" != x; then
17116         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17118       fi
17119       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17120     fi
17121   fi
17122 
17123   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17124   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17125   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17126   # "foo.exe" is OK but "foo" is an error.
17127   #
17128   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17129   # It is also a way to make sure we got the proper file name for the real test later on.
17130   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17131   if test "x$test_shortpath" = x; then
17132     # Short path failed, file does not exist as specified.
17133     # Try adding .exe or .cmd
17134     if test -f "${new_path}.exe"; then
17135       input_to_shortpath="${new_path}.exe"
17136     elif test -f "${new_path}.cmd"; then
17137       input_to_shortpath="${new_path}.cmd"
17138     else
17139       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17140 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17141       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17142 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17143       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17144     fi
17145   else
17146     input_to_shortpath="$new_path"
17147   fi
17148 
17149   # Call helper function which possibly converts this using DOS-style short mode.
17150   # If so, the updated path is stored in $new_path.
17151   new_path="$input_to_shortpath"
17152 
17153   input_path="$input_to_shortpath"
17154   # Check if we need to convert this using DOS-style short mode. If the path
17155   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17156   # take no chances and rewrite it.
17157   # Note: m4 eats our [], so we need to use [ and ] instead.
17158   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17159   if test "x$has_forbidden_chars" != x; then
17160     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17161     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17162     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17163     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17164       # Going to short mode and back again did indeed matter. Since short mode is
17165       # case insensitive, let's make it lowercase to improve readability.
17166       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17167       # Now convert it back to Unix-style (cygpath)
17168       input_path=`$CYGPATH -u "$shortmode_path"`
17169       new_path="$input_path"
17170     fi
17171   fi
17172 
17173   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17174   if test "x$test_cygdrive_prefix" = x; then
17175     # As a simple fix, exclude /usr/bin since it's not a real path.
17176     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17177       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17178       # a path prefixed by /cygdrive for fixpath to work.
17179       new_path="$CYGWIN_ROOT_PATH$input_path"
17180     fi
17181   fi
17182 
17183   # remove trailing .exe if any
17184   new_path="${new_path/%.exe/}"
17185 
17186     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17187 
17188   # First separate the path from the arguments. This will split at the first
17189   # space.
17190   complete="$FOUND_MAKE"
17191   path="${complete%% *}"
17192   tmp="$complete EOL"
17193   arguments="${tmp#* }"
17194 
17195   # Input might be given as Windows format, start by converting to
17196   # unix format.
17197   new_path="$path"
17198 
17199   windows_path="$new_path"
17200   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17201     unix_path=`$CYGPATH -u "$windows_path"`
17202     new_path="$unix_path"
17203   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17204     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17205     new_path="$unix_path"
17206   fi
17207 
17208 
17209   # Now try to locate executable using which
17210   new_path=`$WHICH "$new_path" 2> /dev/null`
17211 
17212   if test "x$new_path" = x; then
17213     # Oops. Which didn't find the executable.
17214     # The splitting of arguments from the executable at a space might have been incorrect,
17215     # since paths with space are more likely in Windows. Give it another try with the whole
17216     # argument.
17217     path="$complete"
17218     arguments="EOL"
17219     new_path="$path"
17220 
17221   windows_path="$new_path"
17222   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17223     unix_path=`$CYGPATH -u "$windows_path"`
17224     new_path="$unix_path"
17225   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17226     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17227     new_path="$unix_path"
17228   fi
17229 
17230 
17231     new_path=`$WHICH "$new_path" 2> /dev/null`
17232     # bat and cmd files are not always considered executable in MSYS causing which
17233     # to not find them
17234     if test "x$new_path" = x \
17235         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17236         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17237       new_path="$path"
17238 
17239   windows_path="$new_path"
17240   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17241     unix_path=`$CYGPATH -u "$windows_path"`
17242     new_path="$unix_path"
17243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17244     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17245     new_path="$unix_path"
17246   fi
17247 
17248     fi
17249 
17250     if test "x$new_path" = x; then
17251       # It's still not found. Now this is an unrecoverable error.
17252       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17253 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17254       has_space=`$ECHO "$complete" | $GREP " "`
17255       if test "x$has_space" != x; then
17256         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17258       fi
17259       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17260     fi
17261   fi
17262 
17263   # Now new_path has a complete unix path to the binary
17264   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17265     # Keep paths in /bin as-is, but remove trailing .exe if any
17266     new_path="${new_path/%.exe/}"
17267     # Do not save /bin paths to all_fixpath_prefixes!
17268   else
17269     # Not in mixed or Windows style, start by that.
17270     new_path=`cmd //c echo $new_path`
17271 
17272   input_path="$new_path"
17273   # Check if we need to convert this using DOS-style short mode. If the path
17274   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17275   # take no chances and rewrite it.
17276   # Note: m4 eats our [], so we need to use [ and ] instead.
17277   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17278   if test "x$has_forbidden_chars" != x; then
17279     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17280     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17281   fi
17282 
17283     # Output is in $new_path
17284 
17285   windows_path="$new_path"
17286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17287     unix_path=`$CYGPATH -u "$windows_path"`
17288     new_path="$unix_path"
17289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17291     new_path="$unix_path"
17292   fi
17293 
17294     # remove trailing .exe if any
17295     new_path="${new_path/%.exe/}"
17296 
17297     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17298     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17299   fi
17300 
17301     else
17302       # We're on a unix platform. Hooray! :)
17303       # First separate the path from the arguments. This will split at the first
17304       # space.
17305       complete="$FOUND_MAKE"
17306       path="${complete%% *}"
17307       tmp="$complete EOL"
17308       arguments="${tmp#* }"
17309 
17310       # Cannot rely on the command "which" here since it doesn't always work.
17311       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17312       if test -z "$is_absolute_path"; then
17313         # Path to executable is not absolute. Find it.
17314         IFS_save="$IFS"
17315         IFS=:
17316         for p in $PATH; do
17317           if test -f "$p/$path" && test -x "$p/$path"; then
17318             new_path="$p/$path"
17319             break
17320           fi
17321         done
17322         IFS="$IFS_save"
17323       else
17324         # This is an absolute path, we can use it without further modifications.
17325         new_path="$path"
17326       fi
17327 
17328       if test "x$new_path" = x; then
17329         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17330 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17331         has_space=`$ECHO "$complete" | $GREP " "`
17332         if test "x$has_space" != x; then
17333           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17334 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17335         fi
17336         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17337       fi
17338     fi
17339 
17340     # Now join together the path and the arguments once again
17341     if test "x$arguments" != xEOL; then
17342       new_complete="$new_path ${arguments% *}"
17343     else
17344       new_complete="$new_path"
17345     fi
17346 
17347     if test "x$complete" != "x$new_complete"; then
17348       FOUND_MAKE="$new_complete"
17349       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17350 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17351     fi
17352   fi
17353 
17354         fi
17355       fi
17356     fi
17357   fi
17358 
17359     fi
17360 
17361     if test "x$FOUND_MAKE" = x; then
17362       if test "x$TOOLCHAIN_PATH" != x; then
17363         # We have a toolchain path, check that as well before giving up.
17364         OLD_PATH=$PATH
17365         PATH=$TOOLCHAIN_PATH:$PATH
17366         for ac_prog in gmake
17367 do
17368   # Extract the first word of "$ac_prog", so it can be a program name with args.
17369 set dummy $ac_prog; ac_word=$2
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17371 $as_echo_n "checking for $ac_word... " >&6; }
17372 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17373   $as_echo_n "(cached) " >&6
17374 else
17375   case $CHECK_TOOLSDIR_GMAKE in
17376   [\\/]* | ?:[\\/]*)
17377   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17378   ;;
17379   *)
17380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17381 for as_dir in $PATH
17382 do
17383   IFS=$as_save_IFS
17384   test -z "$as_dir" && as_dir=.
17385     for ac_exec_ext in '' $ac_executable_extensions; do
17386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17387     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17389     break 2
17390   fi
17391 done
17392   done
17393 IFS=$as_save_IFS
17394 
17395   ;;
17396 esac
17397 fi
17398 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17399 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17401 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17402 else
17403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17404 $as_echo "no" >&6; }
17405 fi
17406 
17407 
17408   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17409 done
17410 
17411 
17412   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17413   DESCRIPTION="gmake in tools-dir"
17414 
17415   # On Cygwin, we require a newer version of make than on other platforms
17416   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17417     MAKE_VERSION_EXPR="-e 4\."
17418     MAKE_REQUIRED_VERSION="4.0"
17419    else
17420     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17421     MAKE_REQUIRED_VERSION="3.81"
17422   fi
17423 
17424   if test "x$MAKE_CANDIDATE" != x; then
17425     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17426 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17427     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17428     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17429     if test "x$IS_GNU_MAKE" = x; then
17430       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17431 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17432     else
17433       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17434       if test "x$IS_MODERN_MAKE" = x; then
17435         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17436 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17437       else
17438         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17439           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17440             MAKE_EXPECTED_ENV='cygwin'
17441           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17442             MAKE_EXPECTED_ENV='msys'
17443           else
17444             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17445           fi
17446           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17447           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17448         else
17449           # Not relevant for non-Windows
17450           IS_MAKE_CORRECT_ENV=true
17451         fi
17452         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17453           { $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
17454 $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;}
17455         else
17456           FOUND_MAKE=$MAKE_CANDIDATE
17457 
17458   # Only process if variable expands to non-empty
17459 
17460   if test "x$FOUND_MAKE" != x; then
17461     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17462 
17463   # First separate the path from the arguments. This will split at the first
17464   # space.
17465   complete="$FOUND_MAKE"
17466   path="${complete%% *}"
17467   tmp="$complete EOL"
17468   arguments="${tmp#* }"
17469 
17470   # Input might be given as Windows format, start by converting to
17471   # unix format.
17472   new_path=`$CYGPATH -u "$path"`
17473 
17474   # Now try to locate executable using which
17475   new_path=`$WHICH "$new_path" 2> /dev/null`
17476   # bat and cmd files are not always considered executable in cygwin causing which
17477   # to not find them
17478   if test "x$new_path" = x \
17479       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17480       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17481     new_path=`$CYGPATH -u "$path"`
17482   fi
17483   if test "x$new_path" = x; then
17484     # Oops. Which didn't find the executable.
17485     # The splitting of arguments from the executable at a space might have been incorrect,
17486     # since paths with space are more likely in Windows. Give it another try with the whole
17487     # argument.
17488     path="$complete"
17489     arguments="EOL"
17490     new_path=`$CYGPATH -u "$path"`
17491     new_path=`$WHICH "$new_path" 2> /dev/null`
17492     # bat and cmd files are not always considered executable in cygwin causing which
17493     # to not find them
17494     if test "x$new_path" = x \
17495         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17496         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17497       new_path=`$CYGPATH -u "$path"`
17498     fi
17499     if test "x$new_path" = x; then
17500       # It's still not found. Now this is an unrecoverable error.
17501       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17502 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17503       has_space=`$ECHO "$complete" | $GREP " "`
17504       if test "x$has_space" != x; then
17505         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17507       fi
17508       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17509     fi
17510   fi
17511 
17512   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17513   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17514   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17515   # "foo.exe" is OK but "foo" is an error.
17516   #
17517   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17518   # It is also a way to make sure we got the proper file name for the real test later on.
17519   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17520   if test "x$test_shortpath" = x; then
17521     # Short path failed, file does not exist as specified.
17522     # Try adding .exe or .cmd
17523     if test -f "${new_path}.exe"; then
17524       input_to_shortpath="${new_path}.exe"
17525     elif test -f "${new_path}.cmd"; then
17526       input_to_shortpath="${new_path}.cmd"
17527     else
17528       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17529 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17530       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17532       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17533     fi
17534   else
17535     input_to_shortpath="$new_path"
17536   fi
17537 
17538   # Call helper function which possibly converts this using DOS-style short mode.
17539   # If so, the updated path is stored in $new_path.
17540   new_path="$input_to_shortpath"
17541 
17542   input_path="$input_to_shortpath"
17543   # Check if we need to convert this using DOS-style short mode. If the path
17544   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17545   # take no chances and rewrite it.
17546   # Note: m4 eats our [], so we need to use [ and ] instead.
17547   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17548   if test "x$has_forbidden_chars" != x; then
17549     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17550     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17551     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17552     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17553       # Going to short mode and back again did indeed matter. Since short mode is
17554       # case insensitive, let's make it lowercase to improve readability.
17555       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17556       # Now convert it back to Unix-style (cygpath)
17557       input_path=`$CYGPATH -u "$shortmode_path"`
17558       new_path="$input_path"
17559     fi
17560   fi
17561 
17562   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17563   if test "x$test_cygdrive_prefix" = x; then
17564     # As a simple fix, exclude /usr/bin since it's not a real path.
17565     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17566       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17567       # a path prefixed by /cygdrive for fixpath to work.
17568       new_path="$CYGWIN_ROOT_PATH$input_path"
17569     fi
17570   fi
17571 
17572   # remove trailing .exe if any
17573   new_path="${new_path/%.exe/}"
17574 
17575     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17576 
17577   # First separate the path from the arguments. This will split at the first
17578   # space.
17579   complete="$FOUND_MAKE"
17580   path="${complete%% *}"
17581   tmp="$complete EOL"
17582   arguments="${tmp#* }"
17583 
17584   # Input might be given as Windows format, start by converting to
17585   # unix format.
17586   new_path="$path"
17587 
17588   windows_path="$new_path"
17589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17590     unix_path=`$CYGPATH -u "$windows_path"`
17591     new_path="$unix_path"
17592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17594     new_path="$unix_path"
17595   fi
17596 
17597 
17598   # Now try to locate executable using which
17599   new_path=`$WHICH "$new_path" 2> /dev/null`
17600 
17601   if test "x$new_path" = x; then
17602     # Oops. Which didn't find the executable.
17603     # The splitting of arguments from the executable at a space might have been incorrect,
17604     # since paths with space are more likely in Windows. Give it another try with the whole
17605     # argument.
17606     path="$complete"
17607     arguments="EOL"
17608     new_path="$path"
17609 
17610   windows_path="$new_path"
17611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17612     unix_path=`$CYGPATH -u "$windows_path"`
17613     new_path="$unix_path"
17614   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17615     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17616     new_path="$unix_path"
17617   fi
17618 
17619 
17620     new_path=`$WHICH "$new_path" 2> /dev/null`
17621     # bat and cmd files are not always considered executable in MSYS causing which
17622     # to not find them
17623     if test "x$new_path" = x \
17624         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17625         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17626       new_path="$path"
17627 
17628   windows_path="$new_path"
17629   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17630     unix_path=`$CYGPATH -u "$windows_path"`
17631     new_path="$unix_path"
17632   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17633     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17634     new_path="$unix_path"
17635   fi
17636 
17637     fi
17638 
17639     if test "x$new_path" = x; then
17640       # It's still not found. Now this is an unrecoverable error.
17641       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17643       has_space=`$ECHO "$complete" | $GREP " "`
17644       if test "x$has_space" != x; then
17645         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17647       fi
17648       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17649     fi
17650   fi
17651 
17652   # Now new_path has a complete unix path to the binary
17653   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17654     # Keep paths in /bin as-is, but remove trailing .exe if any
17655     new_path="${new_path/%.exe/}"
17656     # Do not save /bin paths to all_fixpath_prefixes!
17657   else
17658     # Not in mixed or Windows style, start by that.
17659     new_path=`cmd //c echo $new_path`
17660 
17661   input_path="$new_path"
17662   # Check if we need to convert this using DOS-style short mode. If the path
17663   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17664   # take no chances and rewrite it.
17665   # Note: m4 eats our [], so we need to use [ and ] instead.
17666   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17667   if test "x$has_forbidden_chars" != x; then
17668     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17669     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17670   fi
17671 
17672     # Output is in $new_path
17673 
17674   windows_path="$new_path"
17675   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17676     unix_path=`$CYGPATH -u "$windows_path"`
17677     new_path="$unix_path"
17678   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17679     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17680     new_path="$unix_path"
17681   fi
17682 
17683     # remove trailing .exe if any
17684     new_path="${new_path/%.exe/}"
17685 
17686     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17687     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17688   fi
17689 
17690     else
17691       # We're on a unix platform. Hooray! :)
17692       # First separate the path from the arguments. This will split at the first
17693       # space.
17694       complete="$FOUND_MAKE"
17695       path="${complete%% *}"
17696       tmp="$complete EOL"
17697       arguments="${tmp#* }"
17698 
17699       # Cannot rely on the command "which" here since it doesn't always work.
17700       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17701       if test -z "$is_absolute_path"; then
17702         # Path to executable is not absolute. Find it.
17703         IFS_save="$IFS"
17704         IFS=:
17705         for p in $PATH; do
17706           if test -f "$p/$path" && test -x "$p/$path"; then
17707             new_path="$p/$path"
17708             break
17709           fi
17710         done
17711         IFS="$IFS_save"
17712       else
17713         # This is an absolute path, we can use it without further modifications.
17714         new_path="$path"
17715       fi
17716 
17717       if test "x$new_path" = x; then
17718         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17719 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17720         has_space=`$ECHO "$complete" | $GREP " "`
17721         if test "x$has_space" != x; then
17722           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17723 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17724         fi
17725         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17726       fi
17727     fi
17728 
17729     # Now join together the path and the arguments once again
17730     if test "x$arguments" != xEOL; then
17731       new_complete="$new_path ${arguments% *}"
17732     else
17733       new_complete="$new_path"
17734     fi
17735 
17736     if test "x$complete" != "x$new_complete"; then
17737       FOUND_MAKE="$new_complete"
17738       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17739 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17740     fi
17741   fi
17742 
17743         fi
17744       fi
17745     fi
17746   fi
17747 
17748         if test "x$FOUND_MAKE" = x; then
17749           for ac_prog in make
17750 do
17751   # Extract the first word of "$ac_prog", so it can be a program name with args.
17752 set dummy $ac_prog; ac_word=$2
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17754 $as_echo_n "checking for $ac_word... " >&6; }
17755 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17756   $as_echo_n "(cached) " >&6
17757 else
17758   case $CHECK_TOOLSDIR_MAKE in
17759   [\\/]* | ?:[\\/]*)
17760   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17761   ;;
17762   *)
17763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17765 do
17766   IFS=$as_save_IFS
17767   test -z "$as_dir" && as_dir=.
17768     for ac_exec_ext in '' $ac_executable_extensions; do
17769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17770     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17772     break 2
17773   fi
17774 done
17775   done
17776 IFS=$as_save_IFS
17777 
17778   ;;
17779 esac
17780 fi
17781 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17782 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17784 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17785 else
17786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17787 $as_echo "no" >&6; }
17788 fi
17789 
17790 
17791   test -n "$CHECK_TOOLSDIR_MAKE" && break
17792 done
17793 
17794 
17795   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17796   DESCRIPTION="make in tools-dir"
17797 
17798   # On Cygwin, we require a newer version of make than on other platforms
17799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17800     MAKE_VERSION_EXPR="-e 4\."
17801     MAKE_REQUIRED_VERSION="4.0"
17802    else
17803     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17804     MAKE_REQUIRED_VERSION="3.81"
17805   fi
17806 
17807   if test "x$MAKE_CANDIDATE" != x; then
17808     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17809 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17810     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17811     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17812     if test "x$IS_GNU_MAKE" = x; then
17813       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17814 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17815     else
17816       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17817       if test "x$IS_MODERN_MAKE" = x; then
17818         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17819 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17820       else
17821         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17822           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17823             MAKE_EXPECTED_ENV='cygwin'
17824           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17825             MAKE_EXPECTED_ENV='msys'
17826           else
17827             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17828           fi
17829           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17830           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17831         else
17832           # Not relevant for non-Windows
17833           IS_MAKE_CORRECT_ENV=true
17834         fi
17835         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17836           { $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
17837 $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;}
17838         else
17839           FOUND_MAKE=$MAKE_CANDIDATE
17840 
17841   # Only process if variable expands to non-empty
17842 
17843   if test "x$FOUND_MAKE" != x; then
17844     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17845 
17846   # First separate the path from the arguments. This will split at the first
17847   # space.
17848   complete="$FOUND_MAKE"
17849   path="${complete%% *}"
17850   tmp="$complete EOL"
17851   arguments="${tmp#* }"
17852 
17853   # Input might be given as Windows format, start by converting to
17854   # unix format.
17855   new_path=`$CYGPATH -u "$path"`
17856 
17857   # Now try to locate executable using which
17858   new_path=`$WHICH "$new_path" 2> /dev/null`
17859   # bat and cmd files are not always considered executable in cygwin causing which
17860   # to not find them
17861   if test "x$new_path" = x \
17862       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17863       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17864     new_path=`$CYGPATH -u "$path"`
17865   fi
17866   if test "x$new_path" = x; then
17867     # Oops. Which didn't find the executable.
17868     # The splitting of arguments from the executable at a space might have been incorrect,
17869     # since paths with space are more likely in Windows. Give it another try with the whole
17870     # argument.
17871     path="$complete"
17872     arguments="EOL"
17873     new_path=`$CYGPATH -u "$path"`
17874     new_path=`$WHICH "$new_path" 2> /dev/null`
17875     # bat and cmd files are not always considered executable in cygwin causing which
17876     # to not find them
17877     if test "x$new_path" = x \
17878         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17879         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17880       new_path=`$CYGPATH -u "$path"`
17881     fi
17882     if test "x$new_path" = x; then
17883       # It's still not found. Now this is an unrecoverable error.
17884       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17885 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17886       has_space=`$ECHO "$complete" | $GREP " "`
17887       if test "x$has_space" != x; then
17888         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17889 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17890       fi
17891       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17892     fi
17893   fi
17894 
17895   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17896   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17897   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17898   # "foo.exe" is OK but "foo" is an error.
17899   #
17900   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17901   # It is also a way to make sure we got the proper file name for the real test later on.
17902   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17903   if test "x$test_shortpath" = x; then
17904     # Short path failed, file does not exist as specified.
17905     # Try adding .exe or .cmd
17906     if test -f "${new_path}.exe"; then
17907       input_to_shortpath="${new_path}.exe"
17908     elif test -f "${new_path}.cmd"; then
17909       input_to_shortpath="${new_path}.cmd"
17910     else
17911       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17912 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17913       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17914 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17915       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17916     fi
17917   else
17918     input_to_shortpath="$new_path"
17919   fi
17920 
17921   # Call helper function which possibly converts this using DOS-style short mode.
17922   # If so, the updated path is stored in $new_path.
17923   new_path="$input_to_shortpath"
17924 
17925   input_path="$input_to_shortpath"
17926   # Check if we need to convert this using DOS-style short mode. If the path
17927   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17928   # take no chances and rewrite it.
17929   # Note: m4 eats our [], so we need to use [ and ] instead.
17930   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17931   if test "x$has_forbidden_chars" != x; then
17932     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17933     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17934     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17935     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17936       # Going to short mode and back again did indeed matter. Since short mode is
17937       # case insensitive, let's make it lowercase to improve readability.
17938       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17939       # Now convert it back to Unix-style (cygpath)
17940       input_path=`$CYGPATH -u "$shortmode_path"`
17941       new_path="$input_path"
17942     fi
17943   fi
17944 
17945   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17946   if test "x$test_cygdrive_prefix" = x; then
17947     # As a simple fix, exclude /usr/bin since it's not a real path.
17948     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17949       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17950       # a path prefixed by /cygdrive for fixpath to work.
17951       new_path="$CYGWIN_ROOT_PATH$input_path"
17952     fi
17953   fi
17954 
17955   # remove trailing .exe if any
17956   new_path="${new_path/%.exe/}"
17957 
17958     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17959 
17960   # First separate the path from the arguments. This will split at the first
17961   # space.
17962   complete="$FOUND_MAKE"
17963   path="${complete%% *}"
17964   tmp="$complete EOL"
17965   arguments="${tmp#* }"
17966 
17967   # Input might be given as Windows format, start by converting to
17968   # unix format.
17969   new_path="$path"
17970 
17971   windows_path="$new_path"
17972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17973     unix_path=`$CYGPATH -u "$windows_path"`
17974     new_path="$unix_path"
17975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17977     new_path="$unix_path"
17978   fi
17979 
17980 
17981   # Now try to locate executable using which
17982   new_path=`$WHICH "$new_path" 2> /dev/null`
17983 
17984   if test "x$new_path" = x; then
17985     # Oops. Which didn't find the executable.
17986     # The splitting of arguments from the executable at a space might have been incorrect,
17987     # since paths with space are more likely in Windows. Give it another try with the whole
17988     # argument.
17989     path="$complete"
17990     arguments="EOL"
17991     new_path="$path"
17992 
17993   windows_path="$new_path"
17994   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17995     unix_path=`$CYGPATH -u "$windows_path"`
17996     new_path="$unix_path"
17997   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17998     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17999     new_path="$unix_path"
18000   fi
18001 
18002 
18003     new_path=`$WHICH "$new_path" 2> /dev/null`
18004     # bat and cmd files are not always considered executable in MSYS causing which
18005     # to not find them
18006     if test "x$new_path" = x \
18007         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18008         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18009       new_path="$path"
18010 
18011   windows_path="$new_path"
18012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18013     unix_path=`$CYGPATH -u "$windows_path"`
18014     new_path="$unix_path"
18015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18016     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18017     new_path="$unix_path"
18018   fi
18019 
18020     fi
18021 
18022     if test "x$new_path" = x; then
18023       # It's still not found. Now this is an unrecoverable error.
18024       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18025 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18026       has_space=`$ECHO "$complete" | $GREP " "`
18027       if test "x$has_space" != x; then
18028         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18029 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18030       fi
18031       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18032     fi
18033   fi
18034 
18035   # Now new_path has a complete unix path to the binary
18036   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18037     # Keep paths in /bin as-is, but remove trailing .exe if any
18038     new_path="${new_path/%.exe/}"
18039     # Do not save /bin paths to all_fixpath_prefixes!
18040   else
18041     # Not in mixed or Windows style, start by that.
18042     new_path=`cmd //c echo $new_path`
18043 
18044   input_path="$new_path"
18045   # Check if we need to convert this using DOS-style short mode. If the path
18046   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18047   # take no chances and rewrite it.
18048   # Note: m4 eats our [], so we need to use [ and ] instead.
18049   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18050   if test "x$has_forbidden_chars" != x; then
18051     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18052     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18053   fi
18054 
18055     # Output is in $new_path
18056 
18057   windows_path="$new_path"
18058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18059     unix_path=`$CYGPATH -u "$windows_path"`
18060     new_path="$unix_path"
18061   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18062     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18063     new_path="$unix_path"
18064   fi
18065 
18066     # remove trailing .exe if any
18067     new_path="${new_path/%.exe/}"
18068 
18069     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18070     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18071   fi
18072 
18073     else
18074       # We're on a unix platform. Hooray! :)
18075       # First separate the path from the arguments. This will split at the first
18076       # space.
18077       complete="$FOUND_MAKE"
18078       path="${complete%% *}"
18079       tmp="$complete EOL"
18080       arguments="${tmp#* }"
18081 
18082       # Cannot rely on the command "which" here since it doesn't always work.
18083       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18084       if test -z "$is_absolute_path"; then
18085         # Path to executable is not absolute. Find it.
18086         IFS_save="$IFS"
18087         IFS=:
18088         for p in $PATH; do
18089           if test -f "$p/$path" && test -x "$p/$path"; then
18090             new_path="$p/$path"
18091             break
18092           fi
18093         done
18094         IFS="$IFS_save"
18095       else
18096         # This is an absolute path, we can use it without further modifications.
18097         new_path="$path"
18098       fi
18099 
18100       if test "x$new_path" = x; then
18101         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18102 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18103         has_space=`$ECHO "$complete" | $GREP " "`
18104         if test "x$has_space" != x; then
18105           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18106 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18107         fi
18108         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18109       fi
18110     fi
18111 
18112     # Now join together the path and the arguments once again
18113     if test "x$arguments" != xEOL; then
18114       new_complete="$new_path ${arguments% *}"
18115     else
18116       new_complete="$new_path"
18117     fi
18118 
18119     if test "x$complete" != "x$new_complete"; then
18120       FOUND_MAKE="$new_complete"
18121       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18122 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18123     fi
18124   fi
18125 
18126         fi
18127       fi
18128     fi
18129   fi
18130 
18131         fi
18132         PATH=$OLD_PATH
18133       fi
18134     fi
18135 
18136     if test "x$FOUND_MAKE" = x; then
18137       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
18138     fi
18139 
18140   else
18141     # The variable is set, but is it from the command line or the environment?
18142 
18143     # Try to remove the string !MAKE! from our list.
18144     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18145     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18146       # If it failed, the variable was not from the command line. Ignore it,
18147       # but warn the user (except for BASH, which is always set by the calling BASH).
18148       if test "xMAKE" != xBASH; then
18149         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18150 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18151       fi
18152       # Try to locate tool using the code snippet
18153 
18154     # Try our hardest to locate a correct version of GNU make
18155     for ac_prog in gmake
18156 do
18157   # Extract the first word of "$ac_prog", so it can be a program name with args.
18158 set dummy $ac_prog; ac_word=$2
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18160 $as_echo_n "checking for $ac_word... " >&6; }
18161 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   case $CHECK_GMAKE in
18165   [\\/]* | ?:[\\/]*)
18166   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18167   ;;
18168   *)
18169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18170 for as_dir in $PATH
18171 do
18172   IFS=$as_save_IFS
18173   test -z "$as_dir" && as_dir=.
18174     for ac_exec_ext in '' $ac_executable_extensions; do
18175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18176     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18178     break 2
18179   fi
18180 done
18181   done
18182 IFS=$as_save_IFS
18183 
18184   ;;
18185 esac
18186 fi
18187 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18188 if test -n "$CHECK_GMAKE"; then
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18190 $as_echo "$CHECK_GMAKE" >&6; }
18191 else
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194 fi
18195 
18196 
18197   test -n "$CHECK_GMAKE" && break
18198 done
18199 
18200 
18201   MAKE_CANDIDATE=""$CHECK_GMAKE""
18202   DESCRIPTION="gmake in PATH"
18203 
18204   # On Cygwin, we require a newer version of make than on other platforms
18205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18206     MAKE_VERSION_EXPR="-e 4\."
18207     MAKE_REQUIRED_VERSION="4.0"
18208    else
18209     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18210     MAKE_REQUIRED_VERSION="3.81"
18211   fi
18212 
18213   if test "x$MAKE_CANDIDATE" != x; then
18214     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18215 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18216     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18217     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18218     if test "x$IS_GNU_MAKE" = x; then
18219       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18220 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18221     else
18222       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18223       if test "x$IS_MODERN_MAKE" = x; then
18224         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18225 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18226       else
18227         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18228           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18229             MAKE_EXPECTED_ENV='cygwin'
18230           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18231             MAKE_EXPECTED_ENV='msys'
18232           else
18233             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18234           fi
18235           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18236           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18237         else
18238           # Not relevant for non-Windows
18239           IS_MAKE_CORRECT_ENV=true
18240         fi
18241         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18242           { $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
18243 $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;}
18244         else
18245           FOUND_MAKE=$MAKE_CANDIDATE
18246 
18247   # Only process if variable expands to non-empty
18248 
18249   if test "x$FOUND_MAKE" != x; then
18250     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18251 
18252   # First separate the path from the arguments. This will split at the first
18253   # space.
18254   complete="$FOUND_MAKE"
18255   path="${complete%% *}"
18256   tmp="$complete EOL"
18257   arguments="${tmp#* }"
18258 
18259   # Input might be given as Windows format, start by converting to
18260   # unix format.
18261   new_path=`$CYGPATH -u "$path"`
18262 
18263   # Now try to locate executable using which
18264   new_path=`$WHICH "$new_path" 2> /dev/null`
18265   # bat and cmd files are not always considered executable in cygwin causing which
18266   # to not find them
18267   if test "x$new_path" = x \
18268       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18269       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18270     new_path=`$CYGPATH -u "$path"`
18271   fi
18272   if test "x$new_path" = x; then
18273     # Oops. Which didn't find the executable.
18274     # The splitting of arguments from the executable at a space might have been incorrect,
18275     # since paths with space are more likely in Windows. Give it another try with the whole
18276     # argument.
18277     path="$complete"
18278     arguments="EOL"
18279     new_path=`$CYGPATH -u "$path"`
18280     new_path=`$WHICH "$new_path" 2> /dev/null`
18281     # bat and cmd files are not always considered executable in cygwin causing which
18282     # to not find them
18283     if test "x$new_path" = x \
18284         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18285         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18286       new_path=`$CYGPATH -u "$path"`
18287     fi
18288     if test "x$new_path" = x; then
18289       # It's still not found. Now this is an unrecoverable error.
18290       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18291 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18292       has_space=`$ECHO "$complete" | $GREP " "`
18293       if test "x$has_space" != x; then
18294         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18295 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18296       fi
18297       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18298     fi
18299   fi
18300 
18301   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18302   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18303   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18304   # "foo.exe" is OK but "foo" is an error.
18305   #
18306   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18307   # It is also a way to make sure we got the proper file name for the real test later on.
18308   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18309   if test "x$test_shortpath" = x; then
18310     # Short path failed, file does not exist as specified.
18311     # Try adding .exe or .cmd
18312     if test -f "${new_path}.exe"; then
18313       input_to_shortpath="${new_path}.exe"
18314     elif test -f "${new_path}.cmd"; then
18315       input_to_shortpath="${new_path}.cmd"
18316     else
18317       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18318 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18319       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18320 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18321       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18322     fi
18323   else
18324     input_to_shortpath="$new_path"
18325   fi
18326 
18327   # Call helper function which possibly converts this using DOS-style short mode.
18328   # If so, the updated path is stored in $new_path.
18329   new_path="$input_to_shortpath"
18330 
18331   input_path="$input_to_shortpath"
18332   # Check if we need to convert this using DOS-style short mode. If the path
18333   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18334   # take no chances and rewrite it.
18335   # Note: m4 eats our [], so we need to use [ and ] instead.
18336   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18337   if test "x$has_forbidden_chars" != x; then
18338     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18339     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18340     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18341     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18342       # Going to short mode and back again did indeed matter. Since short mode is
18343       # case insensitive, let's make it lowercase to improve readability.
18344       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18345       # Now convert it back to Unix-style (cygpath)
18346       input_path=`$CYGPATH -u "$shortmode_path"`
18347       new_path="$input_path"
18348     fi
18349   fi
18350 
18351   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18352   if test "x$test_cygdrive_prefix" = x; then
18353     # As a simple fix, exclude /usr/bin since it's not a real path.
18354     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18355       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18356       # a path prefixed by /cygdrive for fixpath to work.
18357       new_path="$CYGWIN_ROOT_PATH$input_path"
18358     fi
18359   fi
18360 
18361   # remove trailing .exe if any
18362   new_path="${new_path/%.exe/}"
18363 
18364     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18365 
18366   # First separate the path from the arguments. This will split at the first
18367   # space.
18368   complete="$FOUND_MAKE"
18369   path="${complete%% *}"
18370   tmp="$complete EOL"
18371   arguments="${tmp#* }"
18372 
18373   # Input might be given as Windows format, start by converting to
18374   # unix format.
18375   new_path="$path"
18376 
18377   windows_path="$new_path"
18378   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18379     unix_path=`$CYGPATH -u "$windows_path"`
18380     new_path="$unix_path"
18381   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18382     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18383     new_path="$unix_path"
18384   fi
18385 
18386 
18387   # Now try to locate executable using which
18388   new_path=`$WHICH "$new_path" 2> /dev/null`
18389 
18390   if test "x$new_path" = x; then
18391     # Oops. Which didn't find the executable.
18392     # The splitting of arguments from the executable at a space might have been incorrect,
18393     # since paths with space are more likely in Windows. Give it another try with the whole
18394     # argument.
18395     path="$complete"
18396     arguments="EOL"
18397     new_path="$path"
18398 
18399   windows_path="$new_path"
18400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18401     unix_path=`$CYGPATH -u "$windows_path"`
18402     new_path="$unix_path"
18403   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18404     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18405     new_path="$unix_path"
18406   fi
18407 
18408 
18409     new_path=`$WHICH "$new_path" 2> /dev/null`
18410     # bat and cmd files are not always considered executable in MSYS causing which
18411     # to not find them
18412     if test "x$new_path" = x \
18413         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18414         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18415       new_path="$path"
18416 
18417   windows_path="$new_path"
18418   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18419     unix_path=`$CYGPATH -u "$windows_path"`
18420     new_path="$unix_path"
18421   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18422     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18423     new_path="$unix_path"
18424   fi
18425 
18426     fi
18427 
18428     if test "x$new_path" = x; then
18429       # It's still not found. Now this is an unrecoverable error.
18430       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18431 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18432       has_space=`$ECHO "$complete" | $GREP " "`
18433       if test "x$has_space" != x; then
18434         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18436       fi
18437       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18438     fi
18439   fi
18440 
18441   # Now new_path has a complete unix path to the binary
18442   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18443     # Keep paths in /bin as-is, but remove trailing .exe if any
18444     new_path="${new_path/%.exe/}"
18445     # Do not save /bin paths to all_fixpath_prefixes!
18446   else
18447     # Not in mixed or Windows style, start by that.
18448     new_path=`cmd //c echo $new_path`
18449 
18450   input_path="$new_path"
18451   # Check if we need to convert this using DOS-style short mode. If the path
18452   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18453   # take no chances and rewrite it.
18454   # Note: m4 eats our [], so we need to use [ and ] instead.
18455   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18456   if test "x$has_forbidden_chars" != x; then
18457     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18458     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18459   fi
18460 
18461     # Output is in $new_path
18462 
18463   windows_path="$new_path"
18464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18465     unix_path=`$CYGPATH -u "$windows_path"`
18466     new_path="$unix_path"
18467   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18468     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18469     new_path="$unix_path"
18470   fi
18471 
18472     # remove trailing .exe if any
18473     new_path="${new_path/%.exe/}"
18474 
18475     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18476     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18477   fi
18478 
18479     else
18480       # We're on a unix platform. Hooray! :)
18481       # First separate the path from the arguments. This will split at the first
18482       # space.
18483       complete="$FOUND_MAKE"
18484       path="${complete%% *}"
18485       tmp="$complete EOL"
18486       arguments="${tmp#* }"
18487 
18488       # Cannot rely on the command "which" here since it doesn't always work.
18489       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18490       if test -z "$is_absolute_path"; then
18491         # Path to executable is not absolute. Find it.
18492         IFS_save="$IFS"
18493         IFS=:
18494         for p in $PATH; do
18495           if test -f "$p/$path" && test -x "$p/$path"; then
18496             new_path="$p/$path"
18497             break
18498           fi
18499         done
18500         IFS="$IFS_save"
18501       else
18502         # This is an absolute path, we can use it without further modifications.
18503         new_path="$path"
18504       fi
18505 
18506       if test "x$new_path" = x; then
18507         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18508 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18509         has_space=`$ECHO "$complete" | $GREP " "`
18510         if test "x$has_space" != x; then
18511           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18512 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18513         fi
18514         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18515       fi
18516     fi
18517 
18518     # Now join together the path and the arguments once again
18519     if test "x$arguments" != xEOL; then
18520       new_complete="$new_path ${arguments% *}"
18521     else
18522       new_complete="$new_path"
18523     fi
18524 
18525     if test "x$complete" != "x$new_complete"; then
18526       FOUND_MAKE="$new_complete"
18527       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18528 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18529     fi
18530   fi
18531 
18532         fi
18533       fi
18534     fi
18535   fi
18536 
18537 
18538     if test "x$FOUND_MAKE" = x; then
18539       for ac_prog in make
18540 do
18541   # Extract the first word of "$ac_prog", so it can be a program name with args.
18542 set dummy $ac_prog; ac_word=$2
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18544 $as_echo_n "checking for $ac_word... " >&6; }
18545 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18546   $as_echo_n "(cached) " >&6
18547 else
18548   case $CHECK_MAKE in
18549   [\\/]* | ?:[\\/]*)
18550   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18551   ;;
18552   *)
18553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18554 for as_dir in $PATH
18555 do
18556   IFS=$as_save_IFS
18557   test -z "$as_dir" && as_dir=.
18558     for ac_exec_ext in '' $ac_executable_extensions; do
18559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18560     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18562     break 2
18563   fi
18564 done
18565   done
18566 IFS=$as_save_IFS
18567 
18568   ;;
18569 esac
18570 fi
18571 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18572 if test -n "$CHECK_MAKE"; then
18573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18574 $as_echo "$CHECK_MAKE" >&6; }
18575 else
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18577 $as_echo "no" >&6; }
18578 fi
18579 
18580 
18581   test -n "$CHECK_MAKE" && break
18582 done
18583 
18584 
18585   MAKE_CANDIDATE=""$CHECK_MAKE""
18586   DESCRIPTION="make in PATH"
18587 
18588   # On Cygwin, we require a newer version of make than on other platforms
18589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18590     MAKE_VERSION_EXPR="-e 4\."
18591     MAKE_REQUIRED_VERSION="4.0"
18592    else
18593     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18594     MAKE_REQUIRED_VERSION="3.81"
18595   fi
18596 
18597   if test "x$MAKE_CANDIDATE" != x; then
18598     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18599 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18600     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18601     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18602     if test "x$IS_GNU_MAKE" = x; then
18603       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18604 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18605     else
18606       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18607       if test "x$IS_MODERN_MAKE" = x; then
18608         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18609 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18610       else
18611         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18612           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18613             MAKE_EXPECTED_ENV='cygwin'
18614           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18615             MAKE_EXPECTED_ENV='msys'
18616           else
18617             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18618           fi
18619           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18620           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18621         else
18622           # Not relevant for non-Windows
18623           IS_MAKE_CORRECT_ENV=true
18624         fi
18625         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18626           { $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
18627 $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;}
18628         else
18629           FOUND_MAKE=$MAKE_CANDIDATE
18630 
18631   # Only process if variable expands to non-empty
18632 
18633   if test "x$FOUND_MAKE" != x; then
18634     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18635 
18636   # First separate the path from the arguments. This will split at the first
18637   # space.
18638   complete="$FOUND_MAKE"
18639   path="${complete%% *}"
18640   tmp="$complete EOL"
18641   arguments="${tmp#* }"
18642 
18643   # Input might be given as Windows format, start by converting to
18644   # unix format.
18645   new_path=`$CYGPATH -u "$path"`
18646 
18647   # Now try to locate executable using which
18648   new_path=`$WHICH "$new_path" 2> /dev/null`
18649   # bat and cmd files are not always considered executable in cygwin causing which
18650   # to not find them
18651   if test "x$new_path" = x \
18652       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18653       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18654     new_path=`$CYGPATH -u "$path"`
18655   fi
18656   if test "x$new_path" = x; then
18657     # Oops. Which didn't find the executable.
18658     # The splitting of arguments from the executable at a space might have been incorrect,
18659     # since paths with space are more likely in Windows. Give it another try with the whole
18660     # argument.
18661     path="$complete"
18662     arguments="EOL"
18663     new_path=`$CYGPATH -u "$path"`
18664     new_path=`$WHICH "$new_path" 2> /dev/null`
18665     # bat and cmd files are not always considered executable in cygwin causing which
18666     # to not find them
18667     if test "x$new_path" = x \
18668         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18669         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18670       new_path=`$CYGPATH -u "$path"`
18671     fi
18672     if test "x$new_path" = x; then
18673       # It's still not found. Now this is an unrecoverable error.
18674       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18675 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18676       has_space=`$ECHO "$complete" | $GREP " "`
18677       if test "x$has_space" != x; then
18678         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18680       fi
18681       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18682     fi
18683   fi
18684 
18685   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18686   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18687   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18688   # "foo.exe" is OK but "foo" is an error.
18689   #
18690   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18691   # It is also a way to make sure we got the proper file name for the real test later on.
18692   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18693   if test "x$test_shortpath" = x; then
18694     # Short path failed, file does not exist as specified.
18695     # Try adding .exe or .cmd
18696     if test -f "${new_path}.exe"; then
18697       input_to_shortpath="${new_path}.exe"
18698     elif test -f "${new_path}.cmd"; then
18699       input_to_shortpath="${new_path}.cmd"
18700     else
18701       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18702 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18703       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18704 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18705       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18706     fi
18707   else
18708     input_to_shortpath="$new_path"
18709   fi
18710 
18711   # Call helper function which possibly converts this using DOS-style short mode.
18712   # If so, the updated path is stored in $new_path.
18713   new_path="$input_to_shortpath"
18714 
18715   input_path="$input_to_shortpath"
18716   # Check if we need to convert this using DOS-style short mode. If the path
18717   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18718   # take no chances and rewrite it.
18719   # Note: m4 eats our [], so we need to use [ and ] instead.
18720   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18721   if test "x$has_forbidden_chars" != x; then
18722     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18723     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18724     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18725     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18726       # Going to short mode and back again did indeed matter. Since short mode is
18727       # case insensitive, let's make it lowercase to improve readability.
18728       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18729       # Now convert it back to Unix-style (cygpath)
18730       input_path=`$CYGPATH -u "$shortmode_path"`
18731       new_path="$input_path"
18732     fi
18733   fi
18734 
18735   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18736   if test "x$test_cygdrive_prefix" = x; then
18737     # As a simple fix, exclude /usr/bin since it's not a real path.
18738     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18739       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18740       # a path prefixed by /cygdrive for fixpath to work.
18741       new_path="$CYGWIN_ROOT_PATH$input_path"
18742     fi
18743   fi
18744 
18745   # remove trailing .exe if any
18746   new_path="${new_path/%.exe/}"
18747 
18748     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18749 
18750   # First separate the path from the arguments. This will split at the first
18751   # space.
18752   complete="$FOUND_MAKE"
18753   path="${complete%% *}"
18754   tmp="$complete EOL"
18755   arguments="${tmp#* }"
18756 
18757   # Input might be given as Windows format, start by converting to
18758   # unix format.
18759   new_path="$path"
18760 
18761   windows_path="$new_path"
18762   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18763     unix_path=`$CYGPATH -u "$windows_path"`
18764     new_path="$unix_path"
18765   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18766     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18767     new_path="$unix_path"
18768   fi
18769 
18770 
18771   # Now try to locate executable using which
18772   new_path=`$WHICH "$new_path" 2> /dev/null`
18773 
18774   if test "x$new_path" = x; then
18775     # Oops. Which didn't find the executable.
18776     # The splitting of arguments from the executable at a space might have been incorrect,
18777     # since paths with space are more likely in Windows. Give it another try with the whole
18778     # argument.
18779     path="$complete"
18780     arguments="EOL"
18781     new_path="$path"
18782 
18783   windows_path="$new_path"
18784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18785     unix_path=`$CYGPATH -u "$windows_path"`
18786     new_path="$unix_path"
18787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18788     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18789     new_path="$unix_path"
18790   fi
18791 
18792 
18793     new_path=`$WHICH "$new_path" 2> /dev/null`
18794     # bat and cmd files are not always considered executable in MSYS causing which
18795     # to not find them
18796     if test "x$new_path" = x \
18797         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18798         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18799       new_path="$path"
18800 
18801   windows_path="$new_path"
18802   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18803     unix_path=`$CYGPATH -u "$windows_path"`
18804     new_path="$unix_path"
18805   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18806     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18807     new_path="$unix_path"
18808   fi
18809 
18810     fi
18811 
18812     if test "x$new_path" = x; then
18813       # It's still not found. Now this is an unrecoverable error.
18814       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18815 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18816       has_space=`$ECHO "$complete" | $GREP " "`
18817       if test "x$has_space" != x; then
18818         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18819 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18820       fi
18821       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18822     fi
18823   fi
18824 
18825   # Now new_path has a complete unix path to the binary
18826   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18827     # Keep paths in /bin as-is, but remove trailing .exe if any
18828     new_path="${new_path/%.exe/}"
18829     # Do not save /bin paths to all_fixpath_prefixes!
18830   else
18831     # Not in mixed or Windows style, start by that.
18832     new_path=`cmd //c echo $new_path`
18833 
18834   input_path="$new_path"
18835   # Check if we need to convert this using DOS-style short mode. If the path
18836   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18837   # take no chances and rewrite it.
18838   # Note: m4 eats our [], so we need to use [ and ] instead.
18839   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18840   if test "x$has_forbidden_chars" != x; then
18841     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18842     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18843   fi
18844 
18845     # Output is in $new_path
18846 
18847   windows_path="$new_path"
18848   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18849     unix_path=`$CYGPATH -u "$windows_path"`
18850     new_path="$unix_path"
18851   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18852     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18853     new_path="$unix_path"
18854   fi
18855 
18856     # remove trailing .exe if any
18857     new_path="${new_path/%.exe/}"
18858 
18859     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18860     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18861   fi
18862 
18863     else
18864       # We're on a unix platform. Hooray! :)
18865       # First separate the path from the arguments. This will split at the first
18866       # space.
18867       complete="$FOUND_MAKE"
18868       path="${complete%% *}"
18869       tmp="$complete EOL"
18870       arguments="${tmp#* }"
18871 
18872       # Cannot rely on the command "which" here since it doesn't always work.
18873       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18874       if test -z "$is_absolute_path"; then
18875         # Path to executable is not absolute. Find it.
18876         IFS_save="$IFS"
18877         IFS=:
18878         for p in $PATH; do
18879           if test -f "$p/$path" && test -x "$p/$path"; then
18880             new_path="$p/$path"
18881             break
18882           fi
18883         done
18884         IFS="$IFS_save"
18885       else
18886         # This is an absolute path, we can use it without further modifications.
18887         new_path="$path"
18888       fi
18889 
18890       if test "x$new_path" = x; then
18891         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18892 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18893         has_space=`$ECHO "$complete" | $GREP " "`
18894         if test "x$has_space" != x; then
18895           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18896 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18897         fi
18898         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18899       fi
18900     fi
18901 
18902     # Now join together the path and the arguments once again
18903     if test "x$arguments" != xEOL; then
18904       new_complete="$new_path ${arguments% *}"
18905     else
18906       new_complete="$new_path"
18907     fi
18908 
18909     if test "x$complete" != "x$new_complete"; then
18910       FOUND_MAKE="$new_complete"
18911       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18912 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18913     fi
18914   fi
18915 
18916         fi
18917       fi
18918     fi
18919   fi
18920 
18921     fi
18922 
18923     if test "x$FOUND_MAKE" = x; then
18924       if test "x$TOOLCHAIN_PATH" != x; then
18925         # We have a toolchain path, check that as well before giving up.
18926         OLD_PATH=$PATH
18927         PATH=$TOOLCHAIN_PATH:$PATH
18928         for ac_prog in gmake
18929 do
18930   # Extract the first word of "$ac_prog", so it can be a program name with args.
18931 set dummy $ac_prog; ac_word=$2
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18933 $as_echo_n "checking for $ac_word... " >&6; }
18934 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18935   $as_echo_n "(cached) " >&6
18936 else
18937   case $CHECK_TOOLSDIR_GMAKE in
18938   [\\/]* | ?:[\\/]*)
18939   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18940   ;;
18941   *)
18942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18943 for as_dir in $PATH
18944 do
18945   IFS=$as_save_IFS
18946   test -z "$as_dir" && as_dir=.
18947     for ac_exec_ext in '' $ac_executable_extensions; do
18948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18949     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18951     break 2
18952   fi
18953 done
18954   done
18955 IFS=$as_save_IFS
18956 
18957   ;;
18958 esac
18959 fi
18960 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18961 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18963 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18964 else
18965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966 $as_echo "no" >&6; }
18967 fi
18968 
18969 
18970   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18971 done
18972 
18973 
18974   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18975   DESCRIPTION="gmake in tools-dir"
18976 
18977   # On Cygwin, we require a newer version of make than on other platforms
18978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18979     MAKE_VERSION_EXPR="-e 4\."
18980     MAKE_REQUIRED_VERSION="4.0"
18981    else
18982     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18983     MAKE_REQUIRED_VERSION="3.81"
18984   fi
18985 
18986   if test "x$MAKE_CANDIDATE" != x; then
18987     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18988 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18989     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18990     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18991     if test "x$IS_GNU_MAKE" = x; then
18992       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18993 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18994     else
18995       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18996       if test "x$IS_MODERN_MAKE" = x; then
18997         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18998 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18999       else
19000         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19001           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19002             MAKE_EXPECTED_ENV='cygwin'
19003           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19004             MAKE_EXPECTED_ENV='msys'
19005           else
19006             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19007           fi
19008           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19009           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19010         else
19011           # Not relevant for non-Windows
19012           IS_MAKE_CORRECT_ENV=true
19013         fi
19014         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19015           { $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
19016 $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;}
19017         else
19018           FOUND_MAKE=$MAKE_CANDIDATE
19019 
19020   # Only process if variable expands to non-empty
19021 
19022   if test "x$FOUND_MAKE" != x; then
19023     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19024 
19025   # First separate the path from the arguments. This will split at the first
19026   # space.
19027   complete="$FOUND_MAKE"
19028   path="${complete%% *}"
19029   tmp="$complete EOL"
19030   arguments="${tmp#* }"
19031 
19032   # Input might be given as Windows format, start by converting to
19033   # unix format.
19034   new_path=`$CYGPATH -u "$path"`
19035 
19036   # Now try to locate executable using which
19037   new_path=`$WHICH "$new_path" 2> /dev/null`
19038   # bat and cmd files are not always considered executable in cygwin causing which
19039   # to not find them
19040   if test "x$new_path" = x \
19041       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19042       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19043     new_path=`$CYGPATH -u "$path"`
19044   fi
19045   if test "x$new_path" = x; then
19046     # Oops. Which didn't find the executable.
19047     # The splitting of arguments from the executable at a space might have been incorrect,
19048     # since paths with space are more likely in Windows. Give it another try with the whole
19049     # argument.
19050     path="$complete"
19051     arguments="EOL"
19052     new_path=`$CYGPATH -u "$path"`
19053     new_path=`$WHICH "$new_path" 2> /dev/null`
19054     # bat and cmd files are not always considered executable in cygwin causing which
19055     # to not find them
19056     if test "x$new_path" = x \
19057         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19058         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19059       new_path=`$CYGPATH -u "$path"`
19060     fi
19061     if test "x$new_path" = x; then
19062       # It's still not found. Now this is an unrecoverable error.
19063       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19064 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19065       has_space=`$ECHO "$complete" | $GREP " "`
19066       if test "x$has_space" != x; then
19067         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19068 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19069       fi
19070       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19071     fi
19072   fi
19073 
19074   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19075   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19076   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19077   # "foo.exe" is OK but "foo" is an error.
19078   #
19079   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19080   # It is also a way to make sure we got the proper file name for the real test later on.
19081   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19082   if test "x$test_shortpath" = x; then
19083     # Short path failed, file does not exist as specified.
19084     # Try adding .exe or .cmd
19085     if test -f "${new_path}.exe"; then
19086       input_to_shortpath="${new_path}.exe"
19087     elif test -f "${new_path}.cmd"; then
19088       input_to_shortpath="${new_path}.cmd"
19089     else
19090       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19092       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19093 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19094       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19095     fi
19096   else
19097     input_to_shortpath="$new_path"
19098   fi
19099 
19100   # Call helper function which possibly converts this using DOS-style short mode.
19101   # If so, the updated path is stored in $new_path.
19102   new_path="$input_to_shortpath"
19103 
19104   input_path="$input_to_shortpath"
19105   # Check if we need to convert this using DOS-style short mode. If the path
19106   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19107   # take no chances and rewrite it.
19108   # Note: m4 eats our [], so we need to use [ and ] instead.
19109   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19110   if test "x$has_forbidden_chars" != x; then
19111     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19112     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19113     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19114     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19115       # Going to short mode and back again did indeed matter. Since short mode is
19116       # case insensitive, let's make it lowercase to improve readability.
19117       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19118       # Now convert it back to Unix-style (cygpath)
19119       input_path=`$CYGPATH -u "$shortmode_path"`
19120       new_path="$input_path"
19121     fi
19122   fi
19123 
19124   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19125   if test "x$test_cygdrive_prefix" = x; then
19126     # As a simple fix, exclude /usr/bin since it's not a real path.
19127     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19128       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19129       # a path prefixed by /cygdrive for fixpath to work.
19130       new_path="$CYGWIN_ROOT_PATH$input_path"
19131     fi
19132   fi
19133 
19134   # remove trailing .exe if any
19135   new_path="${new_path/%.exe/}"
19136 
19137     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19138 
19139   # First separate the path from the arguments. This will split at the first
19140   # space.
19141   complete="$FOUND_MAKE"
19142   path="${complete%% *}"
19143   tmp="$complete EOL"
19144   arguments="${tmp#* }"
19145 
19146   # Input might be given as Windows format, start by converting to
19147   # unix format.
19148   new_path="$path"
19149 
19150   windows_path="$new_path"
19151   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19152     unix_path=`$CYGPATH -u "$windows_path"`
19153     new_path="$unix_path"
19154   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19155     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19156     new_path="$unix_path"
19157   fi
19158 
19159 
19160   # Now try to locate executable using which
19161   new_path=`$WHICH "$new_path" 2> /dev/null`
19162 
19163   if test "x$new_path" = x; then
19164     # Oops. Which didn't find the executable.
19165     # The splitting of arguments from the executable at a space might have been incorrect,
19166     # since paths with space are more likely in Windows. Give it another try with the whole
19167     # argument.
19168     path="$complete"
19169     arguments="EOL"
19170     new_path="$path"
19171 
19172   windows_path="$new_path"
19173   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19174     unix_path=`$CYGPATH -u "$windows_path"`
19175     new_path="$unix_path"
19176   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19177     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19178     new_path="$unix_path"
19179   fi
19180 
19181 
19182     new_path=`$WHICH "$new_path" 2> /dev/null`
19183     # bat and cmd files are not always considered executable in MSYS causing which
19184     # to not find them
19185     if test "x$new_path" = x \
19186         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19187         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19188       new_path="$path"
19189 
19190   windows_path="$new_path"
19191   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19192     unix_path=`$CYGPATH -u "$windows_path"`
19193     new_path="$unix_path"
19194   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19195     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19196     new_path="$unix_path"
19197   fi
19198 
19199     fi
19200 
19201     if test "x$new_path" = x; then
19202       # It's still not found. Now this is an unrecoverable error.
19203       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19204 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19205       has_space=`$ECHO "$complete" | $GREP " "`
19206       if test "x$has_space" != x; then
19207         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19208 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19209       fi
19210       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19211     fi
19212   fi
19213 
19214   # Now new_path has a complete unix path to the binary
19215   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19216     # Keep paths in /bin as-is, but remove trailing .exe if any
19217     new_path="${new_path/%.exe/}"
19218     # Do not save /bin paths to all_fixpath_prefixes!
19219   else
19220     # Not in mixed or Windows style, start by that.
19221     new_path=`cmd //c echo $new_path`
19222 
19223   input_path="$new_path"
19224   # Check if we need to convert this using DOS-style short mode. If the path
19225   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19226   # take no chances and rewrite it.
19227   # Note: m4 eats our [], so we need to use [ and ] instead.
19228   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19229   if test "x$has_forbidden_chars" != x; then
19230     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19231     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19232   fi
19233 
19234     # Output is in $new_path
19235 
19236   windows_path="$new_path"
19237   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19238     unix_path=`$CYGPATH -u "$windows_path"`
19239     new_path="$unix_path"
19240   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19241     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19242     new_path="$unix_path"
19243   fi
19244 
19245     # remove trailing .exe if any
19246     new_path="${new_path/%.exe/}"
19247 
19248     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19249     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19250   fi
19251 
19252     else
19253       # We're on a unix platform. Hooray! :)
19254       # First separate the path from the arguments. This will split at the first
19255       # space.
19256       complete="$FOUND_MAKE"
19257       path="${complete%% *}"
19258       tmp="$complete EOL"
19259       arguments="${tmp#* }"
19260 
19261       # Cannot rely on the command "which" here since it doesn't always work.
19262       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19263       if test -z "$is_absolute_path"; then
19264         # Path to executable is not absolute. Find it.
19265         IFS_save="$IFS"
19266         IFS=:
19267         for p in $PATH; do
19268           if test -f "$p/$path" && test -x "$p/$path"; then
19269             new_path="$p/$path"
19270             break
19271           fi
19272         done
19273         IFS="$IFS_save"
19274       else
19275         # This is an absolute path, we can use it without further modifications.
19276         new_path="$path"
19277       fi
19278 
19279       if test "x$new_path" = x; then
19280         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19281 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19282         has_space=`$ECHO "$complete" | $GREP " "`
19283         if test "x$has_space" != x; then
19284           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19285 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19286         fi
19287         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19288       fi
19289     fi
19290 
19291     # Now join together the path and the arguments once again
19292     if test "x$arguments" != xEOL; then
19293       new_complete="$new_path ${arguments% *}"
19294     else
19295       new_complete="$new_path"
19296     fi
19297 
19298     if test "x$complete" != "x$new_complete"; then
19299       FOUND_MAKE="$new_complete"
19300       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19301 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19302     fi
19303   fi
19304 
19305         fi
19306       fi
19307     fi
19308   fi
19309 
19310         if test "x$FOUND_MAKE" = x; then
19311           for ac_prog in make
19312 do
19313   # Extract the first word of "$ac_prog", so it can be a program name with args.
19314 set dummy $ac_prog; ac_word=$2
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19316 $as_echo_n "checking for $ac_word... " >&6; }
19317 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19318   $as_echo_n "(cached) " >&6
19319 else
19320   case $CHECK_TOOLSDIR_MAKE in
19321   [\\/]* | ?:[\\/]*)
19322   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19323   ;;
19324   *)
19325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19326 for as_dir in $PATH
19327 do
19328   IFS=$as_save_IFS
19329   test -z "$as_dir" && as_dir=.
19330     for ac_exec_ext in '' $ac_executable_extensions; do
19331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19332     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19334     break 2
19335   fi
19336 done
19337   done
19338 IFS=$as_save_IFS
19339 
19340   ;;
19341 esac
19342 fi
19343 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19344 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19346 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19347 else
19348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19349 $as_echo "no" >&6; }
19350 fi
19351 
19352 
19353   test -n "$CHECK_TOOLSDIR_MAKE" && break
19354 done
19355 
19356 
19357   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19358   DESCRIPTION="make in tools-dir"
19359 
19360   # On Cygwin, we require a newer version of make than on other platforms
19361   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19362     MAKE_VERSION_EXPR="-e 4\."
19363     MAKE_REQUIRED_VERSION="4.0"
19364    else
19365     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19366     MAKE_REQUIRED_VERSION="3.81"
19367   fi
19368 
19369   if test "x$MAKE_CANDIDATE" != x; then
19370     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19371 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19372     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19373     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19374     if test "x$IS_GNU_MAKE" = x; then
19375       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19376 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19377     else
19378       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19379       if test "x$IS_MODERN_MAKE" = x; then
19380         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19381 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19382       else
19383         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19384           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19385             MAKE_EXPECTED_ENV='cygwin'
19386           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19387             MAKE_EXPECTED_ENV='msys'
19388           else
19389             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19390           fi
19391           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19392           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19393         else
19394           # Not relevant for non-Windows
19395           IS_MAKE_CORRECT_ENV=true
19396         fi
19397         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19398           { $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
19399 $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;}
19400         else
19401           FOUND_MAKE=$MAKE_CANDIDATE
19402 
19403   # Only process if variable expands to non-empty
19404 
19405   if test "x$FOUND_MAKE" != x; then
19406     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19407 
19408   # First separate the path from the arguments. This will split at the first
19409   # space.
19410   complete="$FOUND_MAKE"
19411   path="${complete%% *}"
19412   tmp="$complete EOL"
19413   arguments="${tmp#* }"
19414 
19415   # Input might be given as Windows format, start by converting to
19416   # unix format.
19417   new_path=`$CYGPATH -u "$path"`
19418 
19419   # Now try to locate executable using which
19420   new_path=`$WHICH "$new_path" 2> /dev/null`
19421   # bat and cmd files are not always considered executable in cygwin causing which
19422   # to not find them
19423   if test "x$new_path" = x \
19424       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19425       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19426     new_path=`$CYGPATH -u "$path"`
19427   fi
19428   if test "x$new_path" = x; then
19429     # Oops. Which didn't find the executable.
19430     # The splitting of arguments from the executable at a space might have been incorrect,
19431     # since paths with space are more likely in Windows. Give it another try with the whole
19432     # argument.
19433     path="$complete"
19434     arguments="EOL"
19435     new_path=`$CYGPATH -u "$path"`
19436     new_path=`$WHICH "$new_path" 2> /dev/null`
19437     # bat and cmd files are not always considered executable in cygwin causing which
19438     # to not find them
19439     if test "x$new_path" = x \
19440         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19441         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19442       new_path=`$CYGPATH -u "$path"`
19443     fi
19444     if test "x$new_path" = x; then
19445       # It's still not found. Now this is an unrecoverable error.
19446       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19447 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19448       has_space=`$ECHO "$complete" | $GREP " "`
19449       if test "x$has_space" != x; then
19450         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19451 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19452       fi
19453       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19454     fi
19455   fi
19456 
19457   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19458   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19459   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19460   # "foo.exe" is OK but "foo" is an error.
19461   #
19462   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19463   # It is also a way to make sure we got the proper file name for the real test later on.
19464   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19465   if test "x$test_shortpath" = x; then
19466     # Short path failed, file does not exist as specified.
19467     # Try adding .exe or .cmd
19468     if test -f "${new_path}.exe"; then
19469       input_to_shortpath="${new_path}.exe"
19470     elif test -f "${new_path}.cmd"; then
19471       input_to_shortpath="${new_path}.cmd"
19472     else
19473       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19474 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19475       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19476 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19477       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19478     fi
19479   else
19480     input_to_shortpath="$new_path"
19481   fi
19482 
19483   # Call helper function which possibly converts this using DOS-style short mode.
19484   # If so, the updated path is stored in $new_path.
19485   new_path="$input_to_shortpath"
19486 
19487   input_path="$input_to_shortpath"
19488   # Check if we need to convert this using DOS-style short mode. If the path
19489   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19490   # take no chances and rewrite it.
19491   # Note: m4 eats our [], so we need to use [ and ] instead.
19492   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19493   if test "x$has_forbidden_chars" != x; then
19494     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19495     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19496     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19497     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19498       # Going to short mode and back again did indeed matter. Since short mode is
19499       # case insensitive, let's make it lowercase to improve readability.
19500       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19501       # Now convert it back to Unix-style (cygpath)
19502       input_path=`$CYGPATH -u "$shortmode_path"`
19503       new_path="$input_path"
19504     fi
19505   fi
19506 
19507   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19508   if test "x$test_cygdrive_prefix" = x; then
19509     # As a simple fix, exclude /usr/bin since it's not a real path.
19510     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19511       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19512       # a path prefixed by /cygdrive for fixpath to work.
19513       new_path="$CYGWIN_ROOT_PATH$input_path"
19514     fi
19515   fi
19516 
19517   # remove trailing .exe if any
19518   new_path="${new_path/%.exe/}"
19519 
19520     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19521 
19522   # First separate the path from the arguments. This will split at the first
19523   # space.
19524   complete="$FOUND_MAKE"
19525   path="${complete%% *}"
19526   tmp="$complete EOL"
19527   arguments="${tmp#* }"
19528 
19529   # Input might be given as Windows format, start by converting to
19530   # unix format.
19531   new_path="$path"
19532 
19533   windows_path="$new_path"
19534   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19535     unix_path=`$CYGPATH -u "$windows_path"`
19536     new_path="$unix_path"
19537   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19538     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19539     new_path="$unix_path"
19540   fi
19541 
19542 
19543   # Now try to locate executable using which
19544   new_path=`$WHICH "$new_path" 2> /dev/null`
19545 
19546   if test "x$new_path" = x; then
19547     # Oops. Which didn't find the executable.
19548     # The splitting of arguments from the executable at a space might have been incorrect,
19549     # since paths with space are more likely in Windows. Give it another try with the whole
19550     # argument.
19551     path="$complete"
19552     arguments="EOL"
19553     new_path="$path"
19554 
19555   windows_path="$new_path"
19556   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19557     unix_path=`$CYGPATH -u "$windows_path"`
19558     new_path="$unix_path"
19559   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19560     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19561     new_path="$unix_path"
19562   fi
19563 
19564 
19565     new_path=`$WHICH "$new_path" 2> /dev/null`
19566     # bat and cmd files are not always considered executable in MSYS causing which
19567     # to not find them
19568     if test "x$new_path" = x \
19569         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19570         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19571       new_path="$path"
19572 
19573   windows_path="$new_path"
19574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19575     unix_path=`$CYGPATH -u "$windows_path"`
19576     new_path="$unix_path"
19577   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19578     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19579     new_path="$unix_path"
19580   fi
19581 
19582     fi
19583 
19584     if test "x$new_path" = x; then
19585       # It's still not found. Now this is an unrecoverable error.
19586       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19587 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19588       has_space=`$ECHO "$complete" | $GREP " "`
19589       if test "x$has_space" != x; then
19590         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19591 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19592       fi
19593       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19594     fi
19595   fi
19596 
19597   # Now new_path has a complete unix path to the binary
19598   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19599     # Keep paths in /bin as-is, but remove trailing .exe if any
19600     new_path="${new_path/%.exe/}"
19601     # Do not save /bin paths to all_fixpath_prefixes!
19602   else
19603     # Not in mixed or Windows style, start by that.
19604     new_path=`cmd //c echo $new_path`
19605 
19606   input_path="$new_path"
19607   # Check if we need to convert this using DOS-style short mode. If the path
19608   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19609   # take no chances and rewrite it.
19610   # Note: m4 eats our [], so we need to use [ and ] instead.
19611   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19612   if test "x$has_forbidden_chars" != x; then
19613     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19614     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19615   fi
19616 
19617     # Output is in $new_path
19618 
19619   windows_path="$new_path"
19620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19621     unix_path=`$CYGPATH -u "$windows_path"`
19622     new_path="$unix_path"
19623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19624     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19625     new_path="$unix_path"
19626   fi
19627 
19628     # remove trailing .exe if any
19629     new_path="${new_path/%.exe/}"
19630 
19631     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19632     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19633   fi
19634 
19635     else
19636       # We're on a unix platform. Hooray! :)
19637       # First separate the path from the arguments. This will split at the first
19638       # space.
19639       complete="$FOUND_MAKE"
19640       path="${complete%% *}"
19641       tmp="$complete EOL"
19642       arguments="${tmp#* }"
19643 
19644       # Cannot rely on the command "which" here since it doesn't always work.
19645       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19646       if test -z "$is_absolute_path"; then
19647         # Path to executable is not absolute. Find it.
19648         IFS_save="$IFS"
19649         IFS=:
19650         for p in $PATH; do
19651           if test -f "$p/$path" && test -x "$p/$path"; then
19652             new_path="$p/$path"
19653             break
19654           fi
19655         done
19656         IFS="$IFS_save"
19657       else
19658         # This is an absolute path, we can use it without further modifications.
19659         new_path="$path"
19660       fi
19661 
19662       if test "x$new_path" = x; then
19663         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19664 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19665         has_space=`$ECHO "$complete" | $GREP " "`
19666         if test "x$has_space" != x; then
19667           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19668 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19669         fi
19670         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19671       fi
19672     fi
19673 
19674     # Now join together the path and the arguments once again
19675     if test "x$arguments" != xEOL; then
19676       new_complete="$new_path ${arguments% *}"
19677     else
19678       new_complete="$new_path"
19679     fi
19680 
19681     if test "x$complete" != "x$new_complete"; then
19682       FOUND_MAKE="$new_complete"
19683       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19684 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19685     fi
19686   fi
19687 
19688         fi
19689       fi
19690     fi
19691   fi
19692 
19693         fi
19694         PATH=$OLD_PATH
19695       fi
19696     fi
19697 
19698     if test "x$FOUND_MAKE" = x; then
19699       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
19700     fi
19701 
19702     else
19703       # If it succeeded, then it was overridden by the user. We will use it
19704       # for the tool.
19705 
19706       # First remove it from the list of overridden variables, so we can test
19707       # for unknown variables in the end.
19708       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19709 
19710       # Check if we try to supply an empty value
19711       if test "x$MAKE" = x; then
19712         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19713 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19714         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19715 $as_echo_n "checking for MAKE... " >&6; }
19716         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19717 $as_echo "disabled" >&6; }
19718       else
19719         # Check if the provided tool contains a complete path.
19720         tool_specified="$MAKE"
19721         tool_basename="${tool_specified##*/}"
19722         if test "x$tool_basename" = "x$tool_specified"; then
19723           # A command without a complete path is provided, search $PATH.
19724           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19725 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19726           # Extract the first word of "$tool_basename", so it can be a program name with args.
19727 set dummy $tool_basename; ac_word=$2
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19729 $as_echo_n "checking for $ac_word... " >&6; }
19730 if ${ac_cv_path_MAKE+:} false; then :
19731   $as_echo_n "(cached) " >&6
19732 else
19733   case $MAKE in
19734   [\\/]* | ?:[\\/]*)
19735   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19736   ;;
19737   *)
19738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19739 for as_dir in $PATH
19740 do
19741   IFS=$as_save_IFS
19742   test -z "$as_dir" && as_dir=.
19743     for ac_exec_ext in '' $ac_executable_extensions; do
19744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19745     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19747     break 2
19748   fi
19749 done
19750   done
19751 IFS=$as_save_IFS
19752 
19753   ;;
19754 esac
19755 fi
19756 MAKE=$ac_cv_path_MAKE
19757 if test -n "$MAKE"; then
19758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19759 $as_echo "$MAKE" >&6; }
19760 else
19761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762 $as_echo "no" >&6; }
19763 fi
19764 
19765 
19766           if test "x$MAKE" = x; then
19767             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19768           fi
19769         else
19770           # Otherwise we believe it is a complete path. Use it as it is.
19771           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19772 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19773           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19774 $as_echo_n "checking for MAKE... " >&6; }
19775           if test ! -x "$tool_specified"; then
19776             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19777 $as_echo "not found" >&6; }
19778             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19779           fi
19780           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19781 $as_echo "$tool_specified" >&6; }
19782         fi
19783       fi
19784     fi
19785 
19786     # If MAKE was set by user, verify the version
19787 
19788   MAKE_CANDIDATE=""$MAKE""
19789   DESCRIPTION="user supplied MAKE=$MAKE"
19790 
19791   # On Cygwin, we require a newer version of make than on other platforms
19792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19793     MAKE_VERSION_EXPR="-e 4\."
19794     MAKE_REQUIRED_VERSION="4.0"
19795    else
19796     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19797     MAKE_REQUIRED_VERSION="3.81"
19798   fi
19799 
19800   if test "x$MAKE_CANDIDATE" != x; then
19801     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19802 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19803     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19804     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19805     if test "x$IS_GNU_MAKE" = x; then
19806       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19807 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19808     else
19809       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19810       if test "x$IS_MODERN_MAKE" = x; then
19811         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19812 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19813       else
19814         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19815           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19816             MAKE_EXPECTED_ENV='cygwin'
19817           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19818             MAKE_EXPECTED_ENV='msys'
19819           else
19820             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19821           fi
19822           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19823           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19824         else
19825           # Not relevant for non-Windows
19826           IS_MAKE_CORRECT_ENV=true
19827         fi
19828         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19829           { $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
19830 $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;}
19831         else
19832           FOUND_MAKE=$MAKE_CANDIDATE
19833 
19834   # Only process if variable expands to non-empty
19835 
19836   if test "x$FOUND_MAKE" != x; then
19837     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19838 
19839   # First separate the path from the arguments. This will split at the first
19840   # space.
19841   complete="$FOUND_MAKE"
19842   path="${complete%% *}"
19843   tmp="$complete EOL"
19844   arguments="${tmp#* }"
19845 
19846   # Input might be given as Windows format, start by converting to
19847   # unix format.
19848   new_path=`$CYGPATH -u "$path"`
19849 
19850   # Now try to locate executable using which
19851   new_path=`$WHICH "$new_path" 2> /dev/null`
19852   # bat and cmd files are not always considered executable in cygwin causing which
19853   # to not find them
19854   if test "x$new_path" = x \
19855       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19856       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19857     new_path=`$CYGPATH -u "$path"`
19858   fi
19859   if test "x$new_path" = x; then
19860     # Oops. Which didn't find the executable.
19861     # The splitting of arguments from the executable at a space might have been incorrect,
19862     # since paths with space are more likely in Windows. Give it another try with the whole
19863     # argument.
19864     path="$complete"
19865     arguments="EOL"
19866     new_path=`$CYGPATH -u "$path"`
19867     new_path=`$WHICH "$new_path" 2> /dev/null`
19868     # bat and cmd files are not always considered executable in cygwin causing which
19869     # to not find them
19870     if test "x$new_path" = x \
19871         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19872         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19873       new_path=`$CYGPATH -u "$path"`
19874     fi
19875     if test "x$new_path" = x; then
19876       # It's still not found. Now this is an unrecoverable error.
19877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19878 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19879       has_space=`$ECHO "$complete" | $GREP " "`
19880       if test "x$has_space" != x; then
19881         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19883       fi
19884       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19885     fi
19886   fi
19887 
19888   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19889   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19890   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19891   # "foo.exe" is OK but "foo" is an error.
19892   #
19893   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19894   # It is also a way to make sure we got the proper file name for the real test later on.
19895   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19896   if test "x$test_shortpath" = x; then
19897     # Short path failed, file does not exist as specified.
19898     # Try adding .exe or .cmd
19899     if test -f "${new_path}.exe"; then
19900       input_to_shortpath="${new_path}.exe"
19901     elif test -f "${new_path}.cmd"; then
19902       input_to_shortpath="${new_path}.cmd"
19903     else
19904       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19906       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19908       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19909     fi
19910   else
19911     input_to_shortpath="$new_path"
19912   fi
19913 
19914   # Call helper function which possibly converts this using DOS-style short mode.
19915   # If so, the updated path is stored in $new_path.
19916   new_path="$input_to_shortpath"
19917 
19918   input_path="$input_to_shortpath"
19919   # Check if we need to convert this using DOS-style short mode. If the path
19920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19921   # take no chances and rewrite it.
19922   # Note: m4 eats our [], so we need to use [ and ] instead.
19923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19924   if test "x$has_forbidden_chars" != x; then
19925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19926     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19927     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19928     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19929       # Going to short mode and back again did indeed matter. Since short mode is
19930       # case insensitive, let's make it lowercase to improve readability.
19931       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19932       # Now convert it back to Unix-style (cygpath)
19933       input_path=`$CYGPATH -u "$shortmode_path"`
19934       new_path="$input_path"
19935     fi
19936   fi
19937 
19938   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19939   if test "x$test_cygdrive_prefix" = x; then
19940     # As a simple fix, exclude /usr/bin since it's not a real path.
19941     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19942       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19943       # a path prefixed by /cygdrive for fixpath to work.
19944       new_path="$CYGWIN_ROOT_PATH$input_path"
19945     fi
19946   fi
19947 
19948   # remove trailing .exe if any
19949   new_path="${new_path/%.exe/}"
19950 
19951     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19952 
19953   # First separate the path from the arguments. This will split at the first
19954   # space.
19955   complete="$FOUND_MAKE"
19956   path="${complete%% *}"
19957   tmp="$complete EOL"
19958   arguments="${tmp#* }"
19959 
19960   # Input might be given as Windows format, start by converting to
19961   # unix format.
19962   new_path="$path"
19963 
19964   windows_path="$new_path"
19965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19966     unix_path=`$CYGPATH -u "$windows_path"`
19967     new_path="$unix_path"
19968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19969     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19970     new_path="$unix_path"
19971   fi
19972 
19973 
19974   # Now try to locate executable using which
19975   new_path=`$WHICH "$new_path" 2> /dev/null`
19976 
19977   if test "x$new_path" = x; then
19978     # Oops. Which didn't find the executable.
19979     # The splitting of arguments from the executable at a space might have been incorrect,
19980     # since paths with space are more likely in Windows. Give it another try with the whole
19981     # argument.
19982     path="$complete"
19983     arguments="EOL"
19984     new_path="$path"
19985 
19986   windows_path="$new_path"
19987   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19988     unix_path=`$CYGPATH -u "$windows_path"`
19989     new_path="$unix_path"
19990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19991     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19992     new_path="$unix_path"
19993   fi
19994 
19995 
19996     new_path=`$WHICH "$new_path" 2> /dev/null`
19997     # bat and cmd files are not always considered executable in MSYS causing which
19998     # to not find them
19999     if test "x$new_path" = x \
20000         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20001         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20002       new_path="$path"
20003 
20004   windows_path="$new_path"
20005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20006     unix_path=`$CYGPATH -u "$windows_path"`
20007     new_path="$unix_path"
20008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20010     new_path="$unix_path"
20011   fi
20012 
20013     fi
20014 
20015     if test "x$new_path" = x; then
20016       # It's still not found. Now this is an unrecoverable error.
20017       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20018 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20019       has_space=`$ECHO "$complete" | $GREP " "`
20020       if test "x$has_space" != x; then
20021         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20023       fi
20024       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20025     fi
20026   fi
20027 
20028   # Now new_path has a complete unix path to the binary
20029   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20030     # Keep paths in /bin as-is, but remove trailing .exe if any
20031     new_path="${new_path/%.exe/}"
20032     # Do not save /bin paths to all_fixpath_prefixes!
20033   else
20034     # Not in mixed or Windows style, start by that.
20035     new_path=`cmd //c echo $new_path`
20036 
20037   input_path="$new_path"
20038   # Check if we need to convert this using DOS-style short mode. If the path
20039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20040   # take no chances and rewrite it.
20041   # Note: m4 eats our [], so we need to use [ and ] instead.
20042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20043   if test "x$has_forbidden_chars" != x; then
20044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20045     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20046   fi
20047 
20048     # Output is in $new_path
20049 
20050   windows_path="$new_path"
20051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20052     unix_path=`$CYGPATH -u "$windows_path"`
20053     new_path="$unix_path"
20054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20056     new_path="$unix_path"
20057   fi
20058 
20059     # remove trailing .exe if any
20060     new_path="${new_path/%.exe/}"
20061 
20062     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20063     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20064   fi
20065 
20066     else
20067       # We're on a unix platform. Hooray! :)
20068       # First separate the path from the arguments. This will split at the first
20069       # space.
20070       complete="$FOUND_MAKE"
20071       path="${complete%% *}"
20072       tmp="$complete EOL"
20073       arguments="${tmp#* }"
20074 
20075       # Cannot rely on the command "which" here since it doesn't always work.
20076       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20077       if test -z "$is_absolute_path"; then
20078         # Path to executable is not absolute. Find it.
20079         IFS_save="$IFS"
20080         IFS=:
20081         for p in $PATH; do
20082           if test -f "$p/$path" && test -x "$p/$path"; then
20083             new_path="$p/$path"
20084             break
20085           fi
20086         done
20087         IFS="$IFS_save"
20088       else
20089         # This is an absolute path, we can use it without further modifications.
20090         new_path="$path"
20091       fi
20092 
20093       if test "x$new_path" = x; then
20094         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20095 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20096         has_space=`$ECHO "$complete" | $GREP " "`
20097         if test "x$has_space" != x; then
20098           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20100         fi
20101         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20102       fi
20103     fi
20104 
20105     # Now join together the path and the arguments once again
20106     if test "x$arguments" != xEOL; then
20107       new_complete="$new_path ${arguments% *}"
20108     else
20109       new_complete="$new_path"
20110     fi
20111 
20112     if test "x$complete" != "x$new_complete"; then
20113       FOUND_MAKE="$new_complete"
20114       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20115 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20116     fi
20117   fi
20118 
20119         fi
20120       fi
20121     fi
20122   fi
20123 
20124     if test "x$FOUND_MAKE" = x; then
20125       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20126     fi
20127 
20128   fi
20129 
20130 
20131   MAKE=$FOUND_MAKE
20132 
20133   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20134 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20135 
20136 
20137   # Check if make supports the output sync option and if so, setup using it.
20138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20139 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20140   if $MAKE --version -O > /dev/null 2>&1; then
20141     OUTPUT_SYNC_SUPPORTED=true
20142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20143 $as_echo "yes" >&6; }
20144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20145 $as_echo_n "checking for output-sync value... " >&6; }
20146 
20147 # Check whether --with-output-sync was given.
20148 if test "${with_output_sync+set}" = set; then :
20149   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20150 fi
20151 
20152     if test "x$OUTPUT_SYNC" = "x"; then
20153       OUTPUT_SYNC=none
20154     fi
20155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20156 $as_echo "$OUTPUT_SYNC" >&6; }
20157     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20158       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20159     fi
20160   else
20161     OUTPUT_SYNC_SUPPORTED=false
20162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20163 $as_echo "no" >&6; }
20164   fi
20165 
20166 
20167 
20168 
20169 
20170 
20171   # Test if find supports -delete
20172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20173 $as_echo_n "checking if find supports -delete... " >&6; }
20174   FIND_DELETE="-delete"
20175 
20176   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20177 
20178   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20179 
20180   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20181   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20182     # No, it does not.
20183     rm $DELETEDIR/TestIfFindSupportsDelete
20184     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20185       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20186       FIND_DELETE="-print | xargs rm"
20187     else
20188       FIND_DELETE="-exec rm \{\} \+"
20189     fi
20190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20191 $as_echo "no" >&6; }
20192   else
20193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194 $as_echo "yes" >&6; }
20195   fi
20196   rmdir $DELETEDIR
20197 
20198 
20199 
20200   # These tools might not be installed by default,
20201   # need hint on how to install them.
20202 
20203 
20204 
20205   # Publish this variable in the help.
20206 
20207 
20208   if [ -z "${UNZIP+x}" ]; then
20209     # The variable is not set by user, try to locate tool using the code snippet
20210     for ac_prog in unzip
20211 do
20212   # Extract the first word of "$ac_prog", so it can be a program name with args.
20213 set dummy $ac_prog; ac_word=$2
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20215 $as_echo_n "checking for $ac_word... " >&6; }
20216 if ${ac_cv_path_UNZIP+:} false; then :
20217   $as_echo_n "(cached) " >&6
20218 else
20219   case $UNZIP in
20220   [\\/]* | ?:[\\/]*)
20221   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20222   ;;
20223   *)
20224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225 for as_dir in $PATH
20226 do
20227   IFS=$as_save_IFS
20228   test -z "$as_dir" && as_dir=.
20229     for ac_exec_ext in '' $ac_executable_extensions; do
20230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20231     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20233     break 2
20234   fi
20235 done
20236   done
20237 IFS=$as_save_IFS
20238 
20239   ;;
20240 esac
20241 fi
20242 UNZIP=$ac_cv_path_UNZIP
20243 if test -n "$UNZIP"; then
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20245 $as_echo "$UNZIP" >&6; }
20246 else
20247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20249 fi
20250 
20251 
20252   test -n "$UNZIP" && break
20253 done
20254 
20255   else
20256     # The variable is set, but is it from the command line or the environment?
20257 
20258     # Try to remove the string !UNZIP! from our list.
20259     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20260     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20261       # If it failed, the variable was not from the command line. Ignore it,
20262       # but warn the user (except for BASH, which is always set by the calling BASH).
20263       if test "xUNZIP" != xBASH; then
20264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20265 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20266       fi
20267       # Try to locate tool using the code snippet
20268       for ac_prog in unzip
20269 do
20270   # Extract the first word of "$ac_prog", so it can be a program name with args.
20271 set dummy $ac_prog; ac_word=$2
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20273 $as_echo_n "checking for $ac_word... " >&6; }
20274 if ${ac_cv_path_UNZIP+:} false; then :
20275   $as_echo_n "(cached) " >&6
20276 else
20277   case $UNZIP in
20278   [\\/]* | ?:[\\/]*)
20279   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20280   ;;
20281   *)
20282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20284 do
20285   IFS=$as_save_IFS
20286   test -z "$as_dir" && as_dir=.
20287     for ac_exec_ext in '' $ac_executable_extensions; do
20288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20289     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20291     break 2
20292   fi
20293 done
20294   done
20295 IFS=$as_save_IFS
20296 
20297   ;;
20298 esac
20299 fi
20300 UNZIP=$ac_cv_path_UNZIP
20301 if test -n "$UNZIP"; then
20302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20303 $as_echo "$UNZIP" >&6; }
20304 else
20305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20306 $as_echo "no" >&6; }
20307 fi
20308 
20309 
20310   test -n "$UNZIP" && break
20311 done
20312 
20313     else
20314       # If it succeeded, then it was overridden by the user. We will use it
20315       # for the tool.
20316 
20317       # First remove it from the list of overridden variables, so we can test
20318       # for unknown variables in the end.
20319       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20320 
20321       # Check if we try to supply an empty value
20322       if test "x$UNZIP" = x; then
20323         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20324 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20326 $as_echo_n "checking for UNZIP... " >&6; }
20327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20328 $as_echo "disabled" >&6; }
20329       else
20330         # Check if the provided tool contains a complete path.
20331         tool_specified="$UNZIP"
20332         tool_basename="${tool_specified##*/}"
20333         if test "x$tool_basename" = "x$tool_specified"; then
20334           # A command without a complete path is provided, search $PATH.
20335           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20336 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20337           # Extract the first word of "$tool_basename", so it can be a program name with args.
20338 set dummy $tool_basename; ac_word=$2
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20340 $as_echo_n "checking for $ac_word... " >&6; }
20341 if ${ac_cv_path_UNZIP+:} false; then :
20342   $as_echo_n "(cached) " >&6
20343 else
20344   case $UNZIP in
20345   [\\/]* | ?:[\\/]*)
20346   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20347   ;;
20348   *)
20349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20350 for as_dir in $PATH
20351 do
20352   IFS=$as_save_IFS
20353   test -z "$as_dir" && as_dir=.
20354     for ac_exec_ext in '' $ac_executable_extensions; do
20355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20356     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20358     break 2
20359   fi
20360 done
20361   done
20362 IFS=$as_save_IFS
20363 
20364   ;;
20365 esac
20366 fi
20367 UNZIP=$ac_cv_path_UNZIP
20368 if test -n "$UNZIP"; then
20369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20370 $as_echo "$UNZIP" >&6; }
20371 else
20372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373 $as_echo "no" >&6; }
20374 fi
20375 
20376 
20377           if test "x$UNZIP" = x; then
20378             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20379           fi
20380         else
20381           # Otherwise we believe it is a complete path. Use it as it is.
20382           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20383 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20384           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20385 $as_echo_n "checking for UNZIP... " >&6; }
20386           if test ! -x "$tool_specified"; then
20387             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20388 $as_echo "not found" >&6; }
20389             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20390           fi
20391           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20392 $as_echo "$tool_specified" >&6; }
20393         fi
20394       fi
20395     fi
20396 
20397   fi
20398 
20399 
20400 
20401   if test "x$UNZIP" = x; then
20402     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20403   fi
20404 
20405 
20406 
20407 
20408 
20409   # Publish this variable in the help.
20410 
20411 
20412   if [ -z "${ZIP+x}" ]; then
20413     # The variable is not set by user, try to locate tool using the code snippet
20414     for ac_prog in zip
20415 do
20416   # Extract the first word of "$ac_prog", so it can be a program name with args.
20417 set dummy $ac_prog; ac_word=$2
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20419 $as_echo_n "checking for $ac_word... " >&6; }
20420 if ${ac_cv_path_ZIP+:} false; then :
20421   $as_echo_n "(cached) " >&6
20422 else
20423   case $ZIP in
20424   [\\/]* | ?:[\\/]*)
20425   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20426   ;;
20427   *)
20428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20429 for as_dir in $PATH
20430 do
20431   IFS=$as_save_IFS
20432   test -z "$as_dir" && as_dir=.
20433     for ac_exec_ext in '' $ac_executable_extensions; do
20434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20435     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20437     break 2
20438   fi
20439 done
20440   done
20441 IFS=$as_save_IFS
20442 
20443   ;;
20444 esac
20445 fi
20446 ZIP=$ac_cv_path_ZIP
20447 if test -n "$ZIP"; then
20448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20449 $as_echo "$ZIP" >&6; }
20450 else
20451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20453 fi
20454 
20455 
20456   test -n "$ZIP" && break
20457 done
20458 
20459   else
20460     # The variable is set, but is it from the command line or the environment?
20461 
20462     # Try to remove the string !ZIP! from our list.
20463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20465       # If it failed, the variable was not from the command line. Ignore it,
20466       # but warn the user (except for BASH, which is always set by the calling BASH).
20467       if test "xZIP" != xBASH; then
20468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20469 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20470       fi
20471       # Try to locate tool using the code snippet
20472       for ac_prog in zip
20473 do
20474   # Extract the first word of "$ac_prog", so it can be a program name with args.
20475 set dummy $ac_prog; ac_word=$2
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20477 $as_echo_n "checking for $ac_word... " >&6; }
20478 if ${ac_cv_path_ZIP+:} false; then :
20479   $as_echo_n "(cached) " >&6
20480 else
20481   case $ZIP in
20482   [\\/]* | ?:[\\/]*)
20483   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20484   ;;
20485   *)
20486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20487 for as_dir in $PATH
20488 do
20489   IFS=$as_save_IFS
20490   test -z "$as_dir" && as_dir=.
20491     for ac_exec_ext in '' $ac_executable_extensions; do
20492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20493     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20495     break 2
20496   fi
20497 done
20498   done
20499 IFS=$as_save_IFS
20500 
20501   ;;
20502 esac
20503 fi
20504 ZIP=$ac_cv_path_ZIP
20505 if test -n "$ZIP"; then
20506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20507 $as_echo "$ZIP" >&6; }
20508 else
20509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20510 $as_echo "no" >&6; }
20511 fi
20512 
20513 
20514   test -n "$ZIP" && break
20515 done
20516 
20517     else
20518       # If it succeeded, then it was overridden by the user. We will use it
20519       # for the tool.
20520 
20521       # First remove it from the list of overridden variables, so we can test
20522       # for unknown variables in the end.
20523       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20524 
20525       # Check if we try to supply an empty value
20526       if test "x$ZIP" = x; then
20527         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20528 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20530 $as_echo_n "checking for ZIP... " >&6; }
20531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20532 $as_echo "disabled" >&6; }
20533       else
20534         # Check if the provided tool contains a complete path.
20535         tool_specified="$ZIP"
20536         tool_basename="${tool_specified##*/}"
20537         if test "x$tool_basename" = "x$tool_specified"; then
20538           # A command without a complete path is provided, search $PATH.
20539           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20540 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20541           # Extract the first word of "$tool_basename", so it can be a program name with args.
20542 set dummy $tool_basename; ac_word=$2
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20544 $as_echo_n "checking for $ac_word... " >&6; }
20545 if ${ac_cv_path_ZIP+:} false; then :
20546   $as_echo_n "(cached) " >&6
20547 else
20548   case $ZIP in
20549   [\\/]* | ?:[\\/]*)
20550   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20551   ;;
20552   *)
20553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20554 for as_dir in $PATH
20555 do
20556   IFS=$as_save_IFS
20557   test -z "$as_dir" && as_dir=.
20558     for ac_exec_ext in '' $ac_executable_extensions; do
20559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20560     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20562     break 2
20563   fi
20564 done
20565   done
20566 IFS=$as_save_IFS
20567 
20568   ;;
20569 esac
20570 fi
20571 ZIP=$ac_cv_path_ZIP
20572 if test -n "$ZIP"; then
20573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20574 $as_echo "$ZIP" >&6; }
20575 else
20576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20577 $as_echo "no" >&6; }
20578 fi
20579 
20580 
20581           if test "x$ZIP" = x; then
20582             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20583           fi
20584         else
20585           # Otherwise we believe it is a complete path. Use it as it is.
20586           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20587 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20588           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20589 $as_echo_n "checking for ZIP... " >&6; }
20590           if test ! -x "$tool_specified"; then
20591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20592 $as_echo "not found" >&6; }
20593             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20594           fi
20595           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20596 $as_echo "$tool_specified" >&6; }
20597         fi
20598       fi
20599     fi
20600 
20601   fi
20602 
20603 
20604 
20605   if test "x$ZIP" = x; then
20606     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20607   fi
20608 
20609 
20610 
20611   # Non-required basic tools
20612 
20613 
20614 
20615   # Publish this variable in the help.
20616 
20617 
20618   if [ -z "${LDD+x}" ]; then
20619     # The variable is not set by user, try to locate tool using the code snippet
20620     for ac_prog in ldd
20621 do
20622   # Extract the first word of "$ac_prog", so it can be a program name with args.
20623 set dummy $ac_prog; ac_word=$2
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20625 $as_echo_n "checking for $ac_word... " >&6; }
20626 if ${ac_cv_path_LDD+:} false; then :
20627   $as_echo_n "(cached) " >&6
20628 else
20629   case $LDD in
20630   [\\/]* | ?:[\\/]*)
20631   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20632   ;;
20633   *)
20634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20635 for as_dir in $PATH
20636 do
20637   IFS=$as_save_IFS
20638   test -z "$as_dir" && as_dir=.
20639     for ac_exec_ext in '' $ac_executable_extensions; do
20640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20641     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20643     break 2
20644   fi
20645 done
20646   done
20647 IFS=$as_save_IFS
20648 
20649   ;;
20650 esac
20651 fi
20652 LDD=$ac_cv_path_LDD
20653 if test -n "$LDD"; then
20654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20655 $as_echo "$LDD" >&6; }
20656 else
20657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20658 $as_echo "no" >&6; }
20659 fi
20660 
20661 
20662   test -n "$LDD" && break
20663 done
20664 
20665   else
20666     # The variable is set, but is it from the command line or the environment?
20667 
20668     # Try to remove the string !LDD! from our list.
20669     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20670     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20671       # If it failed, the variable was not from the command line. Ignore it,
20672       # but warn the user (except for BASH, which is always set by the calling BASH).
20673       if test "xLDD" != xBASH; then
20674         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20675 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20676       fi
20677       # Try to locate tool using the code snippet
20678       for ac_prog in ldd
20679 do
20680   # Extract the first word of "$ac_prog", so it can be a program name with args.
20681 set dummy $ac_prog; ac_word=$2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20683 $as_echo_n "checking for $ac_word... " >&6; }
20684 if ${ac_cv_path_LDD+:} false; then :
20685   $as_echo_n "(cached) " >&6
20686 else
20687   case $LDD in
20688   [\\/]* | ?:[\\/]*)
20689   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20690   ;;
20691   *)
20692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20693 for as_dir in $PATH
20694 do
20695   IFS=$as_save_IFS
20696   test -z "$as_dir" && as_dir=.
20697     for ac_exec_ext in '' $ac_executable_extensions; do
20698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20699     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20701     break 2
20702   fi
20703 done
20704   done
20705 IFS=$as_save_IFS
20706 
20707   ;;
20708 esac
20709 fi
20710 LDD=$ac_cv_path_LDD
20711 if test -n "$LDD"; then
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20713 $as_echo "$LDD" >&6; }
20714 else
20715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20716 $as_echo "no" >&6; }
20717 fi
20718 
20719 
20720   test -n "$LDD" && break
20721 done
20722 
20723     else
20724       # If it succeeded, then it was overridden by the user. We will use it
20725       # for the tool.
20726 
20727       # First remove it from the list of overridden variables, so we can test
20728       # for unknown variables in the end.
20729       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20730 
20731       # Check if we try to supply an empty value
20732       if test "x$LDD" = x; then
20733         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20734 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20736 $as_echo_n "checking for LDD... " >&6; }
20737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20738 $as_echo "disabled" >&6; }
20739       else
20740         # Check if the provided tool contains a complete path.
20741         tool_specified="$LDD"
20742         tool_basename="${tool_specified##*/}"
20743         if test "x$tool_basename" = "x$tool_specified"; then
20744           # A command without a complete path is provided, search $PATH.
20745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20746 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20747           # Extract the first word of "$tool_basename", so it can be a program name with args.
20748 set dummy $tool_basename; ac_word=$2
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20750 $as_echo_n "checking for $ac_word... " >&6; }
20751 if ${ac_cv_path_LDD+:} false; then :
20752   $as_echo_n "(cached) " >&6
20753 else
20754   case $LDD in
20755   [\\/]* | ?:[\\/]*)
20756   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20757   ;;
20758   *)
20759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 for as_dir in $PATH
20761 do
20762   IFS=$as_save_IFS
20763   test -z "$as_dir" && as_dir=.
20764     for ac_exec_ext in '' $ac_executable_extensions; do
20765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20766     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20768     break 2
20769   fi
20770 done
20771   done
20772 IFS=$as_save_IFS
20773 
20774   ;;
20775 esac
20776 fi
20777 LDD=$ac_cv_path_LDD
20778 if test -n "$LDD"; then
20779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20780 $as_echo "$LDD" >&6; }
20781 else
20782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20783 $as_echo "no" >&6; }
20784 fi
20785 
20786 
20787           if test "x$LDD" = x; then
20788             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20789           fi
20790         else
20791           # Otherwise we believe it is a complete path. Use it as it is.
20792           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20793 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20794           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20795 $as_echo_n "checking for LDD... " >&6; }
20796           if test ! -x "$tool_specified"; then
20797             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20798 $as_echo "not found" >&6; }
20799             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20800           fi
20801           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20802 $as_echo "$tool_specified" >&6; }
20803         fi
20804       fi
20805     fi
20806 
20807   fi
20808 
20809 
20810   if test "x$LDD" = "x"; then
20811     # List shared lib dependencies is used for
20812     # debug output and checking for forbidden dependencies.
20813     # We can build without it.
20814     LDD="true"
20815   fi
20816 
20817 
20818   # Publish this variable in the help.
20819 
20820 
20821   if [ -z "${OTOOL+x}" ]; then
20822     # The variable is not set by user, try to locate tool using the code snippet
20823     for ac_prog in otool
20824 do
20825   # Extract the first word of "$ac_prog", so it can be a program name with args.
20826 set dummy $ac_prog; ac_word=$2
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20828 $as_echo_n "checking for $ac_word... " >&6; }
20829 if ${ac_cv_path_OTOOL+:} false; then :
20830   $as_echo_n "(cached) " >&6
20831 else
20832   case $OTOOL in
20833   [\\/]* | ?:[\\/]*)
20834   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20835   ;;
20836   *)
20837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20838 for as_dir in $PATH
20839 do
20840   IFS=$as_save_IFS
20841   test -z "$as_dir" && as_dir=.
20842     for ac_exec_ext in '' $ac_executable_extensions; do
20843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20844     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20846     break 2
20847   fi
20848 done
20849   done
20850 IFS=$as_save_IFS
20851 
20852   ;;
20853 esac
20854 fi
20855 OTOOL=$ac_cv_path_OTOOL
20856 if test -n "$OTOOL"; then
20857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20858 $as_echo "$OTOOL" >&6; }
20859 else
20860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20861 $as_echo "no" >&6; }
20862 fi
20863 
20864 
20865   test -n "$OTOOL" && break
20866 done
20867 
20868   else
20869     # The variable is set, but is it from the command line or the environment?
20870 
20871     # Try to remove the string !OTOOL! from our list.
20872     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20873     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20874       # If it failed, the variable was not from the command line. Ignore it,
20875       # but warn the user (except for BASH, which is always set by the calling BASH).
20876       if test "xOTOOL" != xBASH; then
20877         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20878 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20879       fi
20880       # Try to locate tool using the code snippet
20881       for ac_prog in otool
20882 do
20883   # Extract the first word of "$ac_prog", so it can be a program name with args.
20884 set dummy $ac_prog; ac_word=$2
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20886 $as_echo_n "checking for $ac_word... " >&6; }
20887 if ${ac_cv_path_OTOOL+:} false; then :
20888   $as_echo_n "(cached) " >&6
20889 else
20890   case $OTOOL in
20891   [\\/]* | ?:[\\/]*)
20892   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20893   ;;
20894   *)
20895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20896 for as_dir in $PATH
20897 do
20898   IFS=$as_save_IFS
20899   test -z "$as_dir" && as_dir=.
20900     for ac_exec_ext in '' $ac_executable_extensions; do
20901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20902     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20904     break 2
20905   fi
20906 done
20907   done
20908 IFS=$as_save_IFS
20909 
20910   ;;
20911 esac
20912 fi
20913 OTOOL=$ac_cv_path_OTOOL
20914 if test -n "$OTOOL"; then
20915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20916 $as_echo "$OTOOL" >&6; }
20917 else
20918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20919 $as_echo "no" >&6; }
20920 fi
20921 
20922 
20923   test -n "$OTOOL" && break
20924 done
20925 
20926     else
20927       # If it succeeded, then it was overridden by the user. We will use it
20928       # for the tool.
20929 
20930       # First remove it from the list of overridden variables, so we can test
20931       # for unknown variables in the end.
20932       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20933 
20934       # Check if we try to supply an empty value
20935       if test "x$OTOOL" = x; then
20936         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20937 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20939 $as_echo_n "checking for OTOOL... " >&6; }
20940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20941 $as_echo "disabled" >&6; }
20942       else
20943         # Check if the provided tool contains a complete path.
20944         tool_specified="$OTOOL"
20945         tool_basename="${tool_specified##*/}"
20946         if test "x$tool_basename" = "x$tool_specified"; then
20947           # A command without a complete path is provided, search $PATH.
20948           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20949 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20950           # Extract the first word of "$tool_basename", so it can be a program name with args.
20951 set dummy $tool_basename; ac_word=$2
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20953 $as_echo_n "checking for $ac_word... " >&6; }
20954 if ${ac_cv_path_OTOOL+:} false; then :
20955   $as_echo_n "(cached) " >&6
20956 else
20957   case $OTOOL in
20958   [\\/]* | ?:[\\/]*)
20959   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20960   ;;
20961   *)
20962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20963 for as_dir in $PATH
20964 do
20965   IFS=$as_save_IFS
20966   test -z "$as_dir" && as_dir=.
20967     for ac_exec_ext in '' $ac_executable_extensions; do
20968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20969     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20971     break 2
20972   fi
20973 done
20974   done
20975 IFS=$as_save_IFS
20976 
20977   ;;
20978 esac
20979 fi
20980 OTOOL=$ac_cv_path_OTOOL
20981 if test -n "$OTOOL"; then
20982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20983 $as_echo "$OTOOL" >&6; }
20984 else
20985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20986 $as_echo "no" >&6; }
20987 fi
20988 
20989 
20990           if test "x$OTOOL" = x; then
20991             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20992           fi
20993         else
20994           # Otherwise we believe it is a complete path. Use it as it is.
20995           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20996 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20997           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20998 $as_echo_n "checking for OTOOL... " >&6; }
20999           if test ! -x "$tool_specified"; then
21000             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21001 $as_echo "not found" >&6; }
21002             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21003           fi
21004           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21005 $as_echo "$tool_specified" >&6; }
21006         fi
21007       fi
21008     fi
21009 
21010   fi
21011 
21012 
21013   if test "x$OTOOL" = "x"; then
21014     OTOOL="true"
21015   fi
21016 
21017 
21018   # Publish this variable in the help.
21019 
21020 
21021   if [ -z "${READELF+x}" ]; then
21022     # The variable is not set by user, try to locate tool using the code snippet
21023     for ac_prog in greadelf readelf
21024 do
21025   # Extract the first word of "$ac_prog", so it can be a program name with args.
21026 set dummy $ac_prog; ac_word=$2
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21028 $as_echo_n "checking for $ac_word... " >&6; }
21029 if ${ac_cv_path_READELF+:} false; then :
21030   $as_echo_n "(cached) " >&6
21031 else
21032   case $READELF in
21033   [\\/]* | ?:[\\/]*)
21034   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21035   ;;
21036   *)
21037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038 for as_dir in $PATH
21039 do
21040   IFS=$as_save_IFS
21041   test -z "$as_dir" && as_dir=.
21042     for ac_exec_ext in '' $ac_executable_extensions; do
21043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21044     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21046     break 2
21047   fi
21048 done
21049   done
21050 IFS=$as_save_IFS
21051 
21052   ;;
21053 esac
21054 fi
21055 READELF=$ac_cv_path_READELF
21056 if test -n "$READELF"; then
21057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21058 $as_echo "$READELF" >&6; }
21059 else
21060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 $as_echo "no" >&6; }
21062 fi
21063 
21064 
21065   test -n "$READELF" && break
21066 done
21067 
21068   else
21069     # The variable is set, but is it from the command line or the environment?
21070 
21071     # Try to remove the string !READELF! from our list.
21072     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21073     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21074       # If it failed, the variable was not from the command line. Ignore it,
21075       # but warn the user (except for BASH, which is always set by the calling BASH).
21076       if test "xREADELF" != xBASH; then
21077         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21078 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21079       fi
21080       # Try to locate tool using the code snippet
21081       for ac_prog in greadelf readelf
21082 do
21083   # Extract the first word of "$ac_prog", so it can be a program name with args.
21084 set dummy $ac_prog; ac_word=$2
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21086 $as_echo_n "checking for $ac_word... " >&6; }
21087 if ${ac_cv_path_READELF+:} false; then :
21088   $as_echo_n "(cached) " >&6
21089 else
21090   case $READELF in
21091   [\\/]* | ?:[\\/]*)
21092   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21093   ;;
21094   *)
21095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21096 for as_dir in $PATH
21097 do
21098   IFS=$as_save_IFS
21099   test -z "$as_dir" && as_dir=.
21100     for ac_exec_ext in '' $ac_executable_extensions; do
21101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21102     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21104     break 2
21105   fi
21106 done
21107   done
21108 IFS=$as_save_IFS
21109 
21110   ;;
21111 esac
21112 fi
21113 READELF=$ac_cv_path_READELF
21114 if test -n "$READELF"; then
21115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21116 $as_echo "$READELF" >&6; }
21117 else
21118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119 $as_echo "no" >&6; }
21120 fi
21121 
21122 
21123   test -n "$READELF" && break
21124 done
21125 
21126     else
21127       # If it succeeded, then it was overridden by the user. We will use it
21128       # for the tool.
21129 
21130       # First remove it from the list of overridden variables, so we can test
21131       # for unknown variables in the end.
21132       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21133 
21134       # Check if we try to supply an empty value
21135       if test "x$READELF" = x; then
21136         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21137 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21139 $as_echo_n "checking for READELF... " >&6; }
21140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21141 $as_echo "disabled" >&6; }
21142       else
21143         # Check if the provided tool contains a complete path.
21144         tool_specified="$READELF"
21145         tool_basename="${tool_specified##*/}"
21146         if test "x$tool_basename" = "x$tool_specified"; then
21147           # A command without a complete path is provided, search $PATH.
21148           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21149 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21150           # Extract the first word of "$tool_basename", so it can be a program name with args.
21151 set dummy $tool_basename; ac_word=$2
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21153 $as_echo_n "checking for $ac_word... " >&6; }
21154 if ${ac_cv_path_READELF+:} false; then :
21155   $as_echo_n "(cached) " >&6
21156 else
21157   case $READELF in
21158   [\\/]* | ?:[\\/]*)
21159   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21160   ;;
21161   *)
21162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21163 for as_dir in $PATH
21164 do
21165   IFS=$as_save_IFS
21166   test -z "$as_dir" && as_dir=.
21167     for ac_exec_ext in '' $ac_executable_extensions; do
21168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21169     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21171     break 2
21172   fi
21173 done
21174   done
21175 IFS=$as_save_IFS
21176 
21177   ;;
21178 esac
21179 fi
21180 READELF=$ac_cv_path_READELF
21181 if test -n "$READELF"; then
21182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21183 $as_echo "$READELF" >&6; }
21184 else
21185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21186 $as_echo "no" >&6; }
21187 fi
21188 
21189 
21190           if test "x$READELF" = x; then
21191             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21192           fi
21193         else
21194           # Otherwise we believe it is a complete path. Use it as it is.
21195           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21196 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21197           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21198 $as_echo_n "checking for READELF... " >&6; }
21199           if test ! -x "$tool_specified"; then
21200             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21201 $as_echo "not found" >&6; }
21202             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21203           fi
21204           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21205 $as_echo "$tool_specified" >&6; }
21206         fi
21207       fi
21208     fi
21209 
21210   fi
21211 
21212 
21213 
21214 
21215   # Publish this variable in the help.
21216 
21217 
21218   if [ -z "${HG+x}" ]; then
21219     # The variable is not set by user, try to locate tool using the code snippet
21220     for ac_prog in hg
21221 do
21222   # Extract the first word of "$ac_prog", so it can be a program name with args.
21223 set dummy $ac_prog; ac_word=$2
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21225 $as_echo_n "checking for $ac_word... " >&6; }
21226 if ${ac_cv_path_HG+:} false; then :
21227   $as_echo_n "(cached) " >&6
21228 else
21229   case $HG in
21230   [\\/]* | ?:[\\/]*)
21231   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21232   ;;
21233   *)
21234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21236 do
21237   IFS=$as_save_IFS
21238   test -z "$as_dir" && as_dir=.
21239     for ac_exec_ext in '' $ac_executable_extensions; do
21240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21241     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21243     break 2
21244   fi
21245 done
21246   done
21247 IFS=$as_save_IFS
21248 
21249   ;;
21250 esac
21251 fi
21252 HG=$ac_cv_path_HG
21253 if test -n "$HG"; then
21254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21255 $as_echo "$HG" >&6; }
21256 else
21257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21258 $as_echo "no" >&6; }
21259 fi
21260 
21261 
21262   test -n "$HG" && break
21263 done
21264 
21265   else
21266     # The variable is set, but is it from the command line or the environment?
21267 
21268     # Try to remove the string !HG! from our list.
21269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21271       # If it failed, the variable was not from the command line. Ignore it,
21272       # but warn the user (except for BASH, which is always set by the calling BASH).
21273       if test "xHG" != xBASH; then
21274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21275 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21276       fi
21277       # Try to locate tool using the code snippet
21278       for ac_prog in hg
21279 do
21280   # Extract the first word of "$ac_prog", so it can be a program name with args.
21281 set dummy $ac_prog; ac_word=$2
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21283 $as_echo_n "checking for $ac_word... " >&6; }
21284 if ${ac_cv_path_HG+:} false; then :
21285   $as_echo_n "(cached) " >&6
21286 else
21287   case $HG in
21288   [\\/]* | ?:[\\/]*)
21289   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21290   ;;
21291   *)
21292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21293 for as_dir in $PATH
21294 do
21295   IFS=$as_save_IFS
21296   test -z "$as_dir" && as_dir=.
21297     for ac_exec_ext in '' $ac_executable_extensions; do
21298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21299     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21301     break 2
21302   fi
21303 done
21304   done
21305 IFS=$as_save_IFS
21306 
21307   ;;
21308 esac
21309 fi
21310 HG=$ac_cv_path_HG
21311 if test -n "$HG"; then
21312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21313 $as_echo "$HG" >&6; }
21314 else
21315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 $as_echo "no" >&6; }
21317 fi
21318 
21319 
21320   test -n "$HG" && break
21321 done
21322 
21323     else
21324       # If it succeeded, then it was overridden by the user. We will use it
21325       # for the tool.
21326 
21327       # First remove it from the list of overridden variables, so we can test
21328       # for unknown variables in the end.
21329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21330 
21331       # Check if we try to supply an empty value
21332       if test "x$HG" = x; then
21333         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21334 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21336 $as_echo_n "checking for HG... " >&6; }
21337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21338 $as_echo "disabled" >&6; }
21339       else
21340         # Check if the provided tool contains a complete path.
21341         tool_specified="$HG"
21342         tool_basename="${tool_specified##*/}"
21343         if test "x$tool_basename" = "x$tool_specified"; then
21344           # A command without a complete path is provided, search $PATH.
21345           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21346 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21347           # Extract the first word of "$tool_basename", so it can be a program name with args.
21348 set dummy $tool_basename; ac_word=$2
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21350 $as_echo_n "checking for $ac_word... " >&6; }
21351 if ${ac_cv_path_HG+:} false; then :
21352   $as_echo_n "(cached) " >&6
21353 else
21354   case $HG in
21355   [\\/]* | ?:[\\/]*)
21356   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21357   ;;
21358   *)
21359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21360 for as_dir in $PATH
21361 do
21362   IFS=$as_save_IFS
21363   test -z "$as_dir" && as_dir=.
21364     for ac_exec_ext in '' $ac_executable_extensions; do
21365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21366     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21368     break 2
21369   fi
21370 done
21371   done
21372 IFS=$as_save_IFS
21373 
21374   ;;
21375 esac
21376 fi
21377 HG=$ac_cv_path_HG
21378 if test -n "$HG"; then
21379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21380 $as_echo "$HG" >&6; }
21381 else
21382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21383 $as_echo "no" >&6; }
21384 fi
21385 
21386 
21387           if test "x$HG" = x; then
21388             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21389           fi
21390         else
21391           # Otherwise we believe it is a complete path. Use it as it is.
21392           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21393 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21394           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21395 $as_echo_n "checking for HG... " >&6; }
21396           if test ! -x "$tool_specified"; then
21397             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21398 $as_echo "not found" >&6; }
21399             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21400           fi
21401           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21402 $as_echo "$tool_specified" >&6; }
21403         fi
21404       fi
21405     fi
21406 
21407   fi
21408 
21409 
21410 
21411 
21412   # Publish this variable in the help.
21413 
21414 
21415   if [ -z "${STAT+x}" ]; then
21416     # The variable is not set by user, try to locate tool using the code snippet
21417     for ac_prog in stat
21418 do
21419   # Extract the first word of "$ac_prog", so it can be a program name with args.
21420 set dummy $ac_prog; ac_word=$2
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21422 $as_echo_n "checking for $ac_word... " >&6; }
21423 if ${ac_cv_path_STAT+:} false; then :
21424   $as_echo_n "(cached) " >&6
21425 else
21426   case $STAT in
21427   [\\/]* | ?:[\\/]*)
21428   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21429   ;;
21430   *)
21431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21432 for as_dir in $PATH
21433 do
21434   IFS=$as_save_IFS
21435   test -z "$as_dir" && as_dir=.
21436     for ac_exec_ext in '' $ac_executable_extensions; do
21437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21438     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21440     break 2
21441   fi
21442 done
21443   done
21444 IFS=$as_save_IFS
21445 
21446   ;;
21447 esac
21448 fi
21449 STAT=$ac_cv_path_STAT
21450 if test -n "$STAT"; then
21451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21452 $as_echo "$STAT" >&6; }
21453 else
21454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21455 $as_echo "no" >&6; }
21456 fi
21457 
21458 
21459   test -n "$STAT" && break
21460 done
21461 
21462   else
21463     # The variable is set, but is it from the command line or the environment?
21464 
21465     # Try to remove the string !STAT! from our list.
21466     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21467     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21468       # If it failed, the variable was not from the command line. Ignore it,
21469       # but warn the user (except for BASH, which is always set by the calling BASH).
21470       if test "xSTAT" != xBASH; then
21471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21472 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21473       fi
21474       # Try to locate tool using the code snippet
21475       for ac_prog in stat
21476 do
21477   # Extract the first word of "$ac_prog", so it can be a program name with args.
21478 set dummy $ac_prog; ac_word=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if ${ac_cv_path_STAT+:} false; then :
21482   $as_echo_n "(cached) " >&6
21483 else
21484   case $STAT in
21485   [\\/]* | ?:[\\/]*)
21486   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21487   ;;
21488   *)
21489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21490 for as_dir in $PATH
21491 do
21492   IFS=$as_save_IFS
21493   test -z "$as_dir" && as_dir=.
21494     for ac_exec_ext in '' $ac_executable_extensions; do
21495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21496     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21498     break 2
21499   fi
21500 done
21501   done
21502 IFS=$as_save_IFS
21503 
21504   ;;
21505 esac
21506 fi
21507 STAT=$ac_cv_path_STAT
21508 if test -n "$STAT"; then
21509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21510 $as_echo "$STAT" >&6; }
21511 else
21512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513 $as_echo "no" >&6; }
21514 fi
21515 
21516 
21517   test -n "$STAT" && break
21518 done
21519 
21520     else
21521       # If it succeeded, then it was overridden by the user. We will use it
21522       # for the tool.
21523 
21524       # First remove it from the list of overridden variables, so we can test
21525       # for unknown variables in the end.
21526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21527 
21528       # Check if we try to supply an empty value
21529       if test "x$STAT" = x; then
21530         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21531 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21532         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21533 $as_echo_n "checking for STAT... " >&6; }
21534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21535 $as_echo "disabled" >&6; }
21536       else
21537         # Check if the provided tool contains a complete path.
21538         tool_specified="$STAT"
21539         tool_basename="${tool_specified##*/}"
21540         if test "x$tool_basename" = "x$tool_specified"; then
21541           # A command without a complete path is provided, search $PATH.
21542           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21543 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21544           # Extract the first word of "$tool_basename", so it can be a program name with args.
21545 set dummy $tool_basename; ac_word=$2
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21547 $as_echo_n "checking for $ac_word... " >&6; }
21548 if ${ac_cv_path_STAT+:} false; then :
21549   $as_echo_n "(cached) " >&6
21550 else
21551   case $STAT in
21552   [\\/]* | ?:[\\/]*)
21553   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21554   ;;
21555   *)
21556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21557 for as_dir in $PATH
21558 do
21559   IFS=$as_save_IFS
21560   test -z "$as_dir" && as_dir=.
21561     for ac_exec_ext in '' $ac_executable_extensions; do
21562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21563     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21565     break 2
21566   fi
21567 done
21568   done
21569 IFS=$as_save_IFS
21570 
21571   ;;
21572 esac
21573 fi
21574 STAT=$ac_cv_path_STAT
21575 if test -n "$STAT"; then
21576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21577 $as_echo "$STAT" >&6; }
21578 else
21579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21580 $as_echo "no" >&6; }
21581 fi
21582 
21583 
21584           if test "x$STAT" = x; then
21585             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21586           fi
21587         else
21588           # Otherwise we believe it is a complete path. Use it as it is.
21589           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21590 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21591           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21592 $as_echo_n "checking for STAT... " >&6; }
21593           if test ! -x "$tool_specified"; then
21594             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21595 $as_echo "not found" >&6; }
21596             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21597           fi
21598           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21599 $as_echo "$tool_specified" >&6; }
21600         fi
21601       fi
21602     fi
21603 
21604   fi
21605 
21606 
21607 
21608 
21609   # Publish this variable in the help.
21610 
21611 
21612   if [ -z "${TIME+x}" ]; then
21613     # The variable is not set by user, try to locate tool using the code snippet
21614     for ac_prog in time
21615 do
21616   # Extract the first word of "$ac_prog", so it can be a program name with args.
21617 set dummy $ac_prog; ac_word=$2
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21619 $as_echo_n "checking for $ac_word... " >&6; }
21620 if ${ac_cv_path_TIME+:} false; then :
21621   $as_echo_n "(cached) " >&6
21622 else
21623   case $TIME in
21624   [\\/]* | ?:[\\/]*)
21625   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21626   ;;
21627   *)
21628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21629 for as_dir in $PATH
21630 do
21631   IFS=$as_save_IFS
21632   test -z "$as_dir" && as_dir=.
21633     for ac_exec_ext in '' $ac_executable_extensions; do
21634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21635     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21637     break 2
21638   fi
21639 done
21640   done
21641 IFS=$as_save_IFS
21642 
21643   ;;
21644 esac
21645 fi
21646 TIME=$ac_cv_path_TIME
21647 if test -n "$TIME"; then
21648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21649 $as_echo "$TIME" >&6; }
21650 else
21651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21652 $as_echo "no" >&6; }
21653 fi
21654 
21655 
21656   test -n "$TIME" && break
21657 done
21658 
21659   else
21660     # The variable is set, but is it from the command line or the environment?
21661 
21662     # Try to remove the string !TIME! from our list.
21663     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21664     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21665       # If it failed, the variable was not from the command line. Ignore it,
21666       # but warn the user (except for BASH, which is always set by the calling BASH).
21667       if test "xTIME" != xBASH; then
21668         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21669 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21670       fi
21671       # Try to locate tool using the code snippet
21672       for ac_prog in time
21673 do
21674   # Extract the first word of "$ac_prog", so it can be a program name with args.
21675 set dummy $ac_prog; ac_word=$2
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21677 $as_echo_n "checking for $ac_word... " >&6; }
21678 if ${ac_cv_path_TIME+:} false; then :
21679   $as_echo_n "(cached) " >&6
21680 else
21681   case $TIME in
21682   [\\/]* | ?:[\\/]*)
21683   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21684   ;;
21685   *)
21686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21687 for as_dir in $PATH
21688 do
21689   IFS=$as_save_IFS
21690   test -z "$as_dir" && as_dir=.
21691     for ac_exec_ext in '' $ac_executable_extensions; do
21692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21693     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21695     break 2
21696   fi
21697 done
21698   done
21699 IFS=$as_save_IFS
21700 
21701   ;;
21702 esac
21703 fi
21704 TIME=$ac_cv_path_TIME
21705 if test -n "$TIME"; then
21706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21707 $as_echo "$TIME" >&6; }
21708 else
21709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21710 $as_echo "no" >&6; }
21711 fi
21712 
21713 
21714   test -n "$TIME" && break
21715 done
21716 
21717     else
21718       # If it succeeded, then it was overridden by the user. We will use it
21719       # for the tool.
21720 
21721       # First remove it from the list of overridden variables, so we can test
21722       # for unknown variables in the end.
21723       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21724 
21725       # Check if we try to supply an empty value
21726       if test "x$TIME" = x; then
21727         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21728 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21729         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21730 $as_echo_n "checking for TIME... " >&6; }
21731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21732 $as_echo "disabled" >&6; }
21733       else
21734         # Check if the provided tool contains a complete path.
21735         tool_specified="$TIME"
21736         tool_basename="${tool_specified##*/}"
21737         if test "x$tool_basename" = "x$tool_specified"; then
21738           # A command without a complete path is provided, search $PATH.
21739           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21740 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21741           # Extract the first word of "$tool_basename", so it can be a program name with args.
21742 set dummy $tool_basename; ac_word=$2
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21744 $as_echo_n "checking for $ac_word... " >&6; }
21745 if ${ac_cv_path_TIME+:} false; then :
21746   $as_echo_n "(cached) " >&6
21747 else
21748   case $TIME in
21749   [\\/]* | ?:[\\/]*)
21750   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21751   ;;
21752   *)
21753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21754 for as_dir in $PATH
21755 do
21756   IFS=$as_save_IFS
21757   test -z "$as_dir" && as_dir=.
21758     for ac_exec_ext in '' $ac_executable_extensions; do
21759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21760     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21762     break 2
21763   fi
21764 done
21765   done
21766 IFS=$as_save_IFS
21767 
21768   ;;
21769 esac
21770 fi
21771 TIME=$ac_cv_path_TIME
21772 if test -n "$TIME"; then
21773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21774 $as_echo "$TIME" >&6; }
21775 else
21776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21777 $as_echo "no" >&6; }
21778 fi
21779 
21780 
21781           if test "x$TIME" = x; then
21782             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21783           fi
21784         else
21785           # Otherwise we believe it is a complete path. Use it as it is.
21786           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21787 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21788           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21789 $as_echo_n "checking for TIME... " >&6; }
21790           if test ! -x "$tool_specified"; then
21791             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21792 $as_echo "not found" >&6; }
21793             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21794           fi
21795           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21796 $as_echo "$tool_specified" >&6; }
21797         fi
21798       fi
21799     fi
21800 
21801   fi
21802 
21803 
21804 
21805 
21806   # Publish this variable in the help.
21807 
21808 
21809   if [ -z "${PATCH+x}" ]; then
21810     # The variable is not set by user, try to locate tool using the code snippet
21811     for ac_prog in gpatch patch
21812 do
21813   # Extract the first word of "$ac_prog", so it can be a program name with args.
21814 set dummy $ac_prog; ac_word=$2
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816 $as_echo_n "checking for $ac_word... " >&6; }
21817 if ${ac_cv_path_PATCH+:} false; then :
21818   $as_echo_n "(cached) " >&6
21819 else
21820   case $PATCH in
21821   [\\/]* | ?:[\\/]*)
21822   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21823   ;;
21824   *)
21825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21826 for as_dir in $PATH
21827 do
21828   IFS=$as_save_IFS
21829   test -z "$as_dir" && as_dir=.
21830     for ac_exec_ext in '' $ac_executable_extensions; do
21831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21832     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21834     break 2
21835   fi
21836 done
21837   done
21838 IFS=$as_save_IFS
21839 
21840   ;;
21841 esac
21842 fi
21843 PATCH=$ac_cv_path_PATCH
21844 if test -n "$PATCH"; then
21845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21846 $as_echo "$PATCH" >&6; }
21847 else
21848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21850 fi
21851 
21852 
21853   test -n "$PATCH" && break
21854 done
21855 
21856   else
21857     # The variable is set, but is it from the command line or the environment?
21858 
21859     # Try to remove the string !PATCH! from our list.
21860     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21861     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21862       # If it failed, the variable was not from the command line. Ignore it,
21863       # but warn the user (except for BASH, which is always set by the calling BASH).
21864       if test "xPATCH" != xBASH; then
21865         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21866 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21867       fi
21868       # Try to locate tool using the code snippet
21869       for ac_prog in gpatch patch
21870 do
21871   # Extract the first word of "$ac_prog", so it can be a program name with args.
21872 set dummy $ac_prog; ac_word=$2
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21874 $as_echo_n "checking for $ac_word... " >&6; }
21875 if ${ac_cv_path_PATCH+:} false; then :
21876   $as_echo_n "(cached) " >&6
21877 else
21878   case $PATCH in
21879   [\\/]* | ?:[\\/]*)
21880   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21881   ;;
21882   *)
21883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21884 for as_dir in $PATH
21885 do
21886   IFS=$as_save_IFS
21887   test -z "$as_dir" && as_dir=.
21888     for ac_exec_ext in '' $ac_executable_extensions; do
21889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21890     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21892     break 2
21893   fi
21894 done
21895   done
21896 IFS=$as_save_IFS
21897 
21898   ;;
21899 esac
21900 fi
21901 PATCH=$ac_cv_path_PATCH
21902 if test -n "$PATCH"; then
21903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21904 $as_echo "$PATCH" >&6; }
21905 else
21906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21907 $as_echo "no" >&6; }
21908 fi
21909 
21910 
21911   test -n "$PATCH" && break
21912 done
21913 
21914     else
21915       # If it succeeded, then it was overridden by the user. We will use it
21916       # for the tool.
21917 
21918       # First remove it from the list of overridden variables, so we can test
21919       # for unknown variables in the end.
21920       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21921 
21922       # Check if we try to supply an empty value
21923       if test "x$PATCH" = x; then
21924         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21925 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21926         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21927 $as_echo_n "checking for PATCH... " >&6; }
21928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21929 $as_echo "disabled" >&6; }
21930       else
21931         # Check if the provided tool contains a complete path.
21932         tool_specified="$PATCH"
21933         tool_basename="${tool_specified##*/}"
21934         if test "x$tool_basename" = "x$tool_specified"; then
21935           # A command without a complete path is provided, search $PATH.
21936           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21937 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21938           # Extract the first word of "$tool_basename", so it can be a program name with args.
21939 set dummy $tool_basename; ac_word=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if ${ac_cv_path_PATCH+:} false; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945   case $PATCH in
21946   [\\/]* | ?:[\\/]*)
21947   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21948   ;;
21949   *)
21950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951 for as_dir in $PATH
21952 do
21953   IFS=$as_save_IFS
21954   test -z "$as_dir" && as_dir=.
21955     for ac_exec_ext in '' $ac_executable_extensions; do
21956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21957     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959     break 2
21960   fi
21961 done
21962   done
21963 IFS=$as_save_IFS
21964 
21965   ;;
21966 esac
21967 fi
21968 PATCH=$ac_cv_path_PATCH
21969 if test -n "$PATCH"; then
21970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21971 $as_echo "$PATCH" >&6; }
21972 else
21973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21975 fi
21976 
21977 
21978           if test "x$PATCH" = x; then
21979             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21980           fi
21981         else
21982           # Otherwise we believe it is a complete path. Use it as it is.
21983           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21984 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21985           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21986 $as_echo_n "checking for PATCH... " >&6; }
21987           if test ! -x "$tool_specified"; then
21988             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21989 $as_echo "not found" >&6; }
21990             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21991           fi
21992           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21993 $as_echo "$tool_specified" >&6; }
21994         fi
21995       fi
21996     fi
21997 
21998   fi
21999 
22000 
22001   # Check if it's GNU time
22002   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22003   if test "x$IS_GNU_TIME" != x; then
22004     IS_GNU_TIME=yes
22005   else
22006     IS_GNU_TIME=no
22007   fi
22008 
22009 
22010   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22011 
22012 
22013 
22014   # Publish this variable in the help.
22015 
22016 
22017   if [ -z "${DSYMUTIL+x}" ]; then
22018     # The variable is not set by user, try to locate tool using the code snippet
22019     for ac_prog in dsymutil
22020 do
22021   # Extract the first word of "$ac_prog", so it can be a program name with args.
22022 set dummy $ac_prog; ac_word=$2
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22024 $as_echo_n "checking for $ac_word... " >&6; }
22025 if ${ac_cv_path_DSYMUTIL+:} false; then :
22026   $as_echo_n "(cached) " >&6
22027 else
22028   case $DSYMUTIL in
22029   [\\/]* | ?:[\\/]*)
22030   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22031   ;;
22032   *)
22033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22034 for as_dir in $PATH
22035 do
22036   IFS=$as_save_IFS
22037   test -z "$as_dir" && as_dir=.
22038     for ac_exec_ext in '' $ac_executable_extensions; do
22039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22040     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22042     break 2
22043   fi
22044 done
22045   done
22046 IFS=$as_save_IFS
22047 
22048   ;;
22049 esac
22050 fi
22051 DSYMUTIL=$ac_cv_path_DSYMUTIL
22052 if test -n "$DSYMUTIL"; then
22053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22054 $as_echo "$DSYMUTIL" >&6; }
22055 else
22056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22057 $as_echo "no" >&6; }
22058 fi
22059 
22060 
22061   test -n "$DSYMUTIL" && break
22062 done
22063 
22064   else
22065     # The variable is set, but is it from the command line or the environment?
22066 
22067     # Try to remove the string !DSYMUTIL! from our list.
22068     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22069     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22070       # If it failed, the variable was not from the command line. Ignore it,
22071       # but warn the user (except for BASH, which is always set by the calling BASH).
22072       if test "xDSYMUTIL" != xBASH; then
22073         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22074 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22075       fi
22076       # Try to locate tool using the code snippet
22077       for ac_prog in dsymutil
22078 do
22079   # Extract the first word of "$ac_prog", so it can be a program name with args.
22080 set dummy $ac_prog; ac_word=$2
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22082 $as_echo_n "checking for $ac_word... " >&6; }
22083 if ${ac_cv_path_DSYMUTIL+:} false; then :
22084   $as_echo_n "(cached) " >&6
22085 else
22086   case $DSYMUTIL in
22087   [\\/]* | ?:[\\/]*)
22088   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22089   ;;
22090   *)
22091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22092 for as_dir in $PATH
22093 do
22094   IFS=$as_save_IFS
22095   test -z "$as_dir" && as_dir=.
22096     for ac_exec_ext in '' $ac_executable_extensions; do
22097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22098     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22100     break 2
22101   fi
22102 done
22103   done
22104 IFS=$as_save_IFS
22105 
22106   ;;
22107 esac
22108 fi
22109 DSYMUTIL=$ac_cv_path_DSYMUTIL
22110 if test -n "$DSYMUTIL"; then
22111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22112 $as_echo "$DSYMUTIL" >&6; }
22113 else
22114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22115 $as_echo "no" >&6; }
22116 fi
22117 
22118 
22119   test -n "$DSYMUTIL" && break
22120 done
22121 
22122     else
22123       # If it succeeded, then it was overridden by the user. We will use it
22124       # for the tool.
22125 
22126       # First remove it from the list of overridden variables, so we can test
22127       # for unknown variables in the end.
22128       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22129 
22130       # Check if we try to supply an empty value
22131       if test "x$DSYMUTIL" = x; then
22132         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22133 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22134         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22135 $as_echo_n "checking for DSYMUTIL... " >&6; }
22136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22137 $as_echo "disabled" >&6; }
22138       else
22139         # Check if the provided tool contains a complete path.
22140         tool_specified="$DSYMUTIL"
22141         tool_basename="${tool_specified##*/}"
22142         if test "x$tool_basename" = "x$tool_specified"; then
22143           # A command without a complete path is provided, search $PATH.
22144           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22145 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22146           # Extract the first word of "$tool_basename", so it can be a program name with args.
22147 set dummy $tool_basename; ac_word=$2
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22149 $as_echo_n "checking for $ac_word... " >&6; }
22150 if ${ac_cv_path_DSYMUTIL+:} false; then :
22151   $as_echo_n "(cached) " >&6
22152 else
22153   case $DSYMUTIL in
22154   [\\/]* | ?:[\\/]*)
22155   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22156   ;;
22157   *)
22158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22159 for as_dir in $PATH
22160 do
22161   IFS=$as_save_IFS
22162   test -z "$as_dir" && as_dir=.
22163     for ac_exec_ext in '' $ac_executable_extensions; do
22164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22165     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22167     break 2
22168   fi
22169 done
22170   done
22171 IFS=$as_save_IFS
22172 
22173   ;;
22174 esac
22175 fi
22176 DSYMUTIL=$ac_cv_path_DSYMUTIL
22177 if test -n "$DSYMUTIL"; then
22178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22179 $as_echo "$DSYMUTIL" >&6; }
22180 else
22181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22182 $as_echo "no" >&6; }
22183 fi
22184 
22185 
22186           if test "x$DSYMUTIL" = x; then
22187             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22188           fi
22189         else
22190           # Otherwise we believe it is a complete path. Use it as it is.
22191           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22192 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22193           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22194 $as_echo_n "checking for DSYMUTIL... " >&6; }
22195           if test ! -x "$tool_specified"; then
22196             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22197 $as_echo "not found" >&6; }
22198             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22199           fi
22200           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22201 $as_echo "$tool_specified" >&6; }
22202         fi
22203       fi
22204     fi
22205 
22206   fi
22207 
22208 
22209 
22210   if test "x$DSYMUTIL" = x; then
22211     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22212   fi
22213 
22214 
22215 
22216 
22217 
22218   # Publish this variable in the help.
22219 
22220 
22221   if [ -z "${XATTR+x}" ]; then
22222     # The variable is not set by user, try to locate tool using the code snippet
22223     for ac_prog in xattr
22224 do
22225   # Extract the first word of "$ac_prog", so it can be a program name with args.
22226 set dummy $ac_prog; ac_word=$2
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22228 $as_echo_n "checking for $ac_word... " >&6; }
22229 if ${ac_cv_path_XATTR+:} false; then :
22230   $as_echo_n "(cached) " >&6
22231 else
22232   case $XATTR in
22233   [\\/]* | ?:[\\/]*)
22234   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22235   ;;
22236   *)
22237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22238 for as_dir in $PATH
22239 do
22240   IFS=$as_save_IFS
22241   test -z "$as_dir" && as_dir=.
22242     for ac_exec_ext in '' $ac_executable_extensions; do
22243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22244     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22246     break 2
22247   fi
22248 done
22249   done
22250 IFS=$as_save_IFS
22251 
22252   ;;
22253 esac
22254 fi
22255 XATTR=$ac_cv_path_XATTR
22256 if test -n "$XATTR"; then
22257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22258 $as_echo "$XATTR" >&6; }
22259 else
22260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22261 $as_echo "no" >&6; }
22262 fi
22263 
22264 
22265   test -n "$XATTR" && break
22266 done
22267 
22268   else
22269     # The variable is set, but is it from the command line or the environment?
22270 
22271     # Try to remove the string !XATTR! from our list.
22272     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22273     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22274       # If it failed, the variable was not from the command line. Ignore it,
22275       # but warn the user (except for BASH, which is always set by the calling BASH).
22276       if test "xXATTR" != xBASH; then
22277         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22278 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22279       fi
22280       # Try to locate tool using the code snippet
22281       for ac_prog in xattr
22282 do
22283   # Extract the first word of "$ac_prog", so it can be a program name with args.
22284 set dummy $ac_prog; ac_word=$2
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22286 $as_echo_n "checking for $ac_word... " >&6; }
22287 if ${ac_cv_path_XATTR+:} false; then :
22288   $as_echo_n "(cached) " >&6
22289 else
22290   case $XATTR in
22291   [\\/]* | ?:[\\/]*)
22292   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22293   ;;
22294   *)
22295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296 for as_dir in $PATH
22297 do
22298   IFS=$as_save_IFS
22299   test -z "$as_dir" && as_dir=.
22300     for ac_exec_ext in '' $ac_executable_extensions; do
22301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22302     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22304     break 2
22305   fi
22306 done
22307   done
22308 IFS=$as_save_IFS
22309 
22310   ;;
22311 esac
22312 fi
22313 XATTR=$ac_cv_path_XATTR
22314 if test -n "$XATTR"; then
22315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22316 $as_echo "$XATTR" >&6; }
22317 else
22318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319 $as_echo "no" >&6; }
22320 fi
22321 
22322 
22323   test -n "$XATTR" && break
22324 done
22325 
22326     else
22327       # If it succeeded, then it was overridden by the user. We will use it
22328       # for the tool.
22329 
22330       # First remove it from the list of overridden variables, so we can test
22331       # for unknown variables in the end.
22332       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22333 
22334       # Check if we try to supply an empty value
22335       if test "x$XATTR" = x; then
22336         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22337 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22339 $as_echo_n "checking for XATTR... " >&6; }
22340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22341 $as_echo "disabled" >&6; }
22342       else
22343         # Check if the provided tool contains a complete path.
22344         tool_specified="$XATTR"
22345         tool_basename="${tool_specified##*/}"
22346         if test "x$tool_basename" = "x$tool_specified"; then
22347           # A command without a complete path is provided, search $PATH.
22348           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22349 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22350           # Extract the first word of "$tool_basename", so it can be a program name with args.
22351 set dummy $tool_basename; ac_word=$2
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22353 $as_echo_n "checking for $ac_word... " >&6; }
22354 if ${ac_cv_path_XATTR+:} false; then :
22355   $as_echo_n "(cached) " >&6
22356 else
22357   case $XATTR in
22358   [\\/]* | ?:[\\/]*)
22359   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22360   ;;
22361   *)
22362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367     for ac_exec_ext in '' $ac_executable_extensions; do
22368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22369     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22371     break 2
22372   fi
22373 done
22374   done
22375 IFS=$as_save_IFS
22376 
22377   ;;
22378 esac
22379 fi
22380 XATTR=$ac_cv_path_XATTR
22381 if test -n "$XATTR"; then
22382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22383 $as_echo "$XATTR" >&6; }
22384 else
22385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22386 $as_echo "no" >&6; }
22387 fi
22388 
22389 
22390           if test "x$XATTR" = x; then
22391             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22392           fi
22393         else
22394           # Otherwise we believe it is a complete path. Use it as it is.
22395           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22396 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22397           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22398 $as_echo_n "checking for XATTR... " >&6; }
22399           if test ! -x "$tool_specified"; then
22400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22401 $as_echo "not found" >&6; }
22402             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22403           fi
22404           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22405 $as_echo "$tool_specified" >&6; }
22406         fi
22407       fi
22408     fi
22409 
22410   fi
22411 
22412 
22413 
22414   if test "x$XATTR" = x; then
22415     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22416   fi
22417 
22418 
22419 
22420 
22421   # Publish this variable in the help.
22422 
22423 
22424   if [ -z "${CODESIGN+x}" ]; then
22425     # The variable is not set by user, try to locate tool using the code snippet
22426     for ac_prog in codesign
22427 do
22428   # Extract the first word of "$ac_prog", so it can be a program name with args.
22429 set dummy $ac_prog; ac_word=$2
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22431 $as_echo_n "checking for $ac_word... " >&6; }
22432 if ${ac_cv_path_CODESIGN+:} false; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   case $CODESIGN in
22436   [\\/]* | ?:[\\/]*)
22437   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22438   ;;
22439   *)
22440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22441 for as_dir in $PATH
22442 do
22443   IFS=$as_save_IFS
22444   test -z "$as_dir" && as_dir=.
22445     for ac_exec_ext in '' $ac_executable_extensions; do
22446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22447     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22449     break 2
22450   fi
22451 done
22452   done
22453 IFS=$as_save_IFS
22454 
22455   ;;
22456 esac
22457 fi
22458 CODESIGN=$ac_cv_path_CODESIGN
22459 if test -n "$CODESIGN"; then
22460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22461 $as_echo "$CODESIGN" >&6; }
22462 else
22463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22464 $as_echo "no" >&6; }
22465 fi
22466 
22467 
22468   test -n "$CODESIGN" && break
22469 done
22470 
22471   else
22472     # The variable is set, but is it from the command line or the environment?
22473 
22474     # Try to remove the string !CODESIGN! from our list.
22475     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22476     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22477       # If it failed, the variable was not from the command line. Ignore it,
22478       # but warn the user (except for BASH, which is always set by the calling BASH).
22479       if test "xCODESIGN" != xBASH; then
22480         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22481 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22482       fi
22483       # Try to locate tool using the code snippet
22484       for ac_prog in codesign
22485 do
22486   # Extract the first word of "$ac_prog", so it can be a program name with args.
22487 set dummy $ac_prog; ac_word=$2
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22489 $as_echo_n "checking for $ac_word... " >&6; }
22490 if ${ac_cv_path_CODESIGN+:} false; then :
22491   $as_echo_n "(cached) " >&6
22492 else
22493   case $CODESIGN in
22494   [\\/]* | ?:[\\/]*)
22495   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22496   ;;
22497   *)
22498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22499 for as_dir in $PATH
22500 do
22501   IFS=$as_save_IFS
22502   test -z "$as_dir" && as_dir=.
22503     for ac_exec_ext in '' $ac_executable_extensions; do
22504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22505     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22507     break 2
22508   fi
22509 done
22510   done
22511 IFS=$as_save_IFS
22512 
22513   ;;
22514 esac
22515 fi
22516 CODESIGN=$ac_cv_path_CODESIGN
22517 if test -n "$CODESIGN"; then
22518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22519 $as_echo "$CODESIGN" >&6; }
22520 else
22521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22522 $as_echo "no" >&6; }
22523 fi
22524 
22525 
22526   test -n "$CODESIGN" && break
22527 done
22528 
22529     else
22530       # If it succeeded, then it was overridden by the user. We will use it
22531       # for the tool.
22532 
22533       # First remove it from the list of overridden variables, so we can test
22534       # for unknown variables in the end.
22535       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22536 
22537       # Check if we try to supply an empty value
22538       if test "x$CODESIGN" = x; then
22539         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22540 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22542 $as_echo_n "checking for CODESIGN... " >&6; }
22543         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22544 $as_echo "disabled" >&6; }
22545       else
22546         # Check if the provided tool contains a complete path.
22547         tool_specified="$CODESIGN"
22548         tool_basename="${tool_specified##*/}"
22549         if test "x$tool_basename" = "x$tool_specified"; then
22550           # A command without a complete path is provided, search $PATH.
22551           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22552 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22553           # Extract the first word of "$tool_basename", so it can be a program name with args.
22554 set dummy $tool_basename; ac_word=$2
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22556 $as_echo_n "checking for $ac_word... " >&6; }
22557 if ${ac_cv_path_CODESIGN+:} false; then :
22558   $as_echo_n "(cached) " >&6
22559 else
22560   case $CODESIGN in
22561   [\\/]* | ?:[\\/]*)
22562   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22563   ;;
22564   *)
22565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22566 for as_dir in $PATH
22567 do
22568   IFS=$as_save_IFS
22569   test -z "$as_dir" && as_dir=.
22570     for ac_exec_ext in '' $ac_executable_extensions; do
22571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22572     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22574     break 2
22575   fi
22576 done
22577   done
22578 IFS=$as_save_IFS
22579 
22580   ;;
22581 esac
22582 fi
22583 CODESIGN=$ac_cv_path_CODESIGN
22584 if test -n "$CODESIGN"; then
22585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22586 $as_echo "$CODESIGN" >&6; }
22587 else
22588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22589 $as_echo "no" >&6; }
22590 fi
22591 
22592 
22593           if test "x$CODESIGN" = x; then
22594             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22595           fi
22596         else
22597           # Otherwise we believe it is a complete path. Use it as it is.
22598           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22599 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22600           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22601 $as_echo_n "checking for CODESIGN... " >&6; }
22602           if test ! -x "$tool_specified"; then
22603             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22604 $as_echo "not found" >&6; }
22605             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22606           fi
22607           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22608 $as_echo "$tool_specified" >&6; }
22609         fi
22610       fi
22611     fi
22612 
22613   fi
22614 
22615 
22616     if test "x$CODESIGN" != "x"; then
22617       # Verify that the openjdk_codesign certificate is present
22618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22619 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22620       rm -f codesign-testfile
22621       touch codesign-testfile
22622       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22623       rm -f codesign-testfile
22624       if test "x$CODESIGN" = x; then
22625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22626 $as_echo "no" >&6; }
22627       else
22628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22629 $as_echo "yes" >&6; }
22630       fi
22631     fi
22632 
22633 
22634 
22635   # Publish this variable in the help.
22636 
22637 
22638   if [ -z "${SETFILE+x}" ]; then
22639     # The variable is not set by user, try to locate tool using the code snippet
22640     for ac_prog in SetFile
22641 do
22642   # Extract the first word of "$ac_prog", so it can be a program name with args.
22643 set dummy $ac_prog; ac_word=$2
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22645 $as_echo_n "checking for $ac_word... " >&6; }
22646 if ${ac_cv_path_SETFILE+:} false; then :
22647   $as_echo_n "(cached) " >&6
22648 else
22649   case $SETFILE in
22650   [\\/]* | ?:[\\/]*)
22651   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22652   ;;
22653   *)
22654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22655 for as_dir in $PATH
22656 do
22657   IFS=$as_save_IFS
22658   test -z "$as_dir" && as_dir=.
22659     for ac_exec_ext in '' $ac_executable_extensions; do
22660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22661     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22663     break 2
22664   fi
22665 done
22666   done
22667 IFS=$as_save_IFS
22668 
22669   ;;
22670 esac
22671 fi
22672 SETFILE=$ac_cv_path_SETFILE
22673 if test -n "$SETFILE"; then
22674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22675 $as_echo "$SETFILE" >&6; }
22676 else
22677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22678 $as_echo "no" >&6; }
22679 fi
22680 
22681 
22682   test -n "$SETFILE" && break
22683 done
22684 
22685   else
22686     # The variable is set, but is it from the command line or the environment?
22687 
22688     # Try to remove the string !SETFILE! from our list.
22689     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22690     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22691       # If it failed, the variable was not from the command line. Ignore it,
22692       # but warn the user (except for BASH, which is always set by the calling BASH).
22693       if test "xSETFILE" != xBASH; then
22694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22695 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22696       fi
22697       # Try to locate tool using the code snippet
22698       for ac_prog in SetFile
22699 do
22700   # Extract the first word of "$ac_prog", so it can be a program name with args.
22701 set dummy $ac_prog; ac_word=$2
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22703 $as_echo_n "checking for $ac_word... " >&6; }
22704 if ${ac_cv_path_SETFILE+:} false; then :
22705   $as_echo_n "(cached) " >&6
22706 else
22707   case $SETFILE in
22708   [\\/]* | ?:[\\/]*)
22709   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22710   ;;
22711   *)
22712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22713 for as_dir in $PATH
22714 do
22715   IFS=$as_save_IFS
22716   test -z "$as_dir" && as_dir=.
22717     for ac_exec_ext in '' $ac_executable_extensions; do
22718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22719     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22721     break 2
22722   fi
22723 done
22724   done
22725 IFS=$as_save_IFS
22726 
22727   ;;
22728 esac
22729 fi
22730 SETFILE=$ac_cv_path_SETFILE
22731 if test -n "$SETFILE"; then
22732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22733 $as_echo "$SETFILE" >&6; }
22734 else
22735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22736 $as_echo "no" >&6; }
22737 fi
22738 
22739 
22740   test -n "$SETFILE" && break
22741 done
22742 
22743     else
22744       # If it succeeded, then it was overridden by the user. We will use it
22745       # for the tool.
22746 
22747       # First remove it from the list of overridden variables, so we can test
22748       # for unknown variables in the end.
22749       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22750 
22751       # Check if we try to supply an empty value
22752       if test "x$SETFILE" = x; then
22753         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22754 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22755         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22756 $as_echo_n "checking for SETFILE... " >&6; }
22757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22758 $as_echo "disabled" >&6; }
22759       else
22760         # Check if the provided tool contains a complete path.
22761         tool_specified="$SETFILE"
22762         tool_basename="${tool_specified##*/}"
22763         if test "x$tool_basename" = "x$tool_specified"; then
22764           # A command without a complete path is provided, search $PATH.
22765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22766 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22767           # Extract the first word of "$tool_basename", so it can be a program name with args.
22768 set dummy $tool_basename; ac_word=$2
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22770 $as_echo_n "checking for $ac_word... " >&6; }
22771 if ${ac_cv_path_SETFILE+:} false; then :
22772   $as_echo_n "(cached) " >&6
22773 else
22774   case $SETFILE in
22775   [\\/]* | ?:[\\/]*)
22776   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22777   ;;
22778   *)
22779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22780 for as_dir in $PATH
22781 do
22782   IFS=$as_save_IFS
22783   test -z "$as_dir" && as_dir=.
22784     for ac_exec_ext in '' $ac_executable_extensions; do
22785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22786     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22788     break 2
22789   fi
22790 done
22791   done
22792 IFS=$as_save_IFS
22793 
22794   ;;
22795 esac
22796 fi
22797 SETFILE=$ac_cv_path_SETFILE
22798 if test -n "$SETFILE"; then
22799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22800 $as_echo "$SETFILE" >&6; }
22801 else
22802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803 $as_echo "no" >&6; }
22804 fi
22805 
22806 
22807           if test "x$SETFILE" = x; then
22808             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22809           fi
22810         else
22811           # Otherwise we believe it is a complete path. Use it as it is.
22812           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22813 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22814           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22815 $as_echo_n "checking for SETFILE... " >&6; }
22816           if test ! -x "$tool_specified"; then
22817             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22818 $as_echo "not found" >&6; }
22819             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22820           fi
22821           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22822 $as_echo "$tool_specified" >&6; }
22823         fi
22824       fi
22825     fi
22826 
22827   fi
22828 
22829 
22830 
22831   if test "x$SETFILE" = x; then
22832     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22833   fi
22834 
22835 
22836   fi
22837 
22838 
22839   # Test if bash supports pipefail.
22840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22841 $as_echo_n "checking if bash supports pipefail... " >&6; }
22842   if ${BASH} -c 'set -o pipefail'; then
22843     BASH_ARGS="$BASH_ARGS -o pipefail"
22844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22845 $as_echo "yes" >&6; }
22846   else
22847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22848 $as_echo "no" >&6; }
22849   fi
22850 
22851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22852 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22853   if ${BASH} -e -c 'true'; then
22854     BASH_ARGS="$BASH_ARGS -e"
22855     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22856 $as_echo "yes" >&6; }
22857   else
22858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22859 $as_echo "no" >&6; }
22860   fi
22861 
22862 
22863 
22864 
22865 # Check if pkg-config is available.
22866 
22867 
22868 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22869         if test -n "$ac_tool_prefix"; then
22870   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22871 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22873 $as_echo_n "checking for $ac_word... " >&6; }
22874 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   case $PKG_CONFIG in
22878   [\\/]* | ?:[\\/]*)
22879   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22880   ;;
22881   *)
22882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22883 for as_dir in $PATH
22884 do
22885   IFS=$as_save_IFS
22886   test -z "$as_dir" && as_dir=.
22887     for ac_exec_ext in '' $ac_executable_extensions; do
22888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22889     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22891     break 2
22892   fi
22893 done
22894   done
22895 IFS=$as_save_IFS
22896 
22897   ;;
22898 esac
22899 fi
22900 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22901 if test -n "$PKG_CONFIG"; then
22902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22903 $as_echo "$PKG_CONFIG" >&6; }
22904 else
22905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22906 $as_echo "no" >&6; }
22907 fi
22908 
22909 
22910 fi
22911 if test -z "$ac_cv_path_PKG_CONFIG"; then
22912   ac_pt_PKG_CONFIG=$PKG_CONFIG
22913   # Extract the first word of "pkg-config", so it can be a program name with args.
22914 set dummy pkg-config; ac_word=$2
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22916 $as_echo_n "checking for $ac_word... " >&6; }
22917 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22918   $as_echo_n "(cached) " >&6
22919 else
22920   case $ac_pt_PKG_CONFIG in
22921   [\\/]* | ?:[\\/]*)
22922   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22923   ;;
22924   *)
22925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22926 for as_dir in $PATH
22927 do
22928   IFS=$as_save_IFS
22929   test -z "$as_dir" && as_dir=.
22930     for ac_exec_ext in '' $ac_executable_extensions; do
22931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22932     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22934     break 2
22935   fi
22936 done
22937   done
22938 IFS=$as_save_IFS
22939 
22940   ;;
22941 esac
22942 fi
22943 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22944 if test -n "$ac_pt_PKG_CONFIG"; then
22945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22946 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22947 else
22948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22949 $as_echo "no" >&6; }
22950 fi
22951 
22952   if test "x$ac_pt_PKG_CONFIG" = x; then
22953     PKG_CONFIG=""
22954   else
22955     case $cross_compiling:$ac_tool_warned in
22956 yes:)
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22959 ac_tool_warned=yes ;;
22960 esac
22961     PKG_CONFIG=$ac_pt_PKG_CONFIG
22962   fi
22963 else
22964   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22965 fi
22966 
22967 fi
22968 if test -n "$PKG_CONFIG"; then
22969         _pkg_min_version=0.9.0
22970         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22971 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22972         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22973                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22974 $as_echo "yes" >&6; }
22975         else
22976                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977 $as_echo "no" >&6; }
22978                 PKG_CONFIG=""
22979         fi
22980 
22981 fi
22982 
22983 # After basic tools have been setup, we can check build os specific details.
22984 
22985   ###############################################################################
22986 
22987   # Note that this is the build platform OS version!
22988 
22989   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22990   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22991   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22992   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22993 
22994 
22995 
22996 
22997 
22998 ###############################################################################
22999 #
23000 # Determine OpenJDK variants, options and version numbers.
23001 #
23002 ###############################################################################
23003 
23004 # We need build & target for this.
23005 
23006 
23007   ###############################################################################
23008   #
23009   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23010   # We always build headless support.
23011   #
23012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23013 $as_echo_n "checking headful support... " >&6; }
23014   # Check whether --enable-headful was given.
23015 if test "${enable_headful+set}" = set; then :
23016   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23017 else
23018   SUPPORT_HEADFUL=yes
23019 fi
23020 
23021 
23022   SUPPORT_HEADLESS=yes
23023   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23024 
23025   if test "x$SUPPORT_HEADFUL" = xyes; then
23026     # We are building both headful and headless.
23027     headful_msg="include support for both headful and headless"
23028   fi
23029 
23030   if test "x$SUPPORT_HEADFUL" = xno; then
23031     # Thus we are building headless only.
23032     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23033     headful_msg="headless only"
23034   fi
23035 
23036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23037 $as_echo "$headful_msg" >&6; }
23038 
23039 
23040 
23041 
23042 
23043   # Control wether Hotspot runs Queens test after build.
23044   # Check whether --enable-hotspot-test-in-build was given.
23045 if test "${enable_hotspot_test_in_build+set}" = set; then :
23046   enableval=$enable_hotspot_test_in_build;
23047 else
23048   enable_hotspot_test_in_build=no
23049 fi
23050 
23051   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23052     TEST_IN_BUILD=true
23053   else
23054     TEST_IN_BUILD=false
23055   fi
23056 
23057 
23058   ###############################################################################
23059   #
23060   # Choose cacerts source file
23061   #
23062 
23063 # Check whether --with-cacerts-file was given.
23064 if test "${with_cacerts_file+set}" = set; then :
23065   withval=$with_cacerts_file;
23066 fi
23067 
23068   if test "x$with_cacerts_file" != x; then
23069     CACERTS_FILE=$with_cacerts_file
23070   fi
23071 
23072 
23073   ###############################################################################
23074   #
23075   # Enable or disable unlimited crypto
23076   #
23077   # Check whether --enable-unlimited-crypto was given.
23078 if test "${enable_unlimited_crypto+set}" = set; then :
23079   enableval=$enable_unlimited_crypto;
23080 else
23081   enable_unlimited_crypto=no
23082 fi
23083 
23084   if test "x$enable_unlimited_crypto" = "xyes"; then
23085     UNLIMITED_CRYPTO=true
23086   else
23087     UNLIMITED_CRYPTO=false
23088   fi
23089 
23090 
23091   ###############################################################################
23092   #
23093   # Enable or disable the elliptic curve crypto implementation
23094   #
23095 
23096 
23097   ###############################################################################
23098   #
23099   # Compress jars
23100   #
23101   COMPRESS_JARS=false
23102 
23103 
23104 
23105 
23106   # Source the version numbers
23107   . $AUTOCONF_DIR/version-numbers
23108 
23109   # Get the settings from parameters
23110 
23111 # Check whether --with-milestone was given.
23112 if test "${with_milestone+set}" = set; then :
23113   withval=$with_milestone;
23114 fi
23115 
23116   if test "x$with_milestone" = xyes; then
23117     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23118   elif test "x$with_milestone" != x; then
23119     MILESTONE="$with_milestone"
23120   fi
23121   if test "x$MILESTONE" = x; then
23122     MILESTONE=internal
23123   fi
23124 
23125 
23126 # Check whether --with-update-version was given.
23127 if test "${with_update_version+set}" = set; then :
23128   withval=$with_update_version;
23129 fi
23130 
23131   if test "x$with_update_version" = xyes; then
23132     as_fn_error $? "Update version must have a value" "$LINENO" 5
23133   elif test "x$with_update_version" != x; then
23134     JDK_UPDATE_VERSION="$with_update_version"
23135     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23136     # to a bug in expr (which reduces it to just X). To work around this, we
23137     # always add a 0 to one digit update versions.
23138     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23139       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23140     fi
23141   fi
23142 
23143 
23144 # Check whether --with-user-release-suffix was given.
23145 if test "${with_user_release_suffix+set}" = set; then :
23146   withval=$with_user_release_suffix;
23147 fi
23148 
23149   if test "x$with_user_release_suffix" = xyes; then
23150     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23151   elif test "x$with_user_release_suffix" != x; then
23152     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23153   fi
23154 
23155 
23156 # Check whether --with-build-number was given.
23157 if test "${with_build_number+set}" = set; then :
23158   withval=$with_build_number;
23159 fi
23160 
23161   if test "x$with_build_number" = xyes; then
23162     as_fn_error $? "Build number must have a value" "$LINENO" 5
23163   elif test "x$with_build_number" != x; then
23164     JDK_BUILD_NUMBER="$with_build_number"
23165   fi
23166   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23167   if test "x$JDK_BUILD_NUMBER" = x; then
23168     JDK_BUILD_NUMBER=b00
23169     if test "x$USER_RELEASE_SUFFIX" = x; then
23170       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23171       # Avoid [:alnum:] since it depends on the locale.
23172       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23173       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23174     fi
23175   fi
23176 
23177   # Now set the JDK version, milestone, build number etc.
23178 
23179 
23180 
23181 
23182 
23183 
23184 
23185 
23186 
23187 
23188 
23189 
23190 
23191 
23192 
23193 
23194 # Check whether --with-copyright-year was given.
23195 if test "${with_copyright_year+set}" = set; then :
23196   withval=$with_copyright_year;
23197 fi
23198 
23199   if test "x$with_copyright_year" = xyes; then
23200     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23201   elif test "x$with_copyright_year" != x; then
23202     COPYRIGHT_YEAR="$with_copyright_year"
23203   else
23204     COPYRIGHT_YEAR=`date +'%Y'`
23205   fi
23206 
23207 
23208   if test "x$JDK_UPDATE_VERSION" != x; then
23209     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23210   else
23211     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23212   fi
23213 
23214 
23215   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23216 
23217 
23218 
23219 ###############################################################################
23220 #
23221 # Setup BootJDK, used to bootstrap the build.
23222 #
23223 ###############################################################################
23224 
23225 
23226   BOOT_JDK_FOUND=no
23227 
23228 # Check whether --with-boot-jdk was given.
23229 if test "${with_boot_jdk+set}" = set; then :
23230   withval=$with_boot_jdk;
23231 fi
23232 
23233 
23234   # We look for the Boot JDK through various means, going from more certain to
23235   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23236   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23237   # must check if this is indeed valid; otherwise we'll continue looking.
23238 
23239   # Test: Is bootjdk explicitely set by command line arguments?
23240 
23241   if test "x$BOOT_JDK_FOUND" = xno; then
23242     # Now execute the test
23243 
23244   if test "x$with_boot_jdk" != x; then
23245     BOOT_JDK=$with_boot_jdk
23246     BOOT_JDK_FOUND=maybe
23247     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23248 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23249   fi
23250 
23251 
23252     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23253     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23254       # Do we have a bin/java?
23255       if test ! -x "$BOOT_JDK/bin/java"; then
23256         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23258         BOOT_JDK_FOUND=no
23259       else
23260         # Do we have a bin/javac?
23261         if test ! -x "$BOOT_JDK/bin/javac"; then
23262           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23263 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23264           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23265 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23266           BOOT_JDK_FOUND=no
23267         else
23268           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23269           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23270 
23271           # Extra M4 quote needed to protect [] in grep expression.
23272           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23273           if test "x$FOUND_CORRECT_VERSION" = x; then
23274             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23276             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23277 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23278             BOOT_JDK_FOUND=no
23279           else
23280             # We're done! :-)
23281             BOOT_JDK_FOUND=yes
23282 
23283   # Only process if variable expands to non-empty
23284 
23285   if test "x$BOOT_JDK" != x; then
23286     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23287 
23288   # Input might be given as Windows format, start by converting to
23289   # unix format.
23290   path="$BOOT_JDK"
23291   new_path=`$CYGPATH -u "$path"`
23292 
23293   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23294   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23295   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23296   # "foo.exe" is OK but "foo" is an error.
23297   #
23298   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23299   # It is also a way to make sure we got the proper file name for the real test later on.
23300   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23301   if test "x$test_shortpath" = x; then
23302     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23303 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23304     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23305   fi
23306 
23307   # Call helper function which possibly converts this using DOS-style short mode.
23308   # If so, the updated path is stored in $new_path.
23309 
23310   input_path="$new_path"
23311   # Check if we need to convert this using DOS-style short mode. If the path
23312   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23313   # take no chances and rewrite it.
23314   # Note: m4 eats our [], so we need to use [ and ] instead.
23315   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23316   if test "x$has_forbidden_chars" != x; then
23317     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23318     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23319     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23320     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23321       # Going to short mode and back again did indeed matter. Since short mode is
23322       # case insensitive, let's make it lowercase to improve readability.
23323       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23324       # Now convert it back to Unix-style (cygpath)
23325       input_path=`$CYGPATH -u "$shortmode_path"`
23326       new_path="$input_path"
23327     fi
23328   fi
23329 
23330   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23331   if test "x$test_cygdrive_prefix" = x; then
23332     # As a simple fix, exclude /usr/bin since it's not a real path.
23333     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23334       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23335       # a path prefixed by /cygdrive for fixpath to work.
23336       new_path="$CYGWIN_ROOT_PATH$input_path"
23337     fi
23338   fi
23339 
23340 
23341   if test "x$path" != "x$new_path"; then
23342     BOOT_JDK="$new_path"
23343     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23344 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23345   fi
23346 
23347     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23348 
23349   path="$BOOT_JDK"
23350   has_colon=`$ECHO $path | $GREP ^.:`
23351   new_path="$path"
23352   if test "x$has_colon" = x; then
23353     # Not in mixed or Windows style, start by that.
23354     new_path=`cmd //c echo $path`
23355   fi
23356 
23357 
23358   input_path="$new_path"
23359   # Check if we need to convert this using DOS-style short mode. If the path
23360   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23361   # take no chances and rewrite it.
23362   # Note: m4 eats our [], so we need to use [ and ] instead.
23363   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23364   if test "x$has_forbidden_chars" != x; then
23365     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23366     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23367   fi
23368 
23369 
23370   windows_path="$new_path"
23371   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23372     unix_path=`$CYGPATH -u "$windows_path"`
23373     new_path="$unix_path"
23374   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23375     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23376     new_path="$unix_path"
23377   fi
23378 
23379   if test "x$path" != "x$new_path"; then
23380     BOOT_JDK="$new_path"
23381     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23382 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23383   fi
23384 
23385   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23386   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23387 
23388     else
23389       # We're on a unix platform. Hooray! :)
23390       path="$BOOT_JDK"
23391       has_space=`$ECHO "$path" | $GREP " "`
23392       if test "x$has_space" != x; then
23393         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23394 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23395         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23396       fi
23397 
23398       # Use eval to expand a potential ~
23399       eval path="$path"
23400       if test ! -f "$path" && test ! -d "$path"; then
23401         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23402       fi
23403 
23404       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23405     fi
23406   fi
23407 
23408             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23409 $as_echo_n "checking for Boot JDK... " >&6; }
23410             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23411 $as_echo "$BOOT_JDK" >&6; }
23412             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23413 $as_echo_n "checking Boot JDK version... " >&6; }
23414             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23415             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23416 $as_echo "$BOOT_JDK_VERSION" >&6; }
23417           fi # end check jdk version
23418         fi # end check javac
23419       fi # end check java
23420     fi # end check boot jdk found
23421   fi
23422 
23423   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23424     # Having specified an argument which is incorrect will produce an instant failure;
23425     # we should not go on looking
23426     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23427   fi
23428 
23429   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23430 
23431   if test "x$BOOT_JDK_FOUND" = xno; then
23432     # Now execute the test
23433 
23434   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23435     # First check at user selected default
23436 
23437   if test "x$BOOT_JDK_FOUND" = xno; then
23438     # Now execute the test
23439 
23440   if test -x /usr/libexec/java_home; then
23441     BOOT_JDK=`/usr/libexec/java_home `
23442     BOOT_JDK_FOUND=maybe
23443     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23444 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23445   fi
23446 
23447 
23448     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23449     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23450       # Do we have a bin/java?
23451       if test ! -x "$BOOT_JDK/bin/java"; then
23452         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23453 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23454         BOOT_JDK_FOUND=no
23455       else
23456         # Do we have a bin/javac?
23457         if test ! -x "$BOOT_JDK/bin/javac"; then
23458           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23459 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23460           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23461 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23462           BOOT_JDK_FOUND=no
23463         else
23464           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23465           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23466 
23467           # Extra M4 quote needed to protect [] in grep expression.
23468           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23469           if test "x$FOUND_CORRECT_VERSION" = x; then
23470             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23472             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23473 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23474             BOOT_JDK_FOUND=no
23475           else
23476             # We're done! :-)
23477             BOOT_JDK_FOUND=yes
23478 
23479   # Only process if variable expands to non-empty
23480 
23481   if test "x$BOOT_JDK" != x; then
23482     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23483 
23484   # Input might be given as Windows format, start by converting to
23485   # unix format.
23486   path="$BOOT_JDK"
23487   new_path=`$CYGPATH -u "$path"`
23488 
23489   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23490   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23491   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23492   # "foo.exe" is OK but "foo" is an error.
23493   #
23494   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23495   # It is also a way to make sure we got the proper file name for the real test later on.
23496   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23497   if test "x$test_shortpath" = x; then
23498     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23499 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23500     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23501   fi
23502 
23503   # Call helper function which possibly converts this using DOS-style short mode.
23504   # If so, the updated path is stored in $new_path.
23505 
23506   input_path="$new_path"
23507   # Check if we need to convert this using DOS-style short mode. If the path
23508   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23509   # take no chances and rewrite it.
23510   # Note: m4 eats our [], so we need to use [ and ] instead.
23511   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23512   if test "x$has_forbidden_chars" != x; then
23513     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23514     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23515     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23516     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23517       # Going to short mode and back again did indeed matter. Since short mode is
23518       # case insensitive, let's make it lowercase to improve readability.
23519       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23520       # Now convert it back to Unix-style (cygpath)
23521       input_path=`$CYGPATH -u "$shortmode_path"`
23522       new_path="$input_path"
23523     fi
23524   fi
23525 
23526   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23527   if test "x$test_cygdrive_prefix" = x; then
23528     # As a simple fix, exclude /usr/bin since it's not a real path.
23529     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23530       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23531       # a path prefixed by /cygdrive for fixpath to work.
23532       new_path="$CYGWIN_ROOT_PATH$input_path"
23533     fi
23534   fi
23535 
23536 
23537   if test "x$path" != "x$new_path"; then
23538     BOOT_JDK="$new_path"
23539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23541   fi
23542 
23543     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23544 
23545   path="$BOOT_JDK"
23546   has_colon=`$ECHO $path | $GREP ^.:`
23547   new_path="$path"
23548   if test "x$has_colon" = x; then
23549     # Not in mixed or Windows style, start by that.
23550     new_path=`cmd //c echo $path`
23551   fi
23552 
23553 
23554   input_path="$new_path"
23555   # Check if we need to convert this using DOS-style short mode. If the path
23556   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23557   # take no chances and rewrite it.
23558   # Note: m4 eats our [], so we need to use [ and ] instead.
23559   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23560   if test "x$has_forbidden_chars" != x; then
23561     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23562     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23563   fi
23564 
23565 
23566   windows_path="$new_path"
23567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23568     unix_path=`$CYGPATH -u "$windows_path"`
23569     new_path="$unix_path"
23570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23571     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23572     new_path="$unix_path"
23573   fi
23574 
23575   if test "x$path" != "x$new_path"; then
23576     BOOT_JDK="$new_path"
23577     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23578 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23579   fi
23580 
23581   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23582   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23583 
23584     else
23585       # We're on a unix platform. Hooray! :)
23586       path="$BOOT_JDK"
23587       has_space=`$ECHO "$path" | $GREP " "`
23588       if test "x$has_space" != x; then
23589         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23590 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23591         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23592       fi
23593 
23594       # Use eval to expand a potential ~
23595       eval path="$path"
23596       if test ! -f "$path" && test ! -d "$path"; then
23597         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23598       fi
23599 
23600       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23601     fi
23602   fi
23603 
23604             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23605 $as_echo_n "checking for Boot JDK... " >&6; }
23606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23607 $as_echo "$BOOT_JDK" >&6; }
23608             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23609 $as_echo_n "checking Boot JDK version... " >&6; }
23610             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23612 $as_echo "$BOOT_JDK_VERSION" >&6; }
23613           fi # end check jdk version
23614         fi # end check javac
23615       fi # end check java
23616     fi # end check boot jdk found
23617   fi
23618 
23619     # If that did not work out (e.g. too old), try explicit versions instead
23620 
23621   if test "x$BOOT_JDK_FOUND" = xno; then
23622     # Now execute the test
23623 
23624   if test -x /usr/libexec/java_home; then
23625     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23626     BOOT_JDK_FOUND=maybe
23627     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23628 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23629   fi
23630 
23631 
23632     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23633     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23634       # Do we have a bin/java?
23635       if test ! -x "$BOOT_JDK/bin/java"; then
23636         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23638         BOOT_JDK_FOUND=no
23639       else
23640         # Do we have a bin/javac?
23641         if test ! -x "$BOOT_JDK/bin/javac"; then
23642           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23644           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23645 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23646           BOOT_JDK_FOUND=no
23647         else
23648           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23649           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23650 
23651           # Extra M4 quote needed to protect [] in grep expression.
23652           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23653           if test "x$FOUND_CORRECT_VERSION" = x; then
23654             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23656             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23657 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23658             BOOT_JDK_FOUND=no
23659           else
23660             # We're done! :-)
23661             BOOT_JDK_FOUND=yes
23662 
23663   # Only process if variable expands to non-empty
23664 
23665   if test "x$BOOT_JDK" != x; then
23666     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23667 
23668   # Input might be given as Windows format, start by converting to
23669   # unix format.
23670   path="$BOOT_JDK"
23671   new_path=`$CYGPATH -u "$path"`
23672 
23673   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23674   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23675   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23676   # "foo.exe" is OK but "foo" is an error.
23677   #
23678   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23679   # It is also a way to make sure we got the proper file name for the real test later on.
23680   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23681   if test "x$test_shortpath" = x; then
23682     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23683 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23684     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23685   fi
23686 
23687   # Call helper function which possibly converts this using DOS-style short mode.
23688   # If so, the updated path is stored in $new_path.
23689 
23690   input_path="$new_path"
23691   # Check if we need to convert this using DOS-style short mode. If the path
23692   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23693   # take no chances and rewrite it.
23694   # Note: m4 eats our [], so we need to use [ and ] instead.
23695   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23696   if test "x$has_forbidden_chars" != x; then
23697     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23698     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23699     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23700     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23701       # Going to short mode and back again did indeed matter. Since short mode is
23702       # case insensitive, let's make it lowercase to improve readability.
23703       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23704       # Now convert it back to Unix-style (cygpath)
23705       input_path=`$CYGPATH -u "$shortmode_path"`
23706       new_path="$input_path"
23707     fi
23708   fi
23709 
23710   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23711   if test "x$test_cygdrive_prefix" = x; then
23712     # As a simple fix, exclude /usr/bin since it's not a real path.
23713     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23714       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23715       # a path prefixed by /cygdrive for fixpath to work.
23716       new_path="$CYGWIN_ROOT_PATH$input_path"
23717     fi
23718   fi
23719 
23720 
23721   if test "x$path" != "x$new_path"; then
23722     BOOT_JDK="$new_path"
23723     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23724 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23725   fi
23726 
23727     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23728 
23729   path="$BOOT_JDK"
23730   has_colon=`$ECHO $path | $GREP ^.:`
23731   new_path="$path"
23732   if test "x$has_colon" = x; then
23733     # Not in mixed or Windows style, start by that.
23734     new_path=`cmd //c echo $path`
23735   fi
23736 
23737 
23738   input_path="$new_path"
23739   # Check if we need to convert this using DOS-style short mode. If the path
23740   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23741   # take no chances and rewrite it.
23742   # Note: m4 eats our [], so we need to use [ and ] instead.
23743   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23744   if test "x$has_forbidden_chars" != x; then
23745     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23746     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23747   fi
23748 
23749 
23750   windows_path="$new_path"
23751   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23752     unix_path=`$CYGPATH -u "$windows_path"`
23753     new_path="$unix_path"
23754   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23755     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23756     new_path="$unix_path"
23757   fi
23758 
23759   if test "x$path" != "x$new_path"; then
23760     BOOT_JDK="$new_path"
23761     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23763   fi
23764 
23765   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23766   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23767 
23768     else
23769       # We're on a unix platform. Hooray! :)
23770       path="$BOOT_JDK"
23771       has_space=`$ECHO "$path" | $GREP " "`
23772       if test "x$has_space" != x; then
23773         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23775         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23776       fi
23777 
23778       # Use eval to expand a potential ~
23779       eval path="$path"
23780       if test ! -f "$path" && test ! -d "$path"; then
23781         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23782       fi
23783 
23784       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23785     fi
23786   fi
23787 
23788             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23789 $as_echo_n "checking for Boot JDK... " >&6; }
23790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23791 $as_echo "$BOOT_JDK" >&6; }
23792             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23793 $as_echo_n "checking Boot JDK version... " >&6; }
23794             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23795             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23796 $as_echo "$BOOT_JDK_VERSION" >&6; }
23797           fi # end check jdk version
23798         fi # end check javac
23799       fi # end check java
23800     fi # end check boot jdk found
23801   fi
23802 
23803 
23804   if test "x$BOOT_JDK_FOUND" = xno; then
23805     # Now execute the test
23806 
23807   if test -x /usr/libexec/java_home; then
23808     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23809     BOOT_JDK_FOUND=maybe
23810     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23811 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23812   fi
23813 
23814 
23815     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23816     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23817       # Do we have a bin/java?
23818       if test ! -x "$BOOT_JDK/bin/java"; then
23819         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23821         BOOT_JDK_FOUND=no
23822       else
23823         # Do we have a bin/javac?
23824         if test ! -x "$BOOT_JDK/bin/javac"; then
23825           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23826 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23827           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23828 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23829           BOOT_JDK_FOUND=no
23830         else
23831           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23832           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23833 
23834           # Extra M4 quote needed to protect [] in grep expression.
23835           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23836           if test "x$FOUND_CORRECT_VERSION" = x; then
23837             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23838 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23839             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23840 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23841             BOOT_JDK_FOUND=no
23842           else
23843             # We're done! :-)
23844             BOOT_JDK_FOUND=yes
23845 
23846   # Only process if variable expands to non-empty
23847 
23848   if test "x$BOOT_JDK" != x; then
23849     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23850 
23851   # Input might be given as Windows format, start by converting to
23852   # unix format.
23853   path="$BOOT_JDK"
23854   new_path=`$CYGPATH -u "$path"`
23855 
23856   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23857   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23858   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23859   # "foo.exe" is OK but "foo" is an error.
23860   #
23861   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23862   # It is also a way to make sure we got the proper file name for the real test later on.
23863   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23864   if test "x$test_shortpath" = x; then
23865     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23866 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23867     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23868   fi
23869 
23870   # Call helper function which possibly converts this using DOS-style short mode.
23871   # If so, the updated path is stored in $new_path.
23872 
23873   input_path="$new_path"
23874   # Check if we need to convert this using DOS-style short mode. If the path
23875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23876   # take no chances and rewrite it.
23877   # Note: m4 eats our [], so we need to use [ and ] instead.
23878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23879   if test "x$has_forbidden_chars" != x; then
23880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23881     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23882     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23883     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23884       # Going to short mode and back again did indeed matter. Since short mode is
23885       # case insensitive, let's make it lowercase to improve readability.
23886       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23887       # Now convert it back to Unix-style (cygpath)
23888       input_path=`$CYGPATH -u "$shortmode_path"`
23889       new_path="$input_path"
23890     fi
23891   fi
23892 
23893   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23894   if test "x$test_cygdrive_prefix" = x; then
23895     # As a simple fix, exclude /usr/bin since it's not a real path.
23896     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23897       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23898       # a path prefixed by /cygdrive for fixpath to work.
23899       new_path="$CYGWIN_ROOT_PATH$input_path"
23900     fi
23901   fi
23902 
23903 
23904   if test "x$path" != "x$new_path"; then
23905     BOOT_JDK="$new_path"
23906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23908   fi
23909 
23910     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23911 
23912   path="$BOOT_JDK"
23913   has_colon=`$ECHO $path | $GREP ^.:`
23914   new_path="$path"
23915   if test "x$has_colon" = x; then
23916     # Not in mixed or Windows style, start by that.
23917     new_path=`cmd //c echo $path`
23918   fi
23919 
23920 
23921   input_path="$new_path"
23922   # Check if we need to convert this using DOS-style short mode. If the path
23923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23924   # take no chances and rewrite it.
23925   # Note: m4 eats our [], so we need to use [ and ] instead.
23926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23927   if test "x$has_forbidden_chars" != x; then
23928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23929     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23930   fi
23931 
23932 
23933   windows_path="$new_path"
23934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23935     unix_path=`$CYGPATH -u "$windows_path"`
23936     new_path="$unix_path"
23937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23939     new_path="$unix_path"
23940   fi
23941 
23942   if test "x$path" != "x$new_path"; then
23943     BOOT_JDK="$new_path"
23944     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23946   fi
23947 
23948   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23949   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23950 
23951     else
23952       # We're on a unix platform. Hooray! :)
23953       path="$BOOT_JDK"
23954       has_space=`$ECHO "$path" | $GREP " "`
23955       if test "x$has_space" != x; then
23956         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23958         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23959       fi
23960 
23961       # Use eval to expand a potential ~
23962       eval path="$path"
23963       if test ! -f "$path" && test ! -d "$path"; then
23964         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23965       fi
23966 
23967       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23968     fi
23969   fi
23970 
23971             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23972 $as_echo_n "checking for Boot JDK... " >&6; }
23973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23974 $as_echo "$BOOT_JDK" >&6; }
23975             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23976 $as_echo_n "checking Boot JDK version... " >&6; }
23977             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23978             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23979 $as_echo "$BOOT_JDK_VERSION" >&6; }
23980           fi # end check jdk version
23981         fi # end check javac
23982       fi # end check java
23983     fi # end check boot jdk found
23984   fi
23985 
23986 
23987   if test "x$BOOT_JDK_FOUND" = xno; then
23988     # Now execute the test
23989 
23990   if test -x /usr/libexec/java_home; then
23991     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23992     BOOT_JDK_FOUND=maybe
23993     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23994 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23995   fi
23996 
23997 
23998     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23999     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24000       # Do we have a bin/java?
24001       if test ! -x "$BOOT_JDK/bin/java"; then
24002         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24003 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24004         BOOT_JDK_FOUND=no
24005       else
24006         # Do we have a bin/javac?
24007         if test ! -x "$BOOT_JDK/bin/javac"; then
24008           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24010           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24011 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24012           BOOT_JDK_FOUND=no
24013         else
24014           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24015           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24016 
24017           # Extra M4 quote needed to protect [] in grep expression.
24018           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24019           if test "x$FOUND_CORRECT_VERSION" = x; then
24020             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24021 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24022             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24023 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24024             BOOT_JDK_FOUND=no
24025           else
24026             # We're done! :-)
24027             BOOT_JDK_FOUND=yes
24028 
24029   # Only process if variable expands to non-empty
24030 
24031   if test "x$BOOT_JDK" != x; then
24032     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24033 
24034   # Input might be given as Windows format, start by converting to
24035   # unix format.
24036   path="$BOOT_JDK"
24037   new_path=`$CYGPATH -u "$path"`
24038 
24039   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24040   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24041   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24042   # "foo.exe" is OK but "foo" is an error.
24043   #
24044   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24045   # It is also a way to make sure we got the proper file name for the real test later on.
24046   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24047   if test "x$test_shortpath" = x; then
24048     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24049 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24050     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24051   fi
24052 
24053   # Call helper function which possibly converts this using DOS-style short mode.
24054   # If so, the updated path is stored in $new_path.
24055 
24056   input_path="$new_path"
24057   # Check if we need to convert this using DOS-style short mode. If the path
24058   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24059   # take no chances and rewrite it.
24060   # Note: m4 eats our [], so we need to use [ and ] instead.
24061   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24062   if test "x$has_forbidden_chars" != x; then
24063     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24064     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24065     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24066     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24067       # Going to short mode and back again did indeed matter. Since short mode is
24068       # case insensitive, let's make it lowercase to improve readability.
24069       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24070       # Now convert it back to Unix-style (cygpath)
24071       input_path=`$CYGPATH -u "$shortmode_path"`
24072       new_path="$input_path"
24073     fi
24074   fi
24075 
24076   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24077   if test "x$test_cygdrive_prefix" = x; then
24078     # As a simple fix, exclude /usr/bin since it's not a real path.
24079     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24080       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24081       # a path prefixed by /cygdrive for fixpath to work.
24082       new_path="$CYGWIN_ROOT_PATH$input_path"
24083     fi
24084   fi
24085 
24086 
24087   if test "x$path" != "x$new_path"; then
24088     BOOT_JDK="$new_path"
24089     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24090 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24091   fi
24092 
24093     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24094 
24095   path="$BOOT_JDK"
24096   has_colon=`$ECHO $path | $GREP ^.:`
24097   new_path="$path"
24098   if test "x$has_colon" = x; then
24099     # Not in mixed or Windows style, start by that.
24100     new_path=`cmd //c echo $path`
24101   fi
24102 
24103 
24104   input_path="$new_path"
24105   # Check if we need to convert this using DOS-style short mode. If the path
24106   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24107   # take no chances and rewrite it.
24108   # Note: m4 eats our [], so we need to use [ and ] instead.
24109   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24110   if test "x$has_forbidden_chars" != x; then
24111     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24112     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24113   fi
24114 
24115 
24116   windows_path="$new_path"
24117   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24118     unix_path=`$CYGPATH -u "$windows_path"`
24119     new_path="$unix_path"
24120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24121     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24122     new_path="$unix_path"
24123   fi
24124 
24125   if test "x$path" != "x$new_path"; then
24126     BOOT_JDK="$new_path"
24127     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24128 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24129   fi
24130 
24131   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24132   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24133 
24134     else
24135       # We're on a unix platform. Hooray! :)
24136       path="$BOOT_JDK"
24137       has_space=`$ECHO "$path" | $GREP " "`
24138       if test "x$has_space" != x; then
24139         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24140 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24141         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24142       fi
24143 
24144       # Use eval to expand a potential ~
24145       eval path="$path"
24146       if test ! -f "$path" && test ! -d "$path"; then
24147         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24148       fi
24149 
24150       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24151     fi
24152   fi
24153 
24154             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24155 $as_echo_n "checking for Boot JDK... " >&6; }
24156             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24157 $as_echo "$BOOT_JDK" >&6; }
24158             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24159 $as_echo_n "checking Boot JDK version... " >&6; }
24160             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24161             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24162 $as_echo "$BOOT_JDK_VERSION" >&6; }
24163           fi # end check jdk version
24164         fi # end check javac
24165       fi # end check java
24166     fi # end check boot jdk found
24167   fi
24168 
24169   fi
24170 
24171 
24172     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24173     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24174       # Do we have a bin/java?
24175       if test ! -x "$BOOT_JDK/bin/java"; then
24176         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24177 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24178         BOOT_JDK_FOUND=no
24179       else
24180         # Do we have a bin/javac?
24181         if test ! -x "$BOOT_JDK/bin/javac"; then
24182           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24184           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24185 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24186           BOOT_JDK_FOUND=no
24187         else
24188           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24189           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24190 
24191           # Extra M4 quote needed to protect [] in grep expression.
24192           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24193           if test "x$FOUND_CORRECT_VERSION" = x; then
24194             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24196             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24197 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24198             BOOT_JDK_FOUND=no
24199           else
24200             # We're done! :-)
24201             BOOT_JDK_FOUND=yes
24202 
24203   # Only process if variable expands to non-empty
24204 
24205   if test "x$BOOT_JDK" != x; then
24206     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24207 
24208   # Input might be given as Windows format, start by converting to
24209   # unix format.
24210   path="$BOOT_JDK"
24211   new_path=`$CYGPATH -u "$path"`
24212 
24213   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24214   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24215   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24216   # "foo.exe" is OK but "foo" is an error.
24217   #
24218   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24219   # It is also a way to make sure we got the proper file name for the real test later on.
24220   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24221   if test "x$test_shortpath" = x; then
24222     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24223 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24224     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24225   fi
24226 
24227   # Call helper function which possibly converts this using DOS-style short mode.
24228   # If so, the updated path is stored in $new_path.
24229 
24230   input_path="$new_path"
24231   # Check if we need to convert this using DOS-style short mode. If the path
24232   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24233   # take no chances and rewrite it.
24234   # Note: m4 eats our [], so we need to use [ and ] instead.
24235   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24236   if test "x$has_forbidden_chars" != x; then
24237     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24238     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24239     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24240     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24241       # Going to short mode and back again did indeed matter. Since short mode is
24242       # case insensitive, let's make it lowercase to improve readability.
24243       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24244       # Now convert it back to Unix-style (cygpath)
24245       input_path=`$CYGPATH -u "$shortmode_path"`
24246       new_path="$input_path"
24247     fi
24248   fi
24249 
24250   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24251   if test "x$test_cygdrive_prefix" = x; then
24252     # As a simple fix, exclude /usr/bin since it's not a real path.
24253     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24254       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24255       # a path prefixed by /cygdrive for fixpath to work.
24256       new_path="$CYGWIN_ROOT_PATH$input_path"
24257     fi
24258   fi
24259 
24260 
24261   if test "x$path" != "x$new_path"; then
24262     BOOT_JDK="$new_path"
24263     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24264 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24265   fi
24266 
24267     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24268 
24269   path="$BOOT_JDK"
24270   has_colon=`$ECHO $path | $GREP ^.:`
24271   new_path="$path"
24272   if test "x$has_colon" = x; then
24273     # Not in mixed or Windows style, start by that.
24274     new_path=`cmd //c echo $path`
24275   fi
24276 
24277 
24278   input_path="$new_path"
24279   # Check if we need to convert this using DOS-style short mode. If the path
24280   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24281   # take no chances and rewrite it.
24282   # Note: m4 eats our [], so we need to use [ and ] instead.
24283   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24284   if test "x$has_forbidden_chars" != x; then
24285     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24286     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24287   fi
24288 
24289 
24290   windows_path="$new_path"
24291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24292     unix_path=`$CYGPATH -u "$windows_path"`
24293     new_path="$unix_path"
24294   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24295     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24296     new_path="$unix_path"
24297   fi
24298 
24299   if test "x$path" != "x$new_path"; then
24300     BOOT_JDK="$new_path"
24301     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24302 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24303   fi
24304 
24305   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24306   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24307 
24308     else
24309       # We're on a unix platform. Hooray! :)
24310       path="$BOOT_JDK"
24311       has_space=`$ECHO "$path" | $GREP " "`
24312       if test "x$has_space" != x; then
24313         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24314 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24315         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24316       fi
24317 
24318       # Use eval to expand a potential ~
24319       eval path="$path"
24320       if test ! -f "$path" && test ! -d "$path"; then
24321         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24322       fi
24323 
24324       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24325     fi
24326   fi
24327 
24328             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24329 $as_echo_n "checking for Boot JDK... " >&6; }
24330             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24331 $as_echo "$BOOT_JDK" >&6; }
24332             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24333 $as_echo_n "checking Boot JDK version... " >&6; }
24334             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24335             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24336 $as_echo "$BOOT_JDK_VERSION" >&6; }
24337           fi # end check jdk version
24338         fi # end check javac
24339       fi # end check java
24340     fi # end check boot jdk found
24341   fi
24342 
24343 
24344   # Test: Is $JAVA_HOME set?
24345 
24346   if test "x$BOOT_JDK_FOUND" = xno; then
24347     # Now execute the test
24348 
24349   if test "x$JAVA_HOME" != x; then
24350     JAVA_HOME_PROCESSED="$JAVA_HOME"
24351 
24352   # Only process if variable expands to non-empty
24353 
24354   if test "x$JAVA_HOME_PROCESSED" != x; then
24355     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24356 
24357   # Input might be given as Windows format, start by converting to
24358   # unix format.
24359   path="$JAVA_HOME_PROCESSED"
24360   new_path=`$CYGPATH -u "$path"`
24361 
24362   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24363   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24364   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24365   # "foo.exe" is OK but "foo" is an error.
24366   #
24367   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24368   # It is also a way to make sure we got the proper file name for the real test later on.
24369   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24370   if test "x$test_shortpath" = x; then
24371     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24372 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24373     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24374   fi
24375 
24376   # Call helper function which possibly converts this using DOS-style short mode.
24377   # If so, the updated path is stored in $new_path.
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     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24388     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24389     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24390       # Going to short mode and back again did indeed matter. Since short mode is
24391       # case insensitive, let's make it lowercase to improve readability.
24392       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24393       # Now convert it back to Unix-style (cygpath)
24394       input_path=`$CYGPATH -u "$shortmode_path"`
24395       new_path="$input_path"
24396     fi
24397   fi
24398 
24399   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24400   if test "x$test_cygdrive_prefix" = x; then
24401     # As a simple fix, exclude /usr/bin since it's not a real path.
24402     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24403       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24404       # a path prefixed by /cygdrive for fixpath to work.
24405       new_path="$CYGWIN_ROOT_PATH$input_path"
24406     fi
24407   fi
24408 
24409 
24410   if test "x$path" != "x$new_path"; then
24411     JAVA_HOME_PROCESSED="$new_path"
24412     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24413 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24414   fi
24415 
24416     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24417 
24418   path="$JAVA_HOME_PROCESSED"
24419   has_colon=`$ECHO $path | $GREP ^.:`
24420   new_path="$path"
24421   if test "x$has_colon" = x; then
24422     # Not in mixed or Windows style, start by that.
24423     new_path=`cmd //c echo $path`
24424   fi
24425 
24426 
24427   input_path="$new_path"
24428   # Check if we need to convert this using DOS-style short mode. If the path
24429   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24430   # take no chances and rewrite it.
24431   # Note: m4 eats our [], so we need to use [ and ] instead.
24432   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24433   if test "x$has_forbidden_chars" != x; then
24434     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24435     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24436   fi
24437 
24438 
24439   windows_path="$new_path"
24440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24441     unix_path=`$CYGPATH -u "$windows_path"`
24442     new_path="$unix_path"
24443   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24444     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24445     new_path="$unix_path"
24446   fi
24447 
24448   if test "x$path" != "x$new_path"; then
24449     JAVA_HOME_PROCESSED="$new_path"
24450     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24451 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24452   fi
24453 
24454   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24455   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24456 
24457     else
24458       # We're on a unix platform. Hooray! :)
24459       path="$JAVA_HOME_PROCESSED"
24460       has_space=`$ECHO "$path" | $GREP " "`
24461       if test "x$has_space" != x; then
24462         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24463 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24464         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24465       fi
24466 
24467       # Use eval to expand a potential ~
24468       eval path="$path"
24469       if test ! -f "$path" && test ! -d "$path"; then
24470         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24471       fi
24472 
24473       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24474     fi
24475   fi
24476 
24477     if test ! -d "$JAVA_HOME_PROCESSED"; then
24478       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24479 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24480     else
24481       # Aha, the user has set a JAVA_HOME
24482       # let us use that as the Boot JDK.
24483       BOOT_JDK="$JAVA_HOME_PROCESSED"
24484       BOOT_JDK_FOUND=maybe
24485       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24486 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24487     fi
24488   fi
24489 
24490 
24491     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24492     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24493       # Do we have a bin/java?
24494       if test ! -x "$BOOT_JDK/bin/java"; then
24495         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24496 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24497         BOOT_JDK_FOUND=no
24498       else
24499         # Do we have a bin/javac?
24500         if test ! -x "$BOOT_JDK/bin/javac"; then
24501           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24502 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24503           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24504 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24505           BOOT_JDK_FOUND=no
24506         else
24507           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24508           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24509 
24510           # Extra M4 quote needed to protect [] in grep expression.
24511           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24512           if test "x$FOUND_CORRECT_VERSION" = x; then
24513             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24515             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24516 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24517             BOOT_JDK_FOUND=no
24518           else
24519             # We're done! :-)
24520             BOOT_JDK_FOUND=yes
24521 
24522   # Only process if variable expands to non-empty
24523 
24524   if test "x$BOOT_JDK" != x; then
24525     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24526 
24527   # Input might be given as Windows format, start by converting to
24528   # unix format.
24529   path="$BOOT_JDK"
24530   new_path=`$CYGPATH -u "$path"`
24531 
24532   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24533   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24534   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24535   # "foo.exe" is OK but "foo" is an error.
24536   #
24537   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24538   # It is also a way to make sure we got the proper file name for the real test later on.
24539   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24540   if test "x$test_shortpath" = x; then
24541     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24542 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24543     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24544   fi
24545 
24546   # Call helper function which possibly converts this using DOS-style short mode.
24547   # If so, the updated path is stored in $new_path.
24548 
24549   input_path="$new_path"
24550   # Check if we need to convert this using DOS-style short mode. If the path
24551   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24552   # take no chances and rewrite it.
24553   # Note: m4 eats our [], so we need to use [ and ] instead.
24554   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24555   if test "x$has_forbidden_chars" != x; then
24556     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24557     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24558     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24559     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24560       # Going to short mode and back again did indeed matter. Since short mode is
24561       # case insensitive, let's make it lowercase to improve readability.
24562       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24563       # Now convert it back to Unix-style (cygpath)
24564       input_path=`$CYGPATH -u "$shortmode_path"`
24565       new_path="$input_path"
24566     fi
24567   fi
24568 
24569   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24570   if test "x$test_cygdrive_prefix" = x; then
24571     # As a simple fix, exclude /usr/bin since it's not a real path.
24572     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24573       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24574       # a path prefixed by /cygdrive for fixpath to work.
24575       new_path="$CYGWIN_ROOT_PATH$input_path"
24576     fi
24577   fi
24578 
24579 
24580   if test "x$path" != "x$new_path"; then
24581     BOOT_JDK="$new_path"
24582     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24583 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24584   fi
24585 
24586     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24587 
24588   path="$BOOT_JDK"
24589   has_colon=`$ECHO $path | $GREP ^.:`
24590   new_path="$path"
24591   if test "x$has_colon" = x; then
24592     # Not in mixed or Windows style, start by that.
24593     new_path=`cmd //c echo $path`
24594   fi
24595 
24596 
24597   input_path="$new_path"
24598   # Check if we need to convert this using DOS-style short mode. If the path
24599   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24600   # take no chances and rewrite it.
24601   # Note: m4 eats our [], so we need to use [ and ] instead.
24602   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24603   if test "x$has_forbidden_chars" != x; then
24604     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24605     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24606   fi
24607 
24608 
24609   windows_path="$new_path"
24610   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24611     unix_path=`$CYGPATH -u "$windows_path"`
24612     new_path="$unix_path"
24613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24614     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24615     new_path="$unix_path"
24616   fi
24617 
24618   if test "x$path" != "x$new_path"; then
24619     BOOT_JDK="$new_path"
24620     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24621 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24622   fi
24623 
24624   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24625   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24626 
24627     else
24628       # We're on a unix platform. Hooray! :)
24629       path="$BOOT_JDK"
24630       has_space=`$ECHO "$path" | $GREP " "`
24631       if test "x$has_space" != x; then
24632         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24633 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24634         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24635       fi
24636 
24637       # Use eval to expand a potential ~
24638       eval path="$path"
24639       if test ! -f "$path" && test ! -d "$path"; then
24640         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24641       fi
24642 
24643       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24644     fi
24645   fi
24646 
24647             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24648 $as_echo_n "checking for Boot JDK... " >&6; }
24649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24650 $as_echo "$BOOT_JDK" >&6; }
24651             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24652 $as_echo_n "checking Boot JDK version... " >&6; }
24653             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24654             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24655 $as_echo "$BOOT_JDK_VERSION" >&6; }
24656           fi # end check jdk version
24657         fi # end check javac
24658       fi # end check java
24659     fi # end check boot jdk found
24660   fi
24661 
24662 
24663   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24664 
24665   if test "x$BOOT_JDK_FOUND" = xno; then
24666     # Now execute the test
24667 
24668   # Extract the first word of "javac", so it can be a program name with args.
24669 set dummy javac; ac_word=$2
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24671 $as_echo_n "checking for $ac_word... " >&6; }
24672 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24673   $as_echo_n "(cached) " >&6
24674 else
24675   case $JAVAC_CHECK in
24676   [\\/]* | ?:[\\/]*)
24677   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24678   ;;
24679   *)
24680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24681 for as_dir in $PATH
24682 do
24683   IFS=$as_save_IFS
24684   test -z "$as_dir" && as_dir=.
24685     for ac_exec_ext in '' $ac_executable_extensions; do
24686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24687     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24689     break 2
24690   fi
24691 done
24692   done
24693 IFS=$as_save_IFS
24694 
24695   ;;
24696 esac
24697 fi
24698 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24699 if test -n "$JAVAC_CHECK"; then
24700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24701 $as_echo "$JAVAC_CHECK" >&6; }
24702 else
24703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24704 $as_echo "no" >&6; }
24705 fi
24706 
24707 
24708   # Extract the first word of "java", so it can be a program name with args.
24709 set dummy java; ac_word=$2
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24711 $as_echo_n "checking for $ac_word... " >&6; }
24712 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24713   $as_echo_n "(cached) " >&6
24714 else
24715   case $JAVA_CHECK in
24716   [\\/]* | ?:[\\/]*)
24717   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24718   ;;
24719   *)
24720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24721 for as_dir in $PATH
24722 do
24723   IFS=$as_save_IFS
24724   test -z "$as_dir" && as_dir=.
24725     for ac_exec_ext in '' $ac_executable_extensions; do
24726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24727     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24729     break 2
24730   fi
24731 done
24732   done
24733 IFS=$as_save_IFS
24734 
24735   ;;
24736 esac
24737 fi
24738 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24739 if test -n "$JAVA_CHECK"; then
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24741 $as_echo "$JAVA_CHECK" >&6; }
24742 else
24743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24744 $as_echo "no" >&6; }
24745 fi
24746 
24747 
24748   BINARY="$JAVAC_CHECK"
24749   if test "x$JAVAC_CHECK" = x; then
24750     BINARY="$JAVA_CHECK"
24751   fi
24752   if test "x$BINARY" != x; then
24753     # So there is a java(c) binary, it might be part of a JDK.
24754     # Lets find the JDK/JRE directory by following symbolic links.
24755     # Linux/GNU systems often have links from /usr/bin/java to
24756     # /etc/alternatives/java to the real JDK binary.
24757 
24758   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24759     # Follow a chain of symbolic links. Use readlink
24760     # where it exists, else fall back to horribly
24761     # complicated shell code.
24762     if test "x$READLINK_TESTED" != yes; then
24763       # On MacOSX there is a readlink tool with a different
24764       # purpose than the GNU readlink tool. Check the found readlink.
24765       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24766       if test "x$ISGNU" = x; then
24767         # A readlink that we do not know how to use.
24768         # Are there other non-GNU readlinks out there?
24769         READLINK_TESTED=yes
24770         READLINK=
24771       fi
24772     fi
24773 
24774     if test "x$READLINK" != x; then
24775       BINARY=`$READLINK -f $BINARY`
24776     else
24777       # Save the current directory for restoring afterwards
24778       STARTDIR=$PWD
24779       COUNTER=0
24780       sym_link_dir=`$DIRNAME $BINARY`
24781       sym_link_file=`$BASENAME $BINARY`
24782       cd $sym_link_dir
24783       # Use -P flag to resolve symlinks in directories.
24784       cd `$THEPWDCMD -P`
24785       sym_link_dir=`$THEPWDCMD -P`
24786       # Resolve file symlinks
24787       while test $COUNTER -lt 20; do
24788         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24789         if test "x$ISLINK" == x; then
24790           # This is not a symbolic link! We are done!
24791           break
24792         fi
24793         # Again resolve directory symlinks since the target of the just found
24794         # link could be in a different directory
24795         cd `$DIRNAME $ISLINK`
24796         sym_link_dir=`$THEPWDCMD -P`
24797         sym_link_file=`$BASENAME $ISLINK`
24798         let COUNTER=COUNTER+1
24799       done
24800       cd $STARTDIR
24801       BINARY=$sym_link_dir/$sym_link_file
24802     fi
24803   fi
24804 
24805     BOOT_JDK=`dirname "$BINARY"`
24806     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24807     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24808       # Looks like we found ourselves an JDK
24809       BOOT_JDK_FOUND=maybe
24810       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24811 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24812     fi
24813   fi
24814 
24815 
24816     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24817     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24818       # Do we have a bin/java?
24819       if test ! -x "$BOOT_JDK/bin/java"; then
24820         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24822         BOOT_JDK_FOUND=no
24823       else
24824         # Do we have a bin/javac?
24825         if test ! -x "$BOOT_JDK/bin/javac"; then
24826           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24828           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24829 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24830           BOOT_JDK_FOUND=no
24831         else
24832           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24833           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24834 
24835           # Extra M4 quote needed to protect [] in grep expression.
24836           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24837           if test "x$FOUND_CORRECT_VERSION" = x; then
24838             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24839 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24840             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24841 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24842             BOOT_JDK_FOUND=no
24843           else
24844             # We're done! :-)
24845             BOOT_JDK_FOUND=yes
24846 
24847   # Only process if variable expands to non-empty
24848 
24849   if test "x$BOOT_JDK" != x; then
24850     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24851 
24852   # Input might be given as Windows format, start by converting to
24853   # unix format.
24854   path="$BOOT_JDK"
24855   new_path=`$CYGPATH -u "$path"`
24856 
24857   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24858   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24859   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24860   # "foo.exe" is OK but "foo" is an error.
24861   #
24862   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24863   # It is also a way to make sure we got the proper file name for the real test later on.
24864   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24865   if test "x$test_shortpath" = x; then
24866     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24868     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24869   fi
24870 
24871   # Call helper function which possibly converts this using DOS-style short mode.
24872   # If so, the updated path is stored in $new_path.
24873 
24874   input_path="$new_path"
24875   # Check if we need to convert this using DOS-style short mode. If the path
24876   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24877   # take no chances and rewrite it.
24878   # Note: m4 eats our [], so we need to use [ and ] instead.
24879   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24880   if test "x$has_forbidden_chars" != x; then
24881     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24882     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24883     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24884     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24885       # Going to short mode and back again did indeed matter. Since short mode is
24886       # case insensitive, let's make it lowercase to improve readability.
24887       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24888       # Now convert it back to Unix-style (cygpath)
24889       input_path=`$CYGPATH -u "$shortmode_path"`
24890       new_path="$input_path"
24891     fi
24892   fi
24893 
24894   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24895   if test "x$test_cygdrive_prefix" = x; then
24896     # As a simple fix, exclude /usr/bin since it's not a real path.
24897     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24898       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24899       # a path prefixed by /cygdrive for fixpath to work.
24900       new_path="$CYGWIN_ROOT_PATH$input_path"
24901     fi
24902   fi
24903 
24904 
24905   if test "x$path" != "x$new_path"; then
24906     BOOT_JDK="$new_path"
24907     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24908 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24909   fi
24910 
24911     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24912 
24913   path="$BOOT_JDK"
24914   has_colon=`$ECHO $path | $GREP ^.:`
24915   new_path="$path"
24916   if test "x$has_colon" = x; then
24917     # Not in mixed or Windows style, start by that.
24918     new_path=`cmd //c echo $path`
24919   fi
24920 
24921 
24922   input_path="$new_path"
24923   # Check if we need to convert this using DOS-style short mode. If the path
24924   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24925   # take no chances and rewrite it.
24926   # Note: m4 eats our [], so we need to use [ and ] instead.
24927   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24928   if test "x$has_forbidden_chars" != x; then
24929     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24930     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24931   fi
24932 
24933 
24934   windows_path="$new_path"
24935   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24936     unix_path=`$CYGPATH -u "$windows_path"`
24937     new_path="$unix_path"
24938   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24939     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24940     new_path="$unix_path"
24941   fi
24942 
24943   if test "x$path" != "x$new_path"; then
24944     BOOT_JDK="$new_path"
24945     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24947   fi
24948 
24949   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24950   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24951 
24952     else
24953       # We're on a unix platform. Hooray! :)
24954       path="$BOOT_JDK"
24955       has_space=`$ECHO "$path" | $GREP " "`
24956       if test "x$has_space" != x; then
24957         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24959         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24960       fi
24961 
24962       # Use eval to expand a potential ~
24963       eval path="$path"
24964       if test ! -f "$path" && test ! -d "$path"; then
24965         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24966       fi
24967 
24968       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24969     fi
24970   fi
24971 
24972             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24973 $as_echo_n "checking for Boot JDK... " >&6; }
24974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24975 $as_echo "$BOOT_JDK" >&6; }
24976             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24977 $as_echo_n "checking Boot JDK version... " >&6; }
24978             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24979             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24980 $as_echo "$BOOT_JDK_VERSION" >&6; }
24981           fi # end check jdk version
24982         fi # end check javac
24983       fi # end check java
24984     fi # end check boot jdk found
24985   fi
24986 
24987 
24988   # Test: Is there a JDK installed in default, well-known locations?
24989 
24990   if test "x$BOOT_JDK_FOUND" = xno; then
24991     # Now execute the test
24992 
24993   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24994 
24995   if test "x$BOOT_JDK_FOUND" = xno; then
24996     # Now execute the test
24997 
24998   if test "x$ProgramW6432" != x; then
24999     VIRTUAL_DIR="$ProgramW6432/Java"
25000 
25001   windows_path="$VIRTUAL_DIR"
25002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25003     unix_path=`$CYGPATH -u "$windows_path"`
25004     VIRTUAL_DIR="$unix_path"
25005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25006     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25007     VIRTUAL_DIR="$unix_path"
25008   fi
25009 
25010 
25011   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
25012   BOOT_JDK_SUFFIX=""
25013   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
25014   if test "x$ALL_JDKS_FOUND" != x; then
25015     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
25016 
25017   if test "x$BOOT_JDK_FOUND" = xno; then
25018     # Now execute the test
25019 
25020         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
25021         if test -d "$BOOT_JDK"; then
25022           BOOT_JDK_FOUND=maybe
25023           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
25024 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
25025         fi
25026 
25027 
25028     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25029     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25030       # Do we have a bin/java?
25031       if test ! -x "$BOOT_JDK/bin/java"; then
25032         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25034         BOOT_JDK_FOUND=no
25035       else
25036         # Do we have a bin/javac?
25037         if test ! -x "$BOOT_JDK/bin/javac"; then
25038           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25040           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25042           BOOT_JDK_FOUND=no
25043         else
25044           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25045           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25046 
25047           # Extra M4 quote needed to protect [] in grep expression.
25048           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25049           if test "x$FOUND_CORRECT_VERSION" = x; then
25050             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25052             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25053 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25054             BOOT_JDK_FOUND=no
25055           else
25056             # We're done! :-)
25057             BOOT_JDK_FOUND=yes
25058 
25059   # Only process if variable expands to non-empty
25060 
25061   if test "x$BOOT_JDK" != x; then
25062     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25063 
25064   # Input might be given as Windows format, start by converting to
25065   # unix format.
25066   path="$BOOT_JDK"
25067   new_path=`$CYGPATH -u "$path"`
25068 
25069   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25070   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25071   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25072   # "foo.exe" is OK but "foo" is an error.
25073   #
25074   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25075   # It is also a way to make sure we got the proper file name for the real test later on.
25076   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25077   if test "x$test_shortpath" = x; then
25078     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25079 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25080     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25081   fi
25082 
25083   # Call helper function which possibly converts this using DOS-style short mode.
25084   # If so, the updated path is stored in $new_path.
25085 
25086   input_path="$new_path"
25087   # Check if we need to convert this using DOS-style short mode. If the path
25088   # contains