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 ENABLE_JAVAC_SERVER
 636 ENABLE_SJAVAC
 637 SJAVAC_SERVER_JAVA_FLAGS
 638 SJAVAC_SERVER_JAVA
 639 JAVA_TOOL_FLAGS_SMALL
 640 JAVA_FLAGS_SMALL
 641 JAVA_FLAGS_BIG
 642 JAVA_FLAGS
 643 JOBS
 644 MEMORY_SIZE
 645 NUM_CORES
 646 ENABLE_INTREE_EC
 647 SALIB_NAME
 648 HOTSPOT_MAKE_ARGS
 649 LIBZIP_CAN_USE_MMAP
 650 LIBDL
 651 LIBM
 652 USE_EXTERNAL_LCMS
 653 LCMS_LIBS
 654 LCMS_CFLAGS
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 LLVM_LIBS
 662 LLVM_LDFLAGS
 663 LLVM_CFLAGS
 664 LLVM_CONFIG
 665 LIBFFI_LIBS
 666 LIBFFI_CFLAGS
 667 ALSA_LIBS
 668 ALSA_CFLAGS
 669 FREETYPE_BUNDLE_LIB_PATH
 670 FREETYPE_LIBS
 671 FREETYPE_CFLAGS
 672 CUPS_CFLAGS
 673 X_EXTRA_LIBS
 674 X_LIBS
 675 X_PRE_LIBS
 676 X_CFLAGS
 677 XMKMF
 678 MSVCP_DLL
 679 MSVCR_DLL
 680 LIBCXX
 681 STATIC_CXX_SETTING
 682 FIXPATH
 683 GCOV_ENABLED
 684 ZIP_DEBUGINFO_FILES
 685 ENABLE_DEBUG_SYMBOLS
 686 CFLAGS_WARNINGS_ARE_ERRORS
 687 DISABLE_WARNING_PREFIX
 688 HOTSPOT_SET_WARNINGS_AS_ERRORS
 689 WARNINGS_AS_ERRORS
 690 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 691 ZERO_ARCHFLAG
 692 LDFLAGS_TESTEXE
 693 LDFLAGS_TESTLIB
 694 LDFLAGS_CXX_JDK
 695 JDKEXE_LIBS
 696 JDKLIB_LIBS
 697 LDFLAGS_JDKEXE
 698 LDFLAGS_JDKLIB
 699 CXXFLAGS_TESTEXE
 700 CXXFLAGS_TESTLIB
 701 CFLAGS_TESTEXE
 702 CFLAGS_TESTLIB
 703 CXXFLAGS_JDKEXE
 704 CXXFLAGS_JDKLIB
 705 CFLAGS_JDKEXE
 706 CFLAGS_JDKLIB
 707 MACOSX_VERSION_MIN
 708 CXX_O_FLAG_NONE
 709 CXX_O_FLAG_DEBUG
 710 CXX_O_FLAG_NORM
 711 CXX_O_FLAG_HI
 712 CXX_O_FLAG_HIGHEST
 713 C_O_FLAG_NONE
 714 C_O_FLAG_DEBUG
 715 C_O_FLAG_NORM
 716 C_O_FLAG_HI
 717 C_O_FLAG_HIGHEST
 718 CXXFLAGS_DEBUG_SYMBOLS
 719 CFLAGS_DEBUG_SYMBOLS
 720 CXX_FLAG_DEPS
 721 C_FLAG_DEPS
 722 SET_SHARED_LIBRARY_MAPFILE
 723 SET_SHARED_LIBRARY_NAME
 724 SET_SHARED_LIBRARY_ORIGIN
 725 SET_EXECUTABLE_ORIGIN
 726 CXX_FLAG_REORDER
 727 C_FLAG_REORDER
 728 RC_FLAGS
 729 AR_OUT_OPTION
 730 LD_OUT_OPTION
 731 EXE_OUT_OPTION
 732 CC_OUT_OPTION
 733 STRIPFLAGS
 734 ARFLAGS
 735 COMPILER_TARGET_BITS_FLAG
 736 JT_HOME
 737 JTREGEXE
 738 USING_BROKEN_SUSE_LD
 739 PACKAGE_PATH
 740 USE_CLANG
 741 HOTSPOT_LD
 742 HOTSPOT_CXX
 743 HOTSPOT_RC
 744 HOTSPOT_MT
 745 BUILD_LD
 746 BUILD_CXX
 747 BUILD_CC
 748 BUILD_SYSROOT_LDFLAGS
 749 BUILD_SYSROOT_CFLAGS
 750 ac_ct_OBJDUMP
 751 OBJDUMP
 752 ac_ct_OBJCOPY
 753 OBJCOPY
 754 ac_ct_NM
 755 ac_ct_STRIP
 756 GNM
 757 NM
 758 STRIP
 759 MSBUILD
 760 DUMPBIN
 761 RC
 762 MT
 763 LIPO
 764 ac_ct_AR
 765 AR
 766 AS
 767 LDCXX
 768 LD
 769 CXXCPP
 770 CPP
 771 ac_ct_CXX
 772 CXXFLAGS
 773 CXX
 774 ac_ct_PROPER_COMPILER_CXX
 775 PROPER_COMPILER_CXX
 776 TOOLCHAIN_PATH_CXX
 777 POTENTIAL_CXX
 778 OBJEXT
 779 EXEEXT
 780 ac_ct_CC
 781 CPPFLAGS
 782 LDFLAGS
 783 CFLAGS
 784 CC
 785 ac_ct_PROPER_COMPILER_CC
 786 PROPER_COMPILER_CC
 787 TOOLCHAIN_PATH_CC
 788 POTENTIAL_CC
 789 VS_LIB
 790 VS_INCLUDE
 791 VS_PATH
 792 CYGWIN_LINK
 793 SYSROOT_LDFLAGS
 794 SYSROOT_CFLAGS
 795 LEGACY_EXTRA_LDFLAGS
 796 LEGACY_EXTRA_CXXFLAGS
 797 LEGACY_EXTRA_CFLAGS
 798 EXE_SUFFIX
 799 OBJ_SUFFIX
 800 STATIC_LIBRARY
 801 SHARED_LIBRARY
 802 STATIC_LIBRARY_SUFFIX
 803 SHARED_LIBRARY_SUFFIX
 804 LIBRARY_PREFIX
 805 TOOLCHAIN_TYPE
 806 STATIC_BUILD
 807 BUILD_HOTSPOT
 808 HOTSPOT_DIST
 809 BUILD_OUTPUT
 810 JDK_TOPDIR
 811 NASHORN_TOPDIR
 812 HOTSPOT_TOPDIR
 813 JAXWS_TOPDIR
 814 JAXP_TOPDIR
 815 CORBA_TOPDIR
 816 LANGTOOLS_TOPDIR
 817 BOOT_JDK_BITS
 818 JAVAC_FLAGS
 819 BOOT_JDK_SOURCETARGET
 820 JARSIGNER
 821 JAR
 822 JAVAH
 823 JAVAC
 824 JAVA
 825 BOOT_JDK
 826 JAVA_CHECK
 827 JAVAC_CHECK
 828 COOKED_BUILD_NUMBER
 829 JDK_VERSION
 830 COPYRIGHT_YEAR
 831 MACOSX_BUNDLE_ID_BASE
 832 MACOSX_BUNDLE_NAME_BASE
 833 COMPANY_NAME
 834 JDK_RC_PLATFORM_NAME
 835 PRODUCT_SUFFIX
 836 PRODUCT_NAME
 837 LAUNCHER_NAME
 838 MILESTONE
 839 JDK_BUILD_NUMBER
 840 JDK_UPDATE_VERSION
 841 JDK_MICRO_VERSION
 842 JDK_MINOR_VERSION
 843 JDK_MAJOR_VERSION
 844 USER_RELEASE_SUFFIX
 845 COMPRESS_JARS
 846 UNLIMITED_CRYPTO
 847 CACERTS_FILE
 848 TEST_IN_BUILD
 849 BUILD_HEADLESS
 850 SUPPORT_HEADFUL
 851 SUPPORT_HEADLESS
 852 OS_VERSION_MICRO
 853 OS_VERSION_MINOR
 854 OS_VERSION_MAJOR
 855 PKG_CONFIG
 856 BASH_ARGS
 857 SETFILE
 858 CODESIGN
 859 XATTR
 860 DSYMUTIL
 861 IS_GNU_TIME
 862 PATCH
 863 TIME
 864 STAT
 865 HG
 866 READELF
 867 OTOOL
 868 LDD
 869 ZIP
 870 UNZIP
 871 FIND_DELETE
 872 OUTPUT_SYNC
 873 OUTPUT_SYNC_SUPPORTED
 874 CHECK_TOOLSDIR_MAKE
 875 CHECK_TOOLSDIR_GMAKE
 876 CHECK_MAKE
 877 CHECK_GMAKE
 878 MAKE
 879 PKGHANDLER
 880 CONFIGURESUPPORT_OUTPUTDIR
 881 OUTPUT_ROOT
 882 CONF_NAME
 883 SPEC
 884 SDKROOT
 885 XCODEBUILD
 886 BUILD_VARIANT_RELEASE
 887 DEBUG_CLASSFILES
 888 FASTDEBUG
 889 VARIANT
 890 DEBUG_LEVEL
 891 MACOSX_UNIVERSAL
 892 INCLUDE_SA
 893 JVM_VARIANT_CORE
 894 JVM_VARIANT_ZEROSHARK
 895 JVM_VARIANT_ZERO
 896 JVM_VARIANT_KERNEL
 897 JVM_VARIANT_MINIMAL1
 898 JVM_VARIANT_CLIENT
 899 JVM_VARIANT_SERVER
 900 JVM_VARIANTS
 901 JVM_INTERPRETER
 902 JDK_VARIANT
 903 SET_OPENJDK
 904 CANONICAL_TOPDIR
 905 ORIGINAL_TOPDIR
 906 TOPDIR
 907 PATH_SEP
 908 ZERO_ARCHDEF
 909 DEFINE_CROSS_COMPILE_ARCH
 910 LP64
 911 OPENJDK_TARGET_OS_EXPORT_DIR
 912 OPENJDK_TARGET_CPU_JLI_CFLAGS
 913 OPENJDK_TARGET_CPU_OSARCH
 914 OPENJDK_TARGET_CPU_ISADIR
 915 OPENJDK_TARGET_CPU_LIBDIR
 916 OPENJDK_TARGET_CPU_LEGACY_LIB
 917 OPENJDK_TARGET_CPU_LEGACY
 918 REQUIRED_OS_VERSION
 919 REQUIRED_OS_NAME
 920 COMPILE_TYPE
 921 OPENJDK_TARGET_CPU_ENDIAN
 922 OPENJDK_TARGET_CPU_BITS
 923 OPENJDK_TARGET_CPU_ARCH
 924 OPENJDK_TARGET_CPU
 925 OPENJDK_TARGET_OS_ENV
 926 OPENJDK_TARGET_OS_TYPE
 927 OPENJDK_TARGET_OS
 928 OPENJDK_BUILD_CPU_ENDIAN
 929 OPENJDK_BUILD_CPU_BITS
 930 OPENJDK_BUILD_CPU_ARCH
 931 OPENJDK_BUILD_CPU
 932 OPENJDK_BUILD_OS_ENV
 933 OPENJDK_BUILD_OS_TYPE
 934 OPENJDK_BUILD_OS
 935 OPENJDK_BUILD_AUTOCONF_NAME
 936 OPENJDK_TARGET_AUTOCONF_NAME
 937 target_os
 938 target_vendor
 939 target_cpu
 940 target
 941 host_os
 942 host_vendor
 943 host_cpu
 944 host
 945 build_os
 946 build_vendor
 947 build_cpu
 948 build
 949 NICE
 950 CPIO
 951 DF
 952 READLINK
 953 CYGPATH
 954 SED
 955 FGREP
 956 EGREP
 957 GREP
 958 AWK
 959 XARGS
 960 WHICH
 961 WC
 962 UNIQ
 963 UNAME
 964 TR
 965 TOUCH
 966 TEE
 967 TAR
 968 TAIL
 969 SORT
 970 SH
 971 RMDIR
 972 RM
 973 PRINTF
 974 NAWK
 975 MV
 976 MKTEMP
 977 MKDIR
 978 LS
 979 LN
 980 HEAD
 981 FIND
 982 FILE
 983 EXPR
 984 ECHO
 985 DIRNAME
 986 DIFF
 987 DATE
 988 CUT
 989 CP
 990 COMM
 991 CMP
 992 CHMOD
 993 CAT
 994 BASH
 995 BASENAME
 996 DATE_WHEN_CONFIGURED
 997 ORIGINAL_PATH
 998 CONFIGURE_COMMAND_LINE
 999 target_alias
1000 host_alias
1001 build_alias
1002 LIBS
1003 ECHO_T
1004 ECHO_N
1005 ECHO_C
1006 DEFS
1007 mandir
1008 localedir
1009 libdir
1010 psdir
1011 pdfdir
1012 dvidir
1013 htmldir
1014 infodir
1015 docdir
1016 oldincludedir
1017 includedir
1018 localstatedir
1019 sharedstatedir
1020 sysconfdir
1021 datadir
1022 datarootdir
1023 libexecdir
1024 sbindir
1025 bindir
1026 program_transform_name
1027 prefix
1028 exec_prefix
1029 PACKAGE_URL
1030 PACKAGE_BUGREPORT
1031 PACKAGE_STRING
1032 PACKAGE_VERSION
1033 PACKAGE_TARNAME
1034 PACKAGE_NAME
1035 PATH_SEPARATOR
1036 SHELL'
1037 ac_subst_files=''
1038 ac_user_opts='
1039 enable_option_checking
1040 with_target_bits
1041 enable_openjdk_only
1042 with_custom_make_dir
1043 with_jdk_variant
1044 with_jvm_interpreter
1045 with_jvm_variants
1046 enable_debug
1047 with_debug_level
1048 with_devkit
1049 with_sys_root
1050 with_sysroot
1051 with_tools_dir
1052 with_toolchain_path
1053 with_extra_path
1054 with_sdk_name
1055 with_conf_name
1056 with_output_sync
1057 enable_headful
1058 enable_hotspot_test_in_build
1059 with_cacerts_file
1060 enable_unlimited_crypto
1061 with_milestone
1062 with_update_version
1063 with_user_release_suffix
1064 with_build_number
1065 with_copyright_year
1066 with_boot_jdk
1067 with_add_source_root
1068 with_override_source_root
1069 with_adds_and_overrides
1070 with_override_langtools
1071 with_override_corba
1072 with_override_jaxp
1073 with_override_jaxws
1074 with_override_hotspot
1075 with_override_nashorn
1076 with_override_jdk
1077 with_import_hotspot
1078 enable_static_build
1079 with_toolchain_type
1080 with_extra_cflags
1081 with_extra_cxxflags
1082 with_extra_ldflags
1083 with_toolchain_version
1084 with_build_devkit
1085 with_jtreg
1086 enable_warnings_as_errors
1087 enable_debug_symbols
1088 enable_zip_debug_info
1089 enable_native_coverage
1090 with_stdc__lib
1091 with_msvcr_dll
1092 with_msvcp_dll
1093 with_x
1094 with_cups
1095 with_cups_include
1096 with_freetype
1097 with_freetype_include
1098 with_freetype_lib
1099 with_freetype_src
1100 enable_freetype_bundling
1101 with_alsa
1102 with_alsa_include
1103 with_alsa_lib
1104 with_libffi
1105 with_libffi_include
1106 with_libffi_lib
1107 with_libjpeg
1108 with_giflib
1109 with_libpng
1110 with_zlib
1111 with_lcms
1112 with_dxsdk
1113 with_dxsdk_lib
1114 with_dxsdk_include
1115 with_num_cores
1116 with_memory_size
1117 with_jobs
1118 with_boot_jdk_jvmargs
1119 with_sjavac_server_java
1120 enable_sjavac
1121 enable_javac_server
1122 enable_precompiled_headers
1123 enable_ccache
1124 with_ccache_dir
1125 '
1126       ac_precious_vars='build_alias
1127 host_alias
1128 target_alias
1129 BASENAME
1130 BASH
1131 CAT
1132 CHMOD
1133 CMP
1134 COMM
1135 CP
1136 CUT
1137 DATE
1138 DIFF
1139 DIRNAME
1140 ECHO
1141 EXPR
1142 FILE
1143 FIND
1144 HEAD
1145 LN
1146 LS
1147 MKDIR
1148 MKTEMP
1149 MV
1150 NAWK
1151 PRINTF
1152 RM
1153 RMDIR
1154 SH
1155 SORT
1156 TAIL
1157 TAR
1158 TEE
1159 TOUCH
1160 TR
1161 UNAME
1162 UNIQ
1163 WC
1164 WHICH
1165 XARGS
1166 AWK
1167 GREP
1168 EGREP
1169 FGREP
1170 SED
1171 CYGPATH
1172 READLINK
1173 DF
1174 CPIO
1175 NICE
1176 MAKE
1177 UNZIP
1178 ZIP
1179 LDD
1180 OTOOL
1181 READELF
1182 HG
1183 STAT
1184 TIME
1185 PATCH
1186 DSYMUTIL
1187 XATTR
1188 CODESIGN
1189 SETFILE
1190 PKG_CONFIG
1191 JAVA
1192 JAVAC
1193 JAVAH
1194 JAR
1195 JARSIGNER
1196 CC
1197 CFLAGS
1198 LDFLAGS
1199 LIBS
1200 CPPFLAGS
1201 CXX
1202 CXXFLAGS
1203 CCC
1204 CPP
1205 CXXCPP
1206 AS
1207 AR
1208 LIPO
1209 STRIP
1210 NM
1211 GNM
1212 OBJCOPY
1213 OBJDUMP
1214 BUILD_CC
1215 BUILD_CXX
1216 JTREGEXE
1217 XMKMF
1218 FREETYPE_CFLAGS
1219 FREETYPE_LIBS
1220 ALSA_CFLAGS
1221 ALSA_LIBS
1222 LIBFFI_CFLAGS
1223 LIBFFI_LIBS
1224 PNG_CFLAGS
1225 PNG_LIBS
1226 LCMS_CFLAGS
1227 LCMS_LIBS
1228 CCACHE'
1229 
1230 
1231 # Initialize some variables set by options.
1232 ac_init_help=
1233 ac_init_version=false
1234 ac_unrecognized_opts=
1235 ac_unrecognized_sep=
1236 # The variables have the same names as the options, with
1237 # dashes changed to underlines.
1238 cache_file=/dev/null
1239 exec_prefix=NONE
1240 no_create=
1241 no_recursion=
1242 prefix=NONE
1243 program_prefix=NONE
1244 program_suffix=NONE
1245 program_transform_name=s,x,x,
1246 silent=
1247 site=
1248 srcdir=
1249 verbose=
1250 x_includes=NONE
1251 x_libraries=NONE
1252 
1253 # Installation directory options.
1254 # These are left unexpanded so users can "make install exec_prefix=/foo"
1255 # and all the variables that are supposed to be based on exec_prefix
1256 # by default will actually change.
1257 # Use braces instead of parens because sh, perl, etc. also accept them.
1258 # (The list follows the same order as the GNU Coding Standards.)
1259 bindir='${exec_prefix}/bin'
1260 sbindir='${exec_prefix}/sbin'
1261 libexecdir='${exec_prefix}/libexec'
1262 datarootdir='${prefix}/share'
1263 datadir='${datarootdir}'
1264 sysconfdir='${prefix}/etc'
1265 sharedstatedir='${prefix}/com'
1266 localstatedir='${prefix}/var'
1267 includedir='${prefix}/include'
1268 oldincludedir='/usr/include'
1269 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1270 infodir='${datarootdir}/info'
1271 htmldir='${docdir}'
1272 dvidir='${docdir}'
1273 pdfdir='${docdir}'
1274 psdir='${docdir}'
1275 libdir='${exec_prefix}/lib'
1276 localedir='${datarootdir}/locale'
1277 mandir='${datarootdir}/man'
1278 
1279 ac_prev=
1280 ac_dashdash=
1281 for ac_option
1282 do
1283   # If the previous option needs an argument, assign it.
1284   if test -n "$ac_prev"; then
1285     eval $ac_prev=\$ac_option
1286     ac_prev=
1287     continue
1288   fi
1289 
1290   case $ac_option in
1291   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1292   *=)   ac_optarg= ;;
1293   *)    ac_optarg=yes ;;
1294   esac
1295 
1296   # Accept the important Cygnus configure options, so we can diagnose typos.
1297 
1298   case $ac_dashdash$ac_option in
1299   --)
1300     ac_dashdash=yes ;;
1301 
1302   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1303     ac_prev=bindir ;;
1304   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1305     bindir=$ac_optarg ;;
1306 
1307   -build | --build | --buil | --bui | --bu)
1308     ac_prev=build_alias ;;
1309   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1310     build_alias=$ac_optarg ;;
1311 
1312   -cache-file | --cache-file | --cache-fil | --cache-fi \
1313   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1314     ac_prev=cache_file ;;
1315   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1316   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1317     cache_file=$ac_optarg ;;
1318 
1319   --config-cache | -C)
1320     cache_file=config.cache ;;
1321 
1322   -datadir | --datadir | --datadi | --datad)
1323     ac_prev=datadir ;;
1324   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1325     datadir=$ac_optarg ;;
1326 
1327   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1328   | --dataroo | --dataro | --datar)
1329     ac_prev=datarootdir ;;
1330   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1331   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1332     datarootdir=$ac_optarg ;;
1333 
1334   -disable-* | --disable-*)
1335     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338       as_fn_error $? "invalid feature name: $ac_useropt"
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "enable_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval enable_$ac_useropt=no ;;
1349 
1350   -docdir | --docdir | --docdi | --doc | --do)
1351     ac_prev=docdir ;;
1352   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1353     docdir=$ac_optarg ;;
1354 
1355   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1356     ac_prev=dvidir ;;
1357   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1358     dvidir=$ac_optarg ;;
1359 
1360   -enable-* | --enable-*)
1361     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364       as_fn_error $? "invalid feature name: $ac_useropt"
1365     ac_useropt_orig=$ac_useropt
1366     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367     case $ac_user_opts in
1368       *"
1369 "enable_$ac_useropt"
1370 "*) ;;
1371       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1372          ac_unrecognized_sep=', ';;
1373     esac
1374     eval enable_$ac_useropt=\$ac_optarg ;;
1375 
1376   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1377   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1378   | --exec | --exe | --ex)
1379     ac_prev=exec_prefix ;;
1380   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1381   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1382   | --exec=* | --exe=* | --ex=*)
1383     exec_prefix=$ac_optarg ;;
1384 
1385   -gas | --gas | --ga | --g)
1386     # Obsolete; use --with-gas.
1387     with_gas=yes ;;
1388 
1389   -help | --help | --hel | --he | -h)
1390     ac_init_help=long ;;
1391   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1392     ac_init_help=recursive ;;
1393   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1394     ac_init_help=short ;;
1395 
1396   -host | --host | --hos | --ho)
1397     ac_prev=host_alias ;;
1398   -host=* | --host=* | --hos=* | --ho=*)
1399     host_alias=$ac_optarg ;;
1400 
1401   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1402     ac_prev=htmldir ;;
1403   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1404   | --ht=*)
1405     htmldir=$ac_optarg ;;
1406 
1407   -includedir | --includedir | --includedi | --included | --include \
1408   | --includ | --inclu | --incl | --inc)
1409     ac_prev=includedir ;;
1410   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1411   | --includ=* | --inclu=* | --incl=* | --inc=*)
1412     includedir=$ac_optarg ;;
1413 
1414   -infodir | --infodir | --infodi | --infod | --info | --inf)
1415     ac_prev=infodir ;;
1416   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1417     infodir=$ac_optarg ;;
1418 
1419   -libdir | --libdir | --libdi | --libd)
1420     ac_prev=libdir ;;
1421   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1422     libdir=$ac_optarg ;;
1423 
1424   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1425   | --libexe | --libex | --libe)
1426     ac_prev=libexecdir ;;
1427   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1428   | --libexe=* | --libex=* | --libe=*)
1429     libexecdir=$ac_optarg ;;
1430 
1431   -localedir | --localedir | --localedi | --localed | --locale)
1432     ac_prev=localedir ;;
1433   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1434     localedir=$ac_optarg ;;
1435 
1436   -localstatedir | --localstatedir | --localstatedi | --localstated \
1437   | --localstate | --localstat | --localsta | --localst | --locals)
1438     ac_prev=localstatedir ;;
1439   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1440   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1441     localstatedir=$ac_optarg ;;
1442 
1443   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1444     ac_prev=mandir ;;
1445   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1446     mandir=$ac_optarg ;;
1447 
1448   -nfp | --nfp | --nf)
1449     # Obsolete; use --without-fp.
1450     with_fp=no ;;
1451 
1452   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1453   | --no-cr | --no-c | -n)
1454     no_create=yes ;;
1455 
1456   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1457   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1458     no_recursion=yes ;;
1459 
1460   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1461   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1462   | --oldin | --oldi | --old | --ol | --o)
1463     ac_prev=oldincludedir ;;
1464   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1465   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1466   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1467     oldincludedir=$ac_optarg ;;
1468 
1469   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1470     ac_prev=prefix ;;
1471   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1472     prefix=$ac_optarg ;;
1473 
1474   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1475   | --program-pre | --program-pr | --program-p)
1476     ac_prev=program_prefix ;;
1477   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1478   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1479     program_prefix=$ac_optarg ;;
1480 
1481   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1482   | --program-suf | --program-su | --program-s)
1483     ac_prev=program_suffix ;;
1484   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1485   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1486     program_suffix=$ac_optarg ;;
1487 
1488   -program-transform-name | --program-transform-name \
1489   | --program-transform-nam | --program-transform-na \
1490   | --program-transform-n | --program-transform- \
1491   | --program-transform | --program-transfor \
1492   | --program-transfo | --program-transf \
1493   | --program-trans | --program-tran \
1494   | --progr-tra | --program-tr | --program-t)
1495     ac_prev=program_transform_name ;;
1496   -program-transform-name=* | --program-transform-name=* \
1497   | --program-transform-nam=* | --program-transform-na=* \
1498   | --program-transform-n=* | --program-transform-=* \
1499   | --program-transform=* | --program-transfor=* \
1500   | --program-transfo=* | --program-transf=* \
1501   | --program-trans=* | --program-tran=* \
1502   | --progr-tra=* | --program-tr=* | --program-t=*)
1503     program_transform_name=$ac_optarg ;;
1504 
1505   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1506     ac_prev=pdfdir ;;
1507   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1508     pdfdir=$ac_optarg ;;
1509 
1510   -psdir | --psdir | --psdi | --psd | --ps)
1511     ac_prev=psdir ;;
1512   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1513     psdir=$ac_optarg ;;
1514 
1515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1516   | -silent | --silent | --silen | --sile | --sil)
1517     silent=yes ;;
1518 
1519   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1520     ac_prev=sbindir ;;
1521   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1522   | --sbi=* | --sb=*)
1523     sbindir=$ac_optarg ;;
1524 
1525   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1526   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1527   | --sharedst | --shareds | --shared | --share | --shar \
1528   | --sha | --sh)
1529     ac_prev=sharedstatedir ;;
1530   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1531   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1532   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1533   | --sha=* | --sh=*)
1534     sharedstatedir=$ac_optarg ;;
1535 
1536   -site | --site | --sit)
1537     ac_prev=site ;;
1538   -site=* | --site=* | --sit=*)
1539     site=$ac_optarg ;;
1540 
1541   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1542     ac_prev=srcdir ;;
1543   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1544     srcdir=$ac_optarg ;;
1545 
1546   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1547   | --syscon | --sysco | --sysc | --sys | --sy)
1548     ac_prev=sysconfdir ;;
1549   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1550   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1551     sysconfdir=$ac_optarg ;;
1552 
1553   -target | --target | --targe | --targ | --tar | --ta | --t)
1554     ac_prev=target_alias ;;
1555   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1556     target_alias=$ac_optarg ;;
1557 
1558   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1559     verbose=yes ;;
1560 
1561   -version | --version | --versio | --versi | --vers | -V)
1562     ac_init_version=: ;;
1563 
1564   -with-* | --with-*)
1565     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1566     # Reject names that are not valid shell variable names.
1567     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1568       as_fn_error $? "invalid package name: $ac_useropt"
1569     ac_useropt_orig=$ac_useropt
1570     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571     case $ac_user_opts in
1572       *"
1573 "with_$ac_useropt"
1574 "*) ;;
1575       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1576          ac_unrecognized_sep=', ';;
1577     esac
1578     eval with_$ac_useropt=\$ac_optarg ;;
1579 
1580   -without-* | --without-*)
1581     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1582     # Reject names that are not valid shell variable names.
1583     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1584       as_fn_error $? "invalid package name: $ac_useropt"
1585     ac_useropt_orig=$ac_useropt
1586     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1587     case $ac_user_opts in
1588       *"
1589 "with_$ac_useropt"
1590 "*) ;;
1591       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1592          ac_unrecognized_sep=', ';;
1593     esac
1594     eval with_$ac_useropt=no ;;
1595 
1596   --x)
1597     # Obsolete; use --with-x.
1598     with_x=yes ;;
1599 
1600   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1601   | --x-incl | --x-inc | --x-in | --x-i)
1602     ac_prev=x_includes ;;
1603   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1604   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1605     x_includes=$ac_optarg ;;
1606 
1607   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1608   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1609     ac_prev=x_libraries ;;
1610   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1611   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1612     x_libraries=$ac_optarg ;;
1613 
1614   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1615 Try \`$0 --help' for more information"
1616     ;;
1617 
1618   *=*)
1619     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1620     # Reject names that are not valid shell variable names.
1621     case $ac_envvar in #(
1622       '' | [0-9]* | *[!_$as_cr_alnum]* )
1623       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1624     esac
1625     eval $ac_envvar=\$ac_optarg
1626     export $ac_envvar ;;
1627 
1628   *)
1629     # FIXME: should be removed in autoconf 3.0.
1630     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1631     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1632       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1633     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1634     ;;
1635 
1636   esac
1637 done
1638 
1639 if test -n "$ac_prev"; then
1640   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1641   as_fn_error $? "missing argument to $ac_option"
1642 fi
1643 
1644 if test -n "$ac_unrecognized_opts"; then
1645   case $enable_option_checking in
1646     no) ;;
1647     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1648     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1649   esac
1650 fi
1651 
1652 # Check all directory arguments for consistency.
1653 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1654                 datadir sysconfdir sharedstatedir localstatedir includedir \
1655                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1656                 libdir localedir mandir
1657 do
1658   eval ac_val=\$$ac_var
1659   # Remove trailing slashes.
1660   case $ac_val in
1661     */ )
1662       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1663       eval $ac_var=\$ac_val;;
1664   esac
1665   # Be sure to have absolute directory names.
1666   case $ac_val in
1667     [\\/$]* | ?:[\\/]* )  continue;;
1668     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1669   esac
1670   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1671 done
1672 
1673 # There might be people who depend on the old broken behavior: `$host'
1674 # used to hold the argument of --host etc.
1675 # FIXME: To remove some day.
1676 build=$build_alias
1677 host=$host_alias
1678 target=$target_alias
1679 
1680 # FIXME: To remove some day.
1681 if test "x$host_alias" != x; then
1682   if test "x$build_alias" = x; then
1683     cross_compiling=maybe
1684   elif test "x$build_alias" != "x$host_alias"; then
1685     cross_compiling=yes
1686   fi
1687 fi
1688 
1689 ac_tool_prefix=
1690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1691 
1692 test "$silent" = yes && exec 6>/dev/null
1693 
1694 
1695 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1696 ac_ls_di=`ls -di .` &&
1697 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1698   as_fn_error $? "working directory cannot be determined"
1699 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1700   as_fn_error $? "pwd does not report name of working directory"
1701 
1702 
1703 # Find the source files, if location was not specified.
1704 if test -z "$srcdir"; then
1705   ac_srcdir_defaulted=yes
1706   # Try the directory containing this script, then the parent directory.
1707   ac_confdir=`$as_dirname -- "$as_myself" ||
1708 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1709          X"$as_myself" : 'X\(//\)[^/]' \| \
1710          X"$as_myself" : 'X\(//\)$' \| \
1711          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1712 $as_echo X"$as_myself" |
1713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1714             s//\1/
1715             q
1716           }
1717           /^X\(\/\/\)[^/].*/{
1718             s//\1/
1719             q
1720           }
1721           /^X\(\/\/\)$/{
1722             s//\1/
1723             q
1724           }
1725           /^X\(\/\).*/{
1726             s//\1/
1727             q
1728           }
1729           s/.*/./; q'`
1730   srcdir=$ac_confdir
1731   if test ! -r "$srcdir/$ac_unique_file"; then
1732     srcdir=..
1733   fi
1734 else
1735   ac_srcdir_defaulted=no
1736 fi
1737 if test ! -r "$srcdir/$ac_unique_file"; then
1738   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1739   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1740 fi
1741 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1742 ac_abs_confdir=`(
1743         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1744         pwd)`
1745 # When building in place, set srcdir=.
1746 if test "$ac_abs_confdir" = "$ac_pwd"; then
1747   srcdir=.
1748 fi
1749 # Remove unnecessary trailing slashes from srcdir.
1750 # Double slashes in file names in object file debugging info
1751 # mess up M-x gdb in Emacs.
1752 case $srcdir in
1753 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1754 esac
1755 for ac_var in $ac_precious_vars; do
1756   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1757   eval ac_env_${ac_var}_value=\$${ac_var}
1758   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1759   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1760 done
1761 
1762 #
1763 # Report the --help message.
1764 #
1765 if test "$ac_init_help" = "long"; then
1766   # Omit some internal or obsolete options to make the list less imposing.
1767   # This message is too long to be a string in the A/UX 3.1 sh.
1768   cat <<_ACEOF
1769 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1770 
1771 Usage: $0 [OPTION]... [VAR=VALUE]...
1772 
1773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1774 VAR=VALUE.  See below for descriptions of some of the useful variables.
1775 
1776 Defaults for the options are specified in brackets.
1777 
1778 Configuration:
1779   -h, --help              display this help and exit
1780       --help=short        display options specific to this package
1781       --help=recursive    display the short help of all the included packages
1782   -V, --version           display version information and exit
1783   -q, --quiet, --silent   do not print \`checking ...' messages
1784       --cache-file=FILE   cache test results in FILE [disabled]
1785   -C, --config-cache      alias for \`--cache-file=config.cache'
1786   -n, --no-create         do not create output files
1787       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1788 
1789 Installation directories:
1790   --prefix=PREFIX         install architecture-independent files in PREFIX
1791                           [$ac_default_prefix]
1792   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1793                           [PREFIX]
1794 
1795 By default, \`make install' will install all the files in
1796 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1797 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1798 for instance \`--prefix=\$HOME'.
1799 
1800 For better control, use the options below.
1801 
1802 Fine tuning of the installation directories:
1803   --bindir=DIR            user executables [EPREFIX/bin]
1804   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1805   --libexecdir=DIR        program executables [EPREFIX/libexec]
1806   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1807   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1808   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1809   --libdir=DIR            object code libraries [EPREFIX/lib]
1810   --includedir=DIR        C header files [PREFIX/include]
1811   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1812   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1813   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1814   --infodir=DIR           info documentation [DATAROOTDIR/info]
1815   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1816   --mandir=DIR            man documentation [DATAROOTDIR/man]
1817   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1818   --htmldir=DIR           html documentation [DOCDIR]
1819   --dvidir=DIR            dvi documentation [DOCDIR]
1820   --pdfdir=DIR            pdf documentation [DOCDIR]
1821   --psdir=DIR             ps documentation [DOCDIR]
1822 _ACEOF
1823 
1824   cat <<\_ACEOF
1825 
1826 X features:
1827   --x-includes=DIR    X include files are in DIR
1828   --x-libraries=DIR   X library files are in DIR
1829 
1830 System types:
1831   --build=BUILD     configure for building on BUILD [guessed]
1832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1833   --target=TARGET   configure for building compilers for TARGET [HOST]
1834 _ACEOF
1835 fi
1836 
1837 if test -n "$ac_init_help"; then
1838   case $ac_init_help in
1839      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1840    esac
1841   cat <<\_ACEOF
1842 
1843 Optional Features:
1844   --disable-option-checking  ignore unrecognized --enable/--with options
1845   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1846   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1847   --enable-openjdk-only   suppress building custom source even if present
1848                           [disabled]
1849   --enable-debug          set the debug level to fastdebug (shorthand for
1850                           --with-debug-level=fastdebug) [disabled]
1851   --disable-headful       disable building headful support (graphical UI
1852                           support) [enabled]
1853   --enable-hotspot-test-in-build
1854                           run the Queens test after Hotspot build [disabled]
1855   --enable-unlimited-crypto
1856                           Enable unlimited crypto policy [disabled]
1857   --enable-static-build   enable static library build [disabled]
1858   --disable-warnings-as-errors
1859                           do not consider native warnings to be an error
1860                           [enabled]
1861   --disable-debug-symbols disable generation of debug symbols [enabled]
1862   --disable-zip-debug-info
1863                           disable zipping of debug-info files [enabled]
1864   --enable-native-coverage
1865                           enable native compilation with code coverage
1866                           data[disabled]
1867   --disable-freetype-bundling
1868                           disable bundling of the freetype library with the
1869                           build result [enabled on Windows or when using
1870                           --with-freetype, disabled otherwise]
1871   --enable-sjavac         use sjavac to do fast incremental compiles
1872                           [disabled]
1873   --enable-javac-server   use only the server part of sjavac for faster javac
1874                           compiles [disabled]
1875   --disable-precompiled-headers
1876                           disable using precompiled headers when compiling C++
1877                           [enabled]
1878   --enable-ccache         enable using ccache to speed up recompilations
1879                           [disabled]
1880 
1881 Optional Packages:
1882   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1883   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1884   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1885                           support it), e.g. --with-target-bits=32 [guessed]
1886   --with-custom-make-dir  Deprecated. Option is kept for backwards
1887                           compatibility and is ignored
1888   --with-jdk-variant      JDK variant to build (normal) [normal]
1889   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1890   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1891                           client, minimal1, kernel, zero, zeroshark, core)
1892                           [server]
1893   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1894                           optimized (HotSpot build only)) [release]
1895   --with-devkit           use this devkit for compilers, tools and resources
1896   --with-sys-root         alias for --with-sysroot for backwards compatability
1897   --with-sysroot          use this directory as sysroot
1898   --with-tools-dir        alias for --with-toolchain-path for backwards
1899                           compatibility
1900   --with-toolchain-path   prepend these directories when searching for
1901                           toolchain binaries (compilers etc)
1902   --with-extra-path       prepend these directories to the default path
1903   --with-sdk-name         use the platform SDK of the given name. [macosx]
1904   --with-conf-name        use this as the name of the configuration [generated
1905                           from important configuration options]
1906   --with-output-sync      set make output sync type if supported by make.
1907                           [recurse]
1908   --with-cacerts-file     specify alternative cacerts file
1909   --with-milestone        Set milestone value for build [internal]
1910   --with-update-version   Set update version value for build [b00]
1911   --with-user-release-suffix
1912                           Add a custom string to the version string if build
1913                           number is not set.[username_builddateb00]
1914   --with-build-number     Set build number value for build [b00]
1915   --with-copyright-year   Set copyright year value for build [current year]
1916   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1917   --with-add-source-root  Deprecated. Option is kept for backwards
1918                           compatibility and is ignored
1919   --with-override-source-root
1920                           Deprecated. Option is kept for backwards
1921                           compatibility and is ignored
1922   --with-adds-and-overrides
1923                           Deprecated. Option is kept for backwards
1924                           compatibility and is ignored
1925   --with-override-langtools
1926                           Deprecated. Option is kept for backwards
1927                           compatibility and is ignored
1928   --with-override-corba   Deprecated. Option is kept for backwards
1929                           compatibility and is ignored
1930   --with-override-jaxp    Deprecated. Option is kept for backwards
1931                           compatibility and is ignored
1932   --with-override-jaxws   Deprecated. Option is kept for backwards
1933                           compatibility and is ignored
1934   --with-override-hotspot Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --with-override-nashorn Deprecated. Option is kept for backwards
1937                           compatibility and is ignored
1938   --with-override-jdk     Deprecated. Option is kept for backwards
1939                           compatibility and is ignored
1940   --with-import-hotspot   import hotspot binaries from this jdk image or
1941                           hotspot build dist dir instead of building from
1942                           source
1943   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1944                           to show possible values [platform dependent]
1945   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1946   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1947   --with-extra-ldflags    extra flags to be used when linking jdk
1948   --with-toolchain-version
1949                           the version of the toolchain to look for, use
1950                           '--help' to show possible values [platform
1951                           dependent]
1952   --with-build-devkit     Devkit to use for the build platform toolchain
1953   --with-jtreg            Regression Test Harness [probed]
1954   --with-stdc++lib=<static>,<dynamic>,<default>
1955                           force linking of the C++ runtime on Linux to either
1956                           static or dynamic, default is static with dynamic as
1957                           fallback
1958   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1959                           (Windows only) [probed]
1960   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1961                           (Windows only) [probed]
1962   --with-x                use the X Window System
1963   --with-cups             specify prefix directory for the cups package
1964                           (expecting the headers under PATH/include)
1965   --with-cups-include     specify directory for the cups include files
1966   --with-freetype         specify prefix directory for the freetype package
1967                           (expecting the libraries under PATH/lib and the
1968                           headers under PATH/include)
1969   --with-freetype-include specify directory for the freetype include files
1970   --with-freetype-lib     specify directory for the freetype library
1971   --with-freetype-src     specify directory with freetype sources to
1972                           automatically build the library (experimental,
1973                           Windows-only)
1974   --with-alsa             specify prefix directory for the alsa package
1975                           (expecting the libraries under PATH/lib and the
1976                           headers under PATH/include)
1977   --with-alsa-include     specify directory for the alsa include files
1978   --with-alsa-lib         specify directory for the alsa library
1979   --with-libffi           specify prefix directory for the libffi package
1980                           (expecting the libraries under PATH/lib and the
1981                           headers under PATH/include)
1982   --with-libffi-include   specify directory for the libffi include files
1983   --with-libffi-lib       specify directory for the libffi library
1984   --with-libjpeg          use libjpeg from build system or OpenJDK source
1985                           (system, bundled) [bundled]
1986   --with-giflib           use giflib from build system or OpenJDK source
1987                           (system, bundled) [bundled]
1988   --with-libpng           use libpng from build system or OpenJDK source
1989                           (system, bundled) [bundled]
1990   --with-zlib             use zlib from build system or OpenJDK source
1991                           (system, bundled) [bundled]
1992   --with-lcms             use lcms2 from build system or OpenJDK source
1993                           (system, bundled) [bundled]
1994   --with-dxsdk            Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1997                           compatibility and is ignored
1998   --with-dxsdk-include    Deprecated. Option is kept for backwards
1999                           compatibility and is ignored
2000   --with-num-cores        number of cores in the build system, e.g.
2001                           --with-num-cores=8 [probed]
2002   --with-memory-size      memory (in MB) available in the build system, e.g.
2003                           --with-memory-size=1024 [probed]
2004   --with-jobs             number of parallel jobs to let make run [calculated
2005                           based on cores and memory]
2006   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2007                           invocations of boot JDK, overriding the default
2008                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2009                           -enableassertions"
2010   --with-sjavac-server-java
2011                           use this java binary for running the sjavac
2012                           background server [Boot JDK java]
2013   --with-ccache-dir       where to store ccache files [~/.ccache]
2014 
2015 Some influential environment variables:
2016   BASENAME    Override default value for BASENAME
2017   BASH        Override default value for BASH
2018   CAT         Override default value for CAT
2019   CHMOD       Override default value for CHMOD
2020   CMP         Override default value for CMP
2021   COMM        Override default value for COMM
2022   CP          Override default value for CP
2023   CUT         Override default value for CUT
2024   DATE        Override default value for DATE
2025   DIFF        Override default value for DIFF
2026   DIRNAME     Override default value for DIRNAME
2027   ECHO        Override default value for ECHO
2028   EXPR        Override default value for EXPR
2029   FILE        Override default value for FILE
2030   FIND        Override default value for FIND
2031   HEAD        Override default value for HEAD
2032   LN          Override default value for LN
2033   LS          Override default value for LS
2034   MKDIR       Override default value for MKDIR
2035   MKTEMP      Override default value for MKTEMP
2036   MV          Override default value for MV
2037   NAWK        Override default value for NAWK
2038   PRINTF      Override default value for PRINTF
2039   RM          Override default value for RM
2040   RMDIR       Override default value for RMDIR
2041   SH          Override default value for SH
2042   SORT        Override default value for SORT
2043   TAIL        Override default value for TAIL
2044   TAR         Override default value for TAR
2045   TEE         Override default value for TEE
2046   TOUCH       Override default value for TOUCH
2047   TR          Override default value for TR
2048   UNAME       Override default value for UNAME
2049   UNIQ        Override default value for UNIQ
2050   WC          Override default value for WC
2051   WHICH       Override default value for WHICH
2052   XARGS       Override default value for XARGS
2053   AWK         Override default value for AWK
2054   GREP        Override default value for GREP
2055   EGREP       Override default value for EGREP
2056   FGREP       Override default value for FGREP
2057   SED         Override default value for SED
2058   CYGPATH     Override default value for CYGPATH
2059   READLINK    Override default value for READLINK
2060   DF          Override default value for DF
2061   CPIO        Override default value for CPIO
2062   NICE        Override default value for NICE
2063   MAKE        Override default value for MAKE
2064   UNZIP       Override default value for UNZIP
2065   ZIP         Override default value for ZIP
2066   LDD         Override default value for LDD
2067   OTOOL       Override default value for OTOOL
2068   READELF     Override default value for READELF
2069   HG          Override default value for HG
2070   STAT        Override default value for STAT
2071   TIME        Override default value for TIME
2072   PATCH       Override default value for PATCH
2073   DSYMUTIL    Override default value for DSYMUTIL
2074   XATTR       Override default value for XATTR
2075   CODESIGN    Override default value for CODESIGN
2076   SETFILE     Override default value for SETFILE
2077   PKG_CONFIG  path to pkg-config utility
2078   JAVA        Override default value for JAVA
2079   JAVAC       Override default value for JAVAC
2080   JAVAH       Override default value for JAVAH
2081   JAR         Override default value for JAR
2082   JARSIGNER   Override default value for JARSIGNER
2083   CC          C compiler command
2084   CFLAGS      C compiler flags
2085   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2086               nonstandard directory <lib dir>
2087   LIBS        libraries to pass to the linker, e.g. -l<library>
2088   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2089               you have headers in a nonstandard directory <include dir>
2090   CXX         C++ compiler command
2091   CXXFLAGS    C++ compiler flags
2092   CPP         C preprocessor
2093   CXXCPP      C++ preprocessor
2094   AS          Override default value for AS
2095   AR          Override default value for AR
2096   LIPO        Override default value for LIPO
2097   STRIP       Override default value for STRIP
2098   NM          Override default value for NM
2099   GNM         Override default value for GNM
2100   OBJCOPY     Override default value for OBJCOPY
2101   OBJDUMP     Override default value for OBJDUMP
2102   BUILD_CC    Override default value for BUILD_CC
2103   BUILD_CXX   Override default value for BUILD_CXX
2104   JTREGEXE    Override default value for JTREGEXE
2105   XMKMF       Path to xmkmf, Makefile generator for X Window System
2106   FREETYPE_CFLAGS
2107               C compiler flags for FREETYPE, overriding pkg-config
2108   FREETYPE_LIBS
2109               linker flags for FREETYPE, overriding pkg-config
2110   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2111   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2112   LIBFFI_CFLAGS
2113               C compiler flags for LIBFFI, overriding pkg-config
2114   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2115   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2116   PNG_LIBS    linker flags for PNG, overriding pkg-config
2117   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2118   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2119   CCACHE      Override default value for CCACHE
2120 
2121 Use these variables to override the choices made by `configure' or to help
2122 it to find libraries and programs with nonstandard names/locations.
2123 
2124 Report bugs to <build-dev@openjdk.java.net>.
2125 OpenJDK home page: <http://openjdk.java.net>.
2126 _ACEOF
2127 ac_status=$?
2128 fi
2129 
2130 if test "$ac_init_help" = "recursive"; then
2131   # If there are subdirs, report their specific --help.
2132   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2133     test -d "$ac_dir" ||
2134       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2135       continue
2136     ac_builddir=.
2137 
2138 case "$ac_dir" in
2139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2140 *)
2141   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2142   # A ".." for each directory in $ac_dir_suffix.
2143   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2144   case $ac_top_builddir_sub in
2145   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2146   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2147   esac ;;
2148 esac
2149 ac_abs_top_builddir=$ac_pwd
2150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2151 # for backward compatibility:
2152 ac_top_builddir=$ac_top_build_prefix
2153 
2154 case $srcdir in
2155   .)  # We are building in place.
2156     ac_srcdir=.
2157     ac_top_srcdir=$ac_top_builddir_sub
2158     ac_abs_top_srcdir=$ac_pwd ;;
2159   [\\/]* | ?:[\\/]* )  # Absolute name.
2160     ac_srcdir=$srcdir$ac_dir_suffix;
2161     ac_top_srcdir=$srcdir
2162     ac_abs_top_srcdir=$srcdir ;;
2163   *) # Relative name.
2164     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2165     ac_top_srcdir=$ac_top_build_prefix$srcdir
2166     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2167 esac
2168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2169 
2170     cd "$ac_dir" || { ac_status=$?; continue; }
2171     # Check for guested configure.
2172     if test -f "$ac_srcdir/configure.gnu"; then
2173       echo &&
2174       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2175     elif test -f "$ac_srcdir/configure"; then
2176       echo &&
2177       $SHELL "$ac_srcdir/configure" --help=recursive
2178     else
2179       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2180     fi || ac_status=$?
2181     cd "$ac_pwd" || { ac_status=$?; break; }
2182   done
2183 fi
2184 
2185 test -n "$ac_init_help" && exit $ac_status
2186 if $ac_init_version; then
2187   cat <<\_ACEOF
2188 OpenJDK configure jdk9
2189 generated by GNU Autoconf 2.69
2190 
2191 Copyright (C) 2012 Free Software Foundation, Inc.
2192 This configure script is free software; the Free Software Foundation
2193 gives unlimited permission to copy, distribute and modify it.
2194 _ACEOF
2195   exit
2196 fi
2197 
2198 ## ------------------------ ##
2199 ## Autoconf initialization. ##
2200 ## ------------------------ ##
2201 
2202 # ac_fn_c_try_compile LINENO
2203 # --------------------------
2204 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2205 ac_fn_c_try_compile ()
2206 {
2207   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208   rm -f conftest.$ac_objext
2209   if { { ac_try="$ac_compile"
2210 case "(($ac_try" in
2211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2212   *) ac_try_echo=$ac_try;;
2213 esac
2214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2215 $as_echo "$ac_try_echo"; } >&5
2216   (eval "$ac_compile") 2>conftest.err
2217   ac_status=$?
2218   if test -s conftest.err; then
2219     grep -v '^ *+' conftest.err >conftest.er1
2220     cat conftest.er1 >&5
2221     mv -f conftest.er1 conftest.err
2222   fi
2223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224   test $ac_status = 0; } && {
2225          test -z "$ac_c_werror_flag" ||
2226          test ! -s conftest.err
2227        } && test -s conftest.$ac_objext; then :
2228   ac_retval=0
2229 else
2230   $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232 
2233         ac_retval=1
2234 fi
2235   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236   as_fn_set_status $ac_retval
2237 
2238 } # ac_fn_c_try_compile
2239 
2240 # ac_fn_cxx_try_compile LINENO
2241 # ----------------------------
2242 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2243 ac_fn_cxx_try_compile ()
2244 {
2245   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246   rm -f conftest.$ac_objext
2247   if { { ac_try="$ac_compile"
2248 case "(($ac_try" in
2249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250   *) ac_try_echo=$ac_try;;
2251 esac
2252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2253 $as_echo "$ac_try_echo"; } >&5
2254   (eval "$ac_compile") 2>conftest.err
2255   ac_status=$?
2256   if test -s conftest.err; then
2257     grep -v '^ *+' conftest.err >conftest.er1
2258     cat conftest.er1 >&5
2259     mv -f conftest.er1 conftest.err
2260   fi
2261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262   test $ac_status = 0; } && {
2263          test -z "$ac_cxx_werror_flag" ||
2264          test ! -s conftest.err
2265        } && test -s conftest.$ac_objext; then :
2266   ac_retval=0
2267 else
2268   $as_echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270 
2271         ac_retval=1
2272 fi
2273   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274   as_fn_set_status $ac_retval
2275 
2276 } # ac_fn_cxx_try_compile
2277 
2278 # ac_fn_c_try_cpp LINENO
2279 # ----------------------
2280 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_c_try_cpp ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
2300          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2301          test ! -s conftest.err
2302        }; 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_c_try_cpp
2314 
2315 # ac_fn_cxx_try_cpp LINENO
2316 # ------------------------
2317 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_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_cxx_preproc_warn_flag$ac_cxx_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_cxx_try_cpp
2351 
2352 # ac_fn_c_try_link LINENO
2353 # -----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_c_try_link ()
2356 {
2357   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358   rm -f conftest.$ac_objext conftest$ac_exeext
2359   if { { ac_try="$ac_link"
2360 case "(($ac_try" in
2361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362   *) ac_try_echo=$ac_try;;
2363 esac
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366   (eval "$ac_link") 2>conftest.err
2367   ac_status=$?
2368   if test -s conftest.err; then
2369     grep -v '^ *+' conftest.err >conftest.er1
2370     cat conftest.er1 >&5
2371     mv -f conftest.er1 conftest.err
2372   fi
2373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374   test $ac_status = 0; } && {
2375          test -z "$ac_c_werror_flag" ||
2376          test ! -s conftest.err
2377        } && test -s conftest$ac_exeext && {
2378          test "$cross_compiling" = yes ||
2379          test -x conftest$ac_exeext
2380        }; then :
2381   ac_retval=0
2382 else
2383   $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2385 
2386         ac_retval=1
2387 fi
2388   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2389   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2390   # interfere with the next link command; also delete a directory that is
2391   # left behind by Apple's compiler.  We do this before executing the actions.
2392   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2393   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2394   as_fn_set_status $ac_retval
2395 
2396 } # ac_fn_c_try_link
2397 
2398 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2399 # ---------------------------------------------------------
2400 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2401 # the include files in INCLUDES and setting the cache variable VAR
2402 # accordingly.
2403 ac_fn_cxx_check_header_mongrel ()
2404 {
2405   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406   if eval \${$3+:} false; then :
2407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 $as_echo_n "checking for $2... " >&6; }
2409 if eval \${$3+:} false; then :
2410   $as_echo_n "(cached) " >&6
2411 fi
2412 eval ac_res=\$$3
2413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 else
2416   # Is the header compilable?
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2418 $as_echo_n "checking $2 usability... " >&6; }
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $4
2422 #include <$2>
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2425   ac_header_compiler=yes
2426 else
2427   ac_header_compiler=no
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2431 $as_echo "$ac_header_compiler" >&6; }
2432 
2433 # Is the header present?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2435 $as_echo_n "checking $2 presence... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 #include <$2>
2439 _ACEOF
2440 if ac_fn_cxx_try_cpp "$LINENO"; then :
2441   ac_header_preproc=yes
2442 else
2443   ac_header_preproc=no
2444 fi
2445 rm -f conftest.err conftest.i conftest.$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2447 $as_echo "$ac_header_preproc" >&6; }
2448 
2449 # So?  What about this header?
2450 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2451   yes:no: )
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2453 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456     ;;
2457   no:yes:* )
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2459 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2460     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2461 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2463 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2465 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2468 ( $as_echo "## ----------------------------------------- ##
2469 ## Report this to build-dev@openjdk.java.net ##
2470 ## ----------------------------------------- ##"
2471      ) | sed "s/^/$as_me: WARNING:     /" >&2
2472     ;;
2473 esac
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477   $as_echo_n "(cached) " >&6
2478 else
2479   eval "$3=\$ac_header_compiler"
2480 fi
2481 eval ac_res=\$$3
2482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483 $as_echo "$ac_res" >&6; }
2484 fi
2485   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 
2487 } # ac_fn_cxx_check_header_mongrel
2488 
2489 # ac_fn_cxx_try_run LINENO
2490 # ------------------------
2491 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2492 # that executables *can* be run.
2493 ac_fn_cxx_try_run ()
2494 {
2495   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496   if { { ac_try="$ac_link"
2497 case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503   (eval "$ac_link") 2>&5
2504   ac_status=$?
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2507   { { case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512 $as_echo "$ac_try_echo"; } >&5
2513   (eval "$ac_try") 2>&5
2514   ac_status=$?
2515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2516   test $ac_status = 0; }; }; then :
2517   ac_retval=0
2518 else
2519   $as_echo "$as_me: program exited with status $ac_status" >&5
2520        $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522 
2523        ac_retval=$ac_status
2524 fi
2525   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2526   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527   as_fn_set_status $ac_retval
2528 
2529 } # ac_fn_cxx_try_run
2530 
2531 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2532 # ---------------------------------------------------------
2533 # Tests whether HEADER exists and can be compiled using the include files in
2534 # INCLUDES, setting the cache variable VAR accordingly.
2535 ac_fn_cxx_check_header_compile ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h.  */
2545 $4
2546 #include <$2>
2547 _ACEOF
2548 if ac_fn_cxx_try_compile "$LINENO"; then :
2549   eval "$3=yes"
2550 else
2551   eval "$3=no"
2552 fi
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559 
2560 } # ac_fn_cxx_check_header_compile
2561 
2562 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2563 # ----------------------------------------------
2564 # Tries to find the compile-time value of EXPR in a program that includes
2565 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2566 # computed
2567 ac_fn_cxx_compute_int ()
2568 {
2569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570   if test "$cross_compiling" = yes; then
2571     # Depending upon the size, compute the lo and hi bounds.
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) >= 0)];
2579 test_array [0] = 0;
2580 return test_array [0];
2581 
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_cxx_try_compile "$LINENO"; then :
2587   ac_lo=0 ac_mid=0
2588   while :; do
2589     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h.  */
2591 $4
2592 int
2593 main ()
2594 {
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0;
2597 return test_array [0];
2598 
2599   ;
2600   return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_cxx_try_compile "$LINENO"; then :
2604   ac_hi=$ac_mid; break
2605 else
2606   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2607                         if test $ac_lo -le $ac_mid; then
2608                           ac_lo= ac_hi=
2609                           break
2610                         fi
2611                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614   done
2615 else
2616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h.  */
2618 $4
2619 int
2620 main ()
2621 {
2622 static int test_array [1 - 2 * !(($2) < 0)];
2623 test_array [0] = 0;
2624 return test_array [0];
2625 
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_cxx_try_compile "$LINENO"; then :
2631   ac_hi=-1 ac_mid=-1
2632   while :; do
2633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $4
2636 int
2637 main ()
2638 {
2639 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2640 test_array [0] = 0;
2641 return test_array [0];
2642 
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_cxx_try_compile "$LINENO"; then :
2648   ac_lo=$ac_mid; break
2649 else
2650   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2651                         if test $ac_mid -le $ac_hi; then
2652                           ac_lo= ac_hi=
2653                           break
2654                         fi
2655                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2656 fi
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658   done
2659 else
2660   ac_lo= ac_hi=
2661 fi
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 # Binary search between lo and hi bounds.
2666 while test "x$ac_lo" != "x$ac_hi"; do
2667   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h.  */
2670 $4
2671 int
2672 main ()
2673 {
2674 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2675 test_array [0] = 0;
2676 return test_array [0];
2677 
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 if ac_fn_cxx_try_compile "$LINENO"; then :
2683   ac_hi=$ac_mid
2684 else
2685   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2686 fi
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 done
2689 case $ac_lo in #((
2690 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2691 '') ac_retval=1 ;;
2692 esac
2693   else
2694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h.  */
2696 $4
2697 static long int longval () { return $2; }
2698 static unsigned long int ulongval () { return $2; }
2699 #include <stdio.h>
2700 #include <stdlib.h>
2701 int
2702 main ()
2703 {
2704 
2705   FILE *f = fopen ("conftest.val", "w");
2706   if (! f)
2707     return 1;
2708   if (($2) < 0)
2709     {
2710       long int i = longval ();
2711       if (i != ($2))
2712         return 1;
2713       fprintf (f, "%ld", i);
2714     }
2715   else
2716     {
2717       unsigned long int i = ulongval ();
2718       if (i != ($2))
2719         return 1;
2720       fprintf (f, "%lu", i);
2721     }
2722   /* Do not output a trailing newline, as this causes \r\n confusion
2723      on some platforms.  */
2724   return ferror (f) || fclose (f) != 0;
2725 
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_cxx_try_run "$LINENO"; then :
2731   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2732 else
2733   ac_retval=1
2734 fi
2735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2736   conftest.$ac_objext conftest.beam conftest.$ac_ext
2737 rm -f conftest.val
2738 
2739   fi
2740   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741   as_fn_set_status $ac_retval
2742 
2743 } # ac_fn_cxx_compute_int
2744 
2745 # ac_fn_cxx_try_link LINENO
2746 # -------------------------
2747 # Try to link conftest.$ac_ext, and return whether this succeeded.
2748 ac_fn_cxx_try_link ()
2749 {
2750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751   rm -f conftest.$ac_objext conftest$ac_exeext
2752   if { { ac_try="$ac_link"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758 $as_echo "$ac_try_echo"; } >&5
2759   (eval "$ac_link") 2>conftest.err
2760   ac_status=$?
2761   if test -s conftest.err; then
2762     grep -v '^ *+' conftest.err >conftest.er1
2763     cat conftest.er1 >&5
2764     mv -f conftest.er1 conftest.err
2765   fi
2766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767   test $ac_status = 0; } && {
2768          test -z "$ac_cxx_werror_flag" ||
2769          test ! -s conftest.err
2770        } && test -s conftest$ac_exeext && {
2771          test "$cross_compiling" = yes ||
2772          test -x conftest$ac_exeext
2773        }; then :
2774   ac_retval=0
2775 else
2776   $as_echo "$as_me: failed program was:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2778 
2779         ac_retval=1
2780 fi
2781   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2782   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2783   # interfere with the next link command; also delete a directory that is
2784   # left behind by Apple's compiler.  We do this before executing the actions.
2785   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2786   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2787   as_fn_set_status $ac_retval
2788 
2789 } # ac_fn_cxx_try_link
2790 
2791 # ac_fn_cxx_check_func LINENO FUNC VAR
2792 # ------------------------------------
2793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2794 ac_fn_cxx_check_func ()
2795 {
2796   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2798 $as_echo_n "checking for $2... " >&6; }
2799 if eval \${$3+:} false; then :
2800   $as_echo_n "(cached) " >&6
2801 else
2802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2806 #define $2 innocuous_$2
2807 
2808 /* System header to define __stub macros and hopefully few prototypes,
2809     which can conflict with char $2 (); below.
2810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2811     <limits.h> exists even on freestanding compilers.  */
2812 
2813 #ifdef __STDC__
2814 # include <limits.h>
2815 #else
2816 # include <assert.h>
2817 #endif
2818 
2819 #undef $2
2820 
2821 /* Override any GCC internal prototype to avoid an error.
2822    Use char because int might match the return type of a GCC
2823    builtin and then its argument prototype would still apply.  */
2824 #ifdef __cplusplus
2825 extern "C"
2826 #endif
2827 char $2 ();
2828 /* The GNU C library defines this for functions which it implements
2829     to always fail with ENOSYS.  Some functions are actually named
2830     something starting with __ and the normal name is an alias.  */
2831 #if defined __stub_$2 || defined __stub___$2
2832 choke me
2833 #endif
2834 
2835 int
2836 main ()
2837 {
2838 return $2 ();
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 if ac_fn_cxx_try_link "$LINENO"; then :
2844   eval "$3=yes"
2845 else
2846   eval "$3=no"
2847 fi
2848 rm -f core conftest.err conftest.$ac_objext \
2849     conftest$ac_exeext conftest.$ac_ext
2850 fi
2851 eval ac_res=\$$3
2852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2854   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2855 
2856 } # ac_fn_cxx_check_func
2857 
2858 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2859 # -------------------------------------------------------
2860 # Tests whether HEADER exists and can be compiled using the include files in
2861 # INCLUDES, setting the cache variable VAR accordingly.
2862 ac_fn_c_check_header_compile ()
2863 {
2864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2866 $as_echo_n "checking for $2... " >&6; }
2867 if eval \${$3+:} false; then :
2868   $as_echo_n "(cached) " >&6
2869 else
2870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h.  */
2872 $4
2873 #include <$2>
2874 _ACEOF
2875 if ac_fn_c_try_compile "$LINENO"; then :
2876   eval "$3=yes"
2877 else
2878   eval "$3=no"
2879 fi
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882 eval ac_res=\$$3
2883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884 $as_echo "$ac_res" >&6; }
2885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2886 
2887 } # ac_fn_c_check_header_compile
2888 cat >config.log <<_ACEOF
2889 This file contains any messages produced by compilers while
2890 running configure, to aid debugging if configure makes a mistake.
2891 
2892 It was created by OpenJDK $as_me jdk9, which was
2893 generated by GNU Autoconf 2.69.  Invocation command line was
2894 
2895   $ $0 $@
2896 
2897 _ACEOF
2898 exec 5>>config.log
2899 {
2900 cat <<_ASUNAME
2901 ## --------- ##
2902 ## Platform. ##
2903 ## --------- ##
2904 
2905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2910 
2911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2912 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2913 
2914 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2915 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2917 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2918 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2919 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2920 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2921 
2922 _ASUNAME
2923 
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927   IFS=$as_save_IFS
2928   test -z "$as_dir" && as_dir=.
2929     $as_echo "PATH: $as_dir"
2930   done
2931 IFS=$as_save_IFS
2932 
2933 } >&5
2934 
2935 cat >&5 <<_ACEOF
2936 
2937 
2938 ## ----------- ##
2939 ## Core tests. ##
2940 ## ----------- ##
2941 
2942 _ACEOF
2943 
2944 
2945 # Keep a trace of the command line.
2946 # Strip out --no-create and --no-recursion so they do not pile up.
2947 # Strip out --silent because we don't want to record it for future runs.
2948 # Also quote any args containing shell meta-characters.
2949 # Make two passes to allow for proper duplicate-argument suppression.
2950 ac_configure_args=
2951 ac_configure_args0=
2952 ac_configure_args1=
2953 ac_must_keep_next=false
2954 for ac_pass in 1 2
2955 do
2956   for ac_arg
2957   do
2958     case $ac_arg in
2959     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2960     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2961     | -silent | --silent | --silen | --sile | --sil)
2962       continue ;;
2963     *\'*)
2964       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2965     esac
2966     case $ac_pass in
2967     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2968     2)
2969       as_fn_append ac_configure_args1 " '$ac_arg'"
2970       if test $ac_must_keep_next = true; then
2971         ac_must_keep_next=false # Got value, back to normal.
2972       else
2973         case $ac_arg in
2974           *=* | --config-cache | -C | -disable-* | --disable-* \
2975           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2976           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2977           | -with-* | --with-* | -without-* | --without-* | --x)
2978             case "$ac_configure_args0 " in
2979               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2980             esac
2981             ;;
2982           -* ) ac_must_keep_next=true ;;
2983         esac
2984       fi
2985       as_fn_append ac_configure_args " '$ac_arg'"
2986       ;;
2987     esac
2988   done
2989 done
2990 { ac_configure_args0=; unset ac_configure_args0;}
2991 { ac_configure_args1=; unset ac_configure_args1;}
2992 
2993 # When interrupted or exit'd, cleanup temporary files, and complete
2994 # config.log.  We remove comments because anyway the quotes in there
2995 # would cause problems or look ugly.
2996 # WARNING: Use '\'' to represent an apostrophe within the trap.
2997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2998 trap 'exit_status=$?
2999   # Save into config.log some information that might help in debugging.
3000   {
3001     echo
3002 
3003     $as_echo "## ---------------- ##
3004 ## Cache variables. ##
3005 ## ---------------- ##"
3006     echo
3007     # The following way of writing the cache mishandles newlines in values,
3008 (
3009   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3010     eval ac_val=\$$ac_var
3011     case $ac_val in #(
3012     *${as_nl}*)
3013       case $ac_var in #(
3014       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3016       esac
3017       case $ac_var in #(
3018       _ | IFS | as_nl) ;; #(
3019       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3020       *) { eval $ac_var=; unset $ac_var;} ;;
3021       esac ;;
3022     esac
3023   done
3024   (set) 2>&1 |
3025     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3026     *${as_nl}ac_space=\ *)
3027       sed -n \
3028         "s/'\''/'\''\\\\'\'''\''/g;
3029           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3030       ;; #(
3031     *)
3032       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3033       ;;
3034     esac |
3035     sort
3036 )
3037     echo
3038 
3039     $as_echo "## ----------------- ##
3040 ## Output variables. ##
3041 ## ----------------- ##"
3042     echo
3043     for ac_var in $ac_subst_vars
3044     do
3045       eval ac_val=\$$ac_var
3046       case $ac_val in
3047       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3048       esac
3049       $as_echo "$ac_var='\''$ac_val'\''"
3050     done | sort
3051     echo
3052 
3053     if test -n "$ac_subst_files"; then
3054       $as_echo "## ------------------- ##
3055 ## File substitutions. ##
3056 ## ------------------- ##"
3057       echo
3058       for ac_var in $ac_subst_files
3059       do
3060         eval ac_val=\$$ac_var
3061         case $ac_val in
3062         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063         esac
3064         $as_echo "$ac_var='\''$ac_val'\''"
3065       done | sort
3066       echo
3067     fi
3068 
3069     if test -s confdefs.h; then
3070       $as_echo "## ----------- ##
3071 ## confdefs.h. ##
3072 ## ----------- ##"
3073       echo
3074       cat confdefs.h
3075       echo
3076     fi
3077     test "$ac_signal" != 0 &&
3078       $as_echo "$as_me: caught signal $ac_signal"
3079     $as_echo "$as_me: exit $exit_status"
3080   } >&5
3081   rm -f core *.core core.conftest.* &&
3082     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3083     exit $exit_status
3084 ' 0
3085 for ac_signal in 1 2 13 15; do
3086   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3087 done
3088 ac_signal=0
3089 
3090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3091 rm -f -r conftest* confdefs.h
3092 
3093 $as_echo "/* confdefs.h */" > confdefs.h
3094 
3095 # Predefined preprocessor variables.
3096 
3097 cat >>confdefs.h <<_ACEOF
3098 #define PACKAGE_NAME "$PACKAGE_NAME"
3099 _ACEOF
3100 
3101 cat >>confdefs.h <<_ACEOF
3102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3103 _ACEOF
3104 
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3107 _ACEOF
3108 
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_STRING "$PACKAGE_STRING"
3111 _ACEOF
3112 
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3115 _ACEOF
3116 
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_URL "$PACKAGE_URL"
3119 _ACEOF
3120 
3121 
3122 # Let the site file select an alternate cache file if it wants to.
3123 # Prefer an explicitly selected file to automatically selected ones.
3124 ac_site_file1=NONE
3125 ac_site_file2=NONE
3126 if test -n "$CONFIG_SITE"; then
3127   # We do not want a PATH search for config.site.
3128   case $CONFIG_SITE in #((
3129     -*)  ac_site_file1=./$CONFIG_SITE;;
3130     */*) ac_site_file1=$CONFIG_SITE;;
3131     *)   ac_site_file1=./$CONFIG_SITE;;
3132   esac
3133 elif test "x$prefix" != xNONE; then
3134   ac_site_file1=$prefix/share/config.site
3135   ac_site_file2=$prefix/etc/config.site
3136 else
3137   ac_site_file1=$ac_default_prefix/share/config.site
3138   ac_site_file2=$ac_default_prefix/etc/config.site
3139 fi
3140 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3141 do
3142   test "x$ac_site_file" = xNONE && continue
3143   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3144     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3145 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3146     sed 's/^/| /' "$ac_site_file" >&5
3147     . "$ac_site_file" \
3148       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "failed to load site script $ac_site_file
3151 See \`config.log' for more details" "$LINENO" 5; }
3152   fi
3153 done
3154 
3155 if test -r "$cache_file"; then
3156   # Some versions of bash will fail to source /dev/null (special files
3157   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3158   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3159     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3160 $as_echo "$as_me: loading cache $cache_file" >&6;}
3161     case $cache_file in
3162       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3163       *)                      . "./$cache_file";;
3164     esac
3165   fi
3166 else
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3168 $as_echo "$as_me: creating cache $cache_file" >&6;}
3169   >$cache_file
3170 fi
3171 
3172 # Check that the precious variables saved in the cache have kept the same
3173 # value.
3174 ac_cache_corrupted=false
3175 for ac_var in $ac_precious_vars; do
3176   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177   eval ac_new_set=\$ac_env_${ac_var}_set
3178   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179   eval ac_new_val=\$ac_env_${ac_var}_value
3180   case $ac_old_set,$ac_new_set in
3181     set,)
3182       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184       ac_cache_corrupted=: ;;
3185     ,set)
3186       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188       ac_cache_corrupted=: ;;
3189     ,);;
3190     *)
3191       if test "x$ac_old_val" != "x$ac_new_val"; then
3192         # differences in whitespace do not lead to failure.
3193         ac_old_val_w=`echo x $ac_old_val`
3194         ac_new_val_w=`echo x $ac_new_val`
3195         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3196           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198           ac_cache_corrupted=:
3199         else
3200           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202           eval $ac_var=\$ac_old_val
3203         fi
3204         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3205 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3206         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3207 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3208       fi;;
3209   esac
3210   # Pass precious variables to config.status.
3211   if test "$ac_new_set" = set; then
3212     case $ac_new_val in
3213     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214     *) ac_arg=$ac_var=$ac_new_val ;;
3215     esac
3216     case " $ac_configure_args " in
3217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3218       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3219     esac
3220   fi
3221 done
3222 if $ac_cache_corrupted; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3227   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3228 fi
3229 ## -------------------- ##
3230 ## Main body of script. ##
3231 ## -------------------- ##
3232 
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 
3239 
3240 
3241 ac_aux_dir=
3242 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3243   if test -f "$ac_dir/install-sh"; then
3244     ac_aux_dir=$ac_dir
3245     ac_install_sh="$ac_aux_dir/install-sh -c"
3246     break
3247   elif test -f "$ac_dir/install.sh"; then
3248     ac_aux_dir=$ac_dir
3249     ac_install_sh="$ac_aux_dir/install.sh -c"
3250     break
3251   elif test -f "$ac_dir/shtool"; then
3252     ac_aux_dir=$ac_dir
3253     ac_install_sh="$ac_aux_dir/shtool install -c"
3254     break
3255   fi
3256 done
3257 if test -z "$ac_aux_dir"; then
3258   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
3259 fi
3260 
3261 # These three variables are undocumented and unsupported,
3262 # and are intended to be withdrawn in a future Autoconf release.
3263 # They can cause serious problems if a builder's source tree is in a directory
3264 # whose full name contains unusual characters.
3265 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3266 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3267 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3268 
3269 
3270 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3271 
3272 #
3273 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3274 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3275 #
3276 # This code is free software; you can redistribute it and/or modify it
3277 # under the terms of the GNU General Public License version 2 only, as
3278 # published by the Free Software Foundation.  Oracle designates this
3279 # particular file as subject to the "Classpath" exception as provided
3280 # by Oracle in the LICENSE file that accompanied this code.
3281 #
3282 # This code is distributed in the hope that it will be useful, but WITHOUT
3283 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3284 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3285 # version 2 for more details (a copy is included in the LICENSE file that
3286 # accompanied this code).
3287 #
3288 # You should have received a copy of the GNU General Public License version
3289 # 2 along with this work; if not, write to the Free Software Foundation,
3290 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3291 #
3292 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3293 # or visit www.oracle.com if you need additional information or have any
3294 # questions.
3295 #
3296 
3297 #
3298 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3299 #
3300 # This program is free software; you can redistribute it and/or modify
3301 # it under the terms of the GNU General Public License as published by
3302 # the Free Software Foundation; either version 2 of the License, or
3303 # (at your option) any later version.
3304 #
3305 # This program is distributed in the hope that it will be useful, but
3306 # WITHOUT ANY WARRANTY; without even the implied warranty of
3307 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3308 # General Public License for more details.
3309 #
3310 # You should have received a copy of the GNU General Public License
3311 # along with this program; if not, write to the Free Software
3312 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3313 #
3314 # As a special exception to the GNU General Public License, if you
3315 # distribute this file as part of a program that contains a
3316 # configuration script generated by Autoconf, you may include it under
3317 # the same distribution terms that you use for the rest of that program.
3318 
3319 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3320 # ----------------------------------
3321 # PKG_PROG_PKG_CONFIG
3322 
3323 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3324 #
3325 # Check to see whether a particular set of modules exists.  Similar
3326 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3327 #
3328 #
3329 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3330 # this or PKG_CHECK_MODULES is called, or make sure to call
3331 # PKG_CHECK_EXISTS manually
3332 # --------------------------------------------------------------
3333 
3334 
3335 
3336 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3337 # ---------------------------------------------
3338 # _PKG_CONFIG
3339 
3340 # _PKG_SHORT_ERRORS_SUPPORTED
3341 # -----------------------------
3342 # _PKG_SHORT_ERRORS_SUPPORTED
3343 
3344 
3345 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3346 # [ACTION-IF-NOT-FOUND])
3347 #
3348 #
3349 # Note that if there is a possibility the first call to
3350 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3351 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3352 #
3353 #
3354 # --------------------------------------------------------------
3355 # PKG_CHECK_MODULES
3356 
3357 
3358 # Include these first...
3359 #
3360 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3361 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3362 #
3363 # This code is free software; you can redistribute it and/or modify it
3364 # under the terms of the GNU General Public License version 2 only, as
3365 # published by the Free Software Foundation.  Oracle designates this
3366 # particular file as subject to the "Classpath" exception as provided
3367 # by Oracle in the LICENSE file that accompanied this code.
3368 #
3369 # This code is distributed in the hope that it will be useful, but WITHOUT
3370 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3371 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3372 # version 2 for more details (a copy is included in the LICENSE file that
3373 # accompanied this code).
3374 #
3375 # You should have received a copy of the GNU General Public License version
3376 # 2 along with this work; if not, write to the Free Software Foundation,
3377 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3378 #
3379 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3380 # or visit www.oracle.com if you need additional information or have any
3381 # questions.
3382 #
3383 
3384 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3385 # If so, then append $1 to $2 \
3386 # Also set JVM_ARG_OK to true/false depending on outcome.
3387 
3388 
3389 # Appends a string to a path variable, only adding the : when needed.
3390 
3391 
3392 # Prepends a string to a path variable, only adding the : when needed.
3393 
3394 
3395 # This will make sure the given variable points to a full and proper
3396 # path. This means:
3397 # 1) There will be no spaces in the path. On unix platforms,
3398 #    spaces in the path will result in an error. On Windows,
3399 #    the path will be rewritten using short-style to be space-free.
3400 # 2) The path will be absolute, and it will be in unix-style (on
3401 #     cygwin).
3402 # $1: The name of the variable to fix
3403 
3404 
3405 # This will make sure the given variable points to a executable
3406 # with a full and proper path. This means:
3407 # 1) There will be no spaces in the path. On unix platforms,
3408 #    spaces in the path will result in an error. On Windows,
3409 #    the path will be rewritten using short-style to be space-free.
3410 # 2) The path will be absolute, and it will be in unix-style (on
3411 #     cygwin).
3412 # Any arguments given to the executable is preserved.
3413 # If the input variable does not have a directory specification, then
3414 # it need to be in the PATH.
3415 # $1: The name of the variable to fix
3416 
3417 
3418 
3419 
3420 # Register a --with argument but mark it as deprecated
3421 # $1: The name of the with argument to deprecate, not including --with-
3422 
3423 
3424 # Register a --enable argument but mark it as deprecated
3425 # $1: The name of the with argument to deprecate, not including --enable-
3426 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3427 
3428 
3429 
3430 
3431 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3432 # $1: variable to check
3433 
3434 
3435 # Check that there are no unprocessed overridden variables left.
3436 # If so, they are an incorrect argument and we will exit with an error.
3437 
3438 
3439 # Setup a tool for the given variable. If correctly specified by the user,
3440 # use that value, otherwise search for the tool using the supplied code snippet.
3441 # $1: variable to set
3442 # $2: code snippet to call to look for the tool
3443 # $3: code snippet to call if variable was used to find tool
3444 
3445 
3446 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3447 # $1: variable to set
3448 # $2: executable name (or list of names) to look for
3449 
3450 
3451 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3452 # $1: variable to set
3453 # $2: executable name (or list of names) to look for
3454 
3455 
3456 # Like BASIC_PATH_PROGS but fails if no tool was found.
3457 # $1: variable to set
3458 # $2: executable name (or list of names) to look for
3459 
3460 
3461 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3462 # $1: variable to set
3463 # $2: autoconf macro to call to look for the special tool
3464 
3465 
3466 # Setup the most fundamental tools that relies on not much else to set up,
3467 # but is used by much of the early bootstrap code.
3468 
3469 
3470 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3471 
3472 
3473 # Evaluates platform specific overrides for devkit variables.
3474 # $1: Name of variable
3475 
3476 
3477 
3478 
3479 
3480 
3481 #%%% Simple tools %%%
3482 
3483 # Check if we have found a usable version of make
3484 # $1: the path to a potential make binary (or empty)
3485 # $2: the description on how we found this
3486 
3487 
3488 
3489 
3490 # Goes looking for a usable version of GNU make.
3491 
3492 
3493 
3494 
3495 
3496 
3497 # Check if build directory is on local disk. If not possible to determine,
3498 # we prefer to claim it's local.
3499 # Argument 1: directory to test
3500 # Argument 2: what to do if it is on local disk
3501 # Argument 3: what to do otherwise (remote disk or failure)
3502 
3503 
3504 # Check that source files have basic read permissions set. This might
3505 # not be the case in cygwin in certain conditions.
3506 
3507 
3508 
3509 
3510 # Check for support for specific options in bash
3511 
3512 
3513 # Code to run after AC_OUTPUT
3514 
3515 
3516 #
3517 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3519 #
3520 # This code is free software; you can redistribute it and/or modify it
3521 # under the terms of the GNU General Public License version 2 only, as
3522 # published by the Free Software Foundation.  Oracle designates this
3523 # particular file as subject to the "Classpath" exception as provided
3524 # by Oracle in the LICENSE file that accompanied this code.
3525 #
3526 # This code is distributed in the hope that it will be useful, but WITHOUT
3527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3529 # version 2 for more details (a copy is included in the LICENSE file that
3530 # accompanied this code).
3531 #
3532 # You should have received a copy of the GNU General Public License version
3533 # 2 along with this work; if not, write to the Free Software Foundation,
3534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3535 #
3536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3537 # or visit www.oracle.com if you need additional information or have any
3538 # questions.
3539 #
3540 
3541 
3542 
3543 
3544 
3545 # Helper function which possibly converts a path using DOS-style short mode.
3546 # If so, the updated path is stored in $new_path.
3547 # $1: The path to check
3548 
3549 
3550 # Helper function which possibly converts a path using DOS-style short mode.
3551 # If so, the updated path is stored in $new_path.
3552 # $1: The path to check
3553 
3554 
3555 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3556 # and could probably be heavily simplified. However, all changes in this
3557 # area tend to need lot of testing in different scenarios, and in lack of
3558 # proper unit testing, cleaning this up has not been deemed worth the effort
3559 # at the moment.
3560 
3561 
3562 
3563 
3564 
3565 
3566 
3567 
3568 
3569 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3570 
3571 
3572 
3573 
3574 # ... then the rest
3575 #
3576 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3577 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3578 #
3579 # This code is free software; you can redistribute it and/or modify it
3580 # under the terms of the GNU General Public License version 2 only, as
3581 # published by the Free Software Foundation.  Oracle designates this
3582 # particular file as subject to the "Classpath" exception as provided
3583 # by Oracle in the LICENSE file that accompanied this code.
3584 #
3585 # This code is distributed in the hope that it will be useful, but WITHOUT
3586 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3587 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3588 # version 2 for more details (a copy is included in the LICENSE file that
3589 # accompanied this code).
3590 #
3591 # You should have received a copy of the GNU General Public License version
3592 # 2 along with this work; if not, write to the Free Software Foundation,
3593 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3594 #
3595 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3596 # or visit www.oracle.com if you need additional information or have any
3597 # questions.
3598 #
3599 
3600 ########################################################################
3601 # This file handles detection of the Boot JDK. The Boot JDK detection
3602 # process has been developed as a response to solve a complex real-world
3603 # problem. Initially, it was simple, but it has grown as platform after
3604 # platform, idiosyncracy after idiosyncracy has been supported.
3605 #
3606 # The basic idea is this:
3607 # 1) You need an acceptable *) JDK to use as a Boot JDK
3608 # 2) There are several ways to locate a JDK, that are mostly platform
3609 #    dependent **)
3610 # 3) You can have multiple JDKs installed
3611 # 4) If possible, configure should try to dig out an acceptable JDK
3612 #    automatically, without having to resort to command-line options
3613 #
3614 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3615 #     javac) and not a JRE, etc.
3616 #
3617 # **) On Windows we typically use a well-known path.
3618 #     On MacOSX we typically use the tool java_home.
3619 #     On Linux we typically find javac in the $PATH, and then follow a
3620 #     chain of symlinks that often ends up in a real JDK.
3621 #
3622 # This leads to the code where we check in different ways to locate a
3623 # JDK, and if one is found, check if it is acceptable. If not, we print
3624 # our reasons for rejecting it (useful when debugging non-working
3625 # configure situations) and continue checking the next one.
3626 ########################################################################
3627 
3628 # Execute the check given as argument, and verify the result
3629 # If the Boot JDK was previously found, do nothing
3630 # $1 A command line (typically autoconf macro) to execute
3631 
3632 
3633 # Test: Is bootjdk explicitely set by command line arguments?
3634 
3635 
3636 # Test: Is $JAVA_HOME set?
3637 
3638 
3639 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3640 
3641 
3642 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3643 # $1: Argument to the java_home binary (optional)
3644 
3645 
3646 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3647 
3648 
3649 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3650 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3651 # $1 = Path to directory containing jdk installations.
3652 # $2 = String to append to the found JDK directory to get the proper JDK home
3653 
3654 
3655 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3656 # environmental variable as base for where to look.
3657 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3658 
3659 
3660 # Test: Is there a JDK installed in default, well-known locations?
3661 
3662 
3663 # Check that a command-line tool in the Boot JDK is correct
3664 # $1 = name of variable to assign
3665 # $2 = name of binary
3666 
3667 
3668 ###############################################################################
3669 #
3670 # We need a Boot JDK to bootstrap the build.
3671 #
3672 
3673 
3674 
3675 
3676 
3677 #
3678 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3679 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3680 #
3681 # This code is free software; you can redistribute it and/or modify it
3682 # under the terms of the GNU General Public License version 2 only, as
3683 # published by the Free Software Foundation.  Oracle designates this
3684 # particular file as subject to the "Classpath" exception as provided
3685 # by Oracle in the LICENSE file that accompanied this code.
3686 #
3687 # This code is distributed in the hope that it will be useful, but WITHOUT
3688 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3689 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3690 # version 2 for more details (a copy is included in the LICENSE file that
3691 # accompanied this code).
3692 #
3693 # You should have received a copy of the GNU General Public License version
3694 # 2 along with this work; if not, write to the Free Software Foundation,
3695 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3696 #
3697 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3698 # or visit www.oracle.com if you need additional information or have any
3699 # questions.
3700 #
3701 
3702 
3703 
3704 
3705 
3706 
3707 
3708 
3709 
3710 
3711 
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 #
3722 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3723 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3724 #
3725 # This code is free software; you can redistribute it and/or modify it
3726 # under the terms of the GNU General Public License version 2 only, as
3727 # published by the Free Software Foundation.  Oracle designates this
3728 # particular file as subject to the "Classpath" exception as provided
3729 # by Oracle in the LICENSE file that accompanied this code.
3730 #
3731 # This code is distributed in the hope that it will be useful, but WITHOUT
3732 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3733 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3734 # version 2 for more details (a copy is included in the LICENSE file that
3735 # accompanied this code).
3736 #
3737 # You should have received a copy of the GNU General Public License version
3738 # 2 along with this work; if not, write to the Free Software Foundation,
3739 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3740 #
3741 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3742 # or visit www.oracle.com if you need additional information or have any
3743 # questions.
3744 #
3745 
3746 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3747 # corresponding configure arguments instead
3748 
3749 
3750 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3751 # that configure can use them while detecting compilers.
3752 # TOOLCHAIN_TYPE is available here.
3753 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3754 
3755 
3756 
3757 
3758 
3759 
3760 # Documentation on common flags used for solstudio in HIGHEST.
3761 #
3762 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3763 #          done with care, there are some assumptions below that need to
3764 #          be understood about the use of pointers, and IEEE behavior.
3765 #
3766 # -fns: Use non-standard floating point mode (not IEEE 754)
3767 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3768 # -fsingle: Use single precision floating point with 'float'
3769 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3770 #   (Source with excessing pointer casting and data access with mixed
3771 #    pointer types are not recommended)
3772 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3773 #   (If you expect perfect errno behavior, do not use this)
3774 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3775 # -xrestrict: Pointer parameters to functions do not overlap
3776 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3777 #    If you pass in multiple pointers to the same data, do not use this)
3778 # -xlibmil: Inline some library routines
3779 #   (If you expect perfect errno behavior, do not use this)
3780 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3781 #   (If you expect perfect errno behavior, do not use this)
3782 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3783 
3784     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3785     # Bug?
3786     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3787     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3788     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3789     #fi
3790 
3791 
3792 
3793 
3794 
3795 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3796 #                                   [RUN-IF-FALSE])
3797 # ------------------------------------------------------------
3798 # Check that the c and c++ compilers support an argument
3799 
3800 
3801 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3802 #                                    [RUN-IF-FALSE])
3803 # ------------------------------------------------------------
3804 # Check that the linker support an argument
3805 
3806 
3807 
3808 
3809 #
3810 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3811 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3812 #
3813 # This code is free software; you can redistribute it and/or modify it
3814 # under the terms of the GNU General Public License version 2 only, as
3815 # published by the Free Software Foundation.  Oracle designates this
3816 # particular file as subject to the "Classpath" exception as provided
3817 # by Oracle in the LICENSE file that accompanied this code.
3818 #
3819 # This code is distributed in the hope that it will be useful, but WITHOUT
3820 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3821 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3822 # version 2 for more details (a copy is included in the LICENSE file that
3823 # accompanied this code).
3824 #
3825 # You should have received a copy of the GNU General Public License version
3826 # 2 along with this work; if not, write to the Free Software Foundation,
3827 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3828 #
3829 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3830 # or visit www.oracle.com if you need additional information or have any
3831 # questions.
3832 #
3833 
3834 
3835 
3836 
3837 
3838 cygwin_help() {
3839   case $1 in
3840     unzip)
3841       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3842       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3843       ;;
3844     zip)
3845       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3846       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3847       ;;
3848     make)
3849       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3850       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3851       ;;
3852     freetype)
3853       HELP_MSG="
3854 The freetype library can now be build during the configure process.
3855 Download the freetype sources and unpack them into an arbitrary directory:
3856 
3857 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3858 tar -xzf freetype-2.5.3.tar.gz
3859 
3860 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3861 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3862 builds or into '<freetype_src>/lib32' for 32-bit builds.
3863 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3864 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3865       ;;
3866   esac
3867 }
3868 
3869 msys_help() {
3870   PKGHANDLER_COMMAND=""
3871 }
3872 
3873 apt_help() {
3874   case $1 in
3875     reduced)
3876       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3877     devkit)
3878       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3879     openjdk)
3880       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3881     alsa)
3882       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3883     cups)
3884       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3885     freetype)
3886       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3887     ffi)
3888       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3889     x11)
3890       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3891     ccache)
3892       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3893   esac
3894 }
3895 
3896 yum_help() {
3897   case $1 in
3898     devkit)
3899       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3900     openjdk)
3901       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3902     alsa)
3903       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3904     cups)
3905       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3906     freetype)
3907       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3908     x11)
3909       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3910     ccache)
3911       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3912   esac
3913 }
3914 
3915 port_help() {
3916   PKGHANDLER_COMMAND=""
3917 }
3918 
3919 pkgutil_help() {
3920   PKGHANDLER_COMMAND=""
3921 }
3922 
3923 pkgadd_help() {
3924   PKGHANDLER_COMMAND=""
3925 }
3926 
3927 # This function will check if we're called from the "configure" wrapper while
3928 # printing --help. If so, we will print out additional information that can
3929 # only be extracted within the autoconf script, and then exit. This must be
3930 # called at the very beginning in configure.ac.
3931 
3932 
3933 
3934 
3935 
3936 
3937 #
3938 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3939 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3940 #
3941 # This code is free software; you can redistribute it and/or modify it
3942 # under the terms of the GNU General Public License version 2 only, as
3943 # published by the Free Software Foundation.  Oracle designates this
3944 # particular file as subject to the "Classpath" exception as provided
3945 # by Oracle in the LICENSE file that accompanied this code.
3946 #
3947 # This code is distributed in the hope that it will be useful, but WITHOUT
3948 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3949 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3950 # version 2 for more details (a copy is included in the LICENSE file that
3951 # accompanied this code).
3952 #
3953 # You should have received a copy of the GNU General Public License version
3954 # 2 along with this work; if not, write to the Free Software Foundation,
3955 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3956 #
3957 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3958 # or visit www.oracle.com if you need additional information or have any
3959 # questions.
3960 #
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 ###############################################################################
3972 #
3973 # Should we build only OpenJDK even if closed sources are present?
3974 #
3975 
3976 
3977 
3978 
3979 ###############################################################################
3980 #
3981 # Setup version numbers
3982 #
3983 
3984 
3985 
3986 
3987 
3988 
3989 ################################################################################
3990 #
3991 # Gcov coverage data for hotspot
3992 #
3993 
3994 
3995 ################################################################################
3996 #
3997 # Static build support.  When enabled will generate static
3998 # libraries instead of shared libraries for all JDK libs.
3999 #
4000 
4001 
4002 
4003 
4004 #
4005 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4006 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4007 #
4008 # This code is free software; you can redistribute it and/or modify it
4009 # under the terms of the GNU General Public License version 2 only, as
4010 # published by the Free Software Foundation.  Oracle designates this
4011 # particular file as subject to the "Classpath" exception as provided
4012 # by Oracle in the LICENSE file that accompanied this code.
4013 #
4014 # This code is distributed in the hope that it will be useful, but WITHOUT
4015 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4016 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4017 # version 2 for more details (a copy is included in the LICENSE file that
4018 # accompanied this code).
4019 #
4020 # You should have received a copy of the GNU General Public License version
4021 # 2 along with this work; if not, write to the Free Software Foundation,
4022 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4023 #
4024 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4025 # or visit www.oracle.com if you need additional information or have any
4026 # questions.
4027 #
4028 
4029 # Major library component reside in separate files.
4030 #
4031 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4032 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4033 #
4034 # This code is free software; you can redistribute it and/or modify it
4035 # under the terms of the GNU General Public License version 2 only, as
4036 # published by the Free Software Foundation.  Oracle designates this
4037 # particular file as subject to the "Classpath" exception as provided
4038 # by Oracle in the LICENSE file that accompanied this code.
4039 #
4040 # This code is distributed in the hope that it will be useful, but WITHOUT
4041 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4042 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4043 # version 2 for more details (a copy is included in the LICENSE file that
4044 # accompanied this code).
4045 #
4046 # You should have received a copy of the GNU General Public License version
4047 # 2 along with this work; if not, write to the Free Software Foundation,
4048 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4049 #
4050 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4051 # or visit www.oracle.com if you need additional information or have any
4052 # questions.
4053 #
4054 
4055 ################################################################################
4056 # Setup alsa (Advanced Linux Sound Architecture)
4057 ################################################################################
4058 
4059 
4060 #
4061 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4062 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4063 #
4064 # This code is free software; you can redistribute it and/or modify it
4065 # under the terms of the GNU General Public License version 2 only, as
4066 # published by the Free Software Foundation.  Oracle designates this
4067 # particular file as subject to the "Classpath" exception as provided
4068 # by Oracle in the LICENSE file that accompanied this code.
4069 #
4070 # This code is distributed in the hope that it will be useful, but WITHOUT
4071 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4072 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4073 # version 2 for more details (a copy is included in the LICENSE file that
4074 # accompanied this code).
4075 #
4076 # You should have received a copy of the GNU General Public License version
4077 # 2 along with this work; if not, write to the Free Software Foundation,
4078 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4079 #
4080 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4081 # or visit www.oracle.com if you need additional information or have any
4082 # questions.
4083 #
4084 
4085 ################################################################################
4086 # Setup bundled libraries.
4087 #
4088 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4089 # OpenJDK repository. Default is to use these libraries as bundled, but they
4090 # might be replaced by en external version by the user.
4091 ################################################################################
4092 
4093 
4094 ################################################################################
4095 # Setup libjpeg
4096 ################################################################################
4097 
4098 
4099 ################################################################################
4100 # Setup giflib
4101 ################################################################################
4102 
4103 
4104 ################################################################################
4105 # Setup libpng
4106 ################################################################################
4107 
4108 
4109 ################################################################################
4110 # Setup zlib
4111 ################################################################################
4112 
4113 
4114 ################################################################################
4115 # Setup lcms (Little CMS)
4116 ################################################################################
4117 
4118 
4119 #
4120 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4121 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4122 #
4123 # This code is free software; you can redistribute it and/or modify it
4124 # under the terms of the GNU General Public License version 2 only, as
4125 # published by the Free Software Foundation.  Oracle designates this
4126 # particular file as subject to the "Classpath" exception as provided
4127 # by Oracle in the LICENSE file that accompanied this code.
4128 #
4129 # This code is distributed in the hope that it will be useful, but WITHOUT
4130 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4131 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4132 # version 2 for more details (a copy is included in the LICENSE file that
4133 # accompanied this code).
4134 #
4135 # You should have received a copy of the GNU General Public License version
4136 # 2 along with this work; if not, write to the Free Software Foundation,
4137 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4138 #
4139 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4140 # or visit www.oracle.com if you need additional information or have any
4141 # questions.
4142 #
4143 
4144 ################################################################################
4145 # Setup cups (Common Unix Printing System)
4146 ################################################################################
4147 
4148 
4149 #
4150 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4151 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4152 #
4153 # This code is free software; you can redistribute it and/or modify it
4154 # under the terms of the GNU General Public License version 2 only, as
4155 # published by the Free Software Foundation.  Oracle designates this
4156 # particular file as subject to the "Classpath" exception as provided
4157 # by Oracle in the LICENSE file that accompanied this code.
4158 #
4159 # This code is distributed in the hope that it will be useful, but WITHOUT
4160 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4161 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4162 # version 2 for more details (a copy is included in the LICENSE file that
4163 # accompanied this code).
4164 #
4165 # You should have received a copy of the GNU General Public License version
4166 # 2 along with this work; if not, write to the Free Software Foundation,
4167 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4168 #
4169 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4170 # or visit www.oracle.com if you need additional information or have any
4171 # questions.
4172 #
4173 
4174 ################################################################################
4175 # Setup libffi (Foreign Function Interface)
4176 ################################################################################
4177 
4178 
4179 #
4180 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4181 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4182 #
4183 # This code is free software; you can redistribute it and/or modify it
4184 # under the terms of the GNU General Public License version 2 only, as
4185 # published by the Free Software Foundation.  Oracle designates this
4186 # particular file as subject to the "Classpath" exception as provided
4187 # by Oracle in the LICENSE file that accompanied this code.
4188 #
4189 # This code is distributed in the hope that it will be useful, but WITHOUT
4190 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4191 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4192 # version 2 for more details (a copy is included in the LICENSE file that
4193 # accompanied this code).
4194 #
4195 # You should have received a copy of the GNU General Public License version
4196 # 2 along with this work; if not, write to the Free Software Foundation,
4197 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4198 #
4199 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4200 # or visit www.oracle.com if you need additional information or have any
4201 # questions.
4202 #
4203 
4204 ################################################################################
4205 # Build the freetype lib from source
4206 ################################################################################
4207 
4208 
4209 ################################################################################
4210 # Check if a potential freeype library match is correct and usable
4211 ################################################################################
4212 
4213 
4214 ################################################################################
4215 # Setup freetype (The FreeType2 font rendering library)
4216 ################################################################################
4217 
4218 
4219 #
4220 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4221 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4222 #
4223 # This code is free software; you can redistribute it and/or modify it
4224 # under the terms of the GNU General Public License version 2 only, as
4225 # published by the Free Software Foundation.  Oracle designates this
4226 # particular file as subject to the "Classpath" exception as provided
4227 # by Oracle in the LICENSE file that accompanied this code.
4228 #
4229 # This code is distributed in the hope that it will be useful, but WITHOUT
4230 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4231 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4232 # version 2 for more details (a copy is included in the LICENSE file that
4233 # accompanied this code).
4234 #
4235 # You should have received a copy of the GNU General Public License version
4236 # 2 along with this work; if not, write to the Free Software Foundation,
4237 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4238 #
4239 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4240 # or visit www.oracle.com if you need additional information or have any
4241 # questions.
4242 #
4243 
4244 ################################################################################
4245 # Setup the standard C/C++ runtime libraries.
4246 #
4247 # Most importantly, determine if stdc++ should be linked statically or
4248 # dynamically.
4249 ################################################################################
4250 
4251 
4252 #
4253 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4254 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4255 #
4256 # This code is free software; you can redistribute it and/or modify it
4257 # under the terms of the GNU General Public License version 2 only, as
4258 # published by the Free Software Foundation.  Oracle designates this
4259 # particular file as subject to the "Classpath" exception as provided
4260 # by Oracle in the LICENSE file that accompanied this code.
4261 #
4262 # This code is distributed in the hope that it will be useful, but WITHOUT
4263 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4264 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4265 # version 2 for more details (a copy is included in the LICENSE file that
4266 # accompanied this code).
4267 #
4268 # You should have received a copy of the GNU General Public License version
4269 # 2 along with this work; if not, write to the Free Software Foundation,
4270 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4271 #
4272 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4273 # or visit www.oracle.com if you need additional information or have any
4274 # questions.
4275 #
4276 
4277 ################################################################################
4278 # Setup X11 Windows system
4279 ################################################################################
4280 
4281 
4282 
4283 ################################################################################
4284 # Determine which libraries are needed for this configuration
4285 ################################################################################
4286 
4287 
4288 ################################################################################
4289 # Parse library options, and setup needed libraries
4290 ################################################################################
4291 
4292 
4293 ################################################################################
4294 # Setup llvm (Low-Level VM)
4295 ################################################################################
4296 
4297 
4298 ################################################################################
4299 # Setup various libraries, typically small system libraries
4300 ################################################################################
4301 
4302 
4303 #
4304 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4305 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4306 #
4307 # This code is free software; you can redistribute it and/or modify it
4308 # under the terms of the GNU General Public License version 2 only, as
4309 # published by the Free Software Foundation.  Oracle designates this
4310 # particular file as subject to the "Classpath" exception as provided
4311 # by Oracle in the LICENSE file that accompanied this code.
4312 #
4313 # This code is distributed in the hope that it will be useful, but WITHOUT
4314 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4315 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4316 # version 2 for more details (a copy is included in the LICENSE file that
4317 # accompanied this code).
4318 #
4319 # You should have received a copy of the GNU General Public License version
4320 # 2 along with this work; if not, write to the Free Software Foundation,
4321 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4322 #
4323 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4324 # or visit www.oracle.com if you need additional information or have any
4325 # questions.
4326 #
4327 
4328 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4329 # Converts autoconf style CPU name to OpenJDK style, into
4330 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4331 
4332 
4333 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4334 # Converts autoconf style OS name to OpenJDK style, into
4335 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4336 
4337 
4338 # Expects $host_os $host_cpu $build_os and $build_cpu
4339 # and $with_target_bits to have been setup!
4340 #
4341 # Translate the standard triplet(quadruplet) definition
4342 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4343 # OPENJDK_BUILD_OS, etc.
4344 
4345 
4346 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4347 # accordingly. Must be done after setting up build and target system, but before
4348 # doing anything else with these values.
4349 
4350 
4351 # Setup the legacy variables, for controlling the old makefiles.
4352 #
4353 
4354 
4355 
4356 
4357 #%%% Build and target systems %%%
4358 
4359 
4360 
4361 
4362 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4363 # Add -mX to various FLAGS variables.
4364 
4365 
4366 
4367 
4368 
4369 
4370 #
4371 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4372 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4373 #
4374 # This code is free software; you can redistribute it and/or modify it
4375 # under the terms of the GNU General Public License version 2 only, as
4376 # published by the Free Software Foundation.  Oracle designates this
4377 # particular file as subject to the "Classpath" exception as provided
4378 # by Oracle in the LICENSE file that accompanied this code.
4379 #
4380 # This code is distributed in the hope that it will be useful, but WITHOUT
4381 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4382 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4383 # version 2 for more details (a copy is included in the LICENSE file that
4384 # accompanied this code).
4385 #
4386 # You should have received a copy of the GNU General Public License version
4387 # 2 along with this work; if not, write to the Free Software Foundation,
4388 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4389 #
4390 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4391 # or visit www.oracle.com if you need additional information or have any
4392 # questions.
4393 #
4394 
4395 
4396 
4397 
4398 
4399 
4400 
4401 #
4402 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4403 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4404 #
4405 # This code is free software; you can redistribute it and/or modify it
4406 # under the terms of the GNU General Public License version 2 only, as
4407 # published by the Free Software Foundation.  Oracle designates this
4408 # particular file as subject to the "Classpath" exception as provided
4409 # by Oracle in the LICENSE file that accompanied this code.
4410 #
4411 # This code is distributed in the hope that it will be useful, but WITHOUT
4412 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4413 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4414 # version 2 for more details (a copy is included in the LICENSE file that
4415 # accompanied this code).
4416 #
4417 # You should have received a copy of the GNU General Public License version
4418 # 2 along with this work; if not, write to the Free Software Foundation,
4419 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4420 #
4421 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4422 # or visit www.oracle.com if you need additional information or have any
4423 # questions.
4424 #
4425 
4426 ########################################################################
4427 # This file is responsible for detecting, verifying and setting up the
4428 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4429 # proper paths to the binaries, but it will not setup any flags.
4430 #
4431 # The binaries used is determined by the toolchain type, which is the family of
4432 # compilers and related tools that are used.
4433 ########################################################################
4434 
4435 
4436 # All valid toolchains, regardless of platform (used by help.m4)
4437 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4438 
4439 # These toolchains are valid on different platforms
4440 VALID_TOOLCHAINS_linux="gcc clang"
4441 VALID_TOOLCHAINS_solaris="solstudio"
4442 VALID_TOOLCHAINS_macosx="gcc clang"
4443 VALID_TOOLCHAINS_aix="xlc"
4444 VALID_TOOLCHAINS_windows="microsoft"
4445 
4446 # Toolchain descriptions
4447 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4448 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4449 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4450 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4451 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4452 
4453 # Setup a number of variables describing how native output files are
4454 # named on this platform/toolchain.
4455 
4456 
4457 # Determine which toolchain type to use, and make sure it is valid for this
4458 # platform. Setup various information about the selected toolchain.
4459 
4460 
4461 # Before we start detecting the toolchain executables, we might need some
4462 # special setup, e.g. additional paths etc.
4463 
4464 
4465 # Restore path, etc
4466 
4467 
4468 # Check if a compiler is of the toolchain type we expect, and save the version
4469 # information from it. If the compiler does not match the expected type,
4470 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4471 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4472 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4473 #
4474 # $1 = compiler to test (CC or CXX)
4475 # $2 = human readable name of compiler (C or C++)
4476 
4477 
4478 # Try to locate the given C or C++ compiler in the path, or otherwise.
4479 #
4480 # $1 = compiler to test (CC or CXX)
4481 # $2 = human readable name of compiler (C or C++)
4482 # $3 = list of compiler names to search for
4483 
4484 
4485 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4486 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4487 # archiver (AR). Verify that the compilers are correct according to the
4488 # toolchain type.
4489 
4490 
4491 # Setup additional tools that is considered a part of the toolchain, but not the
4492 # core part. Many of these are highly platform-specific and do not exist,
4493 # and/or are not needed on all platforms.
4494 
4495 
4496 # Setup the build tools (i.e, the compiler and linker used to build programs
4497 # that should be run on the build platform, not the target platform, as a build
4498 # helper). Since the non-cross-compile case uses the normal, target compilers
4499 # for this, we can only do this after these have been setup.
4500 
4501 
4502 # Setup legacy variables that are still needed as alternative ways to refer to
4503 # parts of the toolchain.
4504 
4505 
4506 # Do some additional checks on the detected tools.
4507 
4508 
4509 # Setup the JTReg Regression Test Harness.
4510 
4511 
4512 #
4513 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4514 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4515 #
4516 # This code is free software; you can redistribute it and/or modify it
4517 # under the terms of the GNU General Public License version 2 only, as
4518 # published by the Free Software Foundation.  Oracle designates this
4519 # particular file as subject to the "Classpath" exception as provided
4520 # by Oracle in the LICENSE file that accompanied this code.
4521 #
4522 # This code is distributed in the hope that it will be useful, but WITHOUT
4523 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4524 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4525 # version 2 for more details (a copy is included in the LICENSE file that
4526 # accompanied this code).
4527 #
4528 # You should have received a copy of the GNU General Public License version
4529 # 2 along with this work; if not, write to the Free Software Foundation,
4530 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4531 #
4532 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4533 # or visit www.oracle.com if you need additional information or have any
4534 # questions.
4535 #
4536 
4537 ################################################################################
4538 # The order of these defines the priority by which we try to find them.
4539 VALID_VS_VERSIONS="2013 2012 2010"
4540 
4541 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4542 VS_VERSION_INTERNAL_2010=100
4543 VS_MSVCR_2010=msvcr100.dll
4544 # We don't use msvcp on Visual Studio 2010
4545 #VS_MSVCP_2010=msvcp100.dll
4546 VS_ENVVAR_2010="VS100COMNTOOLS"
4547 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4548 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4549 VS_VS_PLATFORM_NAME_2010="v100"
4550 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4551 
4552 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4553 VS_VERSION_INTERNAL_2012=110
4554 VS_MSVCR_2012=msvcr110.dll
4555 VS_MSVCP_2012=msvcp110.dll
4556 VS_ENVVAR_2012="VS110COMNTOOLS"
4557 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4558 VS_SDK_INSTALLDIR_2012=
4559 VS_VS_PLATFORM_NAME_2012="v110"
4560 VS_SDK_PLATFORM_NAME_2012=
4561 
4562 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4563 VS_VERSION_INTERNAL_2013=120
4564 VS_MSVCR_2013=msvcr120.dll
4565 VS_MSVCP_2013=msvcp120.dll
4566 VS_ENVVAR_2013="VS120COMNTOOLS"
4567 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4568 VS_SDK_INSTALLDIR_2013=
4569 VS_VS_PLATFORM_NAME_2013="v120"
4570 VS_SDK_PLATFORM_NAME_2013=
4571 
4572 ################################################################################
4573 
4574 
4575 
4576 ################################################################################
4577 
4578 
4579 
4580 ################################################################################
4581 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4582 # build environment and assigns it to VS_ENV_CMD
4583 
4584 
4585 ################################################################################
4586 
4587 
4588 
4589 ################################################################################
4590 # Check if the VS env variables were setup prior to running configure.
4591 # If not, then find vcvarsall.bat and run it automatically, and integrate
4592 # the set env variables into the spec file.
4593 
4594 
4595 
4596 
4597 
4598 
4599 
4600 
4601 
4602 
4603 
4604 
4605 
4606 
4607 # This line needs to be here, verbatim, after all includes and the dummy hook
4608 # definitions. It is replaced with custom functionality when building
4609 # custom sources.
4610 #CUSTOM_AUTOCONF_INCLUDE
4611 
4612 # Do not change or remove the following line, it is needed for consistency checks:
4613 DATE_WHEN_GENERATED=1446762265
4614 
4615 ###############################################################################
4616 #
4617 # Initialization / Boot-strapping
4618 #
4619 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4620 # thus it jumps back and forth, each time gaining something needed later on.
4621 #
4622 ###############################################################################
4623 
4624 # If we are requested to print additional help, do that and then exit.
4625 # This must be the very first call.
4626 
4627   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4628     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4629     $PRINTF "Which are valid to use depends on the build platform.\n"
4630     for toolchain in $VALID_TOOLCHAINS_all; do
4631       # Use indirect variable referencing
4632       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4633       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4634       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4635     done
4636 
4637     # And now exit directly
4638     exit 0
4639   fi
4640 
4641 
4642 # Basic initialization that must happen first of all in the normal process.
4643 
4644   # Save the original command line. This is passed to us by the wrapper configure script.
4645 
4646   # Save the path variable before it gets changed
4647   ORIGINAL_PATH="$PATH"
4648 
4649   DATE_WHEN_CONFIGURED=`LANG=C date`
4650 
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4652 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4654 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4655 
4656 
4657   # Start with tools that do not need have cross compilation support
4658   # and can be expected to be found in the default PATH. These tools are
4659   # used by configure.
4660 
4661   # First are all the simple required tools.
4662 
4663 
4664 
4665   # Publish this variable in the help.
4666 
4667 
4668   if [ -z "${BASENAME+x}" ]; then
4669     # The variable is not set by user, try to locate tool using the code snippet
4670     for ac_prog in basename
4671 do
4672   # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_path_BASENAME+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   case $BASENAME in
4680   [\\/]* | ?:[\\/]*)
4681   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4682   ;;
4683   *)
4684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689     for ac_exec_ext in '' $ac_executable_extensions; do
4690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696   done
4697 IFS=$as_save_IFS
4698 
4699   ;;
4700 esac
4701 fi
4702 BASENAME=$ac_cv_path_BASENAME
4703 if test -n "$BASENAME"; then
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4705 $as_echo "$BASENAME" >&6; }
4706 else
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710 
4711 
4712   test -n "$BASENAME" && break
4713 done
4714 
4715   else
4716     # The variable is set, but is it from the command line or the environment?
4717 
4718     # Try to remove the string !BASENAME! from our list.
4719     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4720     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4721       # If it failed, the variable was not from the command line. Ignore it,
4722       # but warn the user (except for BASH, which is always set by the calling BASH).
4723       if test "xBASENAME" != xBASH; then
4724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4725 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4726       fi
4727       # Try to locate tool using the code snippet
4728       for ac_prog in basename
4729 do
4730   # Extract the first word of "$ac_prog", so it can be a program name with args.
4731 set dummy $ac_prog; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_path_BASENAME+:} false; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   case $BASENAME in
4738   [\\/]* | ?:[\\/]*)
4739   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4740   ;;
4741   *)
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752   fi
4753 done
4754   done
4755 IFS=$as_save_IFS
4756 
4757   ;;
4758 esac
4759 fi
4760 BASENAME=$ac_cv_path_BASENAME
4761 if test -n "$BASENAME"; then
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4763 $as_echo "$BASENAME" >&6; }
4764 else
4765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 fi
4768 
4769 
4770   test -n "$BASENAME" && break
4771 done
4772 
4773     else
4774       # If it succeeded, then it was overridden by the user. We will use it
4775       # for the tool.
4776 
4777       # First remove it from the list of overridden variables, so we can test
4778       # for unknown variables in the end.
4779       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4780 
4781       # Check if we try to supply an empty value
4782       if test "x$BASENAME" = x; then
4783         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4784 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4785         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4786 $as_echo_n "checking for BASENAME... " >&6; }
4787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4788 $as_echo "disabled" >&6; }
4789       else
4790         # Check if the provided tool contains a complete path.
4791         tool_specified="$BASENAME"
4792         tool_basename="${tool_specified##*/}"
4793         if test "x$tool_basename" = "x$tool_specified"; then
4794           # A command without a complete path is provided, search $PATH.
4795           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4796 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4797           # Extract the first word of "$tool_basename", so it can be a program name with args.
4798 set dummy $tool_basename; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_path_BASENAME+:} false; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   case $BASENAME in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814     for ac_exec_ext in '' $ac_executable_extensions; do
4815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821   done
4822 IFS=$as_save_IFS
4823 
4824   ;;
4825 esac
4826 fi
4827 BASENAME=$ac_cv_path_BASENAME
4828 if test -n "$BASENAME"; then
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4830 $as_echo "$BASENAME" >&6; }
4831 else
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835 
4836 
4837           if test "x$BASENAME" = x; then
4838             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4839           fi
4840         else
4841           # Otherwise we believe it is a complete path. Use it as it is.
4842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4843 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4844           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4845 $as_echo_n "checking for BASENAME... " >&6; }
4846           if test ! -x "$tool_specified"; then
4847             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4848 $as_echo "not found" >&6; }
4849             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4850           fi
4851           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4852 $as_echo "$tool_specified" >&6; }
4853         fi
4854       fi
4855     fi
4856 
4857   fi
4858 
4859 
4860 
4861   if test "x$BASENAME" = x; then
4862     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4863   fi
4864 
4865 
4866 
4867 
4868 
4869   # Publish this variable in the help.
4870 
4871 
4872   if [ -z "${BASH+x}" ]; then
4873     # The variable is not set by user, try to locate tool using the code snippet
4874     for ac_prog in bash
4875 do
4876   # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_path_BASH+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   case $BASH in
4884   [\\/]* | ?:[\\/]*)
4885   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4886   ;;
4887   *)
4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900   done
4901 IFS=$as_save_IFS
4902 
4903   ;;
4904 esac
4905 fi
4906 BASH=$ac_cv_path_BASH
4907 if test -n "$BASH"; then
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4909 $as_echo "$BASH" >&6; }
4910 else
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914 
4915 
4916   test -n "$BASH" && break
4917 done
4918 
4919   else
4920     # The variable is set, but is it from the command line or the environment?
4921 
4922     # Try to remove the string !BASH! from our list.
4923     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4924     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4925       # If it failed, the variable was not from the command line. Ignore it,
4926       # but warn the user (except for BASH, which is always set by the calling BASH).
4927       if test "xBASH" != xBASH; then
4928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4929 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4930       fi
4931       # Try to locate tool using the code snippet
4932       for ac_prog in bash
4933 do
4934   # Extract the first word of "$ac_prog", so it can be a program name with args.
4935 set dummy $ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_path_BASH+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   case $BASH in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951     for ac_exec_ext in '' $ac_executable_extensions; do
4952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958   done
4959 IFS=$as_save_IFS
4960 
4961   ;;
4962 esac
4963 fi
4964 BASH=$ac_cv_path_BASH
4965 if test -n "$BASH"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4967 $as_echo "$BASH" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972 
4973 
4974   test -n "$BASH" && break
4975 done
4976 
4977     else
4978       # If it succeeded, then it was overridden by the user. We will use it
4979       # for the tool.
4980 
4981       # First remove it from the list of overridden variables, so we can test
4982       # for unknown variables in the end.
4983       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4984 
4985       # Check if we try to supply an empty value
4986       if test "x$BASH" = x; then
4987         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
4988 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
4989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4990 $as_echo_n "checking for BASH... " >&6; }
4991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4992 $as_echo "disabled" >&6; }
4993       else
4994         # Check if the provided tool contains a complete path.
4995         tool_specified="$BASH"
4996         tool_basename="${tool_specified##*/}"
4997         if test "x$tool_basename" = "x$tool_specified"; then
4998           # A command without a complete path is provided, search $PATH.
4999           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5000 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5001           # Extract the first word of "$tool_basename", so it can be a program name with args.
5002 set dummy $tool_basename; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_path_BASH+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   case $BASH in
5009   [\\/]* | ?:[\\/]*)
5010   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5011   ;;
5012   *)
5013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016   IFS=$as_save_IFS
5017   test -z "$as_dir" && as_dir=.
5018     for ac_exec_ext in '' $ac_executable_extensions; do
5019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023   fi
5024 done
5025   done
5026 IFS=$as_save_IFS
5027 
5028   ;;
5029 esac
5030 fi
5031 BASH=$ac_cv_path_BASH
5032 if test -n "$BASH"; then
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5034 $as_echo "$BASH" >&6; }
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039 
5040 
5041           if test "x$BASH" = x; then
5042             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5043           fi
5044         else
5045           # Otherwise we believe it is a complete path. Use it as it is.
5046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5047 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5048           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5049 $as_echo_n "checking for BASH... " >&6; }
5050           if test ! -x "$tool_specified"; then
5051             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5052 $as_echo "not found" >&6; }
5053             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5054           fi
5055           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5056 $as_echo "$tool_specified" >&6; }
5057         fi
5058       fi
5059     fi
5060 
5061   fi
5062 
5063 
5064 
5065   if test "x$BASH" = x; then
5066     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5067   fi
5068 
5069 
5070 
5071 
5072 
5073   # Publish this variable in the help.
5074 
5075 
5076   if [ -z "${CAT+x}" ]; then
5077     # The variable is not set by user, try to locate tool using the code snippet
5078     for ac_prog in cat
5079 do
5080   # Extract the first word of "$ac_prog", so it can be a program name with args.
5081 set dummy $ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_path_CAT+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   case $CAT in
5088   [\\/]* | ?:[\\/]*)
5089   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5090   ;;
5091   *)
5092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095   IFS=$as_save_IFS
5096   test -z "$as_dir" && as_dir=.
5097     for ac_exec_ext in '' $ac_executable_extensions; do
5098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101     break 2
5102   fi
5103 done
5104   done
5105 IFS=$as_save_IFS
5106 
5107   ;;
5108 esac
5109 fi
5110 CAT=$ac_cv_path_CAT
5111 if test -n "$CAT"; then
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5113 $as_echo "$CAT" >&6; }
5114 else
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118 
5119 
5120   test -n "$CAT" && break
5121 done
5122 
5123   else
5124     # The variable is set, but is it from the command line or the environment?
5125 
5126     # Try to remove the string !CAT! from our list.
5127     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5128     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5129       # If it failed, the variable was not from the command line. Ignore it,
5130       # but warn the user (except for BASH, which is always set by the calling BASH).
5131       if test "xCAT" != xBASH; then
5132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5133 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5134       fi
5135       # Try to locate tool using the code snippet
5136       for ac_prog in cat
5137 do
5138   # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_CAT+:} false; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   case $CAT in
5146   [\\/]* | ?:[\\/]*)
5147   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5148   ;;
5149   *)
5150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155     for ac_exec_ext in '' $ac_executable_extensions; do
5156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162   done
5163 IFS=$as_save_IFS
5164 
5165   ;;
5166 esac
5167 fi
5168 CAT=$ac_cv_path_CAT
5169 if test -n "$CAT"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5171 $as_echo "$CAT" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176 
5177 
5178   test -n "$CAT" && break
5179 done
5180 
5181     else
5182       # If it succeeded, then it was overridden by the user. We will use it
5183       # for the tool.
5184 
5185       # First remove it from the list of overridden variables, so we can test
5186       # for unknown variables in the end.
5187       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5188 
5189       # Check if we try to supply an empty value
5190       if test "x$CAT" = x; then
5191         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5192 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5194 $as_echo_n "checking for CAT... " >&6; }
5195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5196 $as_echo "disabled" >&6; }
5197       else
5198         # Check if the provided tool contains a complete path.
5199         tool_specified="$CAT"
5200         tool_basename="${tool_specified##*/}"
5201         if test "x$tool_basename" = "x$tool_specified"; then
5202           # A command without a complete path is provided, search $PATH.
5203           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5204 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5205           # Extract the first word of "$tool_basename", so it can be a program name with args.
5206 set dummy $tool_basename; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_path_CAT+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   case $CAT in
5213   [\\/]* | ?:[\\/]*)
5214   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5215   ;;
5216   *)
5217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229   done
5230 IFS=$as_save_IFS
5231 
5232   ;;
5233 esac
5234 fi
5235 CAT=$ac_cv_path_CAT
5236 if test -n "$CAT"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5238 $as_echo "$CAT" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243 
5244 
5245           if test "x$CAT" = x; then
5246             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5247           fi
5248         else
5249           # Otherwise we believe it is a complete path. Use it as it is.
5250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5251 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5252           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5253 $as_echo_n "checking for CAT... " >&6; }
5254           if test ! -x "$tool_specified"; then
5255             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5256 $as_echo "not found" >&6; }
5257             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5258           fi
5259           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5260 $as_echo "$tool_specified" >&6; }
5261         fi
5262       fi
5263     fi
5264 
5265   fi
5266 
5267 
5268 
5269   if test "x$CAT" = x; then
5270     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5271   fi
5272 
5273 
5274 
5275 
5276 
5277   # Publish this variable in the help.
5278 
5279 
5280   if [ -z "${CHMOD+x}" ]; then
5281     # The variable is not set by user, try to locate tool using the code snippet
5282     for ac_prog in chmod
5283 do
5284   # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_CHMOD+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   case $CHMOD in
5292   [\\/]* | ?:[\\/]*)
5293   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5294   ;;
5295   *)
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301     for ac_exec_ext in '' $ac_executable_extensions; do
5302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305     break 2
5306   fi
5307 done
5308   done
5309 IFS=$as_save_IFS
5310 
5311   ;;
5312 esac
5313 fi
5314 CHMOD=$ac_cv_path_CHMOD
5315 if test -n "$CHMOD"; then
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5317 $as_echo "$CHMOD" >&6; }
5318 else
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322 
5323 
5324   test -n "$CHMOD" && break
5325 done
5326 
5327   else
5328     # The variable is set, but is it from the command line or the environment?
5329 
5330     # Try to remove the string !CHMOD! from our list.
5331     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5332     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5333       # If it failed, the variable was not from the command line. Ignore it,
5334       # but warn the user (except for BASH, which is always set by the calling BASH).
5335       if test "xCHMOD" != xBASH; then
5336         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5337 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5338       fi
5339       # Try to locate tool using the code snippet
5340       for ac_prog in chmod
5341 do
5342   # Extract the first word of "$ac_prog", so it can be a program name with args.
5343 set dummy $ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_path_CHMOD+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   case $CHMOD in
5350   [\\/]* | ?:[\\/]*)
5351   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5352   ;;
5353   *)
5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366   done
5367 IFS=$as_save_IFS
5368 
5369   ;;
5370 esac
5371 fi
5372 CHMOD=$ac_cv_path_CHMOD
5373 if test -n "$CHMOD"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5375 $as_echo "$CHMOD" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380 
5381 
5382   test -n "$CHMOD" && break
5383 done
5384 
5385     else
5386       # If it succeeded, then it was overridden by the user. We will use it
5387       # for the tool.
5388 
5389       # First remove it from the list of overridden variables, so we can test
5390       # for unknown variables in the end.
5391       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5392 
5393       # Check if we try to supply an empty value
5394       if test "x$CHMOD" = x; then
5395         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5396 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5398 $as_echo_n "checking for CHMOD... " >&6; }
5399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5400 $as_echo "disabled" >&6; }
5401       else
5402         # Check if the provided tool contains a complete path.
5403         tool_specified="$CHMOD"
5404         tool_basename="${tool_specified##*/}"
5405         if test "x$tool_basename" = "x$tool_specified"; then
5406           # A command without a complete path is provided, search $PATH.
5407           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5408 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5409           # Extract the first word of "$tool_basename", so it can be a program name with args.
5410 set dummy $tool_basename; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_CHMOD+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $CHMOD in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435 
5436   ;;
5437 esac
5438 fi
5439 CHMOD=$ac_cv_path_CHMOD
5440 if test -n "$CHMOD"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5442 $as_echo "$CHMOD" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447 
5448 
5449           if test "x$CHMOD" = x; then
5450             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5451           fi
5452         else
5453           # Otherwise we believe it is a complete path. Use it as it is.
5454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5455 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5456           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5457 $as_echo_n "checking for CHMOD... " >&6; }
5458           if test ! -x "$tool_specified"; then
5459             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5460 $as_echo "not found" >&6; }
5461             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5462           fi
5463           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5464 $as_echo "$tool_specified" >&6; }
5465         fi
5466       fi
5467     fi
5468 
5469   fi
5470 
5471 
5472 
5473   if test "x$CHMOD" = x; then
5474     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5475   fi
5476 
5477 
5478 
5479 
5480 
5481   # Publish this variable in the help.
5482 
5483 
5484   if [ -z "${CMP+x}" ]; then
5485     # The variable is not set by user, try to locate tool using the code snippet
5486     for ac_prog in cmp
5487 do
5488   # Extract the first word of "$ac_prog", so it can be a program name with args.
5489 set dummy $ac_prog; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_path_CMP+:} false; then :
5493   $as_echo_n "(cached) " >&6
5494 else
5495   case $CMP in
5496   [\\/]* | ?:[\\/]*)
5497   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5498   ;;
5499   *)
5500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505     for ac_exec_ext in '' $ac_executable_extensions; do
5506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512   done
5513 IFS=$as_save_IFS
5514 
5515   ;;
5516 esac
5517 fi
5518 CMP=$ac_cv_path_CMP
5519 if test -n "$CMP"; then
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5521 $as_echo "$CMP" >&6; }
5522 else
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526 
5527 
5528   test -n "$CMP" && break
5529 done
5530 
5531   else
5532     # The variable is set, but is it from the command line or the environment?
5533 
5534     # Try to remove the string !CMP! from our list.
5535     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5536     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5537       # If it failed, the variable was not from the command line. Ignore it,
5538       # but warn the user (except for BASH, which is always set by the calling BASH).
5539       if test "xCMP" != xBASH; then
5540         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5541 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5542       fi
5543       # Try to locate tool using the code snippet
5544       for ac_prog in cmp
5545 do
5546   # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_path_CMP+:} false; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   case $CMP in
5554   [\\/]* | ?:[\\/]*)
5555   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5556   ;;
5557   *)
5558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563     for ac_exec_ext in '' $ac_executable_extensions; do
5564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567     break 2
5568   fi
5569 done
5570   done
5571 IFS=$as_save_IFS
5572 
5573   ;;
5574 esac
5575 fi
5576 CMP=$ac_cv_path_CMP
5577 if test -n "$CMP"; then
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5579 $as_echo "$CMP" >&6; }
5580 else
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5583 fi
5584 
5585 
5586   test -n "$CMP" && break
5587 done
5588 
5589     else
5590       # If it succeeded, then it was overridden by the user. We will use it
5591       # for the tool.
5592 
5593       # First remove it from the list of overridden variables, so we can test
5594       # for unknown variables in the end.
5595       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5596 
5597       # Check if we try to supply an empty value
5598       if test "x$CMP" = x; then
5599         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5600 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5602 $as_echo_n "checking for CMP... " >&6; }
5603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5604 $as_echo "disabled" >&6; }
5605       else
5606         # Check if the provided tool contains a complete path.
5607         tool_specified="$CMP"
5608         tool_basename="${tool_specified##*/}"
5609         if test "x$tool_basename" = "x$tool_specified"; then
5610           # A command without a complete path is provided, search $PATH.
5611           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5612 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5613           # Extract the first word of "$tool_basename", so it can be a program name with args.
5614 set dummy $tool_basename; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_CMP+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $CMP in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5623   ;;
5624   *)
5625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639 
5640   ;;
5641 esac
5642 fi
5643 CMP=$ac_cv_path_CMP
5644 if test -n "$CMP"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5646 $as_echo "$CMP" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651 
5652 
5653           if test "x$CMP" = x; then
5654             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5655           fi
5656         else
5657           # Otherwise we believe it is a complete path. Use it as it is.
5658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5659 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5661 $as_echo_n "checking for CMP... " >&6; }
5662           if test ! -x "$tool_specified"; then
5663             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5664 $as_echo "not found" >&6; }
5665             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5666           fi
5667           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5668 $as_echo "$tool_specified" >&6; }
5669         fi
5670       fi
5671     fi
5672 
5673   fi
5674 
5675 
5676 
5677   if test "x$CMP" = x; then
5678     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5679   fi
5680 
5681 
5682 
5683 
5684 
5685   # Publish this variable in the help.
5686 
5687 
5688   if [ -z "${COMM+x}" ]; then
5689     # The variable is not set by user, try to locate tool using the code snippet
5690     for ac_prog in comm
5691 do
5692   # Extract the first word of "$ac_prog", so it can be a program name with args.
5693 set dummy $ac_prog; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_path_COMM+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   case $COMM in
5700   [\\/]* | ?:[\\/]*)
5701   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5702   ;;
5703   *)
5704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707   IFS=$as_save_IFS
5708   test -z "$as_dir" && as_dir=.
5709     for ac_exec_ext in '' $ac_executable_extensions; do
5710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713     break 2
5714   fi
5715 done
5716   done
5717 IFS=$as_save_IFS
5718 
5719   ;;
5720 esac
5721 fi
5722 COMM=$ac_cv_path_COMM
5723 if test -n "$COMM"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5725 $as_echo "$COMM" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730 
5731 
5732   test -n "$COMM" && break
5733 done
5734 
5735   else
5736     # The variable is set, but is it from the command line or the environment?
5737 
5738     # Try to remove the string !COMM! from our list.
5739     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5740     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5741       # If it failed, the variable was not from the command line. Ignore it,
5742       # but warn the user (except for BASH, which is always set by the calling BASH).
5743       if test "xCOMM" != xBASH; then
5744         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5745 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5746       fi
5747       # Try to locate tool using the code snippet
5748       for ac_prog in comm
5749 do
5750   # Extract the first word of "$ac_prog", so it can be a program name with args.
5751 set dummy $ac_prog; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if ${ac_cv_path_COMM+:} false; then :
5755   $as_echo_n "(cached) " >&6
5756 else
5757   case $COMM in
5758   [\\/]* | ?:[\\/]*)
5759   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5760   ;;
5761   *)
5762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765   IFS=$as_save_IFS
5766   test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772   fi
5773 done
5774   done
5775 IFS=$as_save_IFS
5776 
5777   ;;
5778 esac
5779 fi
5780 COMM=$ac_cv_path_COMM
5781 if test -n "$COMM"; then
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5783 $as_echo "$COMM" >&6; }
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788 
5789 
5790   test -n "$COMM" && break
5791 done
5792 
5793     else
5794       # If it succeeded, then it was overridden by the user. We will use it
5795       # for the tool.
5796 
5797       # First remove it from the list of overridden variables, so we can test
5798       # for unknown variables in the end.
5799       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5800 
5801       # Check if we try to supply an empty value
5802       if test "x$COMM" = x; then
5803         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5804 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5806 $as_echo_n "checking for COMM... " >&6; }
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5808 $as_echo "disabled" >&6; }
5809       else
5810         # Check if the provided tool contains a complete path.
5811         tool_specified="$COMM"
5812         tool_basename="${tool_specified##*/}"
5813         if test "x$tool_basename" = "x$tool_specified"; then
5814           # A command without a complete path is provided, search $PATH.
5815           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5816 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5817           # Extract the first word of "$tool_basename", so it can be a program name with args.
5818 set dummy $tool_basename; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_path_COMM+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   case $COMM in
5825   [\\/]* | ?:[\\/]*)
5826   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5827   ;;
5828   *)
5829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843 
5844   ;;
5845 esac
5846 fi
5847 COMM=$ac_cv_path_COMM
5848 if test -n "$COMM"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5850 $as_echo "$COMM" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855 
5856 
5857           if test "x$COMM" = x; then
5858             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5859           fi
5860         else
5861           # Otherwise we believe it is a complete path. Use it as it is.
5862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5863 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5864           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5865 $as_echo_n "checking for COMM... " >&6; }
5866           if test ! -x "$tool_specified"; then
5867             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5868 $as_echo "not found" >&6; }
5869             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5870           fi
5871           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5872 $as_echo "$tool_specified" >&6; }
5873         fi
5874       fi
5875     fi
5876 
5877   fi
5878 
5879 
5880 
5881   if test "x$COMM" = x; then
5882     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5883   fi
5884 
5885 
5886 
5887 
5888 
5889   # Publish this variable in the help.
5890 
5891 
5892   if [ -z "${CP+x}" ]; then
5893     # The variable is not set by user, try to locate tool using the code snippet
5894     for ac_prog in cp
5895 do
5896   # Extract the first word of "$ac_prog", so it can be a program name with args.
5897 set dummy $ac_prog; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_path_CP+:} false; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   case $CP in
5904   [\\/]* | ?:[\\/]*)
5905   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5906   ;;
5907   *)
5908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913     for ac_exec_ext in '' $ac_executable_extensions; do
5914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920   done
5921 IFS=$as_save_IFS
5922 
5923   ;;
5924 esac
5925 fi
5926 CP=$ac_cv_path_CP
5927 if test -n "$CP"; then
5928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5929 $as_echo "$CP" >&6; }
5930 else
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934 
5935 
5936   test -n "$CP" && break
5937 done
5938 
5939   else
5940     # The variable is set, but is it from the command line or the environment?
5941 
5942     # Try to remove the string !CP! from our list.
5943     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5944     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5945       # If it failed, the variable was not from the command line. Ignore it,
5946       # but warn the user (except for BASH, which is always set by the calling BASH).
5947       if test "xCP" != xBASH; then
5948         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5949 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5950       fi
5951       # Try to locate tool using the code snippet
5952       for ac_prog in cp
5953 do
5954   # Extract the first word of "$ac_prog", so it can be a program name with args.
5955 set dummy $ac_prog; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_path_CP+:} false; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   case $CP in
5962   [\\/]* | ?:[\\/]*)
5963   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5964   ;;
5965   *)
5966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971     for ac_exec_ext in '' $ac_executable_extensions; do
5972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978   done
5979 IFS=$as_save_IFS
5980 
5981   ;;
5982 esac
5983 fi
5984 CP=$ac_cv_path_CP
5985 if test -n "$CP"; then
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5987 $as_echo "$CP" >&6; }
5988 else
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992 
5993 
5994   test -n "$CP" && break
5995 done
5996 
5997     else
5998       # If it succeeded, then it was overridden by the user. We will use it
5999       # for the tool.
6000 
6001       # First remove it from the list of overridden variables, so we can test
6002       # for unknown variables in the end.
6003       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6004 
6005       # Check if we try to supply an empty value
6006       if test "x$CP" = x; then
6007         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6008 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6010 $as_echo_n "checking for CP... " >&6; }
6011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6012 $as_echo "disabled" >&6; }
6013       else
6014         # Check if the provided tool contains a complete path.
6015         tool_specified="$CP"
6016         tool_basename="${tool_specified##*/}"
6017         if test "x$tool_basename" = "x$tool_specified"; then
6018           # A command without a complete path is provided, search $PATH.
6019           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6020 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6021           # Extract the first word of "$tool_basename", so it can be a program name with args.
6022 set dummy $tool_basename; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_path_CP+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   case $CP in
6029   [\\/]* | ?:[\\/]*)
6030   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6031   ;;
6032   *)
6033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047 
6048   ;;
6049 esac
6050 fi
6051 CP=$ac_cv_path_CP
6052 if test -n "$CP"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6054 $as_echo "$CP" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059 
6060 
6061           if test "x$CP" = x; then
6062             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6063           fi
6064         else
6065           # Otherwise we believe it is a complete path. Use it as it is.
6066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6067 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6068           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6069 $as_echo_n "checking for CP... " >&6; }
6070           if test ! -x "$tool_specified"; then
6071             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6072 $as_echo "not found" >&6; }
6073             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6074           fi
6075           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6076 $as_echo "$tool_specified" >&6; }
6077         fi
6078       fi
6079     fi
6080 
6081   fi
6082 
6083 
6084 
6085   if test "x$CP" = x; then
6086     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6087   fi
6088 
6089 
6090 
6091 
6092 
6093   # Publish this variable in the help.
6094 
6095 
6096   if [ -z "${CUT+x}" ]; then
6097     # The variable is not set by user, try to locate tool using the code snippet
6098     for ac_prog in cut
6099 do
6100   # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_path_CUT+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   case $CUT in
6108   [\\/]* | ?:[\\/]*)
6109   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6110   ;;
6111   *)
6112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124   done
6125 IFS=$as_save_IFS
6126 
6127   ;;
6128 esac
6129 fi
6130 CUT=$ac_cv_path_CUT
6131 if test -n "$CUT"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6133 $as_echo "$CUT" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138 
6139 
6140   test -n "$CUT" && break
6141 done
6142 
6143   else
6144     # The variable is set, but is it from the command line or the environment?
6145 
6146     # Try to remove the string !CUT! from our list.
6147     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6148     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6149       # If it failed, the variable was not from the command line. Ignore it,
6150       # but warn the user (except for BASH, which is always set by the calling BASH).
6151       if test "xCUT" != xBASH; then
6152         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6153 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6154       fi
6155       # Try to locate tool using the code snippet
6156       for ac_prog in cut
6157 do
6158   # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy $ac_prog; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_path_CUT+:} false; then :
6163   $as_echo_n "(cached) " >&6
6164 else
6165   case $CUT in
6166   [\\/]* | ?:[\\/]*)
6167   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6168   ;;
6169   *)
6170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173   IFS=$as_save_IFS
6174   test -z "$as_dir" && as_dir=.
6175     for ac_exec_ext in '' $ac_executable_extensions; do
6176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179     break 2
6180   fi
6181 done
6182   done
6183 IFS=$as_save_IFS
6184 
6185   ;;
6186 esac
6187 fi
6188 CUT=$ac_cv_path_CUT
6189 if test -n "$CUT"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6191 $as_echo "$CUT" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196 
6197 
6198   test -n "$CUT" && break
6199 done
6200 
6201     else
6202       # If it succeeded, then it was overridden by the user. We will use it
6203       # for the tool.
6204 
6205       # First remove it from the list of overridden variables, so we can test
6206       # for unknown variables in the end.
6207       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6208 
6209       # Check if we try to supply an empty value
6210       if test "x$CUT" = x; then
6211         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6212 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6214 $as_echo_n "checking for CUT... " >&6; }
6215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6216 $as_echo "disabled" >&6; }
6217       else
6218         # Check if the provided tool contains a complete path.
6219         tool_specified="$CUT"
6220         tool_basename="${tool_specified##*/}"
6221         if test "x$tool_basename" = "x$tool_specified"; then
6222           # A command without a complete path is provided, search $PATH.
6223           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6224 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6225           # Extract the first word of "$tool_basename", so it can be a program name with args.
6226 set dummy $tool_basename; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_path_CUT+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   case $CUT in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249   done
6250 IFS=$as_save_IFS
6251 
6252   ;;
6253 esac
6254 fi
6255 CUT=$ac_cv_path_CUT
6256 if test -n "$CUT"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6258 $as_echo "$CUT" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263 
6264 
6265           if test "x$CUT" = x; then
6266             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6267           fi
6268         else
6269           # Otherwise we believe it is a complete path. Use it as it is.
6270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6271 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6272           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6273 $as_echo_n "checking for CUT... " >&6; }
6274           if test ! -x "$tool_specified"; then
6275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6276 $as_echo "not found" >&6; }
6277             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6278           fi
6279           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6280 $as_echo "$tool_specified" >&6; }
6281         fi
6282       fi
6283     fi
6284 
6285   fi
6286 
6287 
6288 
6289   if test "x$CUT" = x; then
6290     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6291   fi
6292 
6293 
6294 
6295 
6296 
6297   # Publish this variable in the help.
6298 
6299 
6300   if [ -z "${DATE+x}" ]; then
6301     # The variable is not set by user, try to locate tool using the code snippet
6302     for ac_prog in date
6303 do
6304   # Extract the first word of "$ac_prog", so it can be a program name with args.
6305 set dummy $ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_path_DATE+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   case $DATE in
6312   [\\/]* | ?:[\\/]*)
6313   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6314   ;;
6315   *)
6316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319   IFS=$as_save_IFS
6320   test -z "$as_dir" && as_dir=.
6321     for ac_exec_ext in '' $ac_executable_extensions; do
6322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325     break 2
6326   fi
6327 done
6328   done
6329 IFS=$as_save_IFS
6330 
6331   ;;
6332 esac
6333 fi
6334 DATE=$ac_cv_path_DATE
6335 if test -n "$DATE"; then
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6337 $as_echo "$DATE" >&6; }
6338 else
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342 
6343 
6344   test -n "$DATE" && break
6345 done
6346 
6347   else
6348     # The variable is set, but is it from the command line or the environment?
6349 
6350     # Try to remove the string !DATE! from our list.
6351     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6352     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6353       # If it failed, the variable was not from the command line. Ignore it,
6354       # but warn the user (except for BASH, which is always set by the calling BASH).
6355       if test "xDATE" != xBASH; then
6356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6357 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6358       fi
6359       # Try to locate tool using the code snippet
6360       for ac_prog in date
6361 do
6362   # Extract the first word of "$ac_prog", so it can be a program name with args.
6363 set dummy $ac_prog; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if ${ac_cv_path_DATE+:} false; then :
6367   $as_echo_n "(cached) " >&6
6368 else
6369   case $DATE in
6370   [\\/]* | ?:[\\/]*)
6371   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6372   ;;
6373   *)
6374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6376 do
6377   IFS=$as_save_IFS
6378   test -z "$as_dir" && as_dir=.
6379     for ac_exec_ext in '' $ac_executable_extensions; do
6380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383     break 2
6384   fi
6385 done
6386   done
6387 IFS=$as_save_IFS
6388 
6389   ;;
6390 esac
6391 fi
6392 DATE=$ac_cv_path_DATE
6393 if test -n "$DATE"; then
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6395 $as_echo "$DATE" >&6; }
6396 else
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400 
6401 
6402   test -n "$DATE" && break
6403 done
6404 
6405     else
6406       # If it succeeded, then it was overridden by the user. We will use it
6407       # for the tool.
6408 
6409       # First remove it from the list of overridden variables, so we can test
6410       # for unknown variables in the end.
6411       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6412 
6413       # Check if we try to supply an empty value
6414       if test "x$DATE" = x; then
6415         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6416 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6417         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6418 $as_echo_n "checking for DATE... " >&6; }
6419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6420 $as_echo "disabled" >&6; }
6421       else
6422         # Check if the provided tool contains a complete path.
6423         tool_specified="$DATE"
6424         tool_basename="${tool_specified##*/}"
6425         if test "x$tool_basename" = "x$tool_specified"; then
6426           # A command without a complete path is provided, search $PATH.
6427           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6428 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6429           # Extract the first word of "$tool_basename", so it can be a program name with args.
6430 set dummy $tool_basename; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_path_DATE+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   case $DATE in
6437   [\\/]* | ?:[\\/]*)
6438   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6439   ;;
6440   *)
6441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455 
6456   ;;
6457 esac
6458 fi
6459 DATE=$ac_cv_path_DATE
6460 if test -n "$DATE"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6462 $as_echo "$DATE" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467 
6468 
6469           if test "x$DATE" = x; then
6470             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6471           fi
6472         else
6473           # Otherwise we believe it is a complete path. Use it as it is.
6474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6475 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6476           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6477 $as_echo_n "checking for DATE... " >&6; }
6478           if test ! -x "$tool_specified"; then
6479             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6480 $as_echo "not found" >&6; }
6481             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6482           fi
6483           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6484 $as_echo "$tool_specified" >&6; }
6485         fi
6486       fi
6487     fi
6488 
6489   fi
6490 
6491 
6492 
6493   if test "x$DATE" = x; then
6494     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6495   fi
6496 
6497 
6498 
6499 
6500 
6501   # Publish this variable in the help.
6502 
6503 
6504   if [ -z "${DIFF+x}" ]; then
6505     # The variable is not set by user, try to locate tool using the code snippet
6506     for ac_prog in gdiff diff
6507 do
6508   # Extract the first word of "$ac_prog", so it can be a program name with args.
6509 set dummy $ac_prog; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_path_DIFF+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   case $DIFF in
6516   [\\/]* | ?:[\\/]*)
6517   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6518   ;;
6519   *)
6520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534 
6535   ;;
6536 esac
6537 fi
6538 DIFF=$ac_cv_path_DIFF
6539 if test -n "$DIFF"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6541 $as_echo "$DIFF" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6545 fi
6546 
6547 
6548   test -n "$DIFF" && break
6549 done
6550 
6551   else
6552     # The variable is set, but is it from the command line or the environment?
6553 
6554     # Try to remove the string !DIFF! from our list.
6555     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6556     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6557       # If it failed, the variable was not from the command line. Ignore it,
6558       # but warn the user (except for BASH, which is always set by the calling BASH).
6559       if test "xDIFF" != xBASH; then
6560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6561 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6562       fi
6563       # Try to locate tool using the code snippet
6564       for ac_prog in gdiff diff
6565 do
6566   # Extract the first word of "$ac_prog", so it can be a program name with args.
6567 set dummy $ac_prog; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_path_DIFF+:} false; then :
6571   $as_echo_n "(cached) " >&6
6572 else
6573   case $DIFF in
6574   [\\/]* | ?:[\\/]*)
6575   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6576   ;;
6577   *)
6578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583     for ac_exec_ext in '' $ac_executable_extensions; do
6584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6585     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590   done
6591 IFS=$as_save_IFS
6592 
6593   ;;
6594 esac
6595 fi
6596 DIFF=$ac_cv_path_DIFF
6597 if test -n "$DIFF"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6599 $as_echo "$DIFF" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604 
6605 
6606   test -n "$DIFF" && break
6607 done
6608 
6609     else
6610       # If it succeeded, then it was overridden by the user. We will use it
6611       # for the tool.
6612 
6613       # First remove it from the list of overridden variables, so we can test
6614       # for unknown variables in the end.
6615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6616 
6617       # Check if we try to supply an empty value
6618       if test "x$DIFF" = x; then
6619         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6620 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6622 $as_echo_n "checking for DIFF... " >&6; }
6623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6624 $as_echo "disabled" >&6; }
6625       else
6626         # Check if the provided tool contains a complete path.
6627         tool_specified="$DIFF"
6628         tool_basename="${tool_specified##*/}"
6629         if test "x$tool_basename" = "x$tool_specified"; then
6630           # A command without a complete path is provided, search $PATH.
6631           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6632 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6633           # Extract the first word of "$tool_basename", so it can be a program name with args.
6634 set dummy $tool_basename; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_path_DIFF+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   case $DIFF in
6641   [\\/]* | ?:[\\/]*)
6642   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6643   ;;
6644   *)
6645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659 
6660   ;;
6661 esac
6662 fi
6663 DIFF=$ac_cv_path_DIFF
6664 if test -n "$DIFF"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6666 $as_echo "$DIFF" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671 
6672 
6673           if test "x$DIFF" = x; then
6674             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6675           fi
6676         else
6677           # Otherwise we believe it is a complete path. Use it as it is.
6678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6679 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6680           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6681 $as_echo_n "checking for DIFF... " >&6; }
6682           if test ! -x "$tool_specified"; then
6683             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6684 $as_echo "not found" >&6; }
6685             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6686           fi
6687           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6688 $as_echo "$tool_specified" >&6; }
6689         fi
6690       fi
6691     fi
6692 
6693   fi
6694 
6695 
6696 
6697   if test "x$DIFF" = x; then
6698     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6699   fi
6700 
6701 
6702 
6703 
6704 
6705   # Publish this variable in the help.
6706 
6707 
6708   if [ -z "${DIRNAME+x}" ]; then
6709     # The variable is not set by user, try to locate tool using the code snippet
6710     for ac_prog in dirname
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_path_DIRNAME+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   case $DIRNAME in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738 
6739   ;;
6740 esac
6741 fi
6742 DIRNAME=$ac_cv_path_DIRNAME
6743 if test -n "$DIRNAME"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6745 $as_echo "$DIRNAME" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750 
6751 
6752   test -n "$DIRNAME" && break
6753 done
6754 
6755   else
6756     # The variable is set, but is it from the command line or the environment?
6757 
6758     # Try to remove the string !DIRNAME! from our list.
6759     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6760     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6761       # If it failed, the variable was not from the command line. Ignore it,
6762       # but warn the user (except for BASH, which is always set by the calling BASH).
6763       if test "xDIRNAME" != xBASH; then
6764         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6765 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6766       fi
6767       # Try to locate tool using the code snippet
6768       for ac_prog in dirname
6769 do
6770   # Extract the first word of "$ac_prog", so it can be a program name with args.
6771 set dummy $ac_prog; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_path_DIRNAME+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   case $DIRNAME in
6778   [\\/]* | ?:[\\/]*)
6779   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6780   ;;
6781   *)
6782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796 
6797   ;;
6798 esac
6799 fi
6800 DIRNAME=$ac_cv_path_DIRNAME
6801 if test -n "$DIRNAME"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6803 $as_echo "$DIRNAME" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808 
6809 
6810   test -n "$DIRNAME" && break
6811 done
6812 
6813     else
6814       # If it succeeded, then it was overridden by the user. We will use it
6815       # for the tool.
6816 
6817       # First remove it from the list of overridden variables, so we can test
6818       # for unknown variables in the end.
6819       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6820 
6821       # Check if we try to supply an empty value
6822       if test "x$DIRNAME" = x; then
6823         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6824 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6826 $as_echo_n "checking for DIRNAME... " >&6; }
6827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6828 $as_echo "disabled" >&6; }
6829       else
6830         # Check if the provided tool contains a complete path.
6831         tool_specified="$DIRNAME"
6832         tool_basename="${tool_specified##*/}"
6833         if test "x$tool_basename" = "x$tool_specified"; then
6834           # A command without a complete path is provided, search $PATH.
6835           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6836 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6837           # Extract the first word of "$tool_basename", so it can be a program name with args.
6838 set dummy $tool_basename; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_path_DIRNAME+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   case $DIRNAME in
6845   [\\/]* | ?:[\\/]*)
6846   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6847   ;;
6848   *)
6849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863 
6864   ;;
6865 esac
6866 fi
6867 DIRNAME=$ac_cv_path_DIRNAME
6868 if test -n "$DIRNAME"; then
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6870 $as_echo "$DIRNAME" >&6; }
6871 else
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875 
6876 
6877           if test "x$DIRNAME" = x; then
6878             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6879           fi
6880         else
6881           # Otherwise we believe it is a complete path. Use it as it is.
6882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6883 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6884           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6885 $as_echo_n "checking for DIRNAME... " >&6; }
6886           if test ! -x "$tool_specified"; then
6887             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6888 $as_echo "not found" >&6; }
6889             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6890           fi
6891           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6892 $as_echo "$tool_specified" >&6; }
6893         fi
6894       fi
6895     fi
6896 
6897   fi
6898 
6899 
6900 
6901   if test "x$DIRNAME" = x; then
6902     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6903   fi
6904 
6905 
6906 
6907 
6908 
6909   # Publish this variable in the help.
6910 
6911 
6912   if [ -z "${ECHO+x}" ]; then
6913     # The variable is not set by user, try to locate tool using the code snippet
6914     for ac_prog in echo
6915 do
6916   # Extract the first word of "$ac_prog", so it can be a program name with args.
6917 set dummy $ac_prog; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_ECHO+:} false; then :
6921   $as_echo_n "(cached) " >&6
6922 else
6923   case $ECHO in
6924   [\\/]* | ?:[\\/]*)
6925   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6926   ;;
6927   *)
6928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942 
6943   ;;
6944 esac
6945 fi
6946 ECHO=$ac_cv_path_ECHO
6947 if test -n "$ECHO"; then
6948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6949 $as_echo "$ECHO" >&6; }
6950 else
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6953 fi
6954 
6955 
6956   test -n "$ECHO" && break
6957 done
6958 
6959   else
6960     # The variable is set, but is it from the command line or the environment?
6961 
6962     # Try to remove the string !ECHO! from our list.
6963     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6964     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6965       # If it failed, the variable was not from the command line. Ignore it,
6966       # but warn the user (except for BASH, which is always set by the calling BASH).
6967       if test "xECHO" != xBASH; then
6968         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6969 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6970       fi
6971       # Try to locate tool using the code snippet
6972       for ac_prog in echo
6973 do
6974   # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy $ac_prog; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_path_ECHO+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   case $ECHO in
6982   [\\/]* | ?:[\\/]*)
6983   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6984   ;;
6985   *)
6986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991     for ac_exec_ext in '' $ac_executable_extensions; do
6992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998   done
6999 IFS=$as_save_IFS
7000 
7001   ;;
7002 esac
7003 fi
7004 ECHO=$ac_cv_path_ECHO
7005 if test -n "$ECHO"; then
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7007 $as_echo "$ECHO" >&6; }
7008 else
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012 
7013 
7014   test -n "$ECHO" && break
7015 done
7016 
7017     else
7018       # If it succeeded, then it was overridden by the user. We will use it
7019       # for the tool.
7020 
7021       # First remove it from the list of overridden variables, so we can test
7022       # for unknown variables in the end.
7023       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7024 
7025       # Check if we try to supply an empty value
7026       if test "x$ECHO" = x; then
7027         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7028 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7030 $as_echo_n "checking for ECHO... " >&6; }
7031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7032 $as_echo "disabled" >&6; }
7033       else
7034         # Check if the provided tool contains a complete path.
7035         tool_specified="$ECHO"
7036         tool_basename="${tool_specified##*/}"
7037         if test "x$tool_basename" = "x$tool_specified"; then
7038           # A command without a complete path is provided, search $PATH.
7039           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7040 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7041           # Extract the first word of "$tool_basename", so it can be a program name with args.
7042 set dummy $tool_basename; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_path_ECHO+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   case $ECHO in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067 
7068   ;;
7069 esac
7070 fi
7071 ECHO=$ac_cv_path_ECHO
7072 if test -n "$ECHO"; then
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7074 $as_echo "$ECHO" >&6; }
7075 else
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079 
7080 
7081           if test "x$ECHO" = x; then
7082             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7083           fi
7084         else
7085           # Otherwise we believe it is a complete path. Use it as it is.
7086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7087 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7088           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7089 $as_echo_n "checking for ECHO... " >&6; }
7090           if test ! -x "$tool_specified"; then
7091             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7092 $as_echo "not found" >&6; }
7093             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7094           fi
7095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7096 $as_echo "$tool_specified" >&6; }
7097         fi
7098       fi
7099     fi
7100 
7101   fi
7102 
7103 
7104 
7105   if test "x$ECHO" = x; then
7106     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7107   fi
7108 
7109 
7110 
7111 
7112 
7113   # Publish this variable in the help.
7114 
7115 
7116   if [ -z "${EXPR+x}" ]; then
7117     # The variable is not set by user, try to locate tool using the code snippet
7118     for ac_prog in expr
7119 do
7120   # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy $ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_path_EXPR+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   case $EXPR in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146 
7147   ;;
7148 esac
7149 fi
7150 EXPR=$ac_cv_path_EXPR
7151 if test -n "$EXPR"; then
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7153 $as_echo "$EXPR" >&6; }
7154 else
7155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7157 fi
7158 
7159 
7160   test -n "$EXPR" && break
7161 done
7162 
7163   else
7164     # The variable is set, but is it from the command line or the environment?
7165 
7166     # Try to remove the string !EXPR! from our list.
7167     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7168     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7169       # If it failed, the variable was not from the command line. Ignore it,
7170       # but warn the user (except for BASH, which is always set by the calling BASH).
7171       if test "xEXPR" != xBASH; then
7172         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7173 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7174       fi
7175       # Try to locate tool using the code snippet
7176       for ac_prog in expr
7177 do
7178   # Extract the first word of "$ac_prog", so it can be a program name with args.
7179 set dummy $ac_prog; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_path_EXPR+:} false; then :
7183   $as_echo_n "(cached) " >&6
7184 else
7185   case $EXPR in
7186   [\\/]* | ?:[\\/]*)
7187   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7188   ;;
7189   *)
7190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193   IFS=$as_save_IFS
7194   test -z "$as_dir" && as_dir=.
7195     for ac_exec_ext in '' $ac_executable_extensions; do
7196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199     break 2
7200   fi
7201 done
7202   done
7203 IFS=$as_save_IFS
7204 
7205   ;;
7206 esac
7207 fi
7208 EXPR=$ac_cv_path_EXPR
7209 if test -n "$EXPR"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7211 $as_echo "$EXPR" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216 
7217 
7218   test -n "$EXPR" && break
7219 done
7220 
7221     else
7222       # If it succeeded, then it was overridden by the user. We will use it
7223       # for the tool.
7224 
7225       # First remove it from the list of overridden variables, so we can test
7226       # for unknown variables in the end.
7227       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7228 
7229       # Check if we try to supply an empty value
7230       if test "x$EXPR" = x; then
7231         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7232 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7233         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7234 $as_echo_n "checking for EXPR... " >&6; }
7235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7236 $as_echo "disabled" >&6; }
7237       else
7238         # Check if the provided tool contains a complete path.
7239         tool_specified="$EXPR"
7240         tool_basename="${tool_specified##*/}"
7241         if test "x$tool_basename" = "x$tool_specified"; then
7242           # A command without a complete path is provided, search $PATH.
7243           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7244 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7245           # Extract the first word of "$tool_basename", so it can be a program name with args.
7246 set dummy $tool_basename; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_path_EXPR+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   case $EXPR in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271 
7272   ;;
7273 esac
7274 fi
7275 EXPR=$ac_cv_path_EXPR
7276 if test -n "$EXPR"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7278 $as_echo "$EXPR" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283 
7284 
7285           if test "x$EXPR" = x; then
7286             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7287           fi
7288         else
7289           # Otherwise we believe it is a complete path. Use it as it is.
7290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7291 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7292           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7293 $as_echo_n "checking for EXPR... " >&6; }
7294           if test ! -x "$tool_specified"; then
7295             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7296 $as_echo "not found" >&6; }
7297             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7298           fi
7299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7300 $as_echo "$tool_specified" >&6; }
7301         fi
7302       fi
7303     fi
7304 
7305   fi
7306 
7307 
7308 
7309   if test "x$EXPR" = x; then
7310     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7311   fi
7312 
7313 
7314 
7315 
7316 
7317   # Publish this variable in the help.
7318 
7319 
7320   if [ -z "${FILE+x}" ]; then
7321     # The variable is not set by user, try to locate tool using the code snippet
7322     for ac_prog in file
7323 do
7324   # Extract the first word of "$ac_prog", so it can be a program name with args.
7325 set dummy $ac_prog; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_path_FILE+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   case $FILE in
7332   [\\/]* | ?:[\\/]*)
7333   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7334   ;;
7335   *)
7336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350 
7351   ;;
7352 esac
7353 fi
7354 FILE=$ac_cv_path_FILE
7355 if test -n "$FILE"; then
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7357 $as_echo "$FILE" >&6; }
7358 else
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362 
7363 
7364   test -n "$FILE" && break
7365 done
7366 
7367   else
7368     # The variable is set, but is it from the command line or the environment?
7369 
7370     # Try to remove the string !FILE! from our list.
7371     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7372     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7373       # If it failed, the variable was not from the command line. Ignore it,
7374       # but warn the user (except for BASH, which is always set by the calling BASH).
7375       if test "xFILE" != xBASH; then
7376         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7377 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7378       fi
7379       # Try to locate tool using the code snippet
7380       for ac_prog in file
7381 do
7382   # Extract the first word of "$ac_prog", so it can be a program name with args.
7383 set dummy $ac_prog; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_path_FILE+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   case $FILE in
7390   [\\/]* | ?:[\\/]*)
7391   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7392   ;;
7393   *)
7394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408 
7409   ;;
7410 esac
7411 fi
7412 FILE=$ac_cv_path_FILE
7413 if test -n "$FILE"; then
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7415 $as_echo "$FILE" >&6; }
7416 else
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420 
7421 
7422   test -n "$FILE" && break
7423 done
7424 
7425     else
7426       # If it succeeded, then it was overridden by the user. We will use it
7427       # for the tool.
7428 
7429       # First remove it from the list of overridden variables, so we can test
7430       # for unknown variables in the end.
7431       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7432 
7433       # Check if we try to supply an empty value
7434       if test "x$FILE" = x; then
7435         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7436 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7438 $as_echo_n "checking for FILE... " >&6; }
7439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7440 $as_echo "disabled" >&6; }
7441       else
7442         # Check if the provided tool contains a complete path.
7443         tool_specified="$FILE"
7444         tool_basename="${tool_specified##*/}"
7445         if test "x$tool_basename" = "x$tool_specified"; then
7446           # A command without a complete path is provided, search $PATH.
7447           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7448 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7449           # Extract the first word of "$tool_basename", so it can be a program name with args.
7450 set dummy $tool_basename; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_path_FILE+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   case $FILE in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475 
7476   ;;
7477 esac
7478 fi
7479 FILE=$ac_cv_path_FILE
7480 if test -n "$FILE"; then
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7482 $as_echo "$FILE" >&6; }
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487 
7488 
7489           if test "x$FILE" = x; then
7490             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7491           fi
7492         else
7493           # Otherwise we believe it is a complete path. Use it as it is.
7494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7495 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7496           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7497 $as_echo_n "checking for FILE... " >&6; }
7498           if test ! -x "$tool_specified"; then
7499             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7500 $as_echo "not found" >&6; }
7501             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7502           fi
7503           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7504 $as_echo "$tool_specified" >&6; }
7505         fi
7506       fi
7507     fi
7508 
7509   fi
7510 
7511 
7512 
7513   if test "x$FILE" = x; then
7514     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7515   fi
7516 
7517 
7518 
7519 
7520 
7521   # Publish this variable in the help.
7522 
7523 
7524   if [ -z "${FIND+x}" ]; then
7525     # The variable is not set by user, try to locate tool using the code snippet
7526     for ac_prog in find
7527 do
7528   # Extract the first word of "$ac_prog", so it can be a program name with args.
7529 set dummy $ac_prog; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_path_FIND+:} false; then :
7533   $as_echo_n "(cached) " >&6
7534 else
7535   case $FIND in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554 
7555   ;;
7556 esac
7557 fi
7558 FIND=$ac_cv_path_FIND
7559 if test -n "$FIND"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7561 $as_echo "$FIND" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566 
7567 
7568   test -n "$FIND" && break
7569 done
7570 
7571   else
7572     # The variable is set, but is it from the command line or the environment?
7573 
7574     # Try to remove the string !FIND! from our list.
7575     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7576     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7577       # If it failed, the variable was not from the command line. Ignore it,
7578       # but warn the user (except for BASH, which is always set by the calling BASH).
7579       if test "xFIND" != xBASH; then
7580         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7581 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7582       fi
7583       # Try to locate tool using the code snippet
7584       for ac_prog in find
7585 do
7586   # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_path_FIND+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   case $FIND in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612 
7613   ;;
7614 esac
7615 fi
7616 FIND=$ac_cv_path_FIND
7617 if test -n "$FIND"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7619 $as_echo "$FIND" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624 
7625 
7626   test -n "$FIND" && break
7627 done
7628 
7629     else
7630       # If it succeeded, then it was overridden by the user. We will use it
7631       # for the tool.
7632 
7633       # First remove it from the list of overridden variables, so we can test
7634       # for unknown variables in the end.
7635       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7636 
7637       # Check if we try to supply an empty value
7638       if test "x$FIND" = x; then
7639         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7640 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7641         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7642 $as_echo_n "checking for FIND... " >&6; }
7643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7644 $as_echo "disabled" >&6; }
7645       else
7646         # Check if the provided tool contains a complete path.
7647         tool_specified="$FIND"
7648         tool_basename="${tool_specified##*/}"
7649         if test "x$tool_basename" = "x$tool_specified"; then
7650           # A command without a complete path is provided, search $PATH.
7651           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7652 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7653           # Extract the first word of "$tool_basename", so it can be a program name with args.
7654 set dummy $tool_basename; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_path_FIND+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $FIND in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679 
7680   ;;
7681 esac
7682 fi
7683 FIND=$ac_cv_path_FIND
7684 if test -n "$FIND"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7686 $as_echo "$FIND" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 
7692 
7693           if test "x$FIND" = x; then
7694             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7695           fi
7696         else
7697           # Otherwise we believe it is a complete path. Use it as it is.
7698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7699 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7700           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7701 $as_echo_n "checking for FIND... " >&6; }
7702           if test ! -x "$tool_specified"; then
7703             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7704 $as_echo "not found" >&6; }
7705             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7706           fi
7707           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7708 $as_echo "$tool_specified" >&6; }
7709         fi
7710       fi
7711     fi
7712 
7713   fi
7714 
7715 
7716 
7717   if test "x$FIND" = x; then
7718     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7719   fi
7720 
7721 
7722 
7723 
7724 
7725   # Publish this variable in the help.
7726 
7727 
7728   if [ -z "${HEAD+x}" ]; then
7729     # The variable is not set by user, try to locate tool using the code snippet
7730     for ac_prog in head
7731 do
7732   # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_path_HEAD+:} false; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   case $HEAD in
7740   [\\/]* | ?:[\\/]*)
7741   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7742   ;;
7743   *)
7744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749     for ac_exec_ext in '' $ac_executable_extensions; do
7750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756   done
7757 IFS=$as_save_IFS
7758 
7759   ;;
7760 esac
7761 fi
7762 HEAD=$ac_cv_path_HEAD
7763 if test -n "$HEAD"; then
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7765 $as_echo "$HEAD" >&6; }
7766 else
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7769 fi
7770 
7771 
7772   test -n "$HEAD" && break
7773 done
7774 
7775   else
7776     # The variable is set, but is it from the command line or the environment?
7777 
7778     # Try to remove the string !HEAD! from our list.
7779     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7780     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7781       # If it failed, the variable was not from the command line. Ignore it,
7782       # but warn the user (except for BASH, which is always set by the calling BASH).
7783       if test "xHEAD" != xBASH; then
7784         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7785 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7786       fi
7787       # Try to locate tool using the code snippet
7788       for ac_prog in head
7789 do
7790   # Extract the first word of "$ac_prog", so it can be a program name with args.
7791 set dummy $ac_prog; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_path_HEAD+:} false; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   case $HEAD in
7798   [\\/]* | ?:[\\/]*)
7799   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7800   ;;
7801   *)
7802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816 
7817   ;;
7818 esac
7819 fi
7820 HEAD=$ac_cv_path_HEAD
7821 if test -n "$HEAD"; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7823 $as_echo "$HEAD" >&6; }
7824 else
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7827 fi
7828 
7829 
7830   test -n "$HEAD" && break
7831 done
7832 
7833     else
7834       # If it succeeded, then it was overridden by the user. We will use it
7835       # for the tool.
7836 
7837       # First remove it from the list of overridden variables, so we can test
7838       # for unknown variables in the end.
7839       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7840 
7841       # Check if we try to supply an empty value
7842       if test "x$HEAD" = x; then
7843         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7844 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7846 $as_echo_n "checking for HEAD... " >&6; }
7847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7848 $as_echo "disabled" >&6; }
7849       else
7850         # Check if the provided tool contains a complete path.
7851         tool_specified="$HEAD"
7852         tool_basename="${tool_specified##*/}"
7853         if test "x$tool_basename" = "x$tool_specified"; then
7854           # A command without a complete path is provided, search $PATH.
7855           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7856 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7857           # Extract the first word of "$tool_basename", so it can be a program name with args.
7858 set dummy $tool_basename; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_path_HEAD+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   case $HEAD in
7865   [\\/]* | ?:[\\/]*)
7866   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7867   ;;
7868   *)
7869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872   IFS=$as_save_IFS
7873   test -z "$as_dir" && as_dir=.
7874     for ac_exec_ext in '' $ac_executable_extensions; do
7875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878     break 2
7879   fi
7880 done
7881   done
7882 IFS=$as_save_IFS
7883 
7884   ;;
7885 esac
7886 fi
7887 HEAD=$ac_cv_path_HEAD
7888 if test -n "$HEAD"; then
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7890 $as_echo "$HEAD" >&6; }
7891 else
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895 
7896 
7897           if test "x$HEAD" = x; then
7898             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7899           fi
7900         else
7901           # Otherwise we believe it is a complete path. Use it as it is.
7902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7903 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7904           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7905 $as_echo_n "checking for HEAD... " >&6; }
7906           if test ! -x "$tool_specified"; then
7907             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7908 $as_echo "not found" >&6; }
7909             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7910           fi
7911           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7912 $as_echo "$tool_specified" >&6; }
7913         fi
7914       fi
7915     fi
7916 
7917   fi
7918 
7919 
7920 
7921   if test "x$HEAD" = x; then
7922     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7923   fi
7924 
7925 
7926 
7927 
7928 
7929   # Publish this variable in the help.
7930 
7931 
7932   if [ -z "${LN+x}" ]; then
7933     # The variable is not set by user, try to locate tool using the code snippet
7934     for ac_prog in ln
7935 do
7936   # Extract the first word of "$ac_prog", so it can be a program name with args.
7937 set dummy $ac_prog; ac_word=$2
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7939 $as_echo_n "checking for $ac_word... " >&6; }
7940 if ${ac_cv_path_LN+:} false; then :
7941   $as_echo_n "(cached) " >&6
7942 else
7943   case $LN in
7944   [\\/]* | ?:[\\/]*)
7945   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7946   ;;
7947   *)
7948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962 
7963   ;;
7964 esac
7965 fi
7966 LN=$ac_cv_path_LN
7967 if test -n "$LN"; then
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7969 $as_echo "$LN" >&6; }
7970 else
7971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7973 fi
7974 
7975 
7976   test -n "$LN" && break
7977 done
7978 
7979   else
7980     # The variable is set, but is it from the command line or the environment?
7981 
7982     # Try to remove the string !LN! from our list.
7983     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7984     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7985       # If it failed, the variable was not from the command line. Ignore it,
7986       # but warn the user (except for BASH, which is always set by the calling BASH).
7987       if test "xLN" != xBASH; then
7988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7989 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7990       fi
7991       # Try to locate tool using the code snippet
7992       for ac_prog in ln
7993 do
7994   # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy $ac_prog; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_path_LN+:} false; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   case $LN in
8002   [\\/]* | ?:[\\/]*)
8003   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8004   ;;
8005   *)
8006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8008 do
8009   IFS=$as_save_IFS
8010   test -z "$as_dir" && as_dir=.
8011     for ac_exec_ext in '' $ac_executable_extensions; do
8012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015     break 2
8016   fi
8017 done
8018   done
8019 IFS=$as_save_IFS
8020 
8021   ;;
8022 esac
8023 fi
8024 LN=$ac_cv_path_LN
8025 if test -n "$LN"; then
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8027 $as_echo "$LN" >&6; }
8028 else
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032 
8033 
8034   test -n "$LN" && break
8035 done
8036 
8037     else
8038       # If it succeeded, then it was overridden by the user. We will use it
8039       # for the tool.
8040 
8041       # First remove it from the list of overridden variables, so we can test
8042       # for unknown variables in the end.
8043       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8044 
8045       # Check if we try to supply an empty value
8046       if test "x$LN" = x; then
8047         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8048 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8050 $as_echo_n "checking for LN... " >&6; }
8051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8052 $as_echo "disabled" >&6; }
8053       else
8054         # Check if the provided tool contains a complete path.
8055         tool_specified="$LN"
8056         tool_basename="${tool_specified##*/}"
8057         if test "x$tool_basename" = "x$tool_specified"; then
8058           # A command without a complete path is provided, search $PATH.
8059           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8060 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8061           # Extract the first word of "$tool_basename", so it can be a program name with args.
8062 set dummy $tool_basename; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if ${ac_cv_path_LN+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   case $LN in
8069   [\\/]* | ?:[\\/]*)
8070   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8071   ;;
8072   *)
8073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078     for ac_exec_ext in '' $ac_executable_extensions; do
8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085   done
8086 IFS=$as_save_IFS
8087 
8088   ;;
8089 esac
8090 fi
8091 LN=$ac_cv_path_LN
8092 if test -n "$LN"; then
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8094 $as_echo "$LN" >&6; }
8095 else
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098 fi
8099 
8100 
8101           if test "x$LN" = x; then
8102             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8103           fi
8104         else
8105           # Otherwise we believe it is a complete path. Use it as it is.
8106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8107 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8108           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8109 $as_echo_n "checking for LN... " >&6; }
8110           if test ! -x "$tool_specified"; then
8111             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8112 $as_echo "not found" >&6; }
8113             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8114           fi
8115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8116 $as_echo "$tool_specified" >&6; }
8117         fi
8118       fi
8119     fi
8120 
8121   fi
8122 
8123 
8124 
8125   if test "x$LN" = x; then
8126     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8127   fi
8128 
8129 
8130 
8131 
8132 
8133   # Publish this variable in the help.
8134 
8135 
8136   if [ -z "${LS+x}" ]; then
8137     # The variable is not set by user, try to locate tool using the code snippet
8138     for ac_prog in ls
8139 do
8140   # Extract the first word of "$ac_prog", so it can be a program name with args.
8141 set dummy $ac_prog; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if ${ac_cv_path_LS+:} false; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   case $LS in
8148   [\\/]* | ?:[\\/]*)
8149   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8150   ;;
8151   *)
8152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157     for ac_exec_ext in '' $ac_executable_extensions; do
8158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164   done
8165 IFS=$as_save_IFS
8166 
8167   ;;
8168 esac
8169 fi
8170 LS=$ac_cv_path_LS
8171 if test -n "$LS"; then
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8173 $as_echo "$LS" >&6; }
8174 else
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8177 fi
8178 
8179 
8180   test -n "$LS" && break
8181 done
8182 
8183   else
8184     # The variable is set, but is it from the command line or the environment?
8185 
8186     # Try to remove the string !LS! from our list.
8187     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8188     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8189       # If it failed, the variable was not from the command line. Ignore it,
8190       # but warn the user (except for BASH, which is always set by the calling BASH).
8191       if test "xLS" != xBASH; then
8192         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8193 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8194       fi
8195       # Try to locate tool using the code snippet
8196       for ac_prog in ls
8197 do
8198   # Extract the first word of "$ac_prog", so it can be a program name with args.
8199 set dummy $ac_prog; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_path_LS+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   case $LS in
8206   [\\/]* | ?:[\\/]*)
8207   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8208   ;;
8209   *)
8210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213   IFS=$as_save_IFS
8214   test -z "$as_dir" && as_dir=.
8215     for ac_exec_ext in '' $ac_executable_extensions; do
8216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219     break 2
8220   fi
8221 done
8222   done
8223 IFS=$as_save_IFS
8224 
8225   ;;
8226 esac
8227 fi
8228 LS=$ac_cv_path_LS
8229 if test -n "$LS"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8231 $as_echo "$LS" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236 
8237 
8238   test -n "$LS" && break
8239 done
8240 
8241     else
8242       # If it succeeded, then it was overridden by the user. We will use it
8243       # for the tool.
8244 
8245       # First remove it from the list of overridden variables, so we can test
8246       # for unknown variables in the end.
8247       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8248 
8249       # Check if we try to supply an empty value
8250       if test "x$LS" = x; then
8251         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8252 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8253         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8254 $as_echo_n "checking for LS... " >&6; }
8255         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8256 $as_echo "disabled" >&6; }
8257       else
8258         # Check if the provided tool contains a complete path.
8259         tool_specified="$LS"
8260         tool_basename="${tool_specified##*/}"
8261         if test "x$tool_basename" = "x$tool_specified"; then
8262           # A command without a complete path is provided, search $PATH.
8263           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8264 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8265           # Extract the first word of "$tool_basename", so it can be a program name with args.
8266 set dummy $tool_basename; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_path_LS+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   case $LS in
8273   [\\/]* | ?:[\\/]*)
8274   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8275   ;;
8276   *)
8277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291 
8292   ;;
8293 esac
8294 fi
8295 LS=$ac_cv_path_LS
8296 if test -n "$LS"; then
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8298 $as_echo "$LS" >&6; }
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303 
8304 
8305           if test "x$LS" = x; then
8306             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8307           fi
8308         else
8309           # Otherwise we believe it is a complete path. Use it as it is.
8310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8311 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8312           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8313 $as_echo_n "checking for LS... " >&6; }
8314           if test ! -x "$tool_specified"; then
8315             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8316 $as_echo "not found" >&6; }
8317             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8318           fi
8319           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8320 $as_echo "$tool_specified" >&6; }
8321         fi
8322       fi
8323     fi
8324 
8325   fi
8326 
8327 
8328 
8329   if test "x$LS" = x; then
8330     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8331   fi
8332 
8333 
8334 
8335 
8336 
8337   # Publish this variable in the help.
8338 
8339 
8340   if [ -z "${MKDIR+x}" ]; then
8341     # The variable is not set by user, try to locate tool using the code snippet
8342     for ac_prog in mkdir
8343 do
8344   # Extract the first word of "$ac_prog", so it can be a program name with args.
8345 set dummy $ac_prog; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_path_MKDIR+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   case $MKDIR in
8352   [\\/]* | ?:[\\/]*)
8353   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8354   ;;
8355   *)
8356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359   IFS=$as_save_IFS
8360   test -z "$as_dir" && as_dir=.
8361     for ac_exec_ext in '' $ac_executable_extensions; do
8362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8363     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365     break 2
8366   fi
8367 done
8368   done
8369 IFS=$as_save_IFS
8370 
8371   ;;
8372 esac
8373 fi
8374 MKDIR=$ac_cv_path_MKDIR
8375 if test -n "$MKDIR"; then
8376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8377 $as_echo "$MKDIR" >&6; }
8378 else
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8381 fi
8382 
8383 
8384   test -n "$MKDIR" && break
8385 done
8386 
8387   else
8388     # The variable is set, but is it from the command line or the environment?
8389 
8390     # Try to remove the string !MKDIR! from our list.
8391     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8392     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8393       # If it failed, the variable was not from the command line. Ignore it,
8394       # but warn the user (except for BASH, which is always set by the calling BASH).
8395       if test "xMKDIR" != xBASH; then
8396         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8397 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8398       fi
8399       # Try to locate tool using the code snippet
8400       for ac_prog in mkdir
8401 do
8402   # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if ${ac_cv_path_MKDIR+:} false; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   case $MKDIR in
8410   [\\/]* | ?:[\\/]*)
8411   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8412   ;;
8413   *)
8414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419     for ac_exec_ext in '' $ac_executable_extensions; do
8420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426   done
8427 IFS=$as_save_IFS
8428 
8429   ;;
8430 esac
8431 fi
8432 MKDIR=$ac_cv_path_MKDIR
8433 if test -n "$MKDIR"; then
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8435 $as_echo "$MKDIR" >&6; }
8436 else
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440 
8441 
8442   test -n "$MKDIR" && break
8443 done
8444 
8445     else
8446       # If it succeeded, then it was overridden by the user. We will use it
8447       # for the tool.
8448 
8449       # First remove it from the list of overridden variables, so we can test
8450       # for unknown variables in the end.
8451       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8452 
8453       # Check if we try to supply an empty value
8454       if test "x$MKDIR" = x; then
8455         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8456 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8457         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8458 $as_echo_n "checking for MKDIR... " >&6; }
8459         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8460 $as_echo "disabled" >&6; }
8461       else
8462         # Check if the provided tool contains a complete path.
8463         tool_specified="$MKDIR"
8464         tool_basename="${tool_specified##*/}"
8465         if test "x$tool_basename" = "x$tool_specified"; then
8466           # A command without a complete path is provided, search $PATH.
8467           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8468 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8469           # Extract the first word of "$tool_basename", so it can be a program name with args.
8470 set dummy $tool_basename; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_path_MKDIR+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   case $MKDIR in
8477   [\\/]* | ?:[\\/]*)
8478   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8479   ;;
8480   *)
8481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484   IFS=$as_save_IFS
8485   test -z "$as_dir" && as_dir=.
8486     for ac_exec_ext in '' $ac_executable_extensions; do
8487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490     break 2
8491   fi
8492 done
8493   done
8494 IFS=$as_save_IFS
8495 
8496   ;;
8497 esac
8498 fi
8499 MKDIR=$ac_cv_path_MKDIR
8500 if test -n "$MKDIR"; then
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8502 $as_echo "$MKDIR" >&6; }
8503 else
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507 
8508 
8509           if test "x$MKDIR" = x; then
8510             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8511           fi
8512         else
8513           # Otherwise we believe it is a complete path. Use it as it is.
8514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8515 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8516           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8517 $as_echo_n "checking for MKDIR... " >&6; }
8518           if test ! -x "$tool_specified"; then
8519             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8520 $as_echo "not found" >&6; }
8521             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8522           fi
8523           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8524 $as_echo "$tool_specified" >&6; }
8525         fi
8526       fi
8527     fi
8528 
8529   fi
8530 
8531 
8532 
8533   if test "x$MKDIR" = x; then
8534     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8535   fi
8536 
8537 
8538 
8539 
8540 
8541   # Publish this variable in the help.
8542 
8543 
8544   if [ -z "${MKTEMP+x}" ]; then
8545     # The variable is not set by user, try to locate tool using the code snippet
8546     for ac_prog in mktemp
8547 do
8548   # Extract the first word of "$ac_prog", so it can be a program name with args.
8549 set dummy $ac_prog; ac_word=$2
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 $as_echo_n "checking for $ac_word... " >&6; }
8552 if ${ac_cv_path_MKTEMP+:} false; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   case $MKTEMP in
8556   [\\/]* | ?:[\\/]*)
8557   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8558   ;;
8559   *)
8560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8562 do
8563   IFS=$as_save_IFS
8564   test -z "$as_dir" && as_dir=.
8565     for ac_exec_ext in '' $ac_executable_extensions; do
8566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8567     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569     break 2
8570   fi
8571 done
8572   done
8573 IFS=$as_save_IFS
8574 
8575   ;;
8576 esac
8577 fi
8578 MKTEMP=$ac_cv_path_MKTEMP
8579 if test -n "$MKTEMP"; then
8580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8581 $as_echo "$MKTEMP" >&6; }
8582 else
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8585 fi
8586 
8587 
8588   test -n "$MKTEMP" && break
8589 done
8590 
8591   else
8592     # The variable is set, but is it from the command line or the environment?
8593 
8594     # Try to remove the string !MKTEMP! from our list.
8595     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8596     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8597       # If it failed, the variable was not from the command line. Ignore it,
8598       # but warn the user (except for BASH, which is always set by the calling BASH).
8599       if test "xMKTEMP" != xBASH; then
8600         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8601 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8602       fi
8603       # Try to locate tool using the code snippet
8604       for ac_prog in mktemp
8605 do
8606   # Extract the first word of "$ac_prog", so it can be a program name with args.
8607 set dummy $ac_prog; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_path_MKTEMP+:} false; then :
8611   $as_echo_n "(cached) " >&6
8612 else
8613   case $MKTEMP in
8614   [\\/]* | ?:[\\/]*)
8615   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8616   ;;
8617   *)
8618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621   IFS=$as_save_IFS
8622   test -z "$as_dir" && as_dir=.
8623     for ac_exec_ext in '' $ac_executable_extensions; do
8624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8625     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627     break 2
8628   fi
8629 done
8630   done
8631 IFS=$as_save_IFS
8632 
8633   ;;
8634 esac
8635 fi
8636 MKTEMP=$ac_cv_path_MKTEMP
8637 if test -n "$MKTEMP"; then
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8639 $as_echo "$MKTEMP" >&6; }
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8643 fi
8644 
8645 
8646   test -n "$MKTEMP" && break
8647 done
8648 
8649     else
8650       # If it succeeded, then it was overridden by the user. We will use it
8651       # for the tool.
8652 
8653       # First remove it from the list of overridden variables, so we can test
8654       # for unknown variables in the end.
8655       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8656 
8657       # Check if we try to supply an empty value
8658       if test "x$MKTEMP" = x; then
8659         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8660 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8662 $as_echo_n "checking for MKTEMP... " >&6; }
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8664 $as_echo "disabled" >&6; }
8665       else
8666         # Check if the provided tool contains a complete path.
8667         tool_specified="$MKTEMP"
8668         tool_basename="${tool_specified##*/}"
8669         if test "x$tool_basename" = "x$tool_specified"; then
8670           # A command without a complete path is provided, search $PATH.
8671           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8672 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8673           # Extract the first word of "$tool_basename", so it can be a program name with args.
8674 set dummy $tool_basename; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_path_MKTEMP+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   case $MKTEMP in
8681   [\\/]* | ?:[\\/]*)
8682   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8683   ;;
8684   *)
8685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690     for ac_exec_ext in '' $ac_executable_extensions; do
8691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697   done
8698 IFS=$as_save_IFS
8699 
8700   ;;
8701 esac
8702 fi
8703 MKTEMP=$ac_cv_path_MKTEMP
8704 if test -n "$MKTEMP"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8706 $as_echo "$MKTEMP" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711 
8712 
8713           if test "x$MKTEMP" = x; then
8714             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8715           fi
8716         else
8717           # Otherwise we believe it is a complete path. Use it as it is.
8718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8719 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8720           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8721 $as_echo_n "checking for MKTEMP... " >&6; }
8722           if test ! -x "$tool_specified"; then
8723             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8724 $as_echo "not found" >&6; }
8725             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8726           fi
8727           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8728 $as_echo "$tool_specified" >&6; }
8729         fi
8730       fi
8731     fi
8732 
8733   fi
8734 
8735 
8736 
8737   if test "x$MKTEMP" = x; then
8738     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8739   fi
8740 
8741 
8742 
8743 
8744 
8745   # Publish this variable in the help.
8746 
8747 
8748   if [ -z "${MV+x}" ]; then
8749     # The variable is not set by user, try to locate tool using the code snippet
8750     for ac_prog in mv
8751 do
8752   # Extract the first word of "$ac_prog", so it can be a program name with args.
8753 set dummy $ac_prog; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if ${ac_cv_path_MV+:} false; then :
8757   $as_echo_n "(cached) " >&6
8758 else
8759   case $MV in
8760   [\\/]* | ?:[\\/]*)
8761   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8762   ;;
8763   *)
8764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8766 do
8767   IFS=$as_save_IFS
8768   test -z "$as_dir" && as_dir=.
8769     for ac_exec_ext in '' $ac_executable_extensions; do
8770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8771     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773     break 2
8774   fi
8775 done
8776   done
8777 IFS=$as_save_IFS
8778 
8779   ;;
8780 esac
8781 fi
8782 MV=$ac_cv_path_MV
8783 if test -n "$MV"; then
8784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8785 $as_echo "$MV" >&6; }
8786 else
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8789 fi
8790 
8791 
8792   test -n "$MV" && break
8793 done
8794 
8795   else
8796     # The variable is set, but is it from the command line or the environment?
8797 
8798     # Try to remove the string !MV! from our list.
8799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8801       # If it failed, the variable was not from the command line. Ignore it,
8802       # but warn the user (except for BASH, which is always set by the calling BASH).
8803       if test "xMV" != xBASH; then
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8805 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8806       fi
8807       # Try to locate tool using the code snippet
8808       for ac_prog in mv
8809 do
8810   # Extract the first word of "$ac_prog", so it can be a program name with args.
8811 set dummy $ac_prog; ac_word=$2
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8813 $as_echo_n "checking for $ac_word... " >&6; }
8814 if ${ac_cv_path_MV+:} false; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   case $MV in
8818   [\\/]* | ?:[\\/]*)
8819   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8820   ;;
8821   *)
8822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 for as_dir in $PATH
8824 do
8825   IFS=$as_save_IFS
8826   test -z "$as_dir" && as_dir=.
8827     for ac_exec_ext in '' $ac_executable_extensions; do
8828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831     break 2
8832   fi
8833 done
8834   done
8835 IFS=$as_save_IFS
8836 
8837   ;;
8838 esac
8839 fi
8840 MV=$ac_cv_path_MV
8841 if test -n "$MV"; then
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8843 $as_echo "$MV" >&6; }
8844 else
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8847 fi
8848 
8849 
8850   test -n "$MV" && break
8851 done
8852 
8853     else
8854       # If it succeeded, then it was overridden by the user. We will use it
8855       # for the tool.
8856 
8857       # First remove it from the list of overridden variables, so we can test
8858       # for unknown variables in the end.
8859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8860 
8861       # Check if we try to supply an empty value
8862       if test "x$MV" = x; then
8863         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8864 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8866 $as_echo_n "checking for MV... " >&6; }
8867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8868 $as_echo "disabled" >&6; }
8869       else
8870         # Check if the provided tool contains a complete path.
8871         tool_specified="$MV"
8872         tool_basename="${tool_specified##*/}"
8873         if test "x$tool_basename" = "x$tool_specified"; then
8874           # A command without a complete path is provided, search $PATH.
8875           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8876 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8877           # Extract the first word of "$tool_basename", so it can be a program name with args.
8878 set dummy $tool_basename; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_path_MV+:} false; then :
8882   $as_echo_n "(cached) " >&6
8883 else
8884   case $MV in
8885   [\\/]* | ?:[\\/]*)
8886   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8887   ;;
8888   *)
8889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   test -z "$as_dir" && as_dir=.
8894     for ac_exec_ext in '' $ac_executable_extensions; do
8895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901   done
8902 IFS=$as_save_IFS
8903 
8904   ;;
8905 esac
8906 fi
8907 MV=$ac_cv_path_MV
8908 if test -n "$MV"; then
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8910 $as_echo "$MV" >&6; }
8911 else
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8914 fi
8915 
8916 
8917           if test "x$MV" = x; then
8918             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8919           fi
8920         else
8921           # Otherwise we believe it is a complete path. Use it as it is.
8922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8923 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8924           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8925 $as_echo_n "checking for MV... " >&6; }
8926           if test ! -x "$tool_specified"; then
8927             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8928 $as_echo "not found" >&6; }
8929             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8930           fi
8931           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8932 $as_echo "$tool_specified" >&6; }
8933         fi
8934       fi
8935     fi
8936 
8937   fi
8938 
8939 
8940 
8941   if test "x$MV" = x; then
8942     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8943   fi
8944 
8945 
8946 
8947 
8948 
8949   # Publish this variable in the help.
8950 
8951 
8952   if [ -z "${NAWK+x}" ]; then
8953     # The variable is not set by user, try to locate tool using the code snippet
8954     for ac_prog in nawk gawk awk
8955 do
8956   # Extract the first word of "$ac_prog", so it can be a program name with args.
8957 set dummy $ac_prog; ac_word=$2
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if ${ac_cv_path_NAWK+:} false; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   case $NAWK in
8964   [\\/]* | ?:[\\/]*)
8965   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8966   ;;
8967   *)
8968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8970 do
8971   IFS=$as_save_IFS
8972   test -z "$as_dir" && as_dir=.
8973     for ac_exec_ext in '' $ac_executable_extensions; do
8974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977     break 2
8978   fi
8979 done
8980   done
8981 IFS=$as_save_IFS
8982 
8983   ;;
8984 esac
8985 fi
8986 NAWK=$ac_cv_path_NAWK
8987 if test -n "$NAWK"; then
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8989 $as_echo "$NAWK" >&6; }
8990 else
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8993 fi
8994 
8995 
8996   test -n "$NAWK" && break
8997 done
8998 
8999   else
9000     # The variable is set, but is it from the command line or the environment?
9001 
9002     # Try to remove the string !NAWK! from our list.
9003     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9004     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9005       # If it failed, the variable was not from the command line. Ignore it,
9006       # but warn the user (except for BASH, which is always set by the calling BASH).
9007       if test "xNAWK" != xBASH; then
9008         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9009 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9010       fi
9011       # Try to locate tool using the code snippet
9012       for ac_prog in nawk gawk awk
9013 do
9014   # Extract the first word of "$ac_prog", so it can be a program name with args.
9015 set dummy $ac_prog; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_path_NAWK+:} false; then :
9019   $as_echo_n "(cached) " >&6
9020 else
9021   case $NAWK in
9022   [\\/]* | ?:[\\/]*)
9023   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9024   ;;
9025   *)
9026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9028 do
9029   IFS=$as_save_IFS
9030   test -z "$as_dir" && as_dir=.
9031     for ac_exec_ext in '' $ac_executable_extensions; do
9032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9033     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035     break 2
9036   fi
9037 done
9038   done
9039 IFS=$as_save_IFS
9040 
9041   ;;
9042 esac
9043 fi
9044 NAWK=$ac_cv_path_NAWK
9045 if test -n "$NAWK"; then
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9047 $as_echo "$NAWK" >&6; }
9048 else
9049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051 fi
9052 
9053 
9054   test -n "$NAWK" && break
9055 done
9056 
9057     else
9058       # If it succeeded, then it was overridden by the user. We will use it
9059       # for the tool.
9060 
9061       # First remove it from the list of overridden variables, so we can test
9062       # for unknown variables in the end.
9063       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9064 
9065       # Check if we try to supply an empty value
9066       if test "x$NAWK" = x; then
9067         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9068 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9070 $as_echo_n "checking for NAWK... " >&6; }
9071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9072 $as_echo "disabled" >&6; }
9073       else
9074         # Check if the provided tool contains a complete path.
9075         tool_specified="$NAWK"
9076         tool_basename="${tool_specified##*/}"
9077         if test "x$tool_basename" = "x$tool_specified"; then
9078           # A command without a complete path is provided, search $PATH.
9079           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9080 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9081           # Extract the first word of "$tool_basename", so it can be a program name with args.
9082 set dummy $tool_basename; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_path_NAWK+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   case $NAWK in
9089   [\\/]* | ?:[\\/]*)
9090   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9091   ;;
9092   *)
9093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   test -z "$as_dir" && as_dir=.
9098     for ac_exec_ext in '' $ac_executable_extensions; do
9099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102     break 2
9103   fi
9104 done
9105   done
9106 IFS=$as_save_IFS
9107 
9108   ;;
9109 esac
9110 fi
9111 NAWK=$ac_cv_path_NAWK
9112 if test -n "$NAWK"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9114 $as_echo "$NAWK" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119 
9120 
9121           if test "x$NAWK" = x; then
9122             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9123           fi
9124         else
9125           # Otherwise we believe it is a complete path. Use it as it is.
9126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9127 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9128           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9129 $as_echo_n "checking for NAWK... " >&6; }
9130           if test ! -x "$tool_specified"; then
9131             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9132 $as_echo "not found" >&6; }
9133             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9134           fi
9135           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9136 $as_echo "$tool_specified" >&6; }
9137         fi
9138       fi
9139     fi
9140 
9141   fi
9142 
9143 
9144 
9145   if test "x$NAWK" = x; then
9146     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9147   fi
9148 
9149 
9150 
9151 
9152 
9153   # Publish this variable in the help.
9154 
9155 
9156   if [ -z "${PRINTF+x}" ]; then
9157     # The variable is not set by user, try to locate tool using the code snippet
9158     for ac_prog in printf
9159 do
9160   # Extract the first word of "$ac_prog", so it can be a program name with args.
9161 set dummy $ac_prog; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_path_PRINTF+:} false; then :
9165   $as_echo_n "(cached) " >&6
9166 else
9167   case $PRINTF in
9168   [\\/]* | ?:[\\/]*)
9169   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9170   ;;
9171   *)
9172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 for as_dir in $PATH
9174 do
9175   IFS=$as_save_IFS
9176   test -z "$as_dir" && as_dir=.
9177     for ac_exec_ext in '' $ac_executable_extensions; do
9178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9179     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181     break 2
9182   fi
9183 done
9184   done
9185 IFS=$as_save_IFS
9186 
9187   ;;
9188 esac
9189 fi
9190 PRINTF=$ac_cv_path_PRINTF
9191 if test -n "$PRINTF"; then
9192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9193 $as_echo "$PRINTF" >&6; }
9194 else
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9197 fi
9198 
9199 
9200   test -n "$PRINTF" && break
9201 done
9202 
9203   else
9204     # The variable is set, but is it from the command line or the environment?
9205 
9206     # Try to remove the string !PRINTF! from our list.
9207     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9208     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9209       # If it failed, the variable was not from the command line. Ignore it,
9210       # but warn the user (except for BASH, which is always set by the calling BASH).
9211       if test "xPRINTF" != xBASH; then
9212         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9213 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9214       fi
9215       # Try to locate tool using the code snippet
9216       for ac_prog in printf
9217 do
9218   # Extract the first word of "$ac_prog", so it can be a program name with args.
9219 set dummy $ac_prog; ac_word=$2
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9221 $as_echo_n "checking for $ac_word... " >&6; }
9222 if ${ac_cv_path_PRINTF+:} false; then :
9223   $as_echo_n "(cached) " >&6
9224 else
9225   case $PRINTF in
9226   [\\/]* | ?:[\\/]*)
9227   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9228   ;;
9229   *)
9230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233   IFS=$as_save_IFS
9234   test -z "$as_dir" && as_dir=.
9235     for ac_exec_ext in '' $ac_executable_extensions; do
9236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9237     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239     break 2
9240   fi
9241 done
9242   done
9243 IFS=$as_save_IFS
9244 
9245   ;;
9246 esac
9247 fi
9248 PRINTF=$ac_cv_path_PRINTF
9249 if test -n "$PRINTF"; then
9250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9251 $as_echo "$PRINTF" >&6; }
9252 else
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9255 fi
9256 
9257 
9258   test -n "$PRINTF" && break
9259 done
9260 
9261     else
9262       # If it succeeded, then it was overridden by the user. We will use it
9263       # for the tool.
9264 
9265       # First remove it from the list of overridden variables, so we can test
9266       # for unknown variables in the end.
9267       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9268 
9269       # Check if we try to supply an empty value
9270       if test "x$PRINTF" = x; then
9271         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9272 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9273         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9274 $as_echo_n "checking for PRINTF... " >&6; }
9275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9276 $as_echo "disabled" >&6; }
9277       else
9278         # Check if the provided tool contains a complete path.
9279         tool_specified="$PRINTF"
9280         tool_basename="${tool_specified##*/}"
9281         if test "x$tool_basename" = "x$tool_specified"; then
9282           # A command without a complete path is provided, search $PATH.
9283           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9284 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9285           # Extract the first word of "$tool_basename", so it can be a program name with args.
9286 set dummy $tool_basename; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_PRINTF+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   case $PRINTF in
9293   [\\/]* | ?:[\\/]*)
9294   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9295   ;;
9296   *)
9297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300   IFS=$as_save_IFS
9301   test -z "$as_dir" && as_dir=.
9302     for ac_exec_ext in '' $ac_executable_extensions; do
9303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306     break 2
9307   fi
9308 done
9309   done
9310 IFS=$as_save_IFS
9311 
9312   ;;
9313 esac
9314 fi
9315 PRINTF=$ac_cv_path_PRINTF
9316 if test -n "$PRINTF"; then
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9318 $as_echo "$PRINTF" >&6; }
9319 else
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9322 fi
9323 
9324 
9325           if test "x$PRINTF" = x; then
9326             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9327           fi
9328         else
9329           # Otherwise we believe it is a complete path. Use it as it is.
9330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9331 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9332           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9333 $as_echo_n "checking for PRINTF... " >&6; }
9334           if test ! -x "$tool_specified"; then
9335             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9336 $as_echo "not found" >&6; }
9337             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9338           fi
9339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9340 $as_echo "$tool_specified" >&6; }
9341         fi
9342       fi
9343     fi
9344 
9345   fi
9346 
9347 
9348 
9349   if test "x$PRINTF" = x; then
9350     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9351   fi
9352 
9353 
9354 
9355 
9356 
9357   # Publish this variable in the help.
9358 
9359 
9360   if [ -z "${RM+x}" ]; then
9361     # The variable is not set by user, try to locate tool using the code snippet
9362     for ac_prog in rm
9363 do
9364   # Extract the first word of "$ac_prog", so it can be a program name with args.
9365 set dummy $ac_prog; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_path_RM+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   case $RM in
9372   [\\/]* | ?:[\\/]*)
9373   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9374   ;;
9375   *)
9376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 for as_dir in $PATH
9378 do
9379   IFS=$as_save_IFS
9380   test -z "$as_dir" && as_dir=.
9381     for ac_exec_ext in '' $ac_executable_extensions; do
9382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9383     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385     break 2
9386   fi
9387 done
9388   done
9389 IFS=$as_save_IFS
9390 
9391   ;;
9392 esac
9393 fi
9394 RM=$ac_cv_path_RM
9395 if test -n "$RM"; then
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9397 $as_echo "$RM" >&6; }
9398 else
9399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9401 fi
9402 
9403 
9404   test -n "$RM" && break
9405 done
9406 
9407   else
9408     # The variable is set, but is it from the command line or the environment?
9409 
9410     # Try to remove the string !RM! from our list.
9411     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9412     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9413       # If it failed, the variable was not from the command line. Ignore it,
9414       # but warn the user (except for BASH, which is always set by the calling BASH).
9415       if test "xRM" != xBASH; then
9416         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9417 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9418       fi
9419       # Try to locate tool using the code snippet
9420       for ac_prog in rm
9421 do
9422   # Extract the first word of "$ac_prog", so it can be a program name with args.
9423 set dummy $ac_prog; ac_word=$2
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if ${ac_cv_path_RM+:} false; then :
9427   $as_echo_n "(cached) " >&6
9428 else
9429   case $RM in
9430   [\\/]* | ?:[\\/]*)
9431   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9432   ;;
9433   *)
9434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9436 do
9437   IFS=$as_save_IFS
9438   test -z "$as_dir" && as_dir=.
9439     for ac_exec_ext in '' $ac_executable_extensions; do
9440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9441     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9443     break 2
9444   fi
9445 done
9446   done
9447 IFS=$as_save_IFS
9448 
9449   ;;
9450 esac
9451 fi
9452 RM=$ac_cv_path_RM
9453 if test -n "$RM"; then
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9455 $as_echo "$RM" >&6; }
9456 else
9457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 $as_echo "no" >&6; }
9459 fi
9460 
9461 
9462   test -n "$RM" && break
9463 done
9464 
9465     else
9466       # If it succeeded, then it was overridden by the user. We will use it
9467       # for the tool.
9468 
9469       # First remove it from the list of overridden variables, so we can test
9470       # for unknown variables in the end.
9471       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9472 
9473       # Check if we try to supply an empty value
9474       if test "x$RM" = x; then
9475         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9476 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9478 $as_echo_n "checking for RM... " >&6; }
9479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9480 $as_echo "disabled" >&6; }
9481       else
9482         # Check if the provided tool contains a complete path.
9483         tool_specified="$RM"
9484         tool_basename="${tool_specified##*/}"
9485         if test "x$tool_basename" = "x$tool_specified"; then
9486           # A command without a complete path is provided, search $PATH.
9487           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9488 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9489           # Extract the first word of "$tool_basename", so it can be a program name with args.
9490 set dummy $tool_basename; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_path_RM+:} false; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   case $RM in
9497   [\\/]* | ?:[\\/]*)
9498   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9499   ;;
9500   *)
9501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504   IFS=$as_save_IFS
9505   test -z "$as_dir" && as_dir=.
9506     for ac_exec_ext in '' $ac_executable_extensions; do
9507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510     break 2
9511   fi
9512 done
9513   done
9514 IFS=$as_save_IFS
9515 
9516   ;;
9517 esac
9518 fi
9519 RM=$ac_cv_path_RM
9520 if test -n "$RM"; then
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9522 $as_echo "$RM" >&6; }
9523 else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 fi
9527 
9528 
9529           if test "x$RM" = x; then
9530             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9531           fi
9532         else
9533           # Otherwise we believe it is a complete path. Use it as it is.
9534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9535 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9536           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9537 $as_echo_n "checking for RM... " >&6; }
9538           if test ! -x "$tool_specified"; then
9539             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9540 $as_echo "not found" >&6; }
9541             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9542           fi
9543           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9544 $as_echo "$tool_specified" >&6; }
9545         fi
9546       fi
9547     fi
9548 
9549   fi
9550 
9551 
9552 
9553   if test "x$RM" = x; then
9554     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9555   fi
9556 
9557 
9558 
9559 
9560 
9561   # Publish this variable in the help.
9562 
9563 
9564   if [ -z "${RMDIR+x}" ]; then
9565     # The variable is not set by user, try to locate tool using the code snippet
9566     for ac_prog in rmdir
9567 do
9568   # Extract the first word of "$ac_prog", so it can be a program name with args.
9569 set dummy $ac_prog; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_path_RMDIR+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   case $RMDIR in
9576   [\\/]* | ?:[\\/]*)
9577   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9578   ;;
9579   *)
9580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583   IFS=$as_save_IFS
9584   test -z "$as_dir" && as_dir=.
9585     for ac_exec_ext in '' $ac_executable_extensions; do
9586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589     break 2
9590   fi
9591 done
9592   done
9593 IFS=$as_save_IFS
9594 
9595   ;;
9596 esac
9597 fi
9598 RMDIR=$ac_cv_path_RMDIR
9599 if test -n "$RMDIR"; then
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9601 $as_echo "$RMDIR" >&6; }
9602 else
9603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9605 fi
9606 
9607 
9608   test -n "$RMDIR" && break
9609 done
9610 
9611   else
9612     # The variable is set, but is it from the command line or the environment?
9613 
9614     # Try to remove the string !RMDIR! from our list.
9615     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9616     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9617       # If it failed, the variable was not from the command line. Ignore it,
9618       # but warn the user (except for BASH, which is always set by the calling BASH).
9619       if test "xRMDIR" != xBASH; then
9620         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9621 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9622       fi
9623       # Try to locate tool using the code snippet
9624       for ac_prog in rmdir
9625 do
9626   # Extract the first word of "$ac_prog", so it can be a program name with args.
9627 set dummy $ac_prog; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if ${ac_cv_path_RMDIR+:} false; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   case $RMDIR in
9634   [\\/]* | ?:[\\/]*)
9635   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9636   ;;
9637   *)
9638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9640 do
9641   IFS=$as_save_IFS
9642   test -z "$as_dir" && as_dir=.
9643     for ac_exec_ext in '' $ac_executable_extensions; do
9644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9645     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647     break 2
9648   fi
9649 done
9650   done
9651 IFS=$as_save_IFS
9652 
9653   ;;
9654 esac
9655 fi
9656 RMDIR=$ac_cv_path_RMDIR
9657 if test -n "$RMDIR"; then
9658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9659 $as_echo "$RMDIR" >&6; }
9660 else
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9663 fi
9664 
9665 
9666   test -n "$RMDIR" && break
9667 done
9668 
9669     else
9670       # If it succeeded, then it was overridden by the user. We will use it
9671       # for the tool.
9672 
9673       # First remove it from the list of overridden variables, so we can test
9674       # for unknown variables in the end.
9675       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9676 
9677       # Check if we try to supply an empty value
9678       if test "x$RMDIR" = x; then
9679         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9680 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9682 $as_echo_n "checking for RMDIR... " >&6; }
9683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9684 $as_echo "disabled" >&6; }
9685       else
9686         # Check if the provided tool contains a complete path.
9687         tool_specified="$RMDIR"
9688         tool_basename="${tool_specified##*/}"
9689         if test "x$tool_basename" = "x$tool_specified"; then
9690           # A command without a complete path is provided, search $PATH.
9691           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9692 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9693           # Extract the first word of "$tool_basename", so it can be a program name with args.
9694 set dummy $tool_basename; ac_word=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if ${ac_cv_path_RMDIR+:} false; then :
9698   $as_echo_n "(cached) " >&6
9699 else
9700   case $RMDIR in
9701   [\\/]* | ?:[\\/]*)
9702   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9703   ;;
9704   *)
9705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719 
9720   ;;
9721 esac
9722 fi
9723 RMDIR=$ac_cv_path_RMDIR
9724 if test -n "$RMDIR"; then
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9726 $as_echo "$RMDIR" >&6; }
9727 else
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731 
9732 
9733           if test "x$RMDIR" = x; then
9734             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9735           fi
9736         else
9737           # Otherwise we believe it is a complete path. Use it as it is.
9738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9739 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9740           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9741 $as_echo_n "checking for RMDIR... " >&6; }
9742           if test ! -x "$tool_specified"; then
9743             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9744 $as_echo "not found" >&6; }
9745             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9746           fi
9747           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9748 $as_echo "$tool_specified" >&6; }
9749         fi
9750       fi
9751     fi
9752 
9753   fi
9754 
9755 
9756 
9757   if test "x$RMDIR" = x; then
9758     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9759   fi
9760 
9761 
9762 
9763 
9764 
9765   # Publish this variable in the help.
9766 
9767 
9768   if [ -z "${SH+x}" ]; then
9769     # The variable is not set by user, try to locate tool using the code snippet
9770     for ac_prog in sh
9771 do
9772   # Extract the first word of "$ac_prog", so it can be a program name with args.
9773 set dummy $ac_prog; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_path_SH+:} false; then :
9777   $as_echo_n "(cached) " >&6
9778 else
9779   case $SH in
9780   [\\/]* | ?:[\\/]*)
9781   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9782   ;;
9783   *)
9784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789     for ac_exec_ext in '' $ac_executable_extensions; do
9790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793     break 2
9794   fi
9795 done
9796   done
9797 IFS=$as_save_IFS
9798 
9799   ;;
9800 esac
9801 fi
9802 SH=$ac_cv_path_SH
9803 if test -n "$SH"; then
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9805 $as_echo "$SH" >&6; }
9806 else
9807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9809 fi
9810 
9811 
9812   test -n "$SH" && break
9813 done
9814 
9815   else
9816     # The variable is set, but is it from the command line or the environment?
9817 
9818     # Try to remove the string !SH! from our list.
9819     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9820     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9821       # If it failed, the variable was not from the command line. Ignore it,
9822       # but warn the user (except for BASH, which is always set by the calling BASH).
9823       if test "xSH" != xBASH; then
9824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9825 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9826       fi
9827       # Try to locate tool using the code snippet
9828       for ac_prog in sh
9829 do
9830   # Extract the first word of "$ac_prog", so it can be a program name with args.
9831 set dummy $ac_prog; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if ${ac_cv_path_SH+:} false; then :
9835   $as_echo_n "(cached) " >&6
9836 else
9837   case $SH in
9838   [\\/]* | ?:[\\/]*)
9839   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9840   ;;
9841   *)
9842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $PATH
9844 do
9845   IFS=$as_save_IFS
9846   test -z "$as_dir" && as_dir=.
9847     for ac_exec_ext in '' $ac_executable_extensions; do
9848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9849     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851     break 2
9852   fi
9853 done
9854   done
9855 IFS=$as_save_IFS
9856 
9857   ;;
9858 esac
9859 fi
9860 SH=$ac_cv_path_SH
9861 if test -n "$SH"; then
9862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9863 $as_echo "$SH" >&6; }
9864 else
9865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9867 fi
9868 
9869 
9870   test -n "$SH" && break
9871 done
9872 
9873     else
9874       # If it succeeded, then it was overridden by the user. We will use it
9875       # for the tool.
9876 
9877       # First remove it from the list of overridden variables, so we can test
9878       # for unknown variables in the end.
9879       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9880 
9881       # Check if we try to supply an empty value
9882       if test "x$SH" = x; then
9883         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9884 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9885         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9886 $as_echo_n "checking for SH... " >&6; }
9887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9888 $as_echo "disabled" >&6; }
9889       else
9890         # Check if the provided tool contains a complete path.
9891         tool_specified="$SH"
9892         tool_basename="${tool_specified##*/}"
9893         if test "x$tool_basename" = "x$tool_specified"; then
9894           # A command without a complete path is provided, search $PATH.
9895           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9896 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9897           # Extract the first word of "$tool_basename", so it can be a program name with args.
9898 set dummy $tool_basename; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_path_SH+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   case $SH in
9905   [\\/]* | ?:[\\/]*)
9906   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9907   ;;
9908   *)
9909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912   IFS=$as_save_IFS
9913   test -z "$as_dir" && as_dir=.
9914     for ac_exec_ext in '' $ac_executable_extensions; do
9915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918     break 2
9919   fi
9920 done
9921   done
9922 IFS=$as_save_IFS
9923 
9924   ;;
9925 esac
9926 fi
9927 SH=$ac_cv_path_SH
9928 if test -n "$SH"; then
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9930 $as_echo "$SH" >&6; }
9931 else
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935 
9936 
9937           if test "x$SH" = x; then
9938             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9939           fi
9940         else
9941           # Otherwise we believe it is a complete path. Use it as it is.
9942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9943 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9944           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9945 $as_echo_n "checking for SH... " >&6; }
9946           if test ! -x "$tool_specified"; then
9947             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9948 $as_echo "not found" >&6; }
9949             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9950           fi
9951           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9952 $as_echo "$tool_specified" >&6; }
9953         fi
9954       fi
9955     fi
9956 
9957   fi
9958 
9959 
9960 
9961   if test "x$SH" = x; then
9962     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9963   fi
9964 
9965 
9966 
9967 
9968 
9969   # Publish this variable in the help.
9970 
9971 
9972   if [ -z "${SORT+x}" ]; then
9973     # The variable is not set by user, try to locate tool using the code snippet
9974     for ac_prog in sort
9975 do
9976   # Extract the first word of "$ac_prog", so it can be a program name with args.
9977 set dummy $ac_prog; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_path_SORT+:} false; then :
9981   $as_echo_n "(cached) " >&6
9982 else
9983   case $SORT in
9984   [\\/]* | ?:[\\/]*)
9985   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9986   ;;
9987   *)
9988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 for as_dir in $PATH
9990 do
9991   IFS=$as_save_IFS
9992   test -z "$as_dir" && as_dir=.
9993     for ac_exec_ext in '' $ac_executable_extensions; do
9994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9995     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997     break 2
9998   fi
9999 done
10000   done
10001 IFS=$as_save_IFS
10002 
10003   ;;
10004 esac
10005 fi
10006 SORT=$ac_cv_path_SORT
10007 if test -n "$SORT"; then
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10009 $as_echo "$SORT" >&6; }
10010 else
10011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10013 fi
10014 
10015 
10016   test -n "$SORT" && break
10017 done
10018 
10019   else
10020     # The variable is set, but is it from the command line or the environment?
10021 
10022     # Try to remove the string !SORT! from our list.
10023     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10024     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10025       # If it failed, the variable was not from the command line. Ignore it,
10026       # but warn the user (except for BASH, which is always set by the calling BASH).
10027       if test "xSORT" != xBASH; then
10028         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10029 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10030       fi
10031       # Try to locate tool using the code snippet
10032       for ac_prog in sort
10033 do
10034   # Extract the first word of "$ac_prog", so it can be a program name with args.
10035 set dummy $ac_prog; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if ${ac_cv_path_SORT+:} false; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   case $SORT in
10042   [\\/]* | ?:[\\/]*)
10043   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10044   ;;
10045   *)
10046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049   IFS=$as_save_IFS
10050   test -z "$as_dir" && as_dir=.
10051     for ac_exec_ext in '' $ac_executable_extensions; do
10052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055     break 2
10056   fi
10057 done
10058   done
10059 IFS=$as_save_IFS
10060 
10061   ;;
10062 esac
10063 fi
10064 SORT=$ac_cv_path_SORT
10065 if test -n "$SORT"; then
10066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10067 $as_echo "$SORT" >&6; }
10068 else
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10071 fi
10072 
10073 
10074   test -n "$SORT" && break
10075 done
10076 
10077     else
10078       # If it succeeded, then it was overridden by the user. We will use it
10079       # for the tool.
10080 
10081       # First remove it from the list of overridden variables, so we can test
10082       # for unknown variables in the end.
10083       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10084 
10085       # Check if we try to supply an empty value
10086       if test "x$SORT" = x; then
10087         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10088 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10090 $as_echo_n "checking for SORT... " >&6; }
10091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10092 $as_echo "disabled" >&6; }
10093       else
10094         # Check if the provided tool contains a complete path.
10095         tool_specified="$SORT"
10096         tool_basename="${tool_specified##*/}"
10097         if test "x$tool_basename" = "x$tool_specified"; then
10098           # A command without a complete path is provided, search $PATH.
10099           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10100 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10101           # Extract the first word of "$tool_basename", so it can be a program name with args.
10102 set dummy $tool_basename; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_SORT+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   case $SORT in
10109   [\\/]* | ?:[\\/]*)
10110   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10111   ;;
10112   *)
10113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116   IFS=$as_save_IFS
10117   test -z "$as_dir" && as_dir=.
10118     for ac_exec_ext in '' $ac_executable_extensions; do
10119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122     break 2
10123   fi
10124 done
10125   done
10126 IFS=$as_save_IFS
10127 
10128   ;;
10129 esac
10130 fi
10131 SORT=$ac_cv_path_SORT
10132 if test -n "$SORT"; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10134 $as_echo "$SORT" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139 
10140 
10141           if test "x$SORT" = x; then
10142             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10143           fi
10144         else
10145           # Otherwise we believe it is a complete path. Use it as it is.
10146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10147 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10148           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10149 $as_echo_n "checking for SORT... " >&6; }
10150           if test ! -x "$tool_specified"; then
10151             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10152 $as_echo "not found" >&6; }
10153             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10154           fi
10155           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10156 $as_echo "$tool_specified" >&6; }
10157         fi
10158       fi
10159     fi
10160 
10161   fi
10162 
10163 
10164 
10165   if test "x$SORT" = x; then
10166     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10167   fi
10168 
10169 
10170 
10171 
10172 
10173   # Publish this variable in the help.
10174 
10175 
10176   if [ -z "${TAIL+x}" ]; then
10177     # The variable is not set by user, try to locate tool using the code snippet
10178     for ac_prog in tail
10179 do
10180   # Extract the first word of "$ac_prog", so it can be a program name with args.
10181 set dummy $ac_prog; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if ${ac_cv_path_TAIL+:} false; then :
10185   $as_echo_n "(cached) " >&6
10186 else
10187   case $TAIL in
10188   [\\/]* | ?:[\\/]*)
10189   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10190   ;;
10191   *)
10192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195   IFS=$as_save_IFS
10196   test -z "$as_dir" && as_dir=.
10197     for ac_exec_ext in '' $ac_executable_extensions; do
10198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201     break 2
10202   fi
10203 done
10204   done
10205 IFS=$as_save_IFS
10206 
10207   ;;
10208 esac
10209 fi
10210 TAIL=$ac_cv_path_TAIL
10211 if test -n "$TAIL"; then
10212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10213 $as_echo "$TAIL" >&6; }
10214 else
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218 
10219 
10220   test -n "$TAIL" && break
10221 done
10222 
10223   else
10224     # The variable is set, but is it from the command line or the environment?
10225 
10226     # Try to remove the string !TAIL! from our list.
10227     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10228     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10229       # If it failed, the variable was not from the command line. Ignore it,
10230       # but warn the user (except for BASH, which is always set by the calling BASH).
10231       if test "xTAIL" != xBASH; then
10232         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10233 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10234       fi
10235       # Try to locate tool using the code snippet
10236       for ac_prog in tail
10237 do
10238   # Extract the first word of "$ac_prog", so it can be a program name with args.
10239 set dummy $ac_prog; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_path_TAIL+:} false; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245   case $TAIL in
10246   [\\/]* | ?:[\\/]*)
10247   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10248   ;;
10249   *)
10250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10252 do
10253   IFS=$as_save_IFS
10254   test -z "$as_dir" && as_dir=.
10255     for ac_exec_ext in '' $ac_executable_extensions; do
10256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259     break 2
10260   fi
10261 done
10262   done
10263 IFS=$as_save_IFS
10264 
10265   ;;
10266 esac
10267 fi
10268 TAIL=$ac_cv_path_TAIL
10269 if test -n "$TAIL"; then
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10271 $as_echo "$TAIL" >&6; }
10272 else
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10275 fi
10276 
10277 
10278   test -n "$TAIL" && break
10279 done
10280 
10281     else
10282       # If it succeeded, then it was overridden by the user. We will use it
10283       # for the tool.
10284 
10285       # First remove it from the list of overridden variables, so we can test
10286       # for unknown variables in the end.
10287       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10288 
10289       # Check if we try to supply an empty value
10290       if test "x$TAIL" = x; then
10291         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10292 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10294 $as_echo_n "checking for TAIL... " >&6; }
10295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10296 $as_echo "disabled" >&6; }
10297       else
10298         # Check if the provided tool contains a complete path.
10299         tool_specified="$TAIL"
10300         tool_basename="${tool_specified##*/}"
10301         if test "x$tool_basename" = "x$tool_specified"; then
10302           # A command without a complete path is provided, search $PATH.
10303           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10304 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10305           # Extract the first word of "$tool_basename", so it can be a program name with args.
10306 set dummy $tool_basename; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_TAIL+:} false; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   case $TAIL in
10313   [\\/]* | ?:[\\/]*)
10314   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10315   ;;
10316   *)
10317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320   IFS=$as_save_IFS
10321   test -z "$as_dir" && as_dir=.
10322     for ac_exec_ext in '' $ac_executable_extensions; do
10323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326     break 2
10327   fi
10328 done
10329   done
10330 IFS=$as_save_IFS
10331 
10332   ;;
10333 esac
10334 fi
10335 TAIL=$ac_cv_path_TAIL
10336 if test -n "$TAIL"; then
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10338 $as_echo "$TAIL" >&6; }
10339 else
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342 fi
10343 
10344 
10345           if test "x$TAIL" = x; then
10346             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10347           fi
10348         else
10349           # Otherwise we believe it is a complete path. Use it as it is.
10350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10351 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10352           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10353 $as_echo_n "checking for TAIL... " >&6; }
10354           if test ! -x "$tool_specified"; then
10355             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10356 $as_echo "not found" >&6; }
10357             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10358           fi
10359           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10360 $as_echo "$tool_specified" >&6; }
10361         fi
10362       fi
10363     fi
10364 
10365   fi
10366 
10367 
10368 
10369   if test "x$TAIL" = x; then
10370     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10371   fi
10372 
10373 
10374 
10375 
10376 
10377   # Publish this variable in the help.
10378 
10379 
10380   if [ -z "${TAR+x}" ]; then
10381     # The variable is not set by user, try to locate tool using the code snippet
10382     for ac_prog in tar
10383 do
10384   # Extract the first word of "$ac_prog", so it can be a program name with args.
10385 set dummy $ac_prog; ac_word=$2
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387 $as_echo_n "checking for $ac_word... " >&6; }
10388 if ${ac_cv_path_TAR+:} false; then :
10389   $as_echo_n "(cached) " >&6
10390 else
10391   case $TAR in
10392   [\\/]* | ?:[\\/]*)
10393   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10394   ;;
10395   *)
10396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10398 do
10399   IFS=$as_save_IFS
10400   test -z "$as_dir" && as_dir=.
10401     for ac_exec_ext in '' $ac_executable_extensions; do
10402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405     break 2
10406   fi
10407 done
10408   done
10409 IFS=$as_save_IFS
10410 
10411   ;;
10412 esac
10413 fi
10414 TAR=$ac_cv_path_TAR
10415 if test -n "$TAR"; then
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10417 $as_echo "$TAR" >&6; }
10418 else
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10421 fi
10422 
10423 
10424   test -n "$TAR" && break
10425 done
10426 
10427   else
10428     # The variable is set, but is it from the command line or the environment?
10429 
10430     # Try to remove the string !TAR! from our list.
10431     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10432     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10433       # If it failed, the variable was not from the command line. Ignore it,
10434       # but warn the user (except for BASH, which is always set by the calling BASH).
10435       if test "xTAR" != xBASH; then
10436         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10437 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10438       fi
10439       # Try to locate tool using the code snippet
10440       for ac_prog in tar
10441 do
10442   # Extract the first word of "$ac_prog", so it can be a program name with args.
10443 set dummy $ac_prog; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if ${ac_cv_path_TAR+:} false; then :
10447   $as_echo_n "(cached) " >&6
10448 else
10449   case $TAR in
10450   [\\/]* | ?:[\\/]*)
10451   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10452   ;;
10453   *)
10454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10456 do
10457   IFS=$as_save_IFS
10458   test -z "$as_dir" && as_dir=.
10459     for ac_exec_ext in '' $ac_executable_extensions; do
10460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463     break 2
10464   fi
10465 done
10466   done
10467 IFS=$as_save_IFS
10468 
10469   ;;
10470 esac
10471 fi
10472 TAR=$ac_cv_path_TAR
10473 if test -n "$TAR"; then
10474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10475 $as_echo "$TAR" >&6; }
10476 else
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 fi
10480 
10481 
10482   test -n "$TAR" && break
10483 done
10484 
10485     else
10486       # If it succeeded, then it was overridden by the user. We will use it
10487       # for the tool.
10488 
10489       # First remove it from the list of overridden variables, so we can test
10490       # for unknown variables in the end.
10491       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10492 
10493       # Check if we try to supply an empty value
10494       if test "x$TAR" = x; then
10495         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10496 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10498 $as_echo_n "checking for TAR... " >&6; }
10499         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10500 $as_echo "disabled" >&6; }
10501       else
10502         # Check if the provided tool contains a complete path.
10503         tool_specified="$TAR"
10504         tool_basename="${tool_specified##*/}"
10505         if test "x$tool_basename" = "x$tool_specified"; then
10506           # A command without a complete path is provided, search $PATH.
10507           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10508 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10509           # Extract the first word of "$tool_basename", so it can be a program name with args.
10510 set dummy $tool_basename; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if ${ac_cv_path_TAR+:} false; then :
10514   $as_echo_n "(cached) " >&6
10515 else
10516   case $TAR in
10517   [\\/]* | ?:[\\/]*)
10518   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10519   ;;
10520   *)
10521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10523 do
10524   IFS=$as_save_IFS
10525   test -z "$as_dir" && as_dir=.
10526     for ac_exec_ext in '' $ac_executable_extensions; do
10527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10528     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530     break 2
10531   fi
10532 done
10533   done
10534 IFS=$as_save_IFS
10535 
10536   ;;
10537 esac
10538 fi
10539 TAR=$ac_cv_path_TAR
10540 if test -n "$TAR"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10542 $as_echo "$TAR" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547 
10548 
10549           if test "x$TAR" = x; then
10550             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10551           fi
10552         else
10553           # Otherwise we believe it is a complete path. Use it as it is.
10554           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10555 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10556           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10557 $as_echo_n "checking for TAR... " >&6; }
10558           if test ! -x "$tool_specified"; then
10559             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10560 $as_echo "not found" >&6; }
10561             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10562           fi
10563           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10564 $as_echo "$tool_specified" >&6; }
10565         fi
10566       fi
10567     fi
10568 
10569   fi
10570 
10571 
10572 
10573   if test "x$TAR" = x; then
10574     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10575   fi
10576 
10577 
10578 
10579 
10580 
10581   # Publish this variable in the help.
10582 
10583 
10584   if [ -z "${TEE+x}" ]; then
10585     # The variable is not set by user, try to locate tool using the code snippet
10586     for ac_prog in tee
10587 do
10588   # Extract the first word of "$ac_prog", so it can be a program name with args.
10589 set dummy $ac_prog; ac_word=$2
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10591 $as_echo_n "checking for $ac_word... " >&6; }
10592 if ${ac_cv_path_TEE+:} false; then :
10593   $as_echo_n "(cached) " >&6
10594 else
10595   case $TEE in
10596   [\\/]* | ?:[\\/]*)
10597   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10598   ;;
10599   *)
10600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10602 do
10603   IFS=$as_save_IFS
10604   test -z "$as_dir" && as_dir=.
10605     for ac_exec_ext in '' $ac_executable_extensions; do
10606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609     break 2
10610   fi
10611 done
10612   done
10613 IFS=$as_save_IFS
10614 
10615   ;;
10616 esac
10617 fi
10618 TEE=$ac_cv_path_TEE
10619 if test -n "$TEE"; then
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10621 $as_echo "$TEE" >&6; }
10622 else
10623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 fi
10626 
10627 
10628   test -n "$TEE" && break
10629 done
10630 
10631   else
10632     # The variable is set, but is it from the command line or the environment?
10633 
10634     # Try to remove the string !TEE! from our list.
10635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10637       # If it failed, the variable was not from the command line. Ignore it,
10638       # but warn the user (except for BASH, which is always set by the calling BASH).
10639       if test "xTEE" != xBASH; then
10640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10641 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10642       fi
10643       # Try to locate tool using the code snippet
10644       for ac_prog in tee
10645 do
10646   # Extract the first word of "$ac_prog", so it can be a program name with args.
10647 set dummy $ac_prog; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if ${ac_cv_path_TEE+:} false; then :
10651   $as_echo_n "(cached) " >&6
10652 else
10653   case $TEE in
10654   [\\/]* | ?:[\\/]*)
10655   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10656   ;;
10657   *)
10658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10660 do
10661   IFS=$as_save_IFS
10662   test -z "$as_dir" && as_dir=.
10663     for ac_exec_ext in '' $ac_executable_extensions; do
10664   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667     break 2
10668   fi
10669 done
10670   done
10671 IFS=$as_save_IFS
10672 
10673   ;;
10674 esac
10675 fi
10676 TEE=$ac_cv_path_TEE
10677 if test -n "$TEE"; then
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10679 $as_echo "$TEE" >&6; }
10680 else
10681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10683 fi
10684 
10685 
10686   test -n "$TEE" && break
10687 done
10688 
10689     else
10690       # If it succeeded, then it was overridden by the user. We will use it
10691       # for the tool.
10692 
10693       # First remove it from the list of overridden variables, so we can test
10694       # for unknown variables in the end.
10695       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10696 
10697       # Check if we try to supply an empty value
10698       if test "x$TEE" = x; then
10699         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10700 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10702 $as_echo_n "checking for TEE... " >&6; }
10703         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10704 $as_echo "disabled" >&6; }
10705       else
10706         # Check if the provided tool contains a complete path.
10707         tool_specified="$TEE"
10708         tool_basename="${tool_specified##*/}"
10709         if test "x$tool_basename" = "x$tool_specified"; then
10710           # A command without a complete path is provided, search $PATH.
10711           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10712 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10713           # Extract the first word of "$tool_basename", so it can be a program name with args.
10714 set dummy $tool_basename; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_TEE+:} false; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   case $TEE in
10721   [\\/]* | ?:[\\/]*)
10722   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10723   ;;
10724   *)
10725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10727 do
10728   IFS=$as_save_IFS
10729   test -z "$as_dir" && as_dir=.
10730     for ac_exec_ext in '' $ac_executable_extensions; do
10731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734     break 2
10735   fi
10736 done
10737   done
10738 IFS=$as_save_IFS
10739 
10740   ;;
10741 esac
10742 fi
10743 TEE=$ac_cv_path_TEE
10744 if test -n "$TEE"; then
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10746 $as_echo "$TEE" >&6; }
10747 else
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 fi
10751 
10752 
10753           if test "x$TEE" = x; then
10754             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10755           fi
10756         else
10757           # Otherwise we believe it is a complete path. Use it as it is.
10758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10759 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10760           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10761 $as_echo_n "checking for TEE... " >&6; }
10762           if test ! -x "$tool_specified"; then
10763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10764 $as_echo "not found" >&6; }
10765             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10766           fi
10767           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10768 $as_echo "$tool_specified" >&6; }
10769         fi
10770       fi
10771     fi
10772 
10773   fi
10774 
10775 
10776 
10777   if test "x$TEE" = x; then
10778     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10779   fi
10780 
10781 
10782 
10783 
10784 
10785   # Publish this variable in the help.
10786 
10787 
10788   if [ -z "${TOUCH+x}" ]; then
10789     # The variable is not set by user, try to locate tool using the code snippet
10790     for ac_prog in touch
10791 do
10792   # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_path_TOUCH+:} false; then :
10797   $as_echo_n "(cached) " >&6
10798 else
10799   case $TOUCH in
10800   [\\/]* | ?:[\\/]*)
10801   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10802   ;;
10803   *)
10804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10806 do
10807   IFS=$as_save_IFS
10808   test -z "$as_dir" && as_dir=.
10809     for ac_exec_ext in '' $ac_executable_extensions; do
10810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10813     break 2
10814   fi
10815 done
10816   done
10817 IFS=$as_save_IFS
10818 
10819   ;;
10820 esac
10821 fi
10822 TOUCH=$ac_cv_path_TOUCH
10823 if test -n "$TOUCH"; then
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10825 $as_echo "$TOUCH" >&6; }
10826 else
10827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 fi
10830 
10831 
10832   test -n "$TOUCH" && break
10833 done
10834 
10835   else
10836     # The variable is set, but is it from the command line or the environment?
10837 
10838     # Try to remove the string !TOUCH! from our list.
10839     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10840     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10841       # If it failed, the variable was not from the command line. Ignore it,
10842       # but warn the user (except for BASH, which is always set by the calling BASH).
10843       if test "xTOUCH" != xBASH; then
10844         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10845 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10846       fi
10847       # Try to locate tool using the code snippet
10848       for ac_prog in touch
10849 do
10850   # Extract the first word of "$ac_prog", so it can be a program name with args.
10851 set dummy $ac_prog; ac_word=$2
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 $as_echo_n "checking for $ac_word... " >&6; }
10854 if ${ac_cv_path_TOUCH+:} false; then :
10855   $as_echo_n "(cached) " >&6
10856 else
10857   case $TOUCH in
10858   [\\/]* | ?:[\\/]*)
10859   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10860   ;;
10861   *)
10862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $PATH
10864 do
10865   IFS=$as_save_IFS
10866   test -z "$as_dir" && as_dir=.
10867     for ac_exec_ext in '' $ac_executable_extensions; do
10868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871     break 2
10872   fi
10873 done
10874   done
10875 IFS=$as_save_IFS
10876 
10877   ;;
10878 esac
10879 fi
10880 TOUCH=$ac_cv_path_TOUCH
10881 if test -n "$TOUCH"; then
10882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10883 $as_echo "$TOUCH" >&6; }
10884 else
10885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10887 fi
10888 
10889 
10890   test -n "$TOUCH" && break
10891 done
10892 
10893     else
10894       # If it succeeded, then it was overridden by the user. We will use it
10895       # for the tool.
10896 
10897       # First remove it from the list of overridden variables, so we can test
10898       # for unknown variables in the end.
10899       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10900 
10901       # Check if we try to supply an empty value
10902       if test "x$TOUCH" = x; then
10903         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10904 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10905         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10906 $as_echo_n "checking for TOUCH... " >&6; }
10907         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10908 $as_echo "disabled" >&6; }
10909       else
10910         # Check if the provided tool contains a complete path.
10911         tool_specified="$TOUCH"
10912         tool_basename="${tool_specified##*/}"
10913         if test "x$tool_basename" = "x$tool_specified"; then
10914           # A command without a complete path is provided, search $PATH.
10915           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10916 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10917           # Extract the first word of "$tool_basename", so it can be a program name with args.
10918 set dummy $tool_basename; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_TOUCH+:} false; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   case $TOUCH in
10925   [\\/]* | ?:[\\/]*)
10926   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10927   ;;
10928   *)
10929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932   IFS=$as_save_IFS
10933   test -z "$as_dir" && as_dir=.
10934     for ac_exec_ext in '' $ac_executable_extensions; do
10935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938     break 2
10939   fi
10940 done
10941   done
10942 IFS=$as_save_IFS
10943 
10944   ;;
10945 esac
10946 fi
10947 TOUCH=$ac_cv_path_TOUCH
10948 if test -n "$TOUCH"; then
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10950 $as_echo "$TOUCH" >&6; }
10951 else
10952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955 
10956 
10957           if test "x$TOUCH" = x; then
10958             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10959           fi
10960         else
10961           # Otherwise we believe it is a complete path. Use it as it is.
10962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10963 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10965 $as_echo_n "checking for TOUCH... " >&6; }
10966           if test ! -x "$tool_specified"; then
10967             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10968 $as_echo "not found" >&6; }
10969             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10970           fi
10971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10972 $as_echo "$tool_specified" >&6; }
10973         fi
10974       fi
10975     fi
10976 
10977   fi
10978 
10979 
10980 
10981   if test "x$TOUCH" = x; then
10982     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10983   fi
10984 
10985 
10986 
10987 
10988 
10989   # Publish this variable in the help.
10990 
10991 
10992   if [ -z "${TR+x}" ]; then
10993     # The variable is not set by user, try to locate tool using the code snippet
10994     for ac_prog in tr
10995 do
10996   # Extract the first word of "$ac_prog", so it can be a program name with args.
10997 set dummy $ac_prog; ac_word=$2
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10999 $as_echo_n "checking for $ac_word... " >&6; }
11000 if ${ac_cv_path_TR+:} false; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003   case $TR in
11004   [\\/]* | ?:[\\/]*)
11005   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11006   ;;
11007   *)
11008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11009 for as_dir in $PATH
11010 do
11011   IFS=$as_save_IFS
11012   test -z "$as_dir" && as_dir=.
11013     for ac_exec_ext in '' $ac_executable_extensions; do
11014   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11015     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11017     break 2
11018   fi
11019 done
11020   done
11021 IFS=$as_save_IFS
11022 
11023   ;;
11024 esac
11025 fi
11026 TR=$ac_cv_path_TR
11027 if test -n "$TR"; then
11028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11029 $as_echo "$TR" >&6; }
11030 else
11031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11032 $as_echo "no" >&6; }
11033 fi
11034 
11035 
11036   test -n "$TR" && break
11037 done
11038 
11039   else
11040     # The variable is set, but is it from the command line or the environment?
11041 
11042     # Try to remove the string !TR! from our list.
11043     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11044     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11045       # If it failed, the variable was not from the command line. Ignore it,
11046       # but warn the user (except for BASH, which is always set by the calling BASH).
11047       if test "xTR" != xBASH; then
11048         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11049 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11050       fi
11051       # Try to locate tool using the code snippet
11052       for ac_prog in tr
11053 do
11054   # Extract the first word of "$ac_prog", so it can be a program name with args.
11055 set dummy $ac_prog; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_path_TR+:} false; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   case $TR in
11062   [\\/]* | ?:[\\/]*)
11063   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11064   ;;
11065   *)
11066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11068 do
11069   IFS=$as_save_IFS
11070   test -z "$as_dir" && as_dir=.
11071     for ac_exec_ext in '' $ac_executable_extensions; do
11072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075     break 2
11076   fi
11077 done
11078   done
11079 IFS=$as_save_IFS
11080 
11081   ;;
11082 esac
11083 fi
11084 TR=$ac_cv_path_TR
11085 if test -n "$TR"; then
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11087 $as_echo "$TR" >&6; }
11088 else
11089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091 fi
11092 
11093 
11094   test -n "$TR" && break
11095 done
11096 
11097     else
11098       # If it succeeded, then it was overridden by the user. We will use it
11099       # for the tool.
11100 
11101       # First remove it from the list of overridden variables, so we can test
11102       # for unknown variables in the end.
11103       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11104 
11105       # Check if we try to supply an empty value
11106       if test "x$TR" = x; then
11107         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11108 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11110 $as_echo_n "checking for TR... " >&6; }
11111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11112 $as_echo "disabled" >&6; }
11113       else
11114         # Check if the provided tool contains a complete path.
11115         tool_specified="$TR"
11116         tool_basename="${tool_specified##*/}"
11117         if test "x$tool_basename" = "x$tool_specified"; then
11118           # A command without a complete path is provided, search $PATH.
11119           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11120 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11121           # Extract the first word of "$tool_basename", so it can be a program name with args.
11122 set dummy $tool_basename; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_path_TR+:} false; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   case $TR in
11129   [\\/]* | ?:[\\/]*)
11130   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11131   ;;
11132   *)
11133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147 
11148   ;;
11149 esac
11150 fi
11151 TR=$ac_cv_path_TR
11152 if test -n "$TR"; then
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11154 $as_echo "$TR" >&6; }
11155 else
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11159 
11160 
11161           if test "x$TR" = x; then
11162             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11163           fi
11164         else
11165           # Otherwise we believe it is a complete path. Use it as it is.
11166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11167 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11168           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11169 $as_echo_n "checking for TR... " >&6; }
11170           if test ! -x "$tool_specified"; then
11171             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11172 $as_echo "not found" >&6; }
11173             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11174           fi
11175           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11176 $as_echo "$tool_specified" >&6; }
11177         fi
11178       fi
11179     fi
11180 
11181   fi
11182 
11183 
11184 
11185   if test "x$TR" = x; then
11186     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11187   fi
11188 
11189 
11190 
11191 
11192 
11193   # Publish this variable in the help.
11194 
11195 
11196   if [ -z "${UNAME+x}" ]; then
11197     # The variable is not set by user, try to locate tool using the code snippet
11198     for ac_prog in uname
11199 do
11200   # Extract the first word of "$ac_prog", so it can be a program name with args.
11201 set dummy $ac_prog; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if ${ac_cv_path_UNAME+:} false; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   case $UNAME in
11208   [\\/]* | ?:[\\/]*)
11209   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11210   ;;
11211   *)
11212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11214 do
11215   IFS=$as_save_IFS
11216   test -z "$as_dir" && as_dir=.
11217     for ac_exec_ext in '' $ac_executable_extensions; do
11218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221     break 2
11222   fi
11223 done
11224   done
11225 IFS=$as_save_IFS
11226 
11227   ;;
11228 esac
11229 fi
11230 UNAME=$ac_cv_path_UNAME
11231 if test -n "$UNAME"; then
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11233 $as_echo "$UNAME" >&6; }
11234 else
11235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; }
11237 fi
11238 
11239 
11240   test -n "$UNAME" && break
11241 done
11242 
11243   else
11244     # The variable is set, but is it from the command line or the environment?
11245 
11246     # Try to remove the string !UNAME! from our list.
11247     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11248     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11249       # If it failed, the variable was not from the command line. Ignore it,
11250       # but warn the user (except for BASH, which is always set by the calling BASH).
11251       if test "xUNAME" != xBASH; then
11252         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11253 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11254       fi
11255       # Try to locate tool using the code snippet
11256       for ac_prog in uname
11257 do
11258   # Extract the first word of "$ac_prog", so it can be a program name with args.
11259 set dummy $ac_prog; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if ${ac_cv_path_UNAME+:} false; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   case $UNAME in
11266   [\\/]* | ?:[\\/]*)
11267   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11268   ;;
11269   *)
11270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11272 do
11273   IFS=$as_save_IFS
11274   test -z "$as_dir" && as_dir=.
11275     for ac_exec_ext in '' $ac_executable_extensions; do
11276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11277     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11279     break 2
11280   fi
11281 done
11282   done
11283 IFS=$as_save_IFS
11284 
11285   ;;
11286 esac
11287 fi
11288 UNAME=$ac_cv_path_UNAME
11289 if test -n "$UNAME"; then
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11291 $as_echo "$UNAME" >&6; }
11292 else
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 fi
11296 
11297 
11298   test -n "$UNAME" && break
11299 done
11300 
11301     else
11302       # If it succeeded, then it was overridden by the user. We will use it
11303       # for the tool.
11304 
11305       # First remove it from the list of overridden variables, so we can test
11306       # for unknown variables in the end.
11307       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11308 
11309       # Check if we try to supply an empty value
11310       if test "x$UNAME" = x; then
11311         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11312 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11313         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11314 $as_echo_n "checking for UNAME... " >&6; }
11315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11316 $as_echo "disabled" >&6; }
11317       else
11318         # Check if the provided tool contains a complete path.
11319         tool_specified="$UNAME"
11320         tool_basename="${tool_specified##*/}"
11321         if test "x$tool_basename" = "x$tool_specified"; then
11322           # A command without a complete path is provided, search $PATH.
11323           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11324 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11325           # Extract the first word of "$tool_basename", so it can be a program name with args.
11326 set dummy $tool_basename; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_path_UNAME+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   case $UNAME in
11333   [\\/]* | ?:[\\/]*)
11334   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11335   ;;
11336   *)
11337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $PATH
11339 do
11340   IFS=$as_save_IFS
11341   test -z "$as_dir" && as_dir=.
11342     for ac_exec_ext in '' $ac_executable_extensions; do
11343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11344     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351 
11352   ;;
11353 esac
11354 fi
11355 UNAME=$ac_cv_path_UNAME
11356 if test -n "$UNAME"; then
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11358 $as_echo "$UNAME" >&6; }
11359 else
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363 
11364 
11365           if test "x$UNAME" = x; then
11366             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11367           fi
11368         else
11369           # Otherwise we believe it is a complete path. Use it as it is.
11370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11371 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11372           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11373 $as_echo_n "checking for UNAME... " >&6; }
11374           if test ! -x "$tool_specified"; then
11375             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11376 $as_echo "not found" >&6; }
11377             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11378           fi
11379           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11380 $as_echo "$tool_specified" >&6; }
11381         fi
11382       fi
11383     fi
11384 
11385   fi
11386 
11387 
11388 
11389   if test "x$UNAME" = x; then
11390     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11391   fi
11392 
11393 
11394 
11395 
11396 
11397   # Publish this variable in the help.
11398 
11399 
11400   if [ -z "${UNIQ+x}" ]; then
11401     # The variable is not set by user, try to locate tool using the code snippet
11402     for ac_prog in uniq
11403 do
11404   # Extract the first word of "$ac_prog", so it can be a program name with args.
11405 set dummy $ac_prog; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_path_UNIQ+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   case $UNIQ in
11412   [\\/]* | ?:[\\/]*)
11413   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11414   ;;
11415   *)
11416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11418 do
11419   IFS=$as_save_IFS
11420   test -z "$as_dir" && as_dir=.
11421     for ac_exec_ext in '' $ac_executable_extensions; do
11422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425     break 2
11426   fi
11427 done
11428   done
11429 IFS=$as_save_IFS
11430 
11431   ;;
11432 esac
11433 fi
11434 UNIQ=$ac_cv_path_UNIQ
11435 if test -n "$UNIQ"; then
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11437 $as_echo "$UNIQ" >&6; }
11438 else
11439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440 $as_echo "no" >&6; }
11441 fi
11442 
11443 
11444   test -n "$UNIQ" && break
11445 done
11446 
11447   else
11448     # The variable is set, but is it from the command line or the environment?
11449 
11450     # Try to remove the string !UNIQ! from our list.
11451     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11452     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11453       # If it failed, the variable was not from the command line. Ignore it,
11454       # but warn the user (except for BASH, which is always set by the calling BASH).
11455       if test "xUNIQ" != xBASH; then
11456         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11457 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11458       fi
11459       # Try to locate tool using the code snippet
11460       for ac_prog in uniq
11461 do
11462   # Extract the first word of "$ac_prog", so it can be a program name with args.
11463 set dummy $ac_prog; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if ${ac_cv_path_UNIQ+:} false; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469   case $UNIQ in
11470   [\\/]* | ?:[\\/]*)
11471   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11472   ;;
11473   *)
11474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11476 do
11477   IFS=$as_save_IFS
11478   test -z "$as_dir" && as_dir=.
11479     for ac_exec_ext in '' $ac_executable_extensions; do
11480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483     break 2
11484   fi
11485 done
11486   done
11487 IFS=$as_save_IFS
11488 
11489   ;;
11490 esac
11491 fi
11492 UNIQ=$ac_cv_path_UNIQ
11493 if test -n "$UNIQ"; then
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11495 $as_echo "$UNIQ" >&6; }
11496 else
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11499 fi
11500 
11501 
11502   test -n "$UNIQ" && break
11503 done
11504 
11505     else
11506       # If it succeeded, then it was overridden by the user. We will use it
11507       # for the tool.
11508 
11509       # First remove it from the list of overridden variables, so we can test
11510       # for unknown variables in the end.
11511       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11512 
11513       # Check if we try to supply an empty value
11514       if test "x$UNIQ" = x; then
11515         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11516 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11517         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11518 $as_echo_n "checking for UNIQ... " >&6; }
11519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11520 $as_echo "disabled" >&6; }
11521       else
11522         # Check if the provided tool contains a complete path.
11523         tool_specified="$UNIQ"
11524         tool_basename="${tool_specified##*/}"
11525         if test "x$tool_basename" = "x$tool_specified"; then
11526           # A command without a complete path is provided, search $PATH.
11527           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11528 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11529           # Extract the first word of "$tool_basename", so it can be a program name with args.
11530 set dummy $tool_basename; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_path_UNIQ+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   case $UNIQ in
11537   [\\/]* | ?:[\\/]*)
11538   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11539   ;;
11540   *)
11541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544   IFS=$as_save_IFS
11545   test -z "$as_dir" && as_dir=.
11546     for ac_exec_ext in '' $ac_executable_extensions; do
11547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550     break 2
11551   fi
11552 done
11553   done
11554 IFS=$as_save_IFS
11555 
11556   ;;
11557 esac
11558 fi
11559 UNIQ=$ac_cv_path_UNIQ
11560 if test -n "$UNIQ"; then
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11562 $as_echo "$UNIQ" >&6; }
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567 
11568 
11569           if test "x$UNIQ" = x; then
11570             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11571           fi
11572         else
11573           # Otherwise we believe it is a complete path. Use it as it is.
11574           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11575 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11576           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11577 $as_echo_n "checking for UNIQ... " >&6; }
11578           if test ! -x "$tool_specified"; then
11579             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11580 $as_echo "not found" >&6; }
11581             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11582           fi
11583           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11584 $as_echo "$tool_specified" >&6; }
11585         fi
11586       fi
11587     fi
11588 
11589   fi
11590 
11591 
11592 
11593   if test "x$UNIQ" = x; then
11594     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11595   fi
11596 
11597 
11598 
11599 
11600 
11601   # Publish this variable in the help.
11602 
11603 
11604   if [ -z "${WC+x}" ]; then
11605     # The variable is not set by user, try to locate tool using the code snippet
11606     for ac_prog in wc
11607 do
11608   # Extract the first word of "$ac_prog", so it can be a program name with args.
11609 set dummy $ac_prog; ac_word=$2
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11611 $as_echo_n "checking for $ac_word... " >&6; }
11612 if ${ac_cv_path_WC+:} false; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   case $WC in
11616   [\\/]* | ?:[\\/]*)
11617   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11618   ;;
11619   *)
11620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11621 for as_dir in $PATH
11622 do
11623   IFS=$as_save_IFS
11624   test -z "$as_dir" && as_dir=.
11625     for ac_exec_ext in '' $ac_executable_extensions; do
11626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11627     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11629     break 2
11630   fi
11631 done
11632   done
11633 IFS=$as_save_IFS
11634 
11635   ;;
11636 esac
11637 fi
11638 WC=$ac_cv_path_WC
11639 if test -n "$WC"; then
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11641 $as_echo "$WC" >&6; }
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646 
11647 
11648   test -n "$WC" && break
11649 done
11650 
11651   else
11652     # The variable is set, but is it from the command line or the environment?
11653 
11654     # Try to remove the string !WC! from our list.
11655     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11656     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11657       # If it failed, the variable was not from the command line. Ignore it,
11658       # but warn the user (except for BASH, which is always set by the calling BASH).
11659       if test "xWC" != xBASH; then
11660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11661 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11662       fi
11663       # Try to locate tool using the code snippet
11664       for ac_prog in wc
11665 do
11666   # Extract the first word of "$ac_prog", so it can be a program name with args.
11667 set dummy $ac_prog; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if ${ac_cv_path_WC+:} false; then :
11671   $as_echo_n "(cached) " >&6
11672 else
11673   case $WC in
11674   [\\/]* | ?:[\\/]*)
11675   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11676   ;;
11677   *)
11678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11680 do
11681   IFS=$as_save_IFS
11682   test -z "$as_dir" && as_dir=.
11683     for ac_exec_ext in '' $ac_executable_extensions; do
11684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11687     break 2
11688   fi
11689 done
11690   done
11691 IFS=$as_save_IFS
11692 
11693   ;;
11694 esac
11695 fi
11696 WC=$ac_cv_path_WC
11697 if test -n "$WC"; then
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11699 $as_echo "$WC" >&6; }
11700 else
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 fi
11704 
11705 
11706   test -n "$WC" && break
11707 done
11708 
11709     else
11710       # If it succeeded, then it was overridden by the user. We will use it
11711       # for the tool.
11712 
11713       # First remove it from the list of overridden variables, so we can test
11714       # for unknown variables in the end.
11715       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11716 
11717       # Check if we try to supply an empty value
11718       if test "x$WC" = x; then
11719         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11720 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11721         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11722 $as_echo_n "checking for WC... " >&6; }
11723         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11724 $as_echo "disabled" >&6; }
11725       else
11726         # Check if the provided tool contains a complete path.
11727         tool_specified="$WC"
11728         tool_basename="${tool_specified##*/}"
11729         if test "x$tool_basename" = "x$tool_specified"; then
11730           # A command without a complete path is provided, search $PATH.
11731           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11732 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11733           # Extract the first word of "$tool_basename", so it can be a program name with args.
11734 set dummy $tool_basename; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_WC+:} false; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   case $WC in
11741   [\\/]* | ?:[\\/]*)
11742   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11743   ;;
11744   *)
11745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750     for ac_exec_ext in '' $ac_executable_extensions; do
11751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757   done
11758 IFS=$as_save_IFS
11759 
11760   ;;
11761 esac
11762 fi
11763 WC=$ac_cv_path_WC
11764 if test -n "$WC"; then
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11766 $as_echo "$WC" >&6; }
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771 
11772 
11773           if test "x$WC" = x; then
11774             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11775           fi
11776         else
11777           # Otherwise we believe it is a complete path. Use it as it is.
11778           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11779 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11780           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11781 $as_echo_n "checking for WC... " >&6; }
11782           if test ! -x "$tool_specified"; then
11783             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11784 $as_echo "not found" >&6; }
11785             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11786           fi
11787           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11788 $as_echo "$tool_specified" >&6; }
11789         fi
11790       fi
11791     fi
11792 
11793   fi
11794 
11795 
11796 
11797   if test "x$WC" = x; then
11798     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11799   fi
11800 
11801 
11802 
11803 
11804 
11805   # Publish this variable in the help.
11806 
11807 
11808   if [ -z "${WHICH+x}" ]; then
11809     # The variable is not set by user, try to locate tool using the code snippet
11810     for ac_prog in which
11811 do
11812   # Extract the first word of "$ac_prog", so it can be a program name with args.
11813 set dummy $ac_prog; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_path_WHICH+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   case $WHICH in
11820   [\\/]* | ?:[\\/]*)
11821   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11822   ;;
11823   *)
11824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11825 for as_dir in $PATH
11826 do
11827   IFS=$as_save_IFS
11828   test -z "$as_dir" && as_dir=.
11829     for ac_exec_ext in '' $ac_executable_extensions; do
11830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11831     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11833     break 2
11834   fi
11835 done
11836   done
11837 IFS=$as_save_IFS
11838 
11839   ;;
11840 esac
11841 fi
11842 WHICH=$ac_cv_path_WHICH
11843 if test -n "$WHICH"; then
11844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11845 $as_echo "$WHICH" >&6; }
11846 else
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11849 fi
11850 
11851 
11852   test -n "$WHICH" && break
11853 done
11854 
11855   else
11856     # The variable is set, but is it from the command line or the environment?
11857 
11858     # Try to remove the string !WHICH! from our list.
11859     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11860     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11861       # If it failed, the variable was not from the command line. Ignore it,
11862       # but warn the user (except for BASH, which is always set by the calling BASH).
11863       if test "xWHICH" != xBASH; then
11864         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11865 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11866       fi
11867       # Try to locate tool using the code snippet
11868       for ac_prog in which
11869 do
11870   # Extract the first word of "$ac_prog", so it can be a program name with args.
11871 set dummy $ac_prog; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_path_WHICH+:} false; then :
11875   $as_echo_n "(cached) " >&6
11876 else
11877   case $WHICH in
11878   [\\/]* | ?:[\\/]*)
11879   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11880   ;;
11881   *)
11882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11884 do
11885   IFS=$as_save_IFS
11886   test -z "$as_dir" && as_dir=.
11887     for ac_exec_ext in '' $ac_executable_extensions; do
11888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891     break 2
11892   fi
11893 done
11894   done
11895 IFS=$as_save_IFS
11896 
11897   ;;
11898 esac
11899 fi
11900 WHICH=$ac_cv_path_WHICH
11901 if test -n "$WHICH"; then
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11903 $as_echo "$WHICH" >&6; }
11904 else
11905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908 
11909 
11910   test -n "$WHICH" && break
11911 done
11912 
11913     else
11914       # If it succeeded, then it was overridden by the user. We will use it
11915       # for the tool.
11916 
11917       # First remove it from the list of overridden variables, so we can test
11918       # for unknown variables in the end.
11919       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11920 
11921       # Check if we try to supply an empty value
11922       if test "x$WHICH" = x; then
11923         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11924 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11926 $as_echo_n "checking for WHICH... " >&6; }
11927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11928 $as_echo "disabled" >&6; }
11929       else
11930         # Check if the provided tool contains a complete path.
11931         tool_specified="$WHICH"
11932         tool_basename="${tool_specified##*/}"
11933         if test "x$tool_basename" = "x$tool_specified"; then
11934           # A command without a complete path is provided, search $PATH.
11935           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11936 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11937           # Extract the first word of "$tool_basename", so it can be a program name with args.
11938 set dummy $tool_basename; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_WHICH+:} false; then :
11942   $as_echo_n "(cached) " >&6
11943 else
11944   case $WHICH in
11945   [\\/]* | ?:[\\/]*)
11946   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11947   ;;
11948   *)
11949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963 
11964   ;;
11965 esac
11966 fi
11967 WHICH=$ac_cv_path_WHICH
11968 if test -n "$WHICH"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11970 $as_echo "$WHICH" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975 
11976 
11977           if test "x$WHICH" = x; then
11978             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11979           fi
11980         else
11981           # Otherwise we believe it is a complete path. Use it as it is.
11982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11983 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11984           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11985 $as_echo_n "checking for WHICH... " >&6; }
11986           if test ! -x "$tool_specified"; then
11987             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11988 $as_echo "not found" >&6; }
11989             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11990           fi
11991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11992 $as_echo "$tool_specified" >&6; }
11993         fi
11994       fi
11995     fi
11996 
11997   fi
11998 
11999 
12000 
12001   if test "x$WHICH" = x; then
12002     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12003   fi
12004 
12005 
12006 
12007 
12008 
12009   # Publish this variable in the help.
12010 
12011 
12012   if [ -z "${XARGS+x}" ]; then
12013     # The variable is not set by user, try to locate tool using the code snippet
12014     for ac_prog in xargs
12015 do
12016   # Extract the first word of "$ac_prog", so it can be a program name with args.
12017 set dummy $ac_prog; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12019 $as_echo_n "checking for $ac_word... " >&6; }
12020 if ${ac_cv_path_XARGS+:} false; then :
12021   $as_echo_n "(cached) " >&6
12022 else
12023   case $XARGS in
12024   [\\/]* | ?:[\\/]*)
12025   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12026   ;;
12027   *)
12028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029 for as_dir in $PATH
12030 do
12031   IFS=$as_save_IFS
12032   test -z "$as_dir" && as_dir=.
12033     for ac_exec_ext in '' $ac_executable_extensions; do
12034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037     break 2
12038   fi
12039 done
12040   done
12041 IFS=$as_save_IFS
12042 
12043   ;;
12044 esac
12045 fi
12046 XARGS=$ac_cv_path_XARGS
12047 if test -n "$XARGS"; then
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12049 $as_echo "$XARGS" >&6; }
12050 else
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054 
12055 
12056   test -n "$XARGS" && break
12057 done
12058 
12059   else
12060     # The variable is set, but is it from the command line or the environment?
12061 
12062     # Try to remove the string !XARGS! from our list.
12063     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12064     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12065       # If it failed, the variable was not from the command line. Ignore it,
12066       # but warn the user (except for BASH, which is always set by the calling BASH).
12067       if test "xXARGS" != xBASH; then
12068         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12069 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12070       fi
12071       # Try to locate tool using the code snippet
12072       for ac_prog in xargs
12073 do
12074   # Extract the first word of "$ac_prog", so it can be a program name with args.
12075 set dummy $ac_prog; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_path_XARGS+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   case $XARGS in
12082   [\\/]* | ?:[\\/]*)
12083   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12084   ;;
12085   *)
12086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12088 do
12089   IFS=$as_save_IFS
12090   test -z "$as_dir" && as_dir=.
12091     for ac_exec_ext in '' $ac_executable_extensions; do
12092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095     break 2
12096   fi
12097 done
12098   done
12099 IFS=$as_save_IFS
12100 
12101   ;;
12102 esac
12103 fi
12104 XARGS=$ac_cv_path_XARGS
12105 if test -n "$XARGS"; then
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12107 $as_echo "$XARGS" >&6; }
12108 else
12109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112 
12113 
12114   test -n "$XARGS" && break
12115 done
12116 
12117     else
12118       # If it succeeded, then it was overridden by the user. We will use it
12119       # for the tool.
12120 
12121       # First remove it from the list of overridden variables, so we can test
12122       # for unknown variables in the end.
12123       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12124 
12125       # Check if we try to supply an empty value
12126       if test "x$XARGS" = x; then
12127         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12128 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12130 $as_echo_n "checking for XARGS... " >&6; }
12131         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12132 $as_echo "disabled" >&6; }
12133       else
12134         # Check if the provided tool contains a complete path.
12135         tool_specified="$XARGS"
12136         tool_basename="${tool_specified##*/}"
12137         if test "x$tool_basename" = "x$tool_specified"; then
12138           # A command without a complete path is provided, search $PATH.
12139           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12140 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12141           # Extract the first word of "$tool_basename", so it can be a program name with args.
12142 set dummy $tool_basename; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_path_XARGS+:} false; then :
12146   $as_echo_n "(cached) " >&6
12147 else
12148   case $XARGS in
12149   [\\/]* | ?:[\\/]*)
12150   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12151   ;;
12152   *)
12153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165   done
12166 IFS=$as_save_IFS
12167 
12168   ;;
12169 esac
12170 fi
12171 XARGS=$ac_cv_path_XARGS
12172 if test -n "$XARGS"; then
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12174 $as_echo "$XARGS" >&6; }
12175 else
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179 
12180 
12181           if test "x$XARGS" = x; then
12182             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12183           fi
12184         else
12185           # Otherwise we believe it is a complete path. Use it as it is.
12186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12187 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12188           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12189 $as_echo_n "checking for XARGS... " >&6; }
12190           if test ! -x "$tool_specified"; then
12191             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12192 $as_echo "not found" >&6; }
12193             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12194           fi
12195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12196 $as_echo "$tool_specified" >&6; }
12197         fi
12198       fi
12199     fi
12200 
12201   fi
12202 
12203 
12204 
12205   if test "x$XARGS" = x; then
12206     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12207   fi
12208 
12209 
12210 
12211   # Then required tools that require some special treatment.
12212 
12213 
12214   # Publish this variable in the help.
12215 
12216 
12217   if [ -z "${AWK+x}" ]; then
12218     # The variable is not set by user, try to locate tool using the code snippet
12219     for ac_prog in gawk mawk nawk awk
12220 do
12221   # Extract the first word of "$ac_prog", so it can be a program name with args.
12222 set dummy $ac_prog; ac_word=$2
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224 $as_echo_n "checking for $ac_word... " >&6; }
12225 if ${ac_cv_prog_AWK+:} false; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   if test -n "$AWK"; then
12229   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12230 else
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234   IFS=$as_save_IFS
12235   test -z "$as_dir" && as_dir=.
12236     for ac_exec_ext in '' $ac_executable_extensions; do
12237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238     ac_cv_prog_AWK="$ac_prog"
12239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240     break 2
12241   fi
12242 done
12243   done
12244 IFS=$as_save_IFS
12245 
12246 fi
12247 fi
12248 AWK=$ac_cv_prog_AWK
12249 if test -n "$AWK"; then
12250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12251 $as_echo "$AWK" >&6; }
12252 else
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12255 fi
12256 
12257 
12258   test -n "$AWK" && break
12259 done
12260 
12261   else
12262     # The variable is set, but is it from the command line or the environment?
12263 
12264     # Try to remove the string !AWK! from our list.
12265     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12266     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12267       # If it failed, the variable was not from the command line. Ignore it,
12268       # but warn the user (except for BASH, which is always set by the calling BASH).
12269       if test "xAWK" != xBASH; then
12270         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12271 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12272       fi
12273       # Try to locate tool using the code snippet
12274       for ac_prog in gawk mawk nawk awk
12275 do
12276   # Extract the first word of "$ac_prog", so it can be a program name with args.
12277 set dummy $ac_prog; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if ${ac_cv_prog_AWK+:} false; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283   if test -n "$AWK"; then
12284   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12288 do
12289   IFS=$as_save_IFS
12290   test -z "$as_dir" && as_dir=.
12291     for ac_exec_ext in '' $ac_executable_extensions; do
12292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12293     ac_cv_prog_AWK="$ac_prog"
12294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295     break 2
12296   fi
12297 done
12298   done
12299 IFS=$as_save_IFS
12300 
12301 fi
12302 fi
12303 AWK=$ac_cv_prog_AWK
12304 if test -n "$AWK"; then
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12306 $as_echo "$AWK" >&6; }
12307 else
12308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310 fi
12311 
12312 
12313   test -n "$AWK" && break
12314 done
12315 
12316     else
12317       # If it succeeded, then it was overridden by the user. We will use it
12318       # for the tool.
12319 
12320       # First remove it from the list of overridden variables, so we can test
12321       # for unknown variables in the end.
12322       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12323 
12324       # Check if we try to supply an empty value
12325       if test "x$AWK" = x; then
12326         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12327 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12329 $as_echo_n "checking for AWK... " >&6; }
12330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12331 $as_echo "disabled" >&6; }
12332       else
12333         # Check if the provided tool contains a complete path.
12334         tool_specified="$AWK"
12335         tool_basename="${tool_specified##*/}"
12336         if test "x$tool_basename" = "x$tool_specified"; then
12337           # A command without a complete path is provided, search $PATH.
12338           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12339 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12340           # Extract the first word of "$tool_basename", so it can be a program name with args.
12341 set dummy $tool_basename; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if ${ac_cv_path_AWK+:} false; then :
12345   $as_echo_n "(cached) " >&6
12346 else
12347   case $AWK in
12348   [\\/]* | ?:[\\/]*)
12349   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12350   ;;
12351   *)
12352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355   IFS=$as_save_IFS
12356   test -z "$as_dir" && as_dir=.
12357     for ac_exec_ext in '' $ac_executable_extensions; do
12358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12359     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361     break 2
12362   fi
12363 done
12364   done
12365 IFS=$as_save_IFS
12366 
12367   ;;
12368 esac
12369 fi
12370 AWK=$ac_cv_path_AWK
12371 if test -n "$AWK"; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12373 $as_echo "$AWK" >&6; }
12374 else
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12377 fi
12378 
12379 
12380           if test "x$AWK" = x; then
12381             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12382           fi
12383         else
12384           # Otherwise we believe it is a complete path. Use it as it is.
12385           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12386 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12387           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12388 $as_echo_n "checking for AWK... " >&6; }
12389           if test ! -x "$tool_specified"; then
12390             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12391 $as_echo "not found" >&6; }
12392             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12393           fi
12394           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12395 $as_echo "$tool_specified" >&6; }
12396         fi
12397       fi
12398     fi
12399 
12400   fi
12401 
12402 
12403   if test "x$AWK" = x; then
12404     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12405   fi
12406 
12407 
12408 
12409 
12410   # Publish this variable in the help.
12411 
12412 
12413   if [ -z "${GREP+x}" ]; then
12414     # The variable is not set by user, try to locate tool using the code snippet
12415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12416 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12417 if ${ac_cv_path_GREP+:} false; then :
12418   $as_echo_n "(cached) " >&6
12419 else
12420   if test -z "$GREP"; then
12421   ac_path_GREP_found=false
12422   # Loop through the user's path and test for each of PROGNAME-LIST
12423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12425 do
12426   IFS=$as_save_IFS
12427   test -z "$as_dir" && as_dir=.
12428     for ac_prog in grep ggrep; do
12429     for ac_exec_ext in '' $ac_executable_extensions; do
12430       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12431       as_fn_executable_p "$ac_path_GREP" || continue
12432 # Check for GNU ac_path_GREP and select it if it is found.
12433   # Check for GNU $ac_path_GREP
12434 case `"$ac_path_GREP" --version 2>&1` in
12435 *GNU*)
12436   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12437 *)
12438   ac_count=0
12439   $as_echo_n 0123456789 >"conftest.in"
12440   while :
12441   do
12442     cat "conftest.in" "conftest.in" >"conftest.tmp"
12443     mv "conftest.tmp" "conftest.in"
12444     cp "conftest.in" "conftest.nl"
12445     $as_echo 'GREP' >> "conftest.nl"
12446     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12447     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12448     as_fn_arith $ac_count + 1 && ac_count=$as_val
12449     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12450       # Best one so far, save it but keep looking for a better one
12451       ac_cv_path_GREP="$ac_path_GREP"
12452       ac_path_GREP_max=$ac_count
12453     fi
12454     # 10*(2^10) chars as input seems more than enough
12455     test $ac_count -gt 10 && break
12456   done
12457   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12458 esac
12459 
12460       $ac_path_GREP_found && break 3
12461     done
12462   done
12463   done
12464 IFS=$as_save_IFS
12465   if test -z "$ac_cv_path_GREP"; then
12466     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12467   fi
12468 else
12469   ac_cv_path_GREP=$GREP
12470 fi
12471 
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12474 $as_echo "$ac_cv_path_GREP" >&6; }
12475  GREP="$ac_cv_path_GREP"
12476 
12477 
12478   else
12479     # The variable is set, but is it from the command line or the environment?
12480 
12481     # Try to remove the string !GREP! from our list.
12482     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12483     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12484       # If it failed, the variable was not from the command line. Ignore it,
12485       # but warn the user (except for BASH, which is always set by the calling BASH).
12486       if test "xGREP" != xBASH; then
12487         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12488 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12489       fi
12490       # Try to locate tool using the code snippet
12491       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12492 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12493 if ${ac_cv_path_GREP+:} false; then :
12494   $as_echo_n "(cached) " >&6
12495 else
12496   if test -z "$GREP"; then
12497   ac_path_GREP_found=false
12498   # Loop through the user's path and test for each of PROGNAME-LIST
12499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12501 do
12502   IFS=$as_save_IFS
12503   test -z "$as_dir" && as_dir=.
12504     for ac_prog in grep ggrep; do
12505     for ac_exec_ext in '' $ac_executable_extensions; do
12506       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12507       as_fn_executable_p "$ac_path_GREP" || continue
12508 # Check for GNU ac_path_GREP and select it if it is found.
12509   # Check for GNU $ac_path_GREP
12510 case `"$ac_path_GREP" --version 2>&1` in
12511 *GNU*)
12512   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12513 *)
12514   ac_count=0
12515   $as_echo_n 0123456789 >"conftest.in"
12516   while :
12517   do
12518     cat "conftest.in" "conftest.in" >"conftest.tmp"
12519     mv "conftest.tmp" "conftest.in"
12520     cp "conftest.in" "conftest.nl"
12521     $as_echo 'GREP' >> "conftest.nl"
12522     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12523     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12524     as_fn_arith $ac_count + 1 && ac_count=$as_val
12525     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12526       # Best one so far, save it but keep looking for a better one
12527       ac_cv_path_GREP="$ac_path_GREP"
12528       ac_path_GREP_max=$ac_count
12529     fi
12530     # 10*(2^10) chars as input seems more than enough
12531     test $ac_count -gt 10 && break
12532   done
12533   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12534 esac
12535 
12536       $ac_path_GREP_found && break 3
12537     done
12538   done
12539   done
12540 IFS=$as_save_IFS
12541   if test -z "$ac_cv_path_GREP"; then
12542     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12543   fi
12544 else
12545   ac_cv_path_GREP=$GREP
12546 fi
12547 
12548 fi
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12550 $as_echo "$ac_cv_path_GREP" >&6; }
12551  GREP="$ac_cv_path_GREP"
12552 
12553 
12554     else
12555       # If it succeeded, then it was overridden by the user. We will use it
12556       # for the tool.
12557 
12558       # First remove it from the list of overridden variables, so we can test
12559       # for unknown variables in the end.
12560       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12561 
12562       # Check if we try to supply an empty value
12563       if test "x$GREP" = x; then
12564         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12565 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12567 $as_echo_n "checking for GREP... " >&6; }
12568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12569 $as_echo "disabled" >&6; }
12570       else
12571         # Check if the provided tool contains a complete path.
12572         tool_specified="$GREP"
12573         tool_basename="${tool_specified##*/}"
12574         if test "x$tool_basename" = "x$tool_specified"; then
12575           # A command without a complete path is provided, search $PATH.
12576           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12577 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12578           # Extract the first word of "$tool_basename", so it can be a program name with args.
12579 set dummy $tool_basename; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_path_GREP+:} false; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585   case $GREP in
12586   [\\/]* | ?:[\\/]*)
12587   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12588   ;;
12589   *)
12590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591 for as_dir in $PATH
12592 do
12593   IFS=$as_save_IFS
12594   test -z "$as_dir" && as_dir=.
12595     for ac_exec_ext in '' $ac_executable_extensions; do
12596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12597     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599     break 2
12600   fi
12601 done
12602   done
12603 IFS=$as_save_IFS
12604 
12605   ;;
12606 esac
12607 fi
12608 GREP=$ac_cv_path_GREP
12609 if test -n "$GREP"; then
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12611 $as_echo "$GREP" >&6; }
12612 else
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614 $as_echo "no" >&6; }
12615 fi
12616 
12617 
12618           if test "x$GREP" = x; then
12619             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12620           fi
12621         else
12622           # Otherwise we believe it is a complete path. Use it as it is.
12623           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12624 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12625           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12626 $as_echo_n "checking for GREP... " >&6; }
12627           if test ! -x "$tool_specified"; then
12628             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12629 $as_echo "not found" >&6; }
12630             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12631           fi
12632           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12633 $as_echo "$tool_specified" >&6; }
12634         fi
12635       fi
12636     fi
12637 
12638   fi
12639 
12640 
12641   if test "x$GREP" = x; then
12642     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12643   fi
12644 
12645 
12646 
12647 
12648   # Publish this variable in the help.
12649 
12650 
12651   if [ -z "${EGREP+x}" ]; then
12652     # The variable is not set by user, try to locate tool using the code snippet
12653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12654 $as_echo_n "checking for egrep... " >&6; }
12655 if ${ac_cv_path_EGREP+:} false; then :
12656   $as_echo_n "(cached) " >&6
12657 else
12658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12659    then ac_cv_path_EGREP="$GREP -E"
12660    else
12661      if test -z "$EGREP"; then
12662   ac_path_EGREP_found=false
12663   # Loop through the user's path and test for each of PROGNAME-LIST
12664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12666 do
12667   IFS=$as_save_IFS
12668   test -z "$as_dir" && as_dir=.
12669     for ac_prog in egrep; do
12670     for ac_exec_ext in '' $ac_executable_extensions; do
12671       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12672       as_fn_executable_p "$ac_path_EGREP" || continue
12673 # Check for GNU ac_path_EGREP and select it if it is found.
12674   # Check for GNU $ac_path_EGREP
12675 case `"$ac_path_EGREP" --version 2>&1` in
12676 *GNU*)
12677   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12678 *)
12679   ac_count=0
12680   $as_echo_n 0123456789 >"conftest.in"
12681   while :
12682   do
12683     cat "conftest.in" "conftest.in" >"conftest.tmp"
12684     mv "conftest.tmp" "conftest.in"
12685     cp "conftest.in" "conftest.nl"
12686     $as_echo 'EGREP' >> "conftest.nl"
12687     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12689     as_fn_arith $ac_count + 1 && ac_count=$as_val
12690     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12691       # Best one so far, save it but keep looking for a better one
12692       ac_cv_path_EGREP="$ac_path_EGREP"
12693       ac_path_EGREP_max=$ac_count
12694     fi
12695     # 10*(2^10) chars as input seems more than enough
12696     test $ac_count -gt 10 && break
12697   done
12698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12699 esac
12700 
12701       $ac_path_EGREP_found && break 3
12702     done
12703   done
12704   done
12705 IFS=$as_save_IFS
12706   if test -z "$ac_cv_path_EGREP"; then
12707     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12708   fi
12709 else
12710   ac_cv_path_EGREP=$EGREP
12711 fi
12712 
12713    fi
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12716 $as_echo "$ac_cv_path_EGREP" >&6; }
12717  EGREP="$ac_cv_path_EGREP"
12718 
12719 
12720   else
12721     # The variable is set, but is it from the command line or the environment?
12722 
12723     # Try to remove the string !EGREP! from our list.
12724     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12725     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12726       # If it failed, the variable was not from the command line. Ignore it,
12727       # but warn the user (except for BASH, which is always set by the calling BASH).
12728       if test "xEGREP" != xBASH; then
12729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12730 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12731       fi
12732       # Try to locate tool using the code snippet
12733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12734 $as_echo_n "checking for egrep... " >&6; }
12735 if ${ac_cv_path_EGREP+:} false; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12739    then ac_cv_path_EGREP="$GREP -E"
12740    else
12741      if test -z "$EGREP"; then
12742   ac_path_EGREP_found=false
12743   # Loop through the user's path and test for each of PROGNAME-LIST
12744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12746 do
12747   IFS=$as_save_IFS
12748   test -z "$as_dir" && as_dir=.
12749     for ac_prog in egrep; do
12750     for ac_exec_ext in '' $ac_executable_extensions; do
12751       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12752       as_fn_executable_p "$ac_path_EGREP" || continue
12753 # Check for GNU ac_path_EGREP and select it if it is found.
12754   # Check for GNU $ac_path_EGREP
12755 case `"$ac_path_EGREP" --version 2>&1` in
12756 *GNU*)
12757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12758 *)
12759   ac_count=0
12760   $as_echo_n 0123456789 >"conftest.in"
12761   while :
12762   do
12763     cat "conftest.in" "conftest.in" >"conftest.tmp"
12764     mv "conftest.tmp" "conftest.in"
12765     cp "conftest.in" "conftest.nl"
12766     $as_echo 'EGREP' >> "conftest.nl"
12767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12769     as_fn_arith $ac_count + 1 && ac_count=$as_val
12770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12771       # Best one so far, save it but keep looking for a better one
12772       ac_cv_path_EGREP="$ac_path_EGREP"
12773       ac_path_EGREP_max=$ac_count
12774     fi
12775     # 10*(2^10) chars as input seems more than enough
12776     test $ac_count -gt 10 && break
12777   done
12778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12779 esac
12780 
12781       $ac_path_EGREP_found && break 3
12782     done
12783   done
12784   done
12785 IFS=$as_save_IFS
12786   if test -z "$ac_cv_path_EGREP"; then
12787     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12788   fi
12789 else
12790   ac_cv_path_EGREP=$EGREP
12791 fi
12792 
12793    fi
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12796 $as_echo "$ac_cv_path_EGREP" >&6; }
12797  EGREP="$ac_cv_path_EGREP"
12798 
12799 
12800     else
12801       # If it succeeded, then it was overridden by the user. We will use it
12802       # for the tool.
12803 
12804       # First remove it from the list of overridden variables, so we can test
12805       # for unknown variables in the end.
12806       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12807 
12808       # Check if we try to supply an empty value
12809       if test "x$EGREP" = x; then
12810         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12811 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12813 $as_echo_n "checking for EGREP... " >&6; }
12814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12815 $as_echo "disabled" >&6; }
12816       else
12817         # Check if the provided tool contains a complete path.
12818         tool_specified="$EGREP"
12819         tool_basename="${tool_specified##*/}"
12820         if test "x$tool_basename" = "x$tool_specified"; then
12821           # A command without a complete path is provided, search $PATH.
12822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12823 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12824           # Extract the first word of "$tool_basename", so it can be a program name with args.
12825 set dummy $tool_basename; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_path_EGREP+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831   case $EGREP in
12832   [\\/]* | ?:[\\/]*)
12833   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12834   ;;
12835   *)
12836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839   IFS=$as_save_IFS
12840   test -z "$as_dir" && as_dir=.
12841     for ac_exec_ext in '' $ac_executable_extensions; do
12842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845     break 2
12846   fi
12847 done
12848   done
12849 IFS=$as_save_IFS
12850 
12851   ;;
12852 esac
12853 fi
12854 EGREP=$ac_cv_path_EGREP
12855 if test -n "$EGREP"; then
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12857 $as_echo "$EGREP" >&6; }
12858 else
12859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12861 fi
12862 
12863 
12864           if test "x$EGREP" = x; then
12865             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12866           fi
12867         else
12868           # Otherwise we believe it is a complete path. Use it as it is.
12869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12870 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12872 $as_echo_n "checking for EGREP... " >&6; }
12873           if test ! -x "$tool_specified"; then
12874             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12875 $as_echo "not found" >&6; }
12876             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12877           fi
12878           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12879 $as_echo "$tool_specified" >&6; }
12880         fi
12881       fi
12882     fi
12883 
12884   fi
12885 
12886 
12887   if test "x$EGREP" = x; then
12888     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12889   fi
12890 
12891 
12892 
12893 
12894   # Publish this variable in the help.
12895 
12896 
12897   if [ -z "${FGREP+x}" ]; then
12898     # The variable is not set by user, try to locate tool using the code snippet
12899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12900 $as_echo_n "checking for fgrep... " >&6; }
12901 if ${ac_cv_path_FGREP+:} false; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12905    then ac_cv_path_FGREP="$GREP -F"
12906    else
12907      if test -z "$FGREP"; then
12908   ac_path_FGREP_found=false
12909   # Loop through the user's path and test for each of PROGNAME-LIST
12910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12912 do
12913   IFS=$as_save_IFS
12914   test -z "$as_dir" && as_dir=.
12915     for ac_prog in fgrep; do
12916     for ac_exec_ext in '' $ac_executable_extensions; do
12917       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12918       as_fn_executable_p "$ac_path_FGREP" || continue
12919 # Check for GNU ac_path_FGREP and select it if it is found.
12920   # Check for GNU $ac_path_FGREP
12921 case `"$ac_path_FGREP" --version 2>&1` in
12922 *GNU*)
12923   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12924 *)
12925   ac_count=0
12926   $as_echo_n 0123456789 >"conftest.in"
12927   while :
12928   do
12929     cat "conftest.in" "conftest.in" >"conftest.tmp"
12930     mv "conftest.tmp" "conftest.in"
12931     cp "conftest.in" "conftest.nl"
12932     $as_echo 'FGREP' >> "conftest.nl"
12933     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12934     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12935     as_fn_arith $ac_count + 1 && ac_count=$as_val
12936     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12937       # Best one so far, save it but keep looking for a better one
12938       ac_cv_path_FGREP="$ac_path_FGREP"
12939       ac_path_FGREP_max=$ac_count
12940     fi
12941     # 10*(2^10) chars as input seems more than enough
12942     test $ac_count -gt 10 && break
12943   done
12944   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12945 esac
12946 
12947       $ac_path_FGREP_found && break 3
12948     done
12949   done
12950   done
12951 IFS=$as_save_IFS
12952   if test -z "$ac_cv_path_FGREP"; then
12953     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12954   fi
12955 else
12956   ac_cv_path_FGREP=$FGREP
12957 fi
12958 
12959    fi
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12962 $as_echo "$ac_cv_path_FGREP" >&6; }
12963  FGREP="$ac_cv_path_FGREP"
12964 
12965 
12966   else
12967     # The variable is set, but is it from the command line or the environment?
12968 
12969     # Try to remove the string !FGREP! from our list.
12970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12972       # If it failed, the variable was not from the command line. Ignore it,
12973       # but warn the user (except for BASH, which is always set by the calling BASH).
12974       if test "xFGREP" != xBASH; then
12975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12976 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12977       fi
12978       # Try to locate tool using the code snippet
12979       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12980 $as_echo_n "checking for fgrep... " >&6; }
12981 if ${ac_cv_path_FGREP+:} false; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12985    then ac_cv_path_FGREP="$GREP -F"
12986    else
12987      if test -z "$FGREP"; then
12988   ac_path_FGREP_found=false
12989   # Loop through the user's path and test for each of PROGNAME-LIST
12990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995     for ac_prog in fgrep; do
12996     for ac_exec_ext in '' $ac_executable_extensions; do
12997       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12998       as_fn_executable_p "$ac_path_FGREP" || continue
12999 # Check for GNU ac_path_FGREP and select it if it is found.
13000   # Check for GNU $ac_path_FGREP
13001 case `"$ac_path_FGREP" --version 2>&1` in
13002 *GNU*)
13003   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13004 *)
13005   ac_count=0
13006   $as_echo_n 0123456789 >"conftest.in"
13007   while :
13008   do
13009     cat "conftest.in" "conftest.in" >"conftest.tmp"
13010     mv "conftest.tmp" "conftest.in"
13011     cp "conftest.in" "conftest.nl"
13012     $as_echo 'FGREP' >> "conftest.nl"
13013     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13015     as_fn_arith $ac_count + 1 && ac_count=$as_val
13016     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13017       # Best one so far, save it but keep looking for a better one
13018       ac_cv_path_FGREP="$ac_path_FGREP"
13019       ac_path_FGREP_max=$ac_count
13020     fi
13021     # 10*(2^10) chars as input seems more than enough
13022     test $ac_count -gt 10 && break
13023   done
13024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13025 esac
13026 
13027       $ac_path_FGREP_found && break 3
13028     done
13029   done
13030   done
13031 IFS=$as_save_IFS
13032   if test -z "$ac_cv_path_FGREP"; then
13033     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13034   fi
13035 else
13036   ac_cv_path_FGREP=$FGREP
13037 fi
13038 
13039    fi
13040 fi
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13042 $as_echo "$ac_cv_path_FGREP" >&6; }
13043  FGREP="$ac_cv_path_FGREP"
13044 
13045 
13046     else
13047       # If it succeeded, then it was overridden by the user. We will use it
13048       # for the tool.
13049 
13050       # First remove it from the list of overridden variables, so we can test
13051       # for unknown variables in the end.
13052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13053 
13054       # Check if we try to supply an empty value
13055       if test "x$FGREP" = x; then
13056         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13057 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13058         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13059 $as_echo_n "checking for FGREP... " >&6; }
13060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13061 $as_echo "disabled" >&6; }
13062       else
13063         # Check if the provided tool contains a complete path.
13064         tool_specified="$FGREP"
13065         tool_basename="${tool_specified##*/}"
13066         if test "x$tool_basename" = "x$tool_specified"; then
13067           # A command without a complete path is provided, search $PATH.
13068           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13069 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13070           # Extract the first word of "$tool_basename", so it can be a program name with args.
13071 set dummy $tool_basename; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if ${ac_cv_path_FGREP+:} false; then :
13075   $as_echo_n "(cached) " >&6
13076 else
13077   case $FGREP in
13078   [\\/]* | ?:[\\/]*)
13079   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13080   ;;
13081   *)
13082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087     for ac_exec_ext in '' $ac_executable_extensions; do
13088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13089     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094   done
13095 IFS=$as_save_IFS
13096 
13097   ;;
13098 esac
13099 fi
13100 FGREP=$ac_cv_path_FGREP
13101 if test -n "$FGREP"; then
13102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13103 $as_echo "$FGREP" >&6; }
13104 else
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107 fi
13108 
13109 
13110           if test "x$FGREP" = x; then
13111             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13112           fi
13113         else
13114           # Otherwise we believe it is a complete path. Use it as it is.
13115           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13116 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13117           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13118 $as_echo_n "checking for FGREP... " >&6; }
13119           if test ! -x "$tool_specified"; then
13120             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13121 $as_echo "not found" >&6; }
13122             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13123           fi
13124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13125 $as_echo "$tool_specified" >&6; }
13126         fi
13127       fi
13128     fi
13129 
13130   fi
13131 
13132 
13133   if test "x$FGREP" = x; then
13134     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13135   fi
13136 
13137 
13138 
13139 
13140   # Publish this variable in the help.
13141 
13142 
13143   if [ -z "${SED+x}" ]; then
13144     # The variable is not set by user, try to locate tool using the code snippet
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13146 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13147 if ${ac_cv_path_SED+:} false; then :
13148   $as_echo_n "(cached) " >&6
13149 else
13150             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13151      for ac_i in 1 2 3 4 5 6 7; do
13152        ac_script="$ac_script$as_nl$ac_script"
13153      done
13154      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13155      { ac_script=; unset ac_script;}
13156      if test -z "$SED"; then
13157   ac_path_SED_found=false
13158   # Loop through the user's path and test for each of PROGNAME-LIST
13159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162   IFS=$as_save_IFS
13163   test -z "$as_dir" && as_dir=.
13164     for ac_prog in sed gsed; do
13165     for ac_exec_ext in '' $ac_executable_extensions; do
13166       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13167       as_fn_executable_p "$ac_path_SED" || continue
13168 # Check for GNU ac_path_SED and select it if it is found.
13169   # Check for GNU $ac_path_SED
13170 case `"$ac_path_SED" --version 2>&1` in
13171 *GNU*)
13172   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13173 *)
13174   ac_count=0
13175   $as_echo_n 0123456789 >"conftest.in"
13176   while :
13177   do
13178     cat "conftest.in" "conftest.in" >"conftest.tmp"
13179     mv "conftest.tmp" "conftest.in"
13180     cp "conftest.in" "conftest.nl"
13181     $as_echo '' >> "conftest.nl"
13182     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13184     as_fn_arith $ac_count + 1 && ac_count=$as_val
13185     if test $ac_count -gt ${ac_path_SED_max-0}; then
13186       # Best one so far, save it but keep looking for a better one
13187       ac_cv_path_SED="$ac_path_SED"
13188       ac_path_SED_max=$ac_count
13189     fi
13190     # 10*(2^10) chars as input seems more than enough
13191     test $ac_count -gt 10 && break
13192   done
13193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13194 esac
13195 
13196       $ac_path_SED_found && break 3
13197     done
13198   done
13199   done
13200 IFS=$as_save_IFS
13201   if test -z "$ac_cv_path_SED"; then
13202     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13203   fi
13204 else
13205   ac_cv_path_SED=$SED
13206 fi
13207 
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13210 $as_echo "$ac_cv_path_SED" >&6; }
13211  SED="$ac_cv_path_SED"
13212   rm -f conftest.sed
13213 
13214   else
13215     # The variable is set, but is it from the command line or the environment?
13216 
13217     # Try to remove the string !SED! from our list.
13218     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13219     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13220       # If it failed, the variable was not from the command line. Ignore it,
13221       # but warn the user (except for BASH, which is always set by the calling BASH).
13222       if test "xSED" != xBASH; then
13223         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13224 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13225       fi
13226       # Try to locate tool using the code snippet
13227       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13228 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13229 if ${ac_cv_path_SED+:} false; then :
13230   $as_echo_n "(cached) " >&6
13231 else
13232             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13233      for ac_i in 1 2 3 4 5 6 7; do
13234        ac_script="$ac_script$as_nl$ac_script"
13235      done
13236      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13237      { ac_script=; unset ac_script;}
13238      if test -z "$SED"; then
13239   ac_path_SED_found=false
13240   # Loop through the user's path and test for each of PROGNAME-LIST
13241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13243 do
13244   IFS=$as_save_IFS
13245   test -z "$as_dir" && as_dir=.
13246     for ac_prog in sed gsed; do
13247     for ac_exec_ext in '' $ac_executable_extensions; do
13248       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13249       as_fn_executable_p "$ac_path_SED" || continue
13250 # Check for GNU ac_path_SED and select it if it is found.
13251   # Check for GNU $ac_path_SED
13252 case `"$ac_path_SED" --version 2>&1` in
13253 *GNU*)
13254   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13255 *)
13256   ac_count=0
13257   $as_echo_n 0123456789 >"conftest.in"
13258   while :
13259   do
13260     cat "conftest.in" "conftest.in" >"conftest.tmp"
13261     mv "conftest.tmp" "conftest.in"
13262     cp "conftest.in" "conftest.nl"
13263     $as_echo '' >> "conftest.nl"
13264     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13266     as_fn_arith $ac_count + 1 && ac_count=$as_val
13267     if test $ac_count -gt ${ac_path_SED_max-0}; then
13268       # Best one so far, save it but keep looking for a better one
13269       ac_cv_path_SED="$ac_path_SED"
13270       ac_path_SED_max=$ac_count
13271     fi
13272     # 10*(2^10) chars as input seems more than enough
13273     test $ac_count -gt 10 && break
13274   done
13275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13276 esac
13277 
13278       $ac_path_SED_found && break 3
13279     done
13280   done
13281   done
13282 IFS=$as_save_IFS
13283   if test -z "$ac_cv_path_SED"; then
13284     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13285   fi
13286 else
13287   ac_cv_path_SED=$SED
13288 fi
13289 
13290 fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13292 $as_echo "$ac_cv_path_SED" >&6; }
13293  SED="$ac_cv_path_SED"
13294   rm -f conftest.sed
13295 
13296     else
13297       # If it succeeded, then it was overridden by the user. We will use it
13298       # for the tool.
13299 
13300       # First remove it from the list of overridden variables, so we can test
13301       # for unknown variables in the end.
13302       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13303 
13304       # Check if we try to supply an empty value
13305       if test "x$SED" = x; then
13306         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13307 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13309 $as_echo_n "checking for SED... " >&6; }
13310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13311 $as_echo "disabled" >&6; }
13312       else
13313         # Check if the provided tool contains a complete path.
13314         tool_specified="$SED"
13315         tool_basename="${tool_specified##*/}"
13316         if test "x$tool_basename" = "x$tool_specified"; then
13317           # A command without a complete path is provided, search $PATH.
13318           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13319 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13320           # Extract the first word of "$tool_basename", so it can be a program name with args.
13321 set dummy $tool_basename; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if ${ac_cv_path_SED+:} false; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   case $SED in
13328   [\\/]* | ?:[\\/]*)
13329   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13330   ;;
13331   *)
13332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13334 do
13335   IFS=$as_save_IFS
13336   test -z "$as_dir" && as_dir=.
13337     for ac_exec_ext in '' $ac_executable_extensions; do
13338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13341     break 2
13342   fi
13343 done
13344   done
13345 IFS=$as_save_IFS
13346 
13347   ;;
13348 esac
13349 fi
13350 SED=$ac_cv_path_SED
13351 if test -n "$SED"; then
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13353 $as_echo "$SED" >&6; }
13354 else
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 fi
13358 
13359 
13360           if test "x$SED" = x; then
13361             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13362           fi
13363         else
13364           # Otherwise we believe it is a complete path. Use it as it is.
13365           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13366 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13367           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13368 $as_echo_n "checking for SED... " >&6; }
13369           if test ! -x "$tool_specified"; then
13370             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13371 $as_echo "not found" >&6; }
13372             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13373           fi
13374           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13375 $as_echo "$tool_specified" >&6; }
13376         fi
13377       fi
13378     fi
13379 
13380   fi
13381 
13382 
13383   if test "x$SED" = x; then
13384     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13385   fi
13386 
13387 
13388 
13389   # Always force rm.
13390   RM="$RM -f"
13391 
13392   # pwd behaves differently on various platforms and some don't support the -L flag.
13393   # Always use the bash builtin pwd to get uniform behavior.
13394   THEPWDCMD=pwd
13395 
13396   # These are not required on all platforms
13397 
13398 
13399   # Publish this variable in the help.
13400 
13401 
13402   if [ -z "${CYGPATH+x}" ]; then
13403     # The variable is not set by user, try to locate tool using the code snippet
13404     for ac_prog in cygpath
13405 do
13406   # Extract the first word of "$ac_prog", so it can be a program name with args.
13407 set dummy $ac_prog; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if ${ac_cv_path_CYGPATH+:} false; then :
13411   $as_echo_n "(cached) " >&6
13412 else
13413   case $CYGPATH in
13414   [\\/]* | ?:[\\/]*)
13415   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13416   ;;
13417   *)
13418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13420 do
13421   IFS=$as_save_IFS
13422   test -z "$as_dir" && as_dir=.
13423     for ac_exec_ext in '' $ac_executable_extensions; do
13424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13427     break 2
13428   fi
13429 done
13430   done
13431 IFS=$as_save_IFS
13432 
13433   ;;
13434 esac
13435 fi
13436 CYGPATH=$ac_cv_path_CYGPATH
13437 if test -n "$CYGPATH"; then
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13439 $as_echo "$CYGPATH" >&6; }
13440 else
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13443 fi
13444 
13445 
13446   test -n "$CYGPATH" && break
13447 done
13448 
13449   else
13450     # The variable is set, but is it from the command line or the environment?
13451 
13452     # Try to remove the string !CYGPATH! from our list.
13453     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13454     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13455       # If it failed, the variable was not from the command line. Ignore it,
13456       # but warn the user (except for BASH, which is always set by the calling BASH).
13457       if test "xCYGPATH" != xBASH; then
13458         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13459 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13460       fi
13461       # Try to locate tool using the code snippet
13462       for ac_prog in cygpath
13463 do
13464   # Extract the first word of "$ac_prog", so it can be a program name with args.
13465 set dummy $ac_prog; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if ${ac_cv_path_CYGPATH+:} false; then :
13469   $as_echo_n "(cached) " >&6
13470 else
13471   case $CYGPATH in
13472   [\\/]* | ?:[\\/]*)
13473   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13474   ;;
13475   *)
13476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH
13478 do
13479   IFS=$as_save_IFS
13480   test -z "$as_dir" && as_dir=.
13481     for ac_exec_ext in '' $ac_executable_extensions; do
13482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13483     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485     break 2
13486   fi
13487 done
13488   done
13489 IFS=$as_save_IFS
13490 
13491   ;;
13492 esac
13493 fi
13494 CYGPATH=$ac_cv_path_CYGPATH
13495 if test -n "$CYGPATH"; then
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13497 $as_echo "$CYGPATH" >&6; }
13498 else
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13500 $as_echo "no" >&6; }
13501 fi
13502 
13503 
13504   test -n "$CYGPATH" && break
13505 done
13506 
13507     else
13508       # If it succeeded, then it was overridden by the user. We will use it
13509       # for the tool.
13510 
13511       # First remove it from the list of overridden variables, so we can test
13512       # for unknown variables in the end.
13513       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13514 
13515       # Check if we try to supply an empty value
13516       if test "x$CYGPATH" = x; then
13517         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13518 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13520 $as_echo_n "checking for CYGPATH... " >&6; }
13521         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13522 $as_echo "disabled" >&6; }
13523       else
13524         # Check if the provided tool contains a complete path.
13525         tool_specified="$CYGPATH"
13526         tool_basename="${tool_specified##*/}"
13527         if test "x$tool_basename" = "x$tool_specified"; then
13528           # A command without a complete path is provided, search $PATH.
13529           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13530 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13531           # Extract the first word of "$tool_basename", so it can be a program name with args.
13532 set dummy $tool_basename; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if ${ac_cv_path_CYGPATH+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   case $CYGPATH in
13539   [\\/]* | ?:[\\/]*)
13540   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13541   ;;
13542   *)
13543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13545 do
13546   IFS=$as_save_IFS
13547   test -z "$as_dir" && as_dir=.
13548     for ac_exec_ext in '' $ac_executable_extensions; do
13549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552     break 2
13553   fi
13554 done
13555   done
13556 IFS=$as_save_IFS
13557 
13558   ;;
13559 esac
13560 fi
13561 CYGPATH=$ac_cv_path_CYGPATH
13562 if test -n "$CYGPATH"; then
13563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13564 $as_echo "$CYGPATH" >&6; }
13565 else
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13569 
13570 
13571           if test "x$CYGPATH" = x; then
13572             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13573           fi
13574         else
13575           # Otherwise we believe it is a complete path. Use it as it is.
13576           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13577 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13578           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13579 $as_echo_n "checking for CYGPATH... " >&6; }
13580           if test ! -x "$tool_specified"; then
13581             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13582 $as_echo "not found" >&6; }
13583             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13584           fi
13585           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13586 $as_echo "$tool_specified" >&6; }
13587         fi
13588       fi
13589     fi
13590 
13591   fi
13592 
13593 
13594 
13595 
13596   # Publish this variable in the help.
13597 
13598 
13599   if [ -z "${READLINK+x}" ]; then
13600     # The variable is not set by user, try to locate tool using the code snippet
13601     for ac_prog in greadlink readlink
13602 do
13603   # Extract the first word of "$ac_prog", so it can be a program name with args.
13604 set dummy $ac_prog; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if ${ac_cv_path_READLINK+:} false; then :
13608   $as_echo_n "(cached) " >&6
13609 else
13610   case $READLINK in
13611   [\\/]* | ?:[\\/]*)
13612   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13613   ;;
13614   *)
13615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13617 do
13618   IFS=$as_save_IFS
13619   test -z "$as_dir" && as_dir=.
13620     for ac_exec_ext in '' $ac_executable_extensions; do
13621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13622     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624     break 2
13625   fi
13626 done
13627   done
13628 IFS=$as_save_IFS
13629 
13630   ;;
13631 esac
13632 fi
13633 READLINK=$ac_cv_path_READLINK
13634 if test -n "$READLINK"; then
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13636 $as_echo "$READLINK" >&6; }
13637 else
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13640 fi
13641 
13642 
13643   test -n "$READLINK" && break
13644 done
13645 
13646   else
13647     # The variable is set, but is it from the command line or the environment?
13648 
13649     # Try to remove the string !READLINK! from our list.
13650     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13651     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13652       # If it failed, the variable was not from the command line. Ignore it,
13653       # but warn the user (except for BASH, which is always set by the calling BASH).
13654       if test "xREADLINK" != xBASH; then
13655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13656 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13657       fi
13658       # Try to locate tool using the code snippet
13659       for ac_prog in greadlink readlink
13660 do
13661   # Extract the first word of "$ac_prog", so it can be a program name with args.
13662 set dummy $ac_prog; ac_word=$2
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13664 $as_echo_n "checking for $ac_word... " >&6; }
13665 if ${ac_cv_path_READLINK+:} false; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   case $READLINK in
13669   [\\/]* | ?:[\\/]*)
13670   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13671   ;;
13672   *)
13673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13675 do
13676   IFS=$as_save_IFS
13677   test -z "$as_dir" && as_dir=.
13678     for ac_exec_ext in '' $ac_executable_extensions; do
13679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13680     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682     break 2
13683   fi
13684 done
13685   done
13686 IFS=$as_save_IFS
13687 
13688   ;;
13689 esac
13690 fi
13691 READLINK=$ac_cv_path_READLINK
13692 if test -n "$READLINK"; then
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13694 $as_echo "$READLINK" >&6; }
13695 else
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13698 fi
13699 
13700 
13701   test -n "$READLINK" && break
13702 done
13703 
13704     else
13705       # If it succeeded, then it was overridden by the user. We will use it
13706       # for the tool.
13707 
13708       # First remove it from the list of overridden variables, so we can test
13709       # for unknown variables in the end.
13710       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13711 
13712       # Check if we try to supply an empty value
13713       if test "x$READLINK" = x; then
13714         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13715 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13717 $as_echo_n "checking for READLINK... " >&6; }
13718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13719 $as_echo "disabled" >&6; }
13720       else
13721         # Check if the provided tool contains a complete path.
13722         tool_specified="$READLINK"
13723         tool_basename="${tool_specified##*/}"
13724         if test "x$tool_basename" = "x$tool_specified"; then
13725           # A command without a complete path is provided, search $PATH.
13726           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13727 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13728           # Extract the first word of "$tool_basename", so it can be a program name with args.
13729 set dummy $tool_basename; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if ${ac_cv_path_READLINK+:} false; then :
13733   $as_echo_n "(cached) " >&6
13734 else
13735   case $READLINK in
13736   [\\/]* | ?:[\\/]*)
13737   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13738   ;;
13739   *)
13740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13742 do
13743   IFS=$as_save_IFS
13744   test -z "$as_dir" && as_dir=.
13745     for ac_exec_ext in '' $ac_executable_extensions; do
13746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749     break 2
13750   fi
13751 done
13752   done
13753 IFS=$as_save_IFS
13754 
13755   ;;
13756 esac
13757 fi
13758 READLINK=$ac_cv_path_READLINK
13759 if test -n "$READLINK"; then
13760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13761 $as_echo "$READLINK" >&6; }
13762 else
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764 $as_echo "no" >&6; }
13765 fi
13766 
13767 
13768           if test "x$READLINK" = x; then
13769             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13770           fi
13771         else
13772           # Otherwise we believe it is a complete path. Use it as it is.
13773           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13774 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13775           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13776 $as_echo_n "checking for READLINK... " >&6; }
13777           if test ! -x "$tool_specified"; then
13778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13779 $as_echo "not found" >&6; }
13780             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13781           fi
13782           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13783 $as_echo "$tool_specified" >&6; }
13784         fi
13785       fi
13786     fi
13787 
13788   fi
13789 
13790 
13791 
13792 
13793   # Publish this variable in the help.
13794 
13795 
13796   if [ -z "${DF+x}" ]; then
13797     # The variable is not set by user, try to locate tool using the code snippet
13798     for ac_prog in df
13799 do
13800   # Extract the first word of "$ac_prog", so it can be a program name with args.
13801 set dummy $ac_prog; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13803 $as_echo_n "checking for $ac_word... " >&6; }
13804 if ${ac_cv_path_DF+:} false; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   case $DF in
13808   [\\/]* | ?:[\\/]*)
13809   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13810   ;;
13811   *)
13812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13814 do
13815   IFS=$as_save_IFS
13816   test -z "$as_dir" && as_dir=.
13817     for ac_exec_ext in '' $ac_executable_extensions; do
13818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821     break 2
13822   fi
13823 done
13824   done
13825 IFS=$as_save_IFS
13826 
13827   ;;
13828 esac
13829 fi
13830 DF=$ac_cv_path_DF
13831 if test -n "$DF"; then
13832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13833 $as_echo "$DF" >&6; }
13834 else
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837 fi
13838 
13839 
13840   test -n "$DF" && break
13841 done
13842 
13843   else
13844     # The variable is set, but is it from the command line or the environment?
13845 
13846     # Try to remove the string !DF! from our list.
13847     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13848     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13849       # If it failed, the variable was not from the command line. Ignore it,
13850       # but warn the user (except for BASH, which is always set by the calling BASH).
13851       if test "xDF" != xBASH; then
13852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13853 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13854       fi
13855       # Try to locate tool using the code snippet
13856       for ac_prog in df
13857 do
13858   # Extract the first word of "$ac_prog", so it can be a program name with args.
13859 set dummy $ac_prog; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_path_DF+:} false; then :
13863   $as_echo_n "(cached) " >&6
13864 else
13865   case $DF in
13866   [\\/]* | ?:[\\/]*)
13867   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13868   ;;
13869   *)
13870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873   IFS=$as_save_IFS
13874   test -z "$as_dir" && as_dir=.
13875     for ac_exec_ext in '' $ac_executable_extensions; do
13876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879     break 2
13880   fi
13881 done
13882   done
13883 IFS=$as_save_IFS
13884 
13885   ;;
13886 esac
13887 fi
13888 DF=$ac_cv_path_DF
13889 if test -n "$DF"; then
13890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13891 $as_echo "$DF" >&6; }
13892 else
13893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13894 $as_echo "no" >&6; }
13895 fi
13896 
13897 
13898   test -n "$DF" && break
13899 done
13900 
13901     else
13902       # If it succeeded, then it was overridden by the user. We will use it
13903       # for the tool.
13904 
13905       # First remove it from the list of overridden variables, so we can test
13906       # for unknown variables in the end.
13907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13908 
13909       # Check if we try to supply an empty value
13910       if test "x$DF" = x; then
13911         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13912 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13914 $as_echo_n "checking for DF... " >&6; }
13915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13916 $as_echo "disabled" >&6; }
13917       else
13918         # Check if the provided tool contains a complete path.
13919         tool_specified="$DF"
13920         tool_basename="${tool_specified##*/}"
13921         if test "x$tool_basename" = "x$tool_specified"; then
13922           # A command without a complete path is provided, search $PATH.
13923           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13924 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13925           # Extract the first word of "$tool_basename", so it can be a program name with args.
13926 set dummy $tool_basename; ac_word=$2
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928 $as_echo_n "checking for $ac_word... " >&6; }
13929 if ${ac_cv_path_DF+:} false; then :
13930   $as_echo_n "(cached) " >&6
13931 else
13932   case $DF in
13933   [\\/]* | ?:[\\/]*)
13934   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13935   ;;
13936   *)
13937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13938 for as_dir in $PATH
13939 do
13940   IFS=$as_save_IFS
13941   test -z "$as_dir" && as_dir=.
13942     for ac_exec_ext in '' $ac_executable_extensions; do
13943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13944     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13946     break 2
13947   fi
13948 done
13949   done
13950 IFS=$as_save_IFS
13951 
13952   ;;
13953 esac
13954 fi
13955 DF=$ac_cv_path_DF
13956 if test -n "$DF"; then
13957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13958 $as_echo "$DF" >&6; }
13959 else
13960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13962 fi
13963 
13964 
13965           if test "x$DF" = x; then
13966             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13967           fi
13968         else
13969           # Otherwise we believe it is a complete path. Use it as it is.
13970           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13971 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13972           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13973 $as_echo_n "checking for DF... " >&6; }
13974           if test ! -x "$tool_specified"; then
13975             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13976 $as_echo "not found" >&6; }
13977             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13978           fi
13979           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13980 $as_echo "$tool_specified" >&6; }
13981         fi
13982       fi
13983     fi
13984 
13985   fi
13986 
13987 
13988 
13989 
13990   # Publish this variable in the help.
13991 
13992 
13993   if [ -z "${CPIO+x}" ]; then
13994     # The variable is not set by user, try to locate tool using the code snippet
13995     for ac_prog in cpio bsdcpio
13996 do
13997   # Extract the first word of "$ac_prog", so it can be a program name with args.
13998 set dummy $ac_prog; ac_word=$2
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14000 $as_echo_n "checking for $ac_word... " >&6; }
14001 if ${ac_cv_path_CPIO+:} false; then :
14002   $as_echo_n "(cached) " >&6
14003 else
14004   case $CPIO in
14005   [\\/]* | ?:[\\/]*)
14006   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14007   ;;
14008   *)
14009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14011 do
14012   IFS=$as_save_IFS
14013   test -z "$as_dir" && as_dir=.
14014     for ac_exec_ext in '' $ac_executable_extensions; do
14015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018     break 2
14019   fi
14020 done
14021   done
14022 IFS=$as_save_IFS
14023 
14024   ;;
14025 esac
14026 fi
14027 CPIO=$ac_cv_path_CPIO
14028 if test -n "$CPIO"; then
14029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14030 $as_echo "$CPIO" >&6; }
14031 else
14032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 fi
14035 
14036 
14037   test -n "$CPIO" && break
14038 done
14039 
14040   else
14041     # The variable is set, but is it from the command line or the environment?
14042 
14043     # Try to remove the string !CPIO! from our list.
14044     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14045     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14046       # If it failed, the variable was not from the command line. Ignore it,
14047       # but warn the user (except for BASH, which is always set by the calling BASH).
14048       if test "xCPIO" != xBASH; then
14049         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14050 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14051       fi
14052       # Try to locate tool using the code snippet
14053       for ac_prog in cpio bsdcpio
14054 do
14055   # Extract the first word of "$ac_prog", so it can be a program name with args.
14056 set dummy $ac_prog; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_CPIO+:} false; then :
14060   $as_echo_n "(cached) " >&6
14061 else
14062   case $CPIO in
14063   [\\/]* | ?:[\\/]*)
14064   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14065   ;;
14066   *)
14067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14069 do
14070   IFS=$as_save_IFS
14071   test -z "$as_dir" && as_dir=.
14072     for ac_exec_ext in '' $ac_executable_extensions; do
14073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076     break 2
14077   fi
14078 done
14079   done
14080 IFS=$as_save_IFS
14081 
14082   ;;
14083 esac
14084 fi
14085 CPIO=$ac_cv_path_CPIO
14086 if test -n "$CPIO"; then
14087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14088 $as_echo "$CPIO" >&6; }
14089 else
14090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092 fi
14093 
14094 
14095   test -n "$CPIO" && break
14096 done
14097 
14098     else
14099       # If it succeeded, then it was overridden by the user. We will use it
14100       # for the tool.
14101 
14102       # First remove it from the list of overridden variables, so we can test
14103       # for unknown variables in the end.
14104       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14105 
14106       # Check if we try to supply an empty value
14107       if test "x$CPIO" = x; then
14108         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14109 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14111 $as_echo_n "checking for CPIO... " >&6; }
14112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14113 $as_echo "disabled" >&6; }
14114       else
14115         # Check if the provided tool contains a complete path.
14116         tool_specified="$CPIO"
14117         tool_basename="${tool_specified##*/}"
14118         if test "x$tool_basename" = "x$tool_specified"; then
14119           # A command without a complete path is provided, search $PATH.
14120           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14121 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14122           # Extract the first word of "$tool_basename", so it can be a program name with args.
14123 set dummy $tool_basename; ac_word=$2
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125 $as_echo_n "checking for $ac_word... " >&6; }
14126 if ${ac_cv_path_CPIO+:} false; then :
14127   $as_echo_n "(cached) " >&6
14128 else
14129   case $CPIO in
14130   [\\/]* | ?:[\\/]*)
14131   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14132   ;;
14133   *)
14134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14135 for as_dir in $PATH
14136 do
14137   IFS=$as_save_IFS
14138   test -z "$as_dir" && as_dir=.
14139     for ac_exec_ext in '' $ac_executable_extensions; do
14140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14141     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14143     break 2
14144   fi
14145 done
14146   done
14147 IFS=$as_save_IFS
14148 
14149   ;;
14150 esac
14151 fi
14152 CPIO=$ac_cv_path_CPIO
14153 if test -n "$CPIO"; then
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14155 $as_echo "$CPIO" >&6; }
14156 else
14157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14159 fi
14160 
14161 
14162           if test "x$CPIO" = x; then
14163             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14164           fi
14165         else
14166           # Otherwise we believe it is a complete path. Use it as it is.
14167           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14168 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14169           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14170 $as_echo_n "checking for CPIO... " >&6; }
14171           if test ! -x "$tool_specified"; then
14172             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14173 $as_echo "not found" >&6; }
14174             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14175           fi
14176           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14177 $as_echo "$tool_specified" >&6; }
14178         fi
14179       fi
14180     fi
14181 
14182   fi
14183 
14184 
14185 
14186 
14187   # Publish this variable in the help.
14188 
14189 
14190   if [ -z "${NICE+x}" ]; then
14191     # The variable is not set by user, try to locate tool using the code snippet
14192     for ac_prog in nice
14193 do
14194   # Extract the first word of "$ac_prog", so it can be a program name with args.
14195 set dummy $ac_prog; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if ${ac_cv_path_NICE+:} false; then :
14199   $as_echo_n "(cached) " >&6
14200 else
14201   case $NICE in
14202   [\\/]* | ?:[\\/]*)
14203   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14204   ;;
14205   *)
14206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207 for as_dir in $PATH
14208 do
14209   IFS=$as_save_IFS
14210   test -z "$as_dir" && as_dir=.
14211     for ac_exec_ext in '' $ac_executable_extensions; do
14212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14213     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14215     break 2
14216   fi
14217 done
14218   done
14219 IFS=$as_save_IFS
14220 
14221   ;;
14222 esac
14223 fi
14224 NICE=$ac_cv_path_NICE
14225 if test -n "$NICE"; then
14226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14227 $as_echo "$NICE" >&6; }
14228 else
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14230 $as_echo "no" >&6; }
14231 fi
14232 
14233 
14234   test -n "$NICE" && break
14235 done
14236 
14237   else
14238     # The variable is set, but is it from the command line or the environment?
14239 
14240     # Try to remove the string !NICE! from our list.
14241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14243       # If it failed, the variable was not from the command line. Ignore it,
14244       # but warn the user (except for BASH, which is always set by the calling BASH).
14245       if test "xNICE" != xBASH; then
14246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14247 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14248       fi
14249       # Try to locate tool using the code snippet
14250       for ac_prog in nice
14251 do
14252   # Extract the first word of "$ac_prog", so it can be a program name with args.
14253 set dummy $ac_prog; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if ${ac_cv_path_NICE+:} false; then :
14257   $as_echo_n "(cached) " >&6
14258 else
14259   case $NICE in
14260   [\\/]* | ?:[\\/]*)
14261   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14262   ;;
14263   *)
14264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267   IFS=$as_save_IFS
14268   test -z "$as_dir" && as_dir=.
14269     for ac_exec_ext in '' $ac_executable_extensions; do
14270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14271     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14273     break 2
14274   fi
14275 done
14276   done
14277 IFS=$as_save_IFS
14278 
14279   ;;
14280 esac
14281 fi
14282 NICE=$ac_cv_path_NICE
14283 if test -n "$NICE"; then
14284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14285 $as_echo "$NICE" >&6; }
14286 else
14287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14289 fi
14290 
14291 
14292   test -n "$NICE" && break
14293 done
14294 
14295     else
14296       # If it succeeded, then it was overridden by the user. We will use it
14297       # for the tool.
14298 
14299       # First remove it from the list of overridden variables, so we can test
14300       # for unknown variables in the end.
14301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14302 
14303       # Check if we try to supply an empty value
14304       if test "x$NICE" = x; then
14305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14306 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14308 $as_echo_n "checking for NICE... " >&6; }
14309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14310 $as_echo "disabled" >&6; }
14311       else
14312         # Check if the provided tool contains a complete path.
14313         tool_specified="$NICE"
14314         tool_basename="${tool_specified##*/}"
14315         if test "x$tool_basename" = "x$tool_specified"; then
14316           # A command without a complete path is provided, search $PATH.
14317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14318 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14319           # Extract the first word of "$tool_basename", so it can be a program name with args.
14320 set dummy $tool_basename; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14322 $as_echo_n "checking for $ac_word... " >&6; }
14323 if ${ac_cv_path_NICE+:} false; then :
14324   $as_echo_n "(cached) " >&6
14325 else
14326   case $NICE in
14327   [\\/]* | ?:[\\/]*)
14328   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14329   ;;
14330   *)
14331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14332 for as_dir in $PATH
14333 do
14334   IFS=$as_save_IFS
14335   test -z "$as_dir" && as_dir=.
14336     for ac_exec_ext in '' $ac_executable_extensions; do
14337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14338     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14340     break 2
14341   fi
14342 done
14343   done
14344 IFS=$as_save_IFS
14345 
14346   ;;
14347 esac
14348 fi
14349 NICE=$ac_cv_path_NICE
14350 if test -n "$NICE"; then
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14352 $as_echo "$NICE" >&6; }
14353 else
14354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 fi
14357 
14358 
14359           if test "x$NICE" = x; then
14360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14361           fi
14362         else
14363           # Otherwise we believe it is a complete path. Use it as it is.
14364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14365 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14367 $as_echo_n "checking for NICE... " >&6; }
14368           if test ! -x "$tool_specified"; then
14369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14370 $as_echo "not found" >&6; }
14371             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14372           fi
14373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14374 $as_echo "$tool_specified" >&6; }
14375         fi
14376       fi
14377     fi
14378 
14379   fi
14380 
14381 
14382 
14383 
14384 # Now we can determine OpenJDK build and target platforms. This is required to
14385 # have early on.
14386 # Make sure we can run config.sub.
14387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14388   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14389 
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14391 $as_echo_n "checking build system type... " >&6; }
14392 if ${ac_cv_build+:} false; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395   ac_build_alias=$build_alias
14396 test "x$ac_build_alias" = x &&
14397   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14398 test "x$ac_build_alias" = x &&
14399   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14401   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14402 
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14405 $as_echo "$ac_cv_build" >&6; }
14406 case $ac_cv_build in
14407 *-*-*) ;;
14408 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14409 esac
14410 build=$ac_cv_build
14411 ac_save_IFS=$IFS; IFS='-'
14412 set x $ac_cv_build
14413 shift
14414 build_cpu=$1
14415 build_vendor=$2
14416 shift; shift
14417 # Remember, the first character of IFS is used to create $*,
14418 # except with old shells:
14419 build_os=$*
14420 IFS=$ac_save_IFS
14421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14422 
14423 
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14425 $as_echo_n "checking host system type... " >&6; }
14426 if ${ac_cv_host+:} false; then :
14427   $as_echo_n "(cached) " >&6
14428 else
14429   if test "x$host_alias" = x; then
14430   ac_cv_host=$ac_cv_build
14431 else
14432   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14433     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14434 fi
14435 
14436 fi
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14438 $as_echo "$ac_cv_host" >&6; }
14439 case $ac_cv_host in
14440 *-*-*) ;;
14441 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14442 esac
14443 host=$ac_cv_host
14444 ac_save_IFS=$IFS; IFS='-'
14445 set x $ac_cv_host
14446 shift
14447 host_cpu=$1
14448 host_vendor=$2
14449 shift; shift
14450 # Remember, the first character of IFS is used to create $*,
14451 # except with old shells:
14452 host_os=$*
14453 IFS=$ac_save_IFS
14454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14455 
14456 
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14458 $as_echo_n "checking target system type... " >&6; }
14459 if ${ac_cv_target+:} false; then :
14460   $as_echo_n "(cached) " >&6
14461 else
14462   if test "x$target_alias" = x; then
14463   ac_cv_target=$ac_cv_host
14464 else
14465   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14466     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14467 fi
14468 
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14471 $as_echo "$ac_cv_target" >&6; }
14472 case $ac_cv_target in
14473 *-*-*) ;;
14474 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14475 esac
14476 target=$ac_cv_target
14477 ac_save_IFS=$IFS; IFS='-'
14478 set x $ac_cv_target
14479 shift
14480 target_cpu=$1
14481 target_vendor=$2
14482 shift; shift
14483 # Remember, the first character of IFS is used to create $*,
14484 # except with old shells:
14485 target_os=$*
14486 IFS=$ac_save_IFS
14487 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14488 
14489 
14490 # The aliases save the names the user supplied, while $host etc.
14491 # will get canonicalized.
14492 test -n "$target_alias" &&
14493   test "$program_prefix$program_suffix$program_transform_name" = \
14494     NONENONEs,x,x, &&
14495   program_prefix=${target_alias}-
14496 
14497   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14498   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14499   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14500   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14501   # to use the configure naming style.
14502 
14503 
14504 
14505 
14506 
14507   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14508   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14509   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14510   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14511   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14512   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14513 
14514 
14515 
14516   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14517 
14518   case "$build_os" in
14519     *linux*)
14520       VAR_OS=linux
14521       VAR_OS_TYPE=unix
14522       ;;
14523     *solaris*)
14524       VAR_OS=solaris
14525       VAR_OS_TYPE=unix
14526       ;;
14527     *darwin*)
14528       VAR_OS=macosx
14529       VAR_OS_TYPE=unix
14530       ;;
14531     *bsd*)
14532       VAR_OS=bsd
14533       VAR_OS_TYPE=unix
14534       ;;
14535     *cygwin*)
14536       VAR_OS=windows
14537       VAR_OS_ENV=windows.cygwin
14538       ;;
14539     *mingw*)
14540       VAR_OS=windows
14541       VAR_OS_ENV=windows.msys
14542       ;;
14543     *aix*)
14544       VAR_OS=aix
14545       VAR_OS_TYPE=unix
14546       ;;
14547     *)
14548       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14549       ;;
14550   esac
14551 
14552 
14553   # First argument is the cpu name from the trip/quad
14554   case "$build_cpu" in
14555     x86_64)
14556       VAR_CPU=x86_64
14557       VAR_CPU_ARCH=x86
14558       VAR_CPU_BITS=64
14559       VAR_CPU_ENDIAN=little
14560       ;;
14561     i?86)
14562       VAR_CPU=x86
14563       VAR_CPU_ARCH=x86
14564       VAR_CPU_BITS=32
14565       VAR_CPU_ENDIAN=little
14566       ;;
14567     arm*)
14568       VAR_CPU=arm
14569       VAR_CPU_ARCH=arm
14570       VAR_CPU_BITS=32
14571       VAR_CPU_ENDIAN=little
14572       ;;
14573     aarch64)
14574       VAR_CPU=aarch64
14575       VAR_CPU_ARCH=aarch64
14576       VAR_CPU_BITS=64
14577       VAR_CPU_ENDIAN=little
14578       ;;
14579     powerpc)
14580       VAR_CPU=ppc
14581       VAR_CPU_ARCH=ppc
14582       VAR_CPU_BITS=32
14583       VAR_CPU_ENDIAN=big
14584       ;;
14585     powerpc64)
14586       VAR_CPU=ppc64
14587       VAR_CPU_ARCH=ppc
14588       VAR_CPU_BITS=64
14589       VAR_CPU_ENDIAN=big
14590       ;;
14591     powerpc64le)
14592       VAR_CPU=ppc64
14593       VAR_CPU_ARCH=ppc
14594       VAR_CPU_BITS=64
14595       VAR_CPU_ENDIAN=little
14596       ;;
14597     s390)
14598       VAR_CPU=s390
14599       VAR_CPU_ARCH=s390
14600       VAR_CPU_BITS=32
14601       VAR_CPU_ENDIAN=big
14602       ;;
14603     s390x)
14604       VAR_CPU=s390x
14605       VAR_CPU_ARCH=s390
14606       VAR_CPU_BITS=64
14607       VAR_CPU_ENDIAN=big
14608       ;;
14609     sparc)
14610       VAR_CPU=sparc
14611       VAR_CPU_ARCH=sparc
14612       VAR_CPU_BITS=32
14613       VAR_CPU_ENDIAN=big
14614       ;;
14615     sparcv9|sparc64)
14616       VAR_CPU=sparcv9
14617       VAR_CPU_ARCH=sparc
14618       VAR_CPU_BITS=64
14619       VAR_CPU_ENDIAN=big
14620       ;;
14621     *)
14622       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14623       ;;
14624   esac
14625 
14626   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14627   OPENJDK_BUILD_OS="$VAR_OS"
14628   if test "x$VAR_OS_TYPE" != x; then
14629     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14630   else
14631     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14632   fi
14633   if test "x$VAR_OS_ENV" != x; then
14634     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14635   else
14636     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14637   fi
14638   OPENJDK_BUILD_CPU="$VAR_CPU"
14639   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14640   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14641   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14642 
14643 
14644 
14645 
14646 
14647 
14648 
14649 
14650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14651 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14653 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14654 
14655   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14656 
14657   case "$host_os" in
14658     *linux*)
14659       VAR_OS=linux
14660       VAR_OS_TYPE=unix
14661       ;;
14662     *solaris*)
14663       VAR_OS=solaris
14664       VAR_OS_TYPE=unix
14665       ;;
14666     *darwin*)
14667       VAR_OS=macosx
14668       VAR_OS_TYPE=unix
14669       ;;
14670     *bsd*)
14671       VAR_OS=bsd
14672       VAR_OS_TYPE=unix
14673       ;;
14674     *cygwin*)
14675       VAR_OS=windows
14676       VAR_OS_ENV=windows.cygwin
14677       ;;
14678     *mingw*)
14679       VAR_OS=windows
14680       VAR_OS_ENV=windows.msys
14681       ;;
14682     *aix*)
14683       VAR_OS=aix
14684       VAR_OS_TYPE=unix
14685       ;;
14686     *)
14687       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14688       ;;
14689   esac
14690 
14691 
14692   # First argument is the cpu name from the trip/quad
14693   case "$host_cpu" in
14694     x86_64)
14695       VAR_CPU=x86_64
14696       VAR_CPU_ARCH=x86
14697       VAR_CPU_BITS=64
14698       VAR_CPU_ENDIAN=little
14699       ;;
14700     i?86)
14701       VAR_CPU=x86
14702       VAR_CPU_ARCH=x86
14703       VAR_CPU_BITS=32
14704       VAR_CPU_ENDIAN=little
14705       ;;
14706     arm*)
14707       VAR_CPU=arm
14708       VAR_CPU_ARCH=arm
14709       VAR_CPU_BITS=32
14710       VAR_CPU_ENDIAN=little
14711       ;;
14712     aarch64)
14713       VAR_CPU=aarch64
14714       VAR_CPU_ARCH=aarch64
14715       VAR_CPU_BITS=64
14716       VAR_CPU_ENDIAN=little
14717       ;;
14718     powerpc)
14719       VAR_CPU=ppc
14720       VAR_CPU_ARCH=ppc
14721       VAR_CPU_BITS=32
14722       VAR_CPU_ENDIAN=big
14723       ;;
14724     powerpc64)
14725       VAR_CPU=ppc64
14726       VAR_CPU_ARCH=ppc
14727       VAR_CPU_BITS=64
14728       VAR_CPU_ENDIAN=big
14729       ;;
14730     powerpc64le)
14731       VAR_CPU=ppc64
14732       VAR_CPU_ARCH=ppc
14733       VAR_CPU_BITS=64
14734       VAR_CPU_ENDIAN=little
14735       ;;
14736     s390)
14737       VAR_CPU=s390
14738       VAR_CPU_ARCH=s390
14739       VAR_CPU_BITS=32
14740       VAR_CPU_ENDIAN=big
14741       ;;
14742     s390x)
14743       VAR_CPU=s390x
14744       VAR_CPU_ARCH=s390
14745       VAR_CPU_BITS=64
14746       VAR_CPU_ENDIAN=big
14747       ;;
14748     sparc)
14749       VAR_CPU=sparc
14750       VAR_CPU_ARCH=sparc
14751       VAR_CPU_BITS=32
14752       VAR_CPU_ENDIAN=big
14753       ;;
14754     sparcv9|sparc64)
14755       VAR_CPU=sparcv9
14756       VAR_CPU_ARCH=sparc
14757       VAR_CPU_BITS=64
14758       VAR_CPU_ENDIAN=big
14759       ;;
14760     *)
14761       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14762       ;;
14763   esac
14764 
14765   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14766   OPENJDK_TARGET_OS="$VAR_OS"
14767   if test "x$VAR_OS_TYPE" != x; then
14768     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14769   else
14770     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14771   fi
14772   if test "x$VAR_OS_ENV" != x; then
14773     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14774   else
14775     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14776   fi
14777   OPENJDK_TARGET_CPU="$VAR_CPU"
14778   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14779   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14780   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14781 
14782 
14783 
14784 
14785 
14786 
14787 
14788 
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14790 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14792 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14793 
14794 
14795 
14796 # Check whether --with-target-bits was given.
14797 if test "${with_target_bits+set}" = set; then :
14798   withval=$with_target_bits;
14799 fi
14800 
14801 
14802   # We have three types of compiles:
14803   # native  == normal compilation, target system == build system
14804   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14805   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14806   #
14807   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14808     # We're doing a proper cross-compilation
14809     COMPILE_TYPE="cross"
14810   else
14811     COMPILE_TYPE="native"
14812   fi
14813 
14814   if test "x$with_target_bits" != x; then
14815     if test "x$COMPILE_TYPE" = "xcross"; then
14816       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14817     fi
14818 
14819     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14820       # A reduced build is requested
14821       COMPILE_TYPE="reduced"
14822       OPENJDK_TARGET_CPU_BITS=32
14823       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14824         OPENJDK_TARGET_CPU=x86
14825       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14826         OPENJDK_TARGET_CPU=sparc
14827       else
14828         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14829       fi
14830     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14831       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
14832     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14833       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14834 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14835     else
14836       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14837     fi
14838   fi
14839 
14840 
14841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14842 $as_echo_n "checking compilation type... " >&6; }
14843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14844 $as_echo "$COMPILE_TYPE" >&6; }
14845 
14846 
14847   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14848     REQUIRED_OS_NAME=SunOS
14849     REQUIRED_OS_VERSION=5.10
14850   fi
14851   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14852     REQUIRED_OS_NAME=Linux
14853     REQUIRED_OS_VERSION=2.6
14854   fi
14855   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14856     REQUIRED_OS_NAME=Windows
14857     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14858       REQUIRED_OS_VERSION=5.2
14859     else
14860       REQUIRED_OS_VERSION=5.1
14861     fi
14862   fi
14863   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14864     REQUIRED_OS_NAME=Darwin
14865     REQUIRED_OS_VERSION=11.2
14866   fi
14867 
14868 
14869 
14870 
14871 
14872   # Also store the legacy naming of the cpu.
14873   # Ie i586 and amd64 instead of x86 and x86_64
14874   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14875   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14876     OPENJDK_TARGET_CPU_LEGACY="i586"
14877   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14878     # On all platforms except MacOSX replace x86_64 with amd64.
14879     OPENJDK_TARGET_CPU_LEGACY="amd64"
14880   fi
14881 
14882 
14883   # And the second legacy naming of the cpu.
14884   # Ie i386 and amd64 instead of x86 and x86_64.
14885   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14886   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14887     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14888   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14889     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14890   fi
14891 
14892 
14893   # This is the name of the cpu (but using i386 and amd64 instead of
14894   # x86 and x86_64, respectively), preceeded by a /, to be used when
14895   # locating libraries. On macosx, it's empty, though.
14896   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14897   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14898     OPENJDK_TARGET_CPU_LIBDIR=""
14899   fi
14900 
14901 
14902   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14903   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14904   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14905   OPENJDK_TARGET_CPU_ISADIR=""
14906   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14907     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14908       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14909     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14910       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14911     fi
14912   fi
14913 
14914 
14915   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14916   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14917   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14918     # On linux only, we replace x86 with i386.
14919     OPENJDK_TARGET_CPU_OSARCH="i386"
14920   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14921     # On all platforms except macosx, we replace x86_64 with amd64.
14922     OPENJDK_TARGET_CPU_OSARCH="amd64"
14923   fi
14924 
14925 
14926   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14927   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14928     OPENJDK_TARGET_CPU_JLI="i386"
14929   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14930     # On all platforms except macosx, we replace x86_64 with amd64.
14931     OPENJDK_TARGET_CPU_JLI="amd64"
14932   fi
14933   # Now setup the -D flags for building libjli.
14934   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14935   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14936     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14937       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14938     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14939       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14940     fi
14941   fi
14942 
14943 
14944   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14945       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14946   else
14947       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14948   fi
14949 
14950 
14951   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14952     A_LP64="LP64:="
14953     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14954     # unpack200.exe
14955     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14956       ADD_LP64="-D_LP64=1"
14957     fi
14958   fi
14959   LP64=$A_LP64
14960 
14961 
14962   if test "x$COMPILE_TYPE" = "xcross"; then
14963     # FIXME: ... or should this include reduced builds..?
14964     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14965   else
14966     DEFINE_CROSS_COMPILE_ARCH=""
14967   fi
14968 
14969 
14970   # ZERO_ARCHDEF is used to enable architecture-specific code
14971   case "${OPENJDK_TARGET_CPU}" in
14972     ppc)     ZERO_ARCHDEF=PPC32 ;;
14973     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14974     s390*)   ZERO_ARCHDEF=S390  ;;
14975     sparc*)  ZERO_ARCHDEF=SPARC ;;
14976     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14977     x86)     ZERO_ARCHDEF=IA32  ;;
14978     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14979   esac
14980 
14981 
14982 
14983 
14984 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14985 
14986   # Save the current directory this script was started from
14987   CURDIR="$PWD"
14988 
14989   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
14990   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
14991   # was not available at that time.
14992   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
14993   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
14994     ORIGINAL_PATH="$REWRITTEN_PATH"
14995     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
14996 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
14997   fi
14998 
14999   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15000     PATH_SEP=";"
15001 
15002   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15003   if test $SRC_ROOT_LENGTH -gt 100; then
15004     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15005   fi
15006 
15007   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15009 $as_echo_n "checking cygwin release... " >&6; }
15010     CYGWIN_VERSION=`$UNAME -r`
15011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15012 $as_echo "$CYGWIN_VERSION" >&6; }
15013     WINDOWS_ENV_VENDOR='cygwin'
15014     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15015 
15016     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15017     if test "x$CYGWIN_VERSION_OLD" != x; then
15018       { $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
15019 $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;}
15020       as_fn_error $? "Cannot continue" "$LINENO" 5
15021     fi
15022     if test "x$CYGPATH" = x; then
15023       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15024     fi
15025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15026 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15027     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15028     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15029     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15030     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15032 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15033     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15034     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15035     if test "x$test_cygdrive_prefix" = x; then
15036       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15037     fi
15038   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15040 $as_echo_n "checking msys release... " >&6; }
15041     MSYS_VERSION=`$UNAME -r`
15042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15043 $as_echo "$MSYS_VERSION" >&6; }
15044 
15045     WINDOWS_ENV_VENDOR='msys'
15046     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15047 
15048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15049 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15050     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15051     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15052 
15053   windows_path="$MSYS_ROOT_PATH"
15054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15055     unix_path=`$CYGPATH -u "$windows_path"`
15056     MSYS_ROOT_PATH="$unix_path"
15057   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15058     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15059     MSYS_ROOT_PATH="$unix_path"
15060   fi
15061 
15062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15063 $as_echo "$MSYS_ROOT_PATH" >&6; }
15064     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15065   else
15066     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15067   fi
15068 
15069   # Test if windows or unix (cygwin/msys) find is first in path.
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15071 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15072   FIND_BINARY_OUTPUT=`find --version 2>&1`
15073   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15075 $as_echo "unix style" >&6; }
15076   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15078 $as_echo "Windows" >&6; }
15079     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15080 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15081     { $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
15082 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15083     as_fn_error $? "Cannot continue" "$LINENO" 5
15084   else
15085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15086 $as_echo "unknown" >&6; }
15087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15088 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15089   fi
15090 
15091   else
15092     PATH_SEP=":"
15093   fi
15094 
15095 
15096   # We get the top-level directory from the supporting wrappers.
15097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15098 $as_echo_n "checking for top-level directory... " >&6; }
15099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15100 $as_echo "$TOPDIR" >&6; }
15101 
15102 
15103   # Save the original version of TOPDIR for string comparisons
15104   ORIGINAL_TOPDIR="$TOPDIR"
15105 
15106 
15107   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15108 
15109   # Only process if variable expands to non-empty
15110 
15111   if test "x$CURDIR" != x; then
15112     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15113 
15114   # Input might be given as Windows format, start by converting to
15115   # unix format.
15116   path="$CURDIR"
15117   new_path=`$CYGPATH -u "$path"`
15118 
15119   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15120   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15121   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15122   # "foo.exe" is OK but "foo" is an error.
15123   #
15124   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15125   # It is also a way to make sure we got the proper file name for the real test later on.
15126   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15127   if test "x$test_shortpath" = x; then
15128     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15129 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15130     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15131   fi
15132 
15133   # Call helper function which possibly converts this using DOS-style short mode.
15134   # If so, the updated path is stored in $new_path.
15135 
15136   input_path="$new_path"
15137   # Check if we need to convert this using DOS-style short mode. If the path
15138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15139   # take no chances and rewrite it.
15140   # Note: m4 eats our [], so we need to use [ and ] instead.
15141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15142   if test "x$has_forbidden_chars" != x; then
15143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15144     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15145     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15146     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15147       # Going to short mode and back again did indeed matter. Since short mode is
15148       # case insensitive, let's make it lowercase to improve readability.
15149       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15150       # Now convert it back to Unix-style (cygpath)
15151       input_path=`$CYGPATH -u "$shortmode_path"`
15152       new_path="$input_path"
15153     fi
15154   fi
15155 
15156   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15157   if test "x$test_cygdrive_prefix" = x; then
15158     # As a simple fix, exclude /usr/bin since it's not a real path.
15159     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15160       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15161       # a path prefixed by /cygdrive for fixpath to work.
15162       new_path="$CYGWIN_ROOT_PATH$input_path"
15163     fi
15164   fi
15165 
15166 
15167   if test "x$path" != "x$new_path"; then
15168     CURDIR="$new_path"
15169     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15170 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15171   fi
15172 
15173     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15174 
15175   path="$CURDIR"
15176   has_colon=`$ECHO $path | $GREP ^.:`
15177   new_path="$path"
15178   if test "x$has_colon" = x; then
15179     # Not in mixed or Windows style, start by that.
15180     new_path=`cmd //c echo $path`
15181   fi
15182 
15183 
15184   input_path="$new_path"
15185   # Check if we need to convert this using DOS-style short mode. If the path
15186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15187   # take no chances and rewrite it.
15188   # Note: m4 eats our [], so we need to use [ and ] instead.
15189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15190   if test "x$has_forbidden_chars" != x; then
15191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15192     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15193   fi
15194 
15195 
15196   windows_path="$new_path"
15197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15198     unix_path=`$CYGPATH -u "$windows_path"`
15199     new_path="$unix_path"
15200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15202     new_path="$unix_path"
15203   fi
15204 
15205   if test "x$path" != "x$new_path"; then
15206     CURDIR="$new_path"
15207     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15208 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15209   fi
15210 
15211   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15212   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15213 
15214     else
15215       # We're on a unix platform. Hooray! :)
15216       path="$CURDIR"
15217       has_space=`$ECHO "$path" | $GREP " "`
15218       if test "x$has_space" != x; then
15219         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15220 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15221         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15222       fi
15223 
15224       # Use eval to expand a potential ~
15225       eval path="$path"
15226       if test ! -f "$path" && test ! -d "$path"; then
15227         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15228       fi
15229 
15230       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15231     fi
15232   fi
15233 
15234 
15235   # Only process if variable expands to non-empty
15236 
15237   if test "x$TOPDIR" != x; then
15238     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15239 
15240   # Input might be given as Windows format, start by converting to
15241   # unix format.
15242   path="$TOPDIR"
15243   new_path=`$CYGPATH -u "$path"`
15244 
15245   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15246   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15247   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15248   # "foo.exe" is OK but "foo" is an error.
15249   #
15250   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15251   # It is also a way to make sure we got the proper file name for the real test later on.
15252   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15253   if test "x$test_shortpath" = x; then
15254     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15255 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15256     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15257   fi
15258 
15259   # Call helper function which possibly converts this using DOS-style short mode.
15260   # If so, the updated path is stored in $new_path.
15261 
15262   input_path="$new_path"
15263   # Check if we need to convert this using DOS-style short mode. If the path
15264   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15265   # take no chances and rewrite it.
15266   # Note: m4 eats our [], so we need to use [ and ] instead.
15267   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15268   if test "x$has_forbidden_chars" != x; then
15269     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15270     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15271     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15272     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15273       # Going to short mode and back again did indeed matter. Since short mode is
15274       # case insensitive, let's make it lowercase to improve readability.
15275       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15276       # Now convert it back to Unix-style (cygpath)
15277       input_path=`$CYGPATH -u "$shortmode_path"`
15278       new_path="$input_path"
15279     fi
15280   fi
15281 
15282   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15283   if test "x$test_cygdrive_prefix" = x; then
15284     # As a simple fix, exclude /usr/bin since it's not a real path.
15285     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15286       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15287       # a path prefixed by /cygdrive for fixpath to work.
15288       new_path="$CYGWIN_ROOT_PATH$input_path"
15289     fi
15290   fi
15291 
15292 
15293   if test "x$path" != "x$new_path"; then
15294     TOPDIR="$new_path"
15295     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15296 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15297   fi
15298 
15299     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15300 
15301   path="$TOPDIR"
15302   has_colon=`$ECHO $path | $GREP ^.:`
15303   new_path="$path"
15304   if test "x$has_colon" = x; then
15305     # Not in mixed or Windows style, start by that.
15306     new_path=`cmd //c echo $path`
15307   fi
15308 
15309 
15310   input_path="$new_path"
15311   # Check if we need to convert this using DOS-style short mode. If the path
15312   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15313   # take no chances and rewrite it.
15314   # Note: m4 eats our [], so we need to use [ and ] instead.
15315   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15316   if test "x$has_forbidden_chars" != x; then
15317     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15318     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15319   fi
15320 
15321 
15322   windows_path="$new_path"
15323   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15324     unix_path=`$CYGPATH -u "$windows_path"`
15325     new_path="$unix_path"
15326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15327     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15328     new_path="$unix_path"
15329   fi
15330 
15331   if test "x$path" != "x$new_path"; then
15332     TOPDIR="$new_path"
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15334 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15335   fi
15336 
15337   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15338   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15339 
15340     else
15341       # We're on a unix platform. Hooray! :)
15342       path="$TOPDIR"
15343       has_space=`$ECHO "$path" | $GREP " "`
15344       if test "x$has_space" != x; then
15345         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15346 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15347         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15348       fi
15349 
15350       # Use eval to expand a potential ~
15351       eval path="$path"
15352       if test ! -f "$path" && test ! -d "$path"; then
15353         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15354       fi
15355 
15356       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15357     fi
15358   fi
15359 
15360   # SRC_ROOT is a traditional alias for TOPDIR.
15361   SRC_ROOT=$TOPDIR
15362 
15363   # Calculate a canonical version of TOPDIR for string comparisons
15364   CANONICAL_TOPDIR=$TOPDIR
15365 
15366   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15367     # Follow a chain of symbolic links. Use readlink
15368     # where it exists, else fall back to horribly
15369     # complicated shell code.
15370     if test "x$READLINK_TESTED" != yes; then
15371       # On MacOSX there is a readlink tool with a different
15372       # purpose than the GNU readlink tool. Check the found readlink.
15373       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15374       if test "x$ISGNU" = x; then
15375         # A readlink that we do not know how to use.
15376         # Are there other non-GNU readlinks out there?
15377         READLINK_TESTED=yes
15378         READLINK=
15379       fi
15380     fi
15381 
15382     if test "x$READLINK" != x; then
15383       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15384     else
15385       # Save the current directory for restoring afterwards
15386       STARTDIR=$PWD
15387       COUNTER=0
15388       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15389       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15390       cd $sym_link_dir
15391       # Use -P flag to resolve symlinks in directories.
15392       cd `$THEPWDCMD -P`
15393       sym_link_dir=`$THEPWDCMD -P`
15394       # Resolve file symlinks
15395       while test $COUNTER -lt 20; do
15396         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15397         if test "x$ISLINK" == x; then
15398           # This is not a symbolic link! We are done!
15399           break
15400         fi
15401         # Again resolve directory symlinks since the target of the just found
15402         # link could be in a different directory
15403         cd `$DIRNAME $ISLINK`
15404         sym_link_dir=`$THEPWDCMD -P`
15405         sym_link_file=`$BASENAME $ISLINK`
15406         let COUNTER=COUNTER+1
15407       done
15408       cd $STARTDIR
15409       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15410     fi
15411   fi
15412 
15413 
15414 
15415   # Locate the directory of this script.
15416   AUTOCONF_DIR=$TOPDIR/common/autoconf
15417 
15418 
15419 # Check if it's a pure open build or if custom sources are to be used.
15420 
15421   # Check whether --enable-openjdk-only was given.
15422 if test "${enable_openjdk_only+set}" = set; then :
15423   enableval=$enable_openjdk_only;
15424 else
15425   enable_openjdk_only="no"
15426 fi
15427 
15428 
15429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15430 $as_echo_n "checking for presence of closed sources... " >&6; }
15431   if test -d "$SRC_ROOT/jdk/src/closed"; then
15432     CLOSED_SOURCE_PRESENT=yes
15433   else
15434     CLOSED_SOURCE_PRESENT=no
15435   fi
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15437 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15438 
15439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15440 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15441   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15443 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15444 
15445   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15446     OPENJDK=true
15447     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15448       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15449 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15450     fi
15451   else
15452     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15453       OPENJDK=true
15454     else
15455       OPENJDK=false
15456     fi
15457   fi
15458 
15459   if test "x$OPENJDK" = "xtrue"; then
15460     SET_OPENJDK="OPENJDK=true"
15461   fi
15462 
15463 
15464 
15465   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15466   # the IncludeCustomExtension macro.
15467 
15468 
15469 # Check whether --with-custom-make-dir was given.
15470 if test "${with_custom_make_dir+set}" = set; then :
15471   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
15472 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15473 fi
15474 
15475 
15476 
15477 
15478 # These are needed to be able to create a configuration name (and thus the output directory)
15479 
15480   ###############################################################################
15481   #
15482   # Check which variant of the JDK that we want to build.
15483   # Currently we have:
15484   #    normal:   standard edition
15485   # but the custom make system may add other variants
15486   #
15487   # Effectively the JDK variant gives a name to a specific set of
15488   # modules to compile into the JDK. In the future, these modules
15489   # might even be Jigsaw modules.
15490   #
15491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15492 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15493 
15494 # Check whether --with-jdk-variant was given.
15495 if test "${with_jdk_variant+set}" = set; then :
15496   withval=$with_jdk_variant;
15497 fi
15498 
15499 
15500   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15501     JDK_VARIANT="normal"
15502   else
15503     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15504   fi
15505 
15506 
15507 
15508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15509 $as_echo "$JDK_VARIANT" >&6; }
15510 
15511 
15512 ###############################################################################
15513 #
15514 # Check which interpreter of the JVM we want to build.
15515 # Currently we have:
15516 #    template: Template interpreter (the default)
15517 #    cpp     : C++ interpreter
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15519 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15520 
15521 # Check whether --with-jvm-interpreter was given.
15522 if test "${with_jvm_interpreter+set}" = set; then :
15523   withval=$with_jvm_interpreter;
15524 fi
15525 
15526 
15527 if test "x$with_jvm_interpreter" = x; then
15528      with_jvm_interpreter="template"
15529 fi
15530 
15531 JVM_INTERPRETER="$with_jvm_interpreter"
15532 
15533 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15534    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15535 fi
15536 
15537 
15538 
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15540 $as_echo "$with_jvm_interpreter" >&6; }
15541 
15542 
15543 
15544   ###############################################################################
15545   #
15546   # Check which variants of the JVM that we want to build.
15547   # Currently we have:
15548   #    server: normal interpreter and a tiered C1/C2 compiler
15549   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15550   #    minimal1: reduced form of client with optional VM services and features stripped out
15551   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15552   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15553   #    zero: no machine code interpreter, no compiler
15554   #    zeroshark: zero interpreter and shark/llvm compiler backend
15555 #    core: interpreter only, no compiler (only works on some platforms)
15556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15557 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15558 
15559 # Check whether --with-jvm-variants was given.
15560 if test "${with_jvm_variants+set}" = set; then :
15561   withval=$with_jvm_variants;
15562 fi
15563 
15564 
15565   if test "x$with_jvm_variants" = x; then
15566     with_jvm_variants="server"
15567   fi
15568 
15569   JVM_VARIANTS=",$with_jvm_variants,"
15570   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,//'`
15571 
15572   if test "x$TEST_VARIANTS" != "x,"; then
15573      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15574   fi
15575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15576 $as_echo "$with_jvm_variants" >&6; }
15577 
15578   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15579   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15580   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15581   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15582   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15583   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15584   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15585 
15586   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15587     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15588       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15589     fi
15590   fi
15591   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15592     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15593       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15594     fi
15595   fi
15596   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15597     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15598       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15599     fi
15600   fi
15601 
15602   # Replace the commas with AND for use in the build directory name.
15603   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15604   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/'`
15605   if test "x$COUNT_VARIANTS" != "x,1"; then
15606     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15607   else
15608     BUILDING_MULTIPLE_JVM_VARIANTS=no
15609   fi
15610 
15611 
15612 
15613 
15614 
15615 
15616 
15617 
15618 
15619 
15620   INCLUDE_SA=true
15621   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15622     INCLUDE_SA=false
15623   fi
15624   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15625     INCLUDE_SA=false
15626   fi
15627   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15628     INCLUDE_SA=false
15629   fi
15630   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15631     INCLUDE_SA=false
15632   fi
15633 
15634 
15635   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15636     MACOSX_UNIVERSAL="true"
15637   fi
15638 
15639 
15640 
15641 
15642   ###############################################################################
15643   #
15644   # Set the debug level
15645   #    release: no debug information, all optimizations, no asserts.
15646   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15647   #    fastdebug: debug information (-g), all optimizations, all asserts
15648   #    slowdebug: debug information (-g), no optimizations, all asserts
15649   #
15650   DEBUG_LEVEL="release"
15651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15652 $as_echo_n "checking which debug level to use... " >&6; }
15653   # Check whether --enable-debug was given.
15654 if test "${enable_debug+set}" = set; then :
15655   enableval=$enable_debug;
15656         ENABLE_DEBUG="${enableval}"
15657         DEBUG_LEVEL="fastdebug"
15658 
15659 else
15660   ENABLE_DEBUG="no"
15661 fi
15662 
15663 
15664 
15665 # Check whether --with-debug-level was given.
15666 if test "${with_debug_level+set}" = set; then :
15667   withval=$with_debug_level;
15668         DEBUG_LEVEL="${withval}"
15669         if test "x$ENABLE_DEBUG" = xyes; then
15670           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15671         fi
15672 
15673 fi
15674 
15675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15676 $as_echo "$DEBUG_LEVEL" >&6; }
15677 
15678   if test "x$DEBUG_LEVEL" != xrelease && \
15679       test "x$DEBUG_LEVEL" != xoptimized && \
15680       test "x$DEBUG_LEVEL" != xfastdebug && \
15681       test "x$DEBUG_LEVEL" != xslowdebug; then
15682     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15683   fi
15684 
15685 
15686   ###############################################################################
15687   #
15688   # Setup legacy vars/targets and new vars to deal with different debug levels.
15689   #
15690 
15691   case $DEBUG_LEVEL in
15692     release )
15693       VARIANT="OPT"
15694       FASTDEBUG="false"
15695       DEBUG_CLASSFILES="false"
15696       BUILD_VARIANT_RELEASE=""
15697       HOTSPOT_DEBUG_LEVEL="product"
15698       HOTSPOT_EXPORT="product"
15699       ;;
15700     fastdebug )
15701       VARIANT="DBG"
15702       FASTDEBUG="true"
15703       DEBUG_CLASSFILES="true"
15704       BUILD_VARIANT_RELEASE="-fastdebug"
15705       HOTSPOT_DEBUG_LEVEL="fastdebug"
15706       HOTSPOT_EXPORT="fastdebug"
15707       ;;
15708     slowdebug )
15709       VARIANT="DBG"
15710       FASTDEBUG="false"
15711       DEBUG_CLASSFILES="true"
15712       BUILD_VARIANT_RELEASE="-debug"
15713       HOTSPOT_DEBUG_LEVEL="debug"
15714       HOTSPOT_EXPORT="debug"
15715       ;;
15716     optimized )
15717       VARIANT="OPT"
15718       FASTDEBUG="false"
15719       DEBUG_CLASSFILES="false"
15720       BUILD_VARIANT_RELEASE="-optimized"
15721       HOTSPOT_DEBUG_LEVEL="optimized"
15722       HOTSPOT_EXPORT="optimized"
15723       ;;
15724   esac
15725 
15726   # The debug level 'optimized' is a little special because it is currently only
15727   # applicable to the HotSpot build where it means to build a completely
15728   # optimized version of the VM without any debugging code (like for the
15729   # 'release' debug level which is called 'product' in the HotSpot build) but
15730   # with the exception that it can contain additional code which is otherwise
15731   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15732   # test new and/or experimental features which are not intended for customer
15733   # shipment. Because these new features need to be tested and benchmarked in
15734   # real world scenarios, we want to build the containing JDK at the 'release'
15735   # debug level.
15736   if test "x$DEBUG_LEVEL" = xoptimized; then
15737     DEBUG_LEVEL="release"
15738   fi
15739 
15740   #####
15741   # Generate the legacy makefile targets for hotspot.
15742   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15743   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15744   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15745   # But until then ...
15746   HOTSPOT_TARGET=""
15747 
15748   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15749     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15750   fi
15751 
15752   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15753     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15754   fi
15755 
15756   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15757     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15758   fi
15759 
15760   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15761     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15762   fi
15763 
15764   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15765     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15766   fi
15767 
15768   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15769     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15770   fi
15771 
15772   if test "x$JVM_VARIANT_CORE" = xtrue; then
15773     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15774   fi
15775 
15776   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15777 
15778   # On Macosx universal binaries are produced, but they only contain
15779   # 64 bit intel. This invalidates control of which jvms are built
15780   # from configure, but only server is valid anyway. Fix this
15781   # when hotspot makefiles are rewritten.
15782   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15783     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15784   fi
15785 
15786   #####
15787 
15788 
15789 
15790 
15791 
15792 
15793 
15794 
15795 # With basic setup done, call the custom early hook.
15796 
15797 
15798 # Check if we have devkits, extra paths or sysroot set.
15799 
15800 
15801 # Check whether --with-devkit was given.
15802 if test "${with_devkit+set}" = set; then :
15803   withval=$with_devkit;
15804 
15805   # Only process if variable expands to non-empty
15806 
15807   if test "x$with_devkit" != x; then
15808     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15809 
15810   # Input might be given as Windows format, start by converting to
15811   # unix format.
15812   path="$with_devkit"
15813   new_path=`$CYGPATH -u "$path"`
15814 
15815   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15816   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15817   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15818   # "foo.exe" is OK but "foo" is an error.
15819   #
15820   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15821   # It is also a way to make sure we got the proper file name for the real test later on.
15822   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15823   if test "x$test_shortpath" = x; then
15824     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15825 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15826     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15827   fi
15828 
15829   # Call helper function which possibly converts this using DOS-style short mode.
15830   # If so, the updated path is stored in $new_path.
15831 
15832   input_path="$new_path"
15833   # Check if we need to convert this using DOS-style short mode. If the path
15834   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15835   # take no chances and rewrite it.
15836   # Note: m4 eats our [], so we need to use [ and ] instead.
15837   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15838   if test "x$has_forbidden_chars" != x; then
15839     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15840     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15841     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15842     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15843       # Going to short mode and back again did indeed matter. Since short mode is
15844       # case insensitive, let's make it lowercase to improve readability.
15845       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15846       # Now convert it back to Unix-style (cygpath)
15847       input_path=`$CYGPATH -u "$shortmode_path"`
15848       new_path="$input_path"
15849     fi
15850   fi
15851 
15852   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15853   if test "x$test_cygdrive_prefix" = x; then
15854     # As a simple fix, exclude /usr/bin since it's not a real path.
15855     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15856       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15857       # a path prefixed by /cygdrive for fixpath to work.
15858       new_path="$CYGWIN_ROOT_PATH$input_path"
15859     fi
15860   fi
15861 
15862 
15863   if test "x$path" != "x$new_path"; then
15864     with_devkit="$new_path"
15865     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15866 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15867   fi
15868 
15869     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15870 
15871   path="$with_devkit"
15872   has_colon=`$ECHO $path | $GREP ^.:`
15873   new_path="$path"
15874   if test "x$has_colon" = x; then
15875     # Not in mixed or Windows style, start by that.
15876     new_path=`cmd //c echo $path`
15877   fi
15878 
15879 
15880   input_path="$new_path"
15881   # Check if we need to convert this using DOS-style short mode. If the path
15882   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15883   # take no chances and rewrite it.
15884   # Note: m4 eats our [], so we need to use [ and ] instead.
15885   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15886   if test "x$has_forbidden_chars" != x; then
15887     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15888     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15889   fi
15890 
15891 
15892   windows_path="$new_path"
15893   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15894     unix_path=`$CYGPATH -u "$windows_path"`
15895     new_path="$unix_path"
15896   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15897     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15898     new_path="$unix_path"
15899   fi
15900 
15901   if test "x$path" != "x$new_path"; then
15902     with_devkit="$new_path"
15903     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15904 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15905   fi
15906 
15907   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15908   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15909 
15910     else
15911       # We're on a unix platform. Hooray! :)
15912       path="$with_devkit"
15913       has_space=`$ECHO "$path" | $GREP " "`
15914       if test "x$has_space" != x; then
15915         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15916 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15917         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15918       fi
15919 
15920       # Use eval to expand a potential ~
15921       eval path="$path"
15922       if test ! -f "$path" && test ! -d "$path"; then
15923         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15924       fi
15925 
15926       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15927     fi
15928   fi
15929 
15930         DEVKIT_ROOT="$with_devkit"
15931         # Check for a meta data info file in the root of the devkit
15932         if test -f "$DEVKIT_ROOT/devkit.info"; then
15933           . $DEVKIT_ROOT/devkit.info
15934           # This potentially sets the following:
15935           # A descriptive name of the devkit
15936 
15937   if test "x$DEVKIT_NAME" = x; then
15938     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15939   fi
15940 
15941           # Corresponds to --with-extra-path
15942 
15943   if test "x$DEVKIT_EXTRA_PATH" = x; then
15944     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15945   fi
15946 
15947           # Corresponds to --with-toolchain-path
15948 
15949   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15950     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15951   fi
15952 
15953           # Corresponds to --with-sysroot
15954 
15955   if test "x$DEVKIT_SYSROOT" = x; then
15956     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
15957   fi
15958 
15959 
15960           # Identifies the Visual Studio version in the devkit
15961 
15962   if test "x$DEVKIT_VS_VERSION" = x; then
15963     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
15964   fi
15965 
15966           # The Visual Studio include environment variable
15967 
15968   if test "x$DEVKIT_VS_INCLUDE" = x; then
15969     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
15970   fi
15971 
15972           # The Visual Studio lib environment variable
15973 
15974   if test "x$DEVKIT_VS_LIB" = x; then
15975     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
15976   fi
15977 
15978           # Corresponds to --with-msvcr-dll
15979 
15980   if test "x$DEVKIT_MSVCR_DLL" = x; then
15981     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
15982   fi
15983 
15984           # Corresponds to --with-msvcp-dll
15985 
15986   if test "x$DEVKIT_MSVCP_DLL" = x; then
15987     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
15988   fi
15989 
15990         fi
15991 
15992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
15993 $as_echo_n "checking for devkit... " >&6; }
15994         if test "x$DEVKIT_NAME" != x; then
15995           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
15996 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
15997         else
15998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
15999 $as_echo "$DEVKIT_ROOT" >&6; }
16000         fi
16001 
16002 
16003   if test "x$DEVKIT_EXTRA_PATH" != x; then
16004     if test "x$EXTRA_PATH" = x; then
16005       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16006     else
16007       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16008     fi
16009   fi
16010 
16011 
16012         # Fallback default of just /bin if DEVKIT_PATH is not defined
16013         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16014           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16015         fi
16016 
16017   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16018     if test "x$TOOLCHAIN_PATH" = x; then
16019       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16020     else
16021       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16022     fi
16023   fi
16024 
16025 
16026         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16027         # places for backwards compatiblity.
16028         if test "x$DEVKIT_SYSROOT" != x; then
16029           SYSROOT="$DEVKIT_SYSROOT"
16030         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16031           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16032         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16033           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16034         fi
16035 
16036 
16037 fi
16038 
16039 
16040   # You can force the sysroot if the sysroot encoded into the compiler tools
16041   # is not correct.
16042 
16043 # Check whether --with-sys-root was given.
16044 if test "${with_sys_root+set}" = set; then :
16045   withval=$with_sys_root; SYSROOT=$with_sys_root
16046 
16047 fi
16048 
16049 
16050 
16051 # Check whether --with-sysroot was given.
16052 if test "${with_sysroot+set}" = set; then :
16053   withval=$with_sysroot; SYSROOT=$with_sysroot
16054 
16055 fi
16056 
16057 
16058 
16059 # Check whether --with-tools-dir was given.
16060 if test "${with_tools_dir+set}" = set; then :
16061   withval=$with_tools_dir;
16062   if test "x$with_tools_dir" != x; then
16063     if test "x$TOOLCHAIN_PATH" = x; then
16064       TOOLCHAIN_PATH="$with_tools_dir"
16065     else
16066       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16067     fi
16068   fi
16069 
16070 
16071 fi
16072 
16073 
16074 
16075 # Check whether --with-toolchain-path was given.
16076 if test "${with_toolchain_path+set}" = set; then :
16077   withval=$with_toolchain_path;
16078   if test "x$with_toolchain_path" != x; then
16079     if test "x$TOOLCHAIN_PATH" = x; then
16080       TOOLCHAIN_PATH="$with_toolchain_path"
16081     else
16082       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16083     fi
16084   fi
16085 
16086 
16087 fi
16088 
16089 
16090 
16091 # Check whether --with-extra-path was given.
16092 if test "${with_extra_path+set}" = set; then :
16093   withval=$with_extra_path;
16094   if test "x$with_extra_path" != x; then
16095     if test "x$EXTRA_PATH" = x; then
16096       EXTRA_PATH="$with_extra_path"
16097     else
16098       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16099     fi
16100   fi
16101 
16102 
16103 fi
16104 
16105 
16106   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16107     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16108     # If not, detect if Xcode is installed by running xcodebuild -version
16109     # if no Xcode installed, xcodebuild exits with 1
16110     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16111     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16112       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16113       # fall back on the stub binary in /usr/bin/xcodebuild
16114       # Extract the first word of "xcodebuild", so it can be a program name with args.
16115 set dummy xcodebuild; ac_word=$2
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16117 $as_echo_n "checking for $ac_word... " >&6; }
16118 if ${ac_cv_path_XCODEBUILD+:} false; then :
16119   $as_echo_n "(cached) " >&6
16120 else
16121   case $XCODEBUILD in
16122   [\\/]* | ?:[\\/]*)
16123   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16124   ;;
16125   *)
16126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16127 for as_dir in $TOOLCHAIN_PATH
16128 do
16129   IFS=$as_save_IFS
16130   test -z "$as_dir" && as_dir=.
16131     for ac_exec_ext in '' $ac_executable_extensions; do
16132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16133     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16135     break 2
16136   fi
16137 done
16138   done
16139 IFS=$as_save_IFS
16140 
16141   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16142   ;;
16143 esac
16144 fi
16145 XCODEBUILD=$ac_cv_path_XCODEBUILD
16146 if test -n "$XCODEBUILD"; then
16147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16148 $as_echo "$XCODEBUILD" >&6; }
16149 else
16150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16152 fi
16153 
16154 
16155     else
16156       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16157       # when only the command line tools are installed there are no SDKs, so headers
16158       # are copied into the system frameworks
16159       XCODEBUILD=
16160 
16161     fi
16162 
16163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16164 $as_echo_n "checking for sdk name... " >&6; }
16165 
16166 # Check whether --with-sdk-name was given.
16167 if test "${with_sdk_name+set}" = set; then :
16168   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16169 
16170 fi
16171 
16172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16173 $as_echo "$SDKNAME" >&6; }
16174 
16175     # if toolchain path is specified then don't rely on system headers, they may not compile
16176     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16177     test -z "$TOOLCHAIN_PATH" && \
16178       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16179 
16180     if test -z "$SYSROOT"; then
16181       if test -n "$XCODEBUILD"; then
16182         # if we don't have system headers, use default SDK name (last resort)
16183         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16184           SDKNAME=${SDKNAME:-macosx}
16185         fi
16186 
16187         if test -n "$SDKNAME"; then
16188           # Call xcodebuild to determine SYSROOT
16189           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16190         fi
16191       else
16192         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16193           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
16194         fi
16195       fi
16196     else
16197       # warn user if --with-sdk-name was also set
16198       if test -n "$with_sdk_name"; then
16199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16200 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16201       fi
16202     fi
16203 
16204     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16205       # If no system framework headers, then SYSROOT must be set, or we won't build
16206       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
16207     fi
16208 
16209     # Perform a basic sanity test
16210     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16211       if test -z "$SYSROOT"; then
16212         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
16213       else
16214         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16215       fi
16216     fi
16217 
16218     # set SDKROOT too, Xcode tools will pick it up
16219     SDKROOT=$SYSROOT
16220 
16221   fi
16222 
16223   # Prepend the extra path to the global path
16224 
16225   if test "x$EXTRA_PATH" != x; then
16226     if test "x$PATH" = x; then
16227       PATH="$EXTRA_PATH"
16228     else
16229       PATH="$EXTRA_PATH:$PATH"
16230     fi
16231   fi
16232 
16233 
16234   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16235     # Add extra search paths on solaris for utilities like ar and as etc...
16236     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16237   fi
16238 
16239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16240 $as_echo_n "checking for sysroot... " >&6; }
16241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16242 $as_echo "$SYSROOT" >&6; }
16243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16244 $as_echo_n "checking for toolchain path... " >&6; }
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16246 $as_echo "$TOOLCHAIN_PATH" >&6; }
16247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16248 $as_echo_n "checking for extra path... " >&6; }
16249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16250 $as_echo "$EXTRA_PATH" >&6; }
16251 
16252 
16253 # To properly create a configuration name, we need to have the OpenJDK target
16254 # and options (variants and debug level) parsed.
16255 
16256 
16257 
16258 # Check whether --with-conf-name was given.
16259 if test "${with_conf_name+set}" = set; then :
16260   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16261 fi
16262 
16263 
16264   # Test from where we are running configure, in or outside of src root.
16265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16266 $as_echo_n "checking where to store configuration... " >&6; }
16267   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16268       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16269       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16270     # We are running configure from the src root.
16271     # Create a default ./build/target-variant-debuglevel output root.
16272     if test "x${CONF_NAME}" = x; then
16273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16274 $as_echo "in default location" >&6; }
16275       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16276     else
16277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16278 $as_echo "in build directory with custom name" >&6; }
16279     fi
16280     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16281     $MKDIR -p "$OUTPUT_ROOT"
16282     if test ! -d "$OUTPUT_ROOT"; then
16283       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16284     fi
16285   else
16286     # We are running configure from outside of the src dir.
16287     # Then use the current directory as output dir!
16288     # If configuration is situated in normal build directory, just use the build
16289     # directory name as configuration name, otherwise use the complete path.
16290     if test "x${CONF_NAME}" = x; then
16291       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16292     fi
16293     OUTPUT_ROOT="$CURDIR"
16294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16295 $as_echo "in current directory" >&6; }
16296 
16297     # WARNING: This might be a bad thing to do. You need to be sure you want to
16298     # have a configuration in this directory. Do some sanity checks!
16299 
16300     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16301       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16302       # other files
16303       files_present=`$LS $OUTPUT_ROOT`
16304       # Configure has already touched config.log and confdefs.h in the current dir when this check
16305       # is performed.
16306       filtered_files=`$ECHO "$files_present" \
16307           | $SED -e 's/config.log//g' \
16308               -e 's/configure.log//g' \
16309               -e 's/confdefs.h//g' \
16310               -e 's/ //g' \
16311           | $TR -d '\n'`
16312       if test "x$filtered_files" != x; then
16313         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16314 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16315         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16316 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16317         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16318 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16319         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16320 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16321         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16322 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16323         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16324 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16325         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16326 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16327         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16328       fi
16329     fi
16330   fi
16331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16332 $as_echo_n "checking what configuration name to use... " >&6; }
16333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16334 $as_echo "$CONF_NAME" >&6; }
16335 
16336 
16337   # Only process if variable expands to non-empty
16338 
16339   if test "x$OUTPUT_ROOT" != x; then
16340     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16341 
16342   # Input might be given as Windows format, start by converting to
16343   # unix format.
16344   path="$OUTPUT_ROOT"
16345   new_path=`$CYGPATH -u "$path"`
16346 
16347   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16348   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16349   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16350   # "foo.exe" is OK but "foo" is an error.
16351   #
16352   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16353   # It is also a way to make sure we got the proper file name for the real test later on.
16354   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16355   if test "x$test_shortpath" = x; then
16356     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16357 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16358     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16359   fi
16360 
16361   # Call helper function which possibly converts this using DOS-style short mode.
16362   # If so, the updated path is stored in $new_path.
16363 
16364   input_path="$new_path"
16365   # Check if we need to convert this using DOS-style short mode. If the path
16366   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16367   # take no chances and rewrite it.
16368   # Note: m4 eats our [], so we need to use [ and ] instead.
16369   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16370   if test "x$has_forbidden_chars" != x; then
16371     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16372     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16373     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16374     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16375       # Going to short mode and back again did indeed matter. Since short mode is
16376       # case insensitive, let's make it lowercase to improve readability.
16377       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16378       # Now convert it back to Unix-style (cygpath)
16379       input_path=`$CYGPATH -u "$shortmode_path"`
16380       new_path="$input_path"
16381     fi
16382   fi
16383 
16384   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16385   if test "x$test_cygdrive_prefix" = x; then
16386     # As a simple fix, exclude /usr/bin since it's not a real path.
16387     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16388       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16389       # a path prefixed by /cygdrive for fixpath to work.
16390       new_path="$CYGWIN_ROOT_PATH$input_path"
16391     fi
16392   fi
16393 
16394 
16395   if test "x$path" != "x$new_path"; then
16396     OUTPUT_ROOT="$new_path"
16397     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16398 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16399   fi
16400 
16401     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16402 
16403   path="$OUTPUT_ROOT"
16404   has_colon=`$ECHO $path | $GREP ^.:`
16405   new_path="$path"
16406   if test "x$has_colon" = x; then
16407     # Not in mixed or Windows style, start by that.
16408     new_path=`cmd //c echo $path`
16409   fi
16410 
16411 
16412   input_path="$new_path"
16413   # Check if we need to convert this using DOS-style short mode. If the path
16414   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16415   # take no chances and rewrite it.
16416   # Note: m4 eats our [], so we need to use [ and ] instead.
16417   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16418   if test "x$has_forbidden_chars" != x; then
16419     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16420     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16421   fi
16422 
16423 
16424   windows_path="$new_path"
16425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16426     unix_path=`$CYGPATH -u "$windows_path"`
16427     new_path="$unix_path"
16428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16429     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16430     new_path="$unix_path"
16431   fi
16432 
16433   if test "x$path" != "x$new_path"; then
16434     OUTPUT_ROOT="$new_path"
16435     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16436 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16437   fi
16438 
16439   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16440   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16441 
16442     else
16443       # We're on a unix platform. Hooray! :)
16444       path="$OUTPUT_ROOT"
16445       has_space=`$ECHO "$path" | $GREP " "`
16446       if test "x$has_space" != x; then
16447         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16448 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16449         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16450       fi
16451 
16452       # Use eval to expand a potential ~
16453       eval path="$path"
16454       if test ! -f "$path" && test ! -d "$path"; then
16455         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16456       fi
16457 
16458       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16459     fi
16460   fi
16461 
16462 
16463   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16464   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16465 
16466   SPEC=$OUTPUT_ROOT/spec.gmk
16467 
16468   CONF_NAME=$CONF_NAME
16469 
16470   OUTPUT_ROOT=$OUTPUT_ROOT
16471 
16472 
16473 
16474   # The spec.gmk file contains all variables for the make system.
16475   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16476 
16477   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16478   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16479 
16480   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16481   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16482 
16483   # The compare.sh is used to compare the build output to other builds.
16484   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16485 
16486   # The generated Makefile knows where the spec.gmk is and where the source is.
16487   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16488   # which will look for generated configurations
16489   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16490 
16491 
16492 
16493 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16494 
16495   for ac_prog in apt-get yum port pkgutil pkgadd
16496 do
16497   # Extract the first word of "$ac_prog", so it can be a program name with args.
16498 set dummy $ac_prog; ac_word=$2
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16500 $as_echo_n "checking for $ac_word... " >&6; }
16501 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16502   $as_echo_n "(cached) " >&6
16503 else
16504   if test -n "$PKGHANDLER"; then
16505   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16506 else
16507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16508 for as_dir in $PATH
16509 do
16510   IFS=$as_save_IFS
16511   test -z "$as_dir" && as_dir=.
16512     for ac_exec_ext in '' $ac_executable_extensions; do
16513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16514     ac_cv_prog_PKGHANDLER="$ac_prog"
16515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16516     break 2
16517   fi
16518 done
16519   done
16520 IFS=$as_save_IFS
16521 
16522 fi
16523 fi
16524 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16525 if test -n "$PKGHANDLER"; then
16526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16527 $as_echo "$PKGHANDLER" >&6; }
16528 else
16529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16530 $as_echo "no" >&6; }
16531 fi
16532 
16533 
16534   test -n "$PKGHANDLER" && break
16535 done
16536 
16537 
16538 
16539 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16540 
16541 
16542 
16543   # Publish this variable in the help.
16544 
16545 
16546   if [ -z "${MAKE+x}" ]; then
16547     # The variable is not set by user, try to locate tool using the code snippet
16548 
16549     # Try our hardest to locate a correct version of GNU make
16550     for ac_prog in gmake
16551 do
16552   # Extract the first word of "$ac_prog", so it can be a program name with args.
16553 set dummy $ac_prog; ac_word=$2
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16555 $as_echo_n "checking for $ac_word... " >&6; }
16556 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16557   $as_echo_n "(cached) " >&6
16558 else
16559   case $CHECK_GMAKE in
16560   [\\/]* | ?:[\\/]*)
16561   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16562   ;;
16563   *)
16564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16565 for as_dir in $PATH
16566 do
16567   IFS=$as_save_IFS
16568   test -z "$as_dir" && as_dir=.
16569     for ac_exec_ext in '' $ac_executable_extensions; do
16570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16571     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16573     break 2
16574   fi
16575 done
16576   done
16577 IFS=$as_save_IFS
16578 
16579   ;;
16580 esac
16581 fi
16582 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16583 if test -n "$CHECK_GMAKE"; then
16584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16585 $as_echo "$CHECK_GMAKE" >&6; }
16586 else
16587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16588 $as_echo "no" >&6; }
16589 fi
16590 
16591 
16592   test -n "$CHECK_GMAKE" && break
16593 done
16594 
16595 
16596   MAKE_CANDIDATE=""$CHECK_GMAKE""
16597   DESCRIPTION="gmake in PATH"
16598 
16599   # On Cygwin, we require a newer version of make than on other platforms
16600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16601     MAKE_VERSION_EXPR="-e 4\."
16602     MAKE_REQUIRED_VERSION="4.0"
16603    else
16604     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16605     MAKE_REQUIRED_VERSION="3.81"
16606   fi
16607 
16608   if test "x$MAKE_CANDIDATE" != x; then
16609     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16610 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16611     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16612     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16613     if test "x$IS_GNU_MAKE" = x; then
16614       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16615 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16616     else
16617       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16618       if test "x$IS_MODERN_MAKE" = x; then
16619         { $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
16620 $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;}
16621       else
16622         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16623           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16624             MAKE_EXPECTED_ENV='cygwin'
16625           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16626             MAKE_EXPECTED_ENV='msys'
16627           else
16628             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16629           fi
16630           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16631           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16632         else
16633           # Not relevant for non-Windows
16634           IS_MAKE_CORRECT_ENV=true
16635         fi
16636         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16637           { $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
16638 $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;}
16639         else
16640           FOUND_MAKE=$MAKE_CANDIDATE
16641 
16642   # Only process if variable expands to non-empty
16643 
16644   if test "x$FOUND_MAKE" != x; then
16645     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16646 
16647   # First separate the path from the arguments. This will split at the first
16648   # space.
16649   complete="$FOUND_MAKE"
16650   path="${complete%% *}"
16651   tmp="$complete EOL"
16652   arguments="${tmp#* }"
16653 
16654   # Input might be given as Windows format, start by converting to
16655   # unix format.
16656   new_path=`$CYGPATH -u "$path"`
16657 
16658   # Now try to locate executable using which
16659   new_path=`$WHICH "$new_path" 2> /dev/null`
16660   # bat and cmd files are not always considered executable in cygwin causing which
16661   # to not find them
16662   if test "x$new_path" = x \
16663       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16664       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16665     new_path=`$CYGPATH -u "$path"`
16666   fi
16667   if test "x$new_path" = x; then
16668     # Oops. Which didn't find the executable.
16669     # The splitting of arguments from the executable at a space might have been incorrect,
16670     # since paths with space are more likely in Windows. Give it another try with the whole
16671     # argument.
16672     path="$complete"
16673     arguments="EOL"
16674     new_path=`$CYGPATH -u "$path"`
16675     new_path=`$WHICH "$new_path" 2> /dev/null`
16676     # bat and cmd files are not always considered executable in cygwin causing which
16677     # to not find them
16678     if test "x$new_path" = x \
16679         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16680         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16681       new_path=`$CYGPATH -u "$path"`
16682     fi
16683     if test "x$new_path" = x; then
16684       # It's still not found. Now this is an unrecoverable error.
16685       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16687       has_space=`$ECHO "$complete" | $GREP " "`
16688       if test "x$has_space" != x; then
16689         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16691       fi
16692       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16693     fi
16694   fi
16695 
16696   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16697   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16698   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16699   # "foo.exe" is OK but "foo" is an error.
16700   #
16701   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16702   # It is also a way to make sure we got the proper file name for the real test later on.
16703   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16704   if test "x$test_shortpath" = x; then
16705     # Short path failed, file does not exist as specified.
16706     # Try adding .exe or .cmd
16707     if test -f "${new_path}.exe"; then
16708       input_to_shortpath="${new_path}.exe"
16709     elif test -f "${new_path}.cmd"; then
16710       input_to_shortpath="${new_path}.cmd"
16711     else
16712       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16713 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16714       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16715 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16716       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16717     fi
16718   else
16719     input_to_shortpath="$new_path"
16720   fi
16721 
16722   # Call helper function which possibly converts this using DOS-style short mode.
16723   # If so, the updated path is stored in $new_path.
16724   new_path="$input_to_shortpath"
16725 
16726   input_path="$input_to_shortpath"
16727   # Check if we need to convert this using DOS-style short mode. If the path
16728   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16729   # take no chances and rewrite it.
16730   # Note: m4 eats our [], so we need to use [ and ] instead.
16731   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16732   if test "x$has_forbidden_chars" != x; then
16733     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16734     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16735     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16736     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16737       # Going to short mode and back again did indeed matter. Since short mode is
16738       # case insensitive, let's make it lowercase to improve readability.
16739       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16740       # Now convert it back to Unix-style (cygpath)
16741       input_path=`$CYGPATH -u "$shortmode_path"`
16742       new_path="$input_path"
16743     fi
16744   fi
16745 
16746   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16747   if test "x$test_cygdrive_prefix" = x; then
16748     # As a simple fix, exclude /usr/bin since it's not a real path.
16749     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16750       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16751       # a path prefixed by /cygdrive for fixpath to work.
16752       new_path="$CYGWIN_ROOT_PATH$input_path"
16753     fi
16754   fi
16755 
16756   # remove trailing .exe if any
16757   new_path="${new_path/%.exe/}"
16758 
16759     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16760 
16761   # First separate the path from the arguments. This will split at the first
16762   # space.
16763   complete="$FOUND_MAKE"
16764   path="${complete%% *}"
16765   tmp="$complete EOL"
16766   arguments="${tmp#* }"
16767 
16768   # Input might be given as Windows format, start by converting to
16769   # unix format.
16770   new_path="$path"
16771 
16772   windows_path="$new_path"
16773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16774     unix_path=`$CYGPATH -u "$windows_path"`
16775     new_path="$unix_path"
16776   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16777     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16778     new_path="$unix_path"
16779   fi
16780 
16781 
16782   # Now try to locate executable using which
16783   new_path=`$WHICH "$new_path" 2> /dev/null`
16784 
16785   if test "x$new_path" = x; then
16786     # Oops. Which didn't find the executable.
16787     # The splitting of arguments from the executable at a space might have been incorrect,
16788     # since paths with space are more likely in Windows. Give it another try with the whole
16789     # argument.
16790     path="$complete"
16791     arguments="EOL"
16792     new_path="$path"
16793 
16794   windows_path="$new_path"
16795   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16796     unix_path=`$CYGPATH -u "$windows_path"`
16797     new_path="$unix_path"
16798   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16799     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16800     new_path="$unix_path"
16801   fi
16802 
16803 
16804     new_path=`$WHICH "$new_path" 2> /dev/null`
16805     # bat and cmd files are not always considered executable in MSYS causing which
16806     # to not find them
16807     if test "x$new_path" = x \
16808         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16809         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16810       new_path="$path"
16811 
16812   windows_path="$new_path"
16813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16814     unix_path=`$CYGPATH -u "$windows_path"`
16815     new_path="$unix_path"
16816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16818     new_path="$unix_path"
16819   fi
16820 
16821     fi
16822 
16823     if test "x$new_path" = x; then
16824       # It's still not found. Now this is an unrecoverable error.
16825       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16826 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16827       has_space=`$ECHO "$complete" | $GREP " "`
16828       if test "x$has_space" != x; then
16829         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16830 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16831       fi
16832       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16833     fi
16834   fi
16835 
16836   # Now new_path has a complete unix path to the binary
16837   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16838     # Keep paths in /bin as-is, but remove trailing .exe if any
16839     new_path="${new_path/%.exe/}"
16840     # Do not save /bin paths to all_fixpath_prefixes!
16841   else
16842     # Not in mixed or Windows style, start by that.
16843     new_path=`cmd //c echo $new_path`
16844 
16845   input_path="$new_path"
16846   # Check if we need to convert this using DOS-style short mode. If the path
16847   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16848   # take no chances and rewrite it.
16849   # Note: m4 eats our [], so we need to use [ and ] instead.
16850   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16851   if test "x$has_forbidden_chars" != x; then
16852     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16853     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16854   fi
16855 
16856     # Output is in $new_path
16857 
16858   windows_path="$new_path"
16859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16860     unix_path=`$CYGPATH -u "$windows_path"`
16861     new_path="$unix_path"
16862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16863     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16864     new_path="$unix_path"
16865   fi
16866 
16867     # remove trailing .exe if any
16868     new_path="${new_path/%.exe/}"
16869 
16870     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16871     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16872   fi
16873 
16874     else
16875       # We're on a unix platform. Hooray! :)
16876       # First separate the path from the arguments. This will split at the first
16877       # space.
16878       complete="$FOUND_MAKE"
16879       path="${complete%% *}"
16880       tmp="$complete EOL"
16881       arguments="${tmp#* }"
16882 
16883       # Cannot rely on the command "which" here since it doesn't always work.
16884       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16885       if test -z "$is_absolute_path"; then
16886         # Path to executable is not absolute. Find it.
16887         IFS_save="$IFS"
16888         IFS=:
16889         for p in $PATH; do
16890           if test -f "$p/$path" && test -x "$p/$path"; then
16891             new_path="$p/$path"
16892             break
16893           fi
16894         done
16895         IFS="$IFS_save"
16896       else
16897         # This is an absolute path, we can use it without further modifications.
16898         new_path="$path"
16899       fi
16900 
16901       if test "x$new_path" = x; then
16902         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16903 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16904         has_space=`$ECHO "$complete" | $GREP " "`
16905         if test "x$has_space" != x; then
16906           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16907 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16908         fi
16909         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16910       fi
16911     fi
16912 
16913     # Now join together the path and the arguments once again
16914     if test "x$arguments" != xEOL; then
16915       new_complete="$new_path ${arguments% *}"
16916     else
16917       new_complete="$new_path"
16918     fi
16919 
16920     if test "x$complete" != "x$new_complete"; then
16921       FOUND_MAKE="$new_complete"
16922       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16923 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16924     fi
16925   fi
16926 
16927         fi
16928       fi
16929     fi
16930   fi
16931 
16932 
16933     if test "x$FOUND_MAKE" = x; then
16934       for ac_prog in make
16935 do
16936   # Extract the first word of "$ac_prog", so it can be a program name with args.
16937 set dummy $ac_prog; ac_word=$2
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16939 $as_echo_n "checking for $ac_word... " >&6; }
16940 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16941   $as_echo_n "(cached) " >&6
16942 else
16943   case $CHECK_MAKE in
16944   [\\/]* | ?:[\\/]*)
16945   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16946   ;;
16947   *)
16948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16949 for as_dir in $PATH
16950 do
16951   IFS=$as_save_IFS
16952   test -z "$as_dir" && as_dir=.
16953     for ac_exec_ext in '' $ac_executable_extensions; do
16954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16955     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16957     break 2
16958   fi
16959 done
16960   done
16961 IFS=$as_save_IFS
16962 
16963   ;;
16964 esac
16965 fi
16966 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16967 if test -n "$CHECK_MAKE"; then
16968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16969 $as_echo "$CHECK_MAKE" >&6; }
16970 else
16971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972 $as_echo "no" >&6; }
16973 fi
16974 
16975 
16976   test -n "$CHECK_MAKE" && break
16977 done
16978 
16979 
16980   MAKE_CANDIDATE=""$CHECK_MAKE""
16981   DESCRIPTION="make in PATH"
16982 
16983   # On Cygwin, we require a newer version of make than on other platforms
16984   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16985     MAKE_VERSION_EXPR="-e 4\."
16986     MAKE_REQUIRED_VERSION="4.0"
16987    else
16988     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16989     MAKE_REQUIRED_VERSION="3.81"
16990   fi
16991 
16992   if test "x$MAKE_CANDIDATE" != x; then
16993     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16994 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16995     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16996     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16997     if test "x$IS_GNU_MAKE" = x; then
16998       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16999 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17000     else
17001       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17002       if test "x$IS_MODERN_MAKE" = x; then
17003         { $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
17004 $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;}
17005       else
17006         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17007           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17008             MAKE_EXPECTED_ENV='cygwin'
17009           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17010             MAKE_EXPECTED_ENV='msys'
17011           else
17012             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17013           fi
17014           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17015           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17016         else
17017           # Not relevant for non-Windows
17018           IS_MAKE_CORRECT_ENV=true
17019         fi
17020         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17021           { $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
17022 $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;}
17023         else
17024           FOUND_MAKE=$MAKE_CANDIDATE
17025 
17026   # Only process if variable expands to non-empty
17027 
17028   if test "x$FOUND_MAKE" != x; then
17029     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17030 
17031   # First separate the path from the arguments. This will split at the first
17032   # space.
17033   complete="$FOUND_MAKE"
17034   path="${complete%% *}"
17035   tmp="$complete EOL"
17036   arguments="${tmp#* }"
17037 
17038   # Input might be given as Windows format, start by converting to
17039   # unix format.
17040   new_path=`$CYGPATH -u "$path"`
17041 
17042   # Now try to locate executable using which
17043   new_path=`$WHICH "$new_path" 2> /dev/null`
17044   # bat and cmd files are not always considered executable in cygwin causing which
17045   # to not find them
17046   if test "x$new_path" = x \
17047       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17048       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17049     new_path=`$CYGPATH -u "$path"`
17050   fi
17051   if test "x$new_path" = x; then
17052     # Oops. Which didn't find the executable.
17053     # The splitting of arguments from the executable at a space might have been incorrect,
17054     # since paths with space are more likely in Windows. Give it another try with the whole
17055     # argument.
17056     path="$complete"
17057     arguments="EOL"
17058     new_path=`$CYGPATH -u "$path"`
17059     new_path=`$WHICH "$new_path" 2> /dev/null`
17060     # bat and cmd files are not always considered executable in cygwin causing which
17061     # to not find them
17062     if test "x$new_path" = x \
17063         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17064         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17065       new_path=`$CYGPATH -u "$path"`
17066     fi
17067     if test "x$new_path" = x; then
17068       # It's still not found. Now this is an unrecoverable error.
17069       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17070 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17071       has_space=`$ECHO "$complete" | $GREP " "`
17072       if test "x$has_space" != x; then
17073         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17074 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17075       fi
17076       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17077     fi
17078   fi
17079 
17080   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17081   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17082   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17083   # "foo.exe" is OK but "foo" is an error.
17084   #
17085   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17086   # It is also a way to make sure we got the proper file name for the real test later on.
17087   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17088   if test "x$test_shortpath" = x; then
17089     # Short path failed, file does not exist as specified.
17090     # Try adding .exe or .cmd
17091     if test -f "${new_path}.exe"; then
17092       input_to_shortpath="${new_path}.exe"
17093     elif test -f "${new_path}.cmd"; then
17094       input_to_shortpath="${new_path}.cmd"
17095     else
17096       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17097 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17098       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17099 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17100       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17101     fi
17102   else
17103     input_to_shortpath="$new_path"
17104   fi
17105 
17106   # Call helper function which possibly converts this using DOS-style short mode.
17107   # If so, the updated path is stored in $new_path.
17108   new_path="$input_to_shortpath"
17109 
17110   input_path="$input_to_shortpath"
17111   # Check if we need to convert this using DOS-style short mode. If the path
17112   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17113   # take no chances and rewrite it.
17114   # Note: m4 eats our [], so we need to use [ and ] instead.
17115   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17116   if test "x$has_forbidden_chars" != x; then
17117     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17118     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17119     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17120     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17121       # Going to short mode and back again did indeed matter. Since short mode is
17122       # case insensitive, let's make it lowercase to improve readability.
17123       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17124       # Now convert it back to Unix-style (cygpath)
17125       input_path=`$CYGPATH -u "$shortmode_path"`
17126       new_path="$input_path"
17127     fi
17128   fi
17129 
17130   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17131   if test "x$test_cygdrive_prefix" = x; then
17132     # As a simple fix, exclude /usr/bin since it's not a real path.
17133     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17134       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17135       # a path prefixed by /cygdrive for fixpath to work.
17136       new_path="$CYGWIN_ROOT_PATH$input_path"
17137     fi
17138   fi
17139 
17140   # remove trailing .exe if any
17141   new_path="${new_path/%.exe/}"
17142 
17143     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17144 
17145   # First separate the path from the arguments. This will split at the first
17146   # space.
17147   complete="$FOUND_MAKE"
17148   path="${complete%% *}"
17149   tmp="$complete EOL"
17150   arguments="${tmp#* }"
17151 
17152   # Input might be given as Windows format, start by converting to
17153   # unix format.
17154   new_path="$path"
17155 
17156   windows_path="$new_path"
17157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17158     unix_path=`$CYGPATH -u "$windows_path"`
17159     new_path="$unix_path"
17160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17161     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17162     new_path="$unix_path"
17163   fi
17164 
17165 
17166   # Now try to locate executable using which
17167   new_path=`$WHICH "$new_path" 2> /dev/null`
17168 
17169   if test "x$new_path" = x; then
17170     # Oops. Which didn't find the executable.
17171     # The splitting of arguments from the executable at a space might have been incorrect,
17172     # since paths with space are more likely in Windows. Give it another try with the whole
17173     # argument.
17174     path="$complete"
17175     arguments="EOL"
17176     new_path="$path"
17177 
17178   windows_path="$new_path"
17179   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17180     unix_path=`$CYGPATH -u "$windows_path"`
17181     new_path="$unix_path"
17182   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17183     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17184     new_path="$unix_path"
17185   fi
17186 
17187 
17188     new_path=`$WHICH "$new_path" 2> /dev/null`
17189     # bat and cmd files are not always considered executable in MSYS causing which
17190     # to not find them
17191     if test "x$new_path" = x \
17192         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17193         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17194       new_path="$path"
17195 
17196   windows_path="$new_path"
17197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17198     unix_path=`$CYGPATH -u "$windows_path"`
17199     new_path="$unix_path"
17200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17202     new_path="$unix_path"
17203   fi
17204 
17205     fi
17206 
17207     if test "x$new_path" = x; then
17208       # It's still not found. Now this is an unrecoverable error.
17209       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17210 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17211       has_space=`$ECHO "$complete" | $GREP " "`
17212       if test "x$has_space" != x; then
17213         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17214 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17215       fi
17216       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17217     fi
17218   fi
17219 
17220   # Now new_path has a complete unix path to the binary
17221   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17222     # Keep paths in /bin as-is, but remove trailing .exe if any
17223     new_path="${new_path/%.exe/}"
17224     # Do not save /bin paths to all_fixpath_prefixes!
17225   else
17226     # Not in mixed or Windows style, start by that.
17227     new_path=`cmd //c echo $new_path`
17228 
17229   input_path="$new_path"
17230   # Check if we need to convert this using DOS-style short mode. If the path
17231   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17232   # take no chances and rewrite it.
17233   # Note: m4 eats our [], so we need to use [ and ] instead.
17234   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17235   if test "x$has_forbidden_chars" != x; then
17236     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17237     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17238   fi
17239 
17240     # Output is in $new_path
17241 
17242   windows_path="$new_path"
17243   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17244     unix_path=`$CYGPATH -u "$windows_path"`
17245     new_path="$unix_path"
17246   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17247     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17248     new_path="$unix_path"
17249   fi
17250 
17251     # remove trailing .exe if any
17252     new_path="${new_path/%.exe/}"
17253 
17254     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17255     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17256   fi
17257 
17258     else
17259       # We're on a unix platform. Hooray! :)
17260       # First separate the path from the arguments. This will split at the first
17261       # space.
17262       complete="$FOUND_MAKE"
17263       path="${complete%% *}"
17264       tmp="$complete EOL"
17265       arguments="${tmp#* }"
17266 
17267       # Cannot rely on the command "which" here since it doesn't always work.
17268       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17269       if test -z "$is_absolute_path"; then
17270         # Path to executable is not absolute. Find it.
17271         IFS_save="$IFS"
17272         IFS=:
17273         for p in $PATH; do
17274           if test -f "$p/$path" && test -x "$p/$path"; then
17275             new_path="$p/$path"
17276             break
17277           fi
17278         done
17279         IFS="$IFS_save"
17280       else
17281         # This is an absolute path, we can use it without further modifications.
17282         new_path="$path"
17283       fi
17284 
17285       if test "x$new_path" = x; then
17286         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17287 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17288         has_space=`$ECHO "$complete" | $GREP " "`
17289         if test "x$has_space" != x; then
17290           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17291 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17292         fi
17293         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17294       fi
17295     fi
17296 
17297     # Now join together the path and the arguments once again
17298     if test "x$arguments" != xEOL; then
17299       new_complete="$new_path ${arguments% *}"
17300     else
17301       new_complete="$new_path"
17302     fi
17303 
17304     if test "x$complete" != "x$new_complete"; then
17305       FOUND_MAKE="$new_complete"
17306       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17307 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17308     fi
17309   fi
17310 
17311         fi
17312       fi
17313     fi
17314   fi
17315 
17316     fi
17317 
17318     if test "x$FOUND_MAKE" = x; then
17319       if test "x$TOOLCHAIN_PATH" != x; then
17320         # We have a toolchain path, check that as well before giving up.
17321         OLD_PATH=$PATH
17322         PATH=$TOOLCHAIN_PATH:$PATH
17323         for ac_prog in gmake
17324 do
17325   # Extract the first word of "$ac_prog", so it can be a program name with args.
17326 set dummy $ac_prog; ac_word=$2
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17328 $as_echo_n "checking for $ac_word... " >&6; }
17329 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17330   $as_echo_n "(cached) " >&6
17331 else
17332   case $CHECK_TOOLSDIR_GMAKE in
17333   [\\/]* | ?:[\\/]*)
17334   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17335   ;;
17336   *)
17337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17338 for as_dir in $PATH
17339 do
17340   IFS=$as_save_IFS
17341   test -z "$as_dir" && as_dir=.
17342     for ac_exec_ext in '' $ac_executable_extensions; do
17343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17344     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17346     break 2
17347   fi
17348 done
17349   done
17350 IFS=$as_save_IFS
17351 
17352   ;;
17353 esac
17354 fi
17355 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17356 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17358 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17359 else
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17361 $as_echo "no" >&6; }
17362 fi
17363 
17364 
17365   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17366 done
17367 
17368 
17369   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17370   DESCRIPTION="gmake in tools-dir"
17371 
17372   # On Cygwin, we require a newer version of make than on other platforms
17373   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17374     MAKE_VERSION_EXPR="-e 4\."
17375     MAKE_REQUIRED_VERSION="4.0"
17376    else
17377     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17378     MAKE_REQUIRED_VERSION="3.81"
17379   fi
17380 
17381   if test "x$MAKE_CANDIDATE" != x; then
17382     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17383 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17384     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17385     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17386     if test "x$IS_GNU_MAKE" = x; then
17387       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17388 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17389     else
17390       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17391       if test "x$IS_MODERN_MAKE" = x; then
17392         { $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
17393 $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;}
17394       else
17395         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17396           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17397             MAKE_EXPECTED_ENV='cygwin'
17398           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17399             MAKE_EXPECTED_ENV='msys'
17400           else
17401             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17402           fi
17403           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17404           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17405         else
17406           # Not relevant for non-Windows
17407           IS_MAKE_CORRECT_ENV=true
17408         fi
17409         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17410           { $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
17411 $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;}
17412         else
17413           FOUND_MAKE=$MAKE_CANDIDATE
17414 
17415   # Only process if variable expands to non-empty
17416 
17417   if test "x$FOUND_MAKE" != x; then
17418     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17419 
17420   # First separate the path from the arguments. This will split at the first
17421   # space.
17422   complete="$FOUND_MAKE"
17423   path="${complete%% *}"
17424   tmp="$complete EOL"
17425   arguments="${tmp#* }"
17426 
17427   # Input might be given as Windows format, start by converting to
17428   # unix format.
17429   new_path=`$CYGPATH -u "$path"`
17430 
17431   # Now try to locate executable using which
17432   new_path=`$WHICH "$new_path" 2> /dev/null`
17433   # bat and cmd files are not always considered executable in cygwin causing which
17434   # to not find them
17435   if test "x$new_path" = x \
17436       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17437       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17438     new_path=`$CYGPATH -u "$path"`
17439   fi
17440   if test "x$new_path" = x; then
17441     # Oops. Which didn't find the executable.
17442     # The splitting of arguments from the executable at a space might have been incorrect,
17443     # since paths with space are more likely in Windows. Give it another try with the whole
17444     # argument.
17445     path="$complete"
17446     arguments="EOL"
17447     new_path=`$CYGPATH -u "$path"`
17448     new_path=`$WHICH "$new_path" 2> /dev/null`
17449     # bat and cmd files are not always considered executable in cygwin causing which
17450     # to not find them
17451     if test "x$new_path" = x \
17452         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17453         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17454       new_path=`$CYGPATH -u "$path"`
17455     fi
17456     if test "x$new_path" = x; then
17457       # It's still not found. Now this is an unrecoverable error.
17458       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17459 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17460       has_space=`$ECHO "$complete" | $GREP " "`
17461       if test "x$has_space" != x; then
17462         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17463 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17464       fi
17465       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17466     fi
17467   fi
17468 
17469   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17470   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17471   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17472   # "foo.exe" is OK but "foo" is an error.
17473   #
17474   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17475   # It is also a way to make sure we got the proper file name for the real test later on.
17476   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17477   if test "x$test_shortpath" = x; then
17478     # Short path failed, file does not exist as specified.
17479     # Try adding .exe or .cmd
17480     if test -f "${new_path}.exe"; then
17481       input_to_shortpath="${new_path}.exe"
17482     elif test -f "${new_path}.cmd"; then
17483       input_to_shortpath="${new_path}.cmd"
17484     else
17485       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17486 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17487       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17488 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17489       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17490     fi
17491   else
17492     input_to_shortpath="$new_path"
17493   fi
17494 
17495   # Call helper function which possibly converts this using DOS-style short mode.
17496   # If so, the updated path is stored in $new_path.
17497   new_path="$input_to_shortpath"
17498 
17499   input_path="$input_to_shortpath"
17500   # Check if we need to convert this using DOS-style short mode. If the path
17501   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17502   # take no chances and rewrite it.
17503   # Note: m4 eats our [], so we need to use [ and ] instead.
17504   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17505   if test "x$has_forbidden_chars" != x; then
17506     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17507     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17508     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17509     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17510       # Going to short mode and back again did indeed matter. Since short mode is
17511       # case insensitive, let's make it lowercase to improve readability.
17512       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17513       # Now convert it back to Unix-style (cygpath)
17514       input_path=`$CYGPATH -u "$shortmode_path"`
17515       new_path="$input_path"
17516     fi
17517   fi
17518 
17519   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17520   if test "x$test_cygdrive_prefix" = x; then
17521     # As a simple fix, exclude /usr/bin since it's not a real path.
17522     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17523       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17524       # a path prefixed by /cygdrive for fixpath to work.
17525       new_path="$CYGWIN_ROOT_PATH$input_path"
17526     fi
17527   fi
17528 
17529   # remove trailing .exe if any
17530   new_path="${new_path/%.exe/}"
17531 
17532     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17533 
17534   # First separate the path from the arguments. This will split at the first
17535   # space.
17536   complete="$FOUND_MAKE"
17537   path="${complete%% *}"
17538   tmp="$complete EOL"
17539   arguments="${tmp#* }"
17540 
17541   # Input might be given as Windows format, start by converting to
17542   # unix format.
17543   new_path="$path"
17544 
17545   windows_path="$new_path"
17546   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17547     unix_path=`$CYGPATH -u "$windows_path"`
17548     new_path="$unix_path"
17549   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17550     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17551     new_path="$unix_path"
17552   fi
17553 
17554 
17555   # Now try to locate executable using which
17556   new_path=`$WHICH "$new_path" 2> /dev/null`
17557 
17558   if test "x$new_path" = x; then
17559     # Oops. Which didn't find the executable.
17560     # The splitting of arguments from the executable at a space might have been incorrect,
17561     # since paths with space are more likely in Windows. Give it another try with the whole
17562     # argument.
17563     path="$complete"
17564     arguments="EOL"
17565     new_path="$path"
17566 
17567   windows_path="$new_path"
17568   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17569     unix_path=`$CYGPATH -u "$windows_path"`
17570     new_path="$unix_path"
17571   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17572     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17573     new_path="$unix_path"
17574   fi
17575 
17576 
17577     new_path=`$WHICH "$new_path" 2> /dev/null`
17578     # bat and cmd files are not always considered executable in MSYS causing which
17579     # to not find them
17580     if test "x$new_path" = x \
17581         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17582         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17583       new_path="$path"
17584 
17585   windows_path="$new_path"
17586   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17587     unix_path=`$CYGPATH -u "$windows_path"`
17588     new_path="$unix_path"
17589   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17590     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17591     new_path="$unix_path"
17592   fi
17593 
17594     fi
17595 
17596     if test "x$new_path" = x; then
17597       # It's still not found. Now this is an unrecoverable error.
17598       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17599 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17600       has_space=`$ECHO "$complete" | $GREP " "`
17601       if test "x$has_space" != x; then
17602         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17603 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17604       fi
17605       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17606     fi
17607   fi
17608 
17609   # Now new_path has a complete unix path to the binary
17610   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17611     # Keep paths in /bin as-is, but remove trailing .exe if any
17612     new_path="${new_path/%.exe/}"
17613     # Do not save /bin paths to all_fixpath_prefixes!
17614   else
17615     # Not in mixed or Windows style, start by that.
17616     new_path=`cmd //c echo $new_path`
17617 
17618   input_path="$new_path"
17619   # Check if we need to convert this using DOS-style short mode. If the path
17620   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17621   # take no chances and rewrite it.
17622   # Note: m4 eats our [], so we need to use [ and ] instead.
17623   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17624   if test "x$has_forbidden_chars" != x; then
17625     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17626     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17627   fi
17628 
17629     # Output is in $new_path
17630 
17631   windows_path="$new_path"
17632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17633     unix_path=`$CYGPATH -u "$windows_path"`
17634     new_path="$unix_path"
17635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17636     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17637     new_path="$unix_path"
17638   fi
17639 
17640     # remove trailing .exe if any
17641     new_path="${new_path/%.exe/}"
17642 
17643     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17644     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17645   fi
17646 
17647     else
17648       # We're on a unix platform. Hooray! :)
17649       # First separate the path from the arguments. This will split at the first
17650       # space.
17651       complete="$FOUND_MAKE"
17652       path="${complete%% *}"
17653       tmp="$complete EOL"
17654       arguments="${tmp#* }"
17655 
17656       # Cannot rely on the command "which" here since it doesn't always work.
17657       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17658       if test -z "$is_absolute_path"; then
17659         # Path to executable is not absolute. Find it.
17660         IFS_save="$IFS"
17661         IFS=:
17662         for p in $PATH; do
17663           if test -f "$p/$path" && test -x "$p/$path"; then
17664             new_path="$p/$path"
17665             break
17666           fi
17667         done
17668         IFS="$IFS_save"
17669       else
17670         # This is an absolute path, we can use it without further modifications.
17671         new_path="$path"
17672       fi
17673 
17674       if test "x$new_path" = x; then
17675         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17676 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17677         has_space=`$ECHO "$complete" | $GREP " "`
17678         if test "x$has_space" != x; then
17679           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17680 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17681         fi
17682         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17683       fi
17684     fi
17685 
17686     # Now join together the path and the arguments once again
17687     if test "x$arguments" != xEOL; then
17688       new_complete="$new_path ${arguments% *}"
17689     else
17690       new_complete="$new_path"
17691     fi
17692 
17693     if test "x$complete" != "x$new_complete"; then
17694       FOUND_MAKE="$new_complete"
17695       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17696 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17697     fi
17698   fi
17699 
17700         fi
17701       fi
17702     fi
17703   fi
17704 
17705         if test "x$FOUND_MAKE" = x; then
17706           for ac_prog in make
17707 do
17708   # Extract the first word of "$ac_prog", so it can be a program name with args.
17709 set dummy $ac_prog; ac_word=$2
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17711 $as_echo_n "checking for $ac_word... " >&6; }
17712 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17713   $as_echo_n "(cached) " >&6
17714 else
17715   case $CHECK_TOOLSDIR_MAKE in
17716   [\\/]* | ?:[\\/]*)
17717   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17718   ;;
17719   *)
17720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17721 for as_dir in $PATH
17722 do
17723   IFS=$as_save_IFS
17724   test -z "$as_dir" && as_dir=.
17725     for ac_exec_ext in '' $ac_executable_extensions; do
17726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17727     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17729     break 2
17730   fi
17731 done
17732   done
17733 IFS=$as_save_IFS
17734 
17735   ;;
17736 esac
17737 fi
17738 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17739 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17741 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17742 else
17743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17744 $as_echo "no" >&6; }
17745 fi
17746 
17747 
17748   test -n "$CHECK_TOOLSDIR_MAKE" && break
17749 done
17750 
17751 
17752   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17753   DESCRIPTION="make in tools-dir"
17754 
17755   # On Cygwin, we require a newer version of make than on other platforms
17756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17757     MAKE_VERSION_EXPR="-e 4\."
17758     MAKE_REQUIRED_VERSION="4.0"
17759    else
17760     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17761     MAKE_REQUIRED_VERSION="3.81"
17762   fi
17763 
17764   if test "x$MAKE_CANDIDATE" != x; then
17765     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17766 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17767     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17768     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17769     if test "x$IS_GNU_MAKE" = x; then
17770       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17771 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17772     else
17773       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17774       if test "x$IS_MODERN_MAKE" = x; then
17775         { $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
17776 $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;}
17777       else
17778         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17779           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17780             MAKE_EXPECTED_ENV='cygwin'
17781           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17782             MAKE_EXPECTED_ENV='msys'
17783           else
17784             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17785           fi
17786           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17787           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17788         else
17789           # Not relevant for non-Windows
17790           IS_MAKE_CORRECT_ENV=true
17791         fi
17792         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17793           { $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
17794 $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;}
17795         else
17796           FOUND_MAKE=$MAKE_CANDIDATE
17797 
17798   # Only process if variable expands to non-empty
17799 
17800   if test "x$FOUND_MAKE" != x; then
17801     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17802 
17803   # First separate the path from the arguments. This will split at the first
17804   # space.
17805   complete="$FOUND_MAKE"
17806   path="${complete%% *}"
17807   tmp="$complete EOL"
17808   arguments="${tmp#* }"
17809 
17810   # Input might be given as Windows format, start by converting to
17811   # unix format.
17812   new_path=`$CYGPATH -u "$path"`
17813 
17814   # Now try to locate executable using which
17815   new_path=`$WHICH "$new_path" 2> /dev/null`
17816   # bat and cmd files are not always considered executable in cygwin causing which
17817   # to not find them
17818   if test "x$new_path" = x \
17819       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17820       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17821     new_path=`$CYGPATH -u "$path"`
17822   fi
17823   if test "x$new_path" = x; then
17824     # Oops. Which didn't find the executable.
17825     # The splitting of arguments from the executable at a space might have been incorrect,
17826     # since paths with space are more likely in Windows. Give it another try with the whole
17827     # argument.
17828     path="$complete"
17829     arguments="EOL"
17830     new_path=`$CYGPATH -u "$path"`
17831     new_path=`$WHICH "$new_path" 2> /dev/null`
17832     # bat and cmd files are not always considered executable in cygwin causing which
17833     # to not find them
17834     if test "x$new_path" = x \
17835         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17836         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17837       new_path=`$CYGPATH -u "$path"`
17838     fi
17839     if test "x$new_path" = x; then
17840       # It's still not found. Now this is an unrecoverable error.
17841       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17842 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17843       has_space=`$ECHO "$complete" | $GREP " "`
17844       if test "x$has_space" != x; then
17845         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17847       fi
17848       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17849     fi
17850   fi
17851 
17852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17855   # "foo.exe" is OK but "foo" is an error.
17856   #
17857   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17858   # It is also a way to make sure we got the proper file name for the real test later on.
17859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17860   if test "x$test_shortpath" = x; then
17861     # Short path failed, file does not exist as specified.
17862     # Try adding .exe or .cmd
17863     if test -f "${new_path}.exe"; then
17864       input_to_shortpath="${new_path}.exe"
17865     elif test -f "${new_path}.cmd"; then
17866       input_to_shortpath="${new_path}.cmd"
17867     else
17868       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17869 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17870       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17871 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17872       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17873     fi
17874   else
17875     input_to_shortpath="$new_path"
17876   fi
17877 
17878   # Call helper function which possibly converts this using DOS-style short mode.
17879   # If so, the updated path is stored in $new_path.
17880   new_path="$input_to_shortpath"
17881 
17882   input_path="$input_to_shortpath"
17883   # Check if we need to convert this using DOS-style short mode. If the path
17884   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17885   # take no chances and rewrite it.
17886   # Note: m4 eats our [], so we need to use [ and ] instead.
17887   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17888   if test "x$has_forbidden_chars" != x; then
17889     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17890     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17891     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17892     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17893       # Going to short mode and back again did indeed matter. Since short mode is
17894       # case insensitive, let's make it lowercase to improve readability.
17895       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17896       # Now convert it back to Unix-style (cygpath)
17897       input_path=`$CYGPATH -u "$shortmode_path"`
17898       new_path="$input_path"
17899     fi
17900   fi
17901 
17902   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17903   if test "x$test_cygdrive_prefix" = x; then
17904     # As a simple fix, exclude /usr/bin since it's not a real path.
17905     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17906       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17907       # a path prefixed by /cygdrive for fixpath to work.
17908       new_path="$CYGWIN_ROOT_PATH$input_path"
17909     fi
17910   fi
17911 
17912   # remove trailing .exe if any
17913   new_path="${new_path/%.exe/}"
17914 
17915     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17916 
17917   # First separate the path from the arguments. This will split at the first
17918   # space.
17919   complete="$FOUND_MAKE"
17920   path="${complete%% *}"
17921   tmp="$complete EOL"
17922   arguments="${tmp#* }"
17923 
17924   # Input might be given as Windows format, start by converting to
17925   # unix format.
17926   new_path="$path"
17927 
17928   windows_path="$new_path"
17929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17930     unix_path=`$CYGPATH -u "$windows_path"`
17931     new_path="$unix_path"
17932   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17933     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17934     new_path="$unix_path"
17935   fi
17936 
17937 
17938   # Now try to locate executable using which
17939   new_path=`$WHICH "$new_path" 2> /dev/null`
17940 
17941   if test "x$new_path" = x; then
17942     # Oops. Which didn't find the executable.
17943     # The splitting of arguments from the executable at a space might have been incorrect,
17944     # since paths with space are more likely in Windows. Give it another try with the whole
17945     # argument.
17946     path="$complete"
17947     arguments="EOL"
17948     new_path="$path"
17949 
17950   windows_path="$new_path"
17951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17952     unix_path=`$CYGPATH -u "$windows_path"`
17953     new_path="$unix_path"
17954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17955     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17956     new_path="$unix_path"
17957   fi
17958 
17959 
17960     new_path=`$WHICH "$new_path" 2> /dev/null`
17961     # bat and cmd files are not always considered executable in MSYS causing which
17962     # to not find them
17963     if test "x$new_path" = x \
17964         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17965         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17966       new_path="$path"
17967 
17968   windows_path="$new_path"
17969   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17970     unix_path=`$CYGPATH -u "$windows_path"`
17971     new_path="$unix_path"
17972   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17973     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17974     new_path="$unix_path"
17975   fi
17976 
17977     fi
17978 
17979     if test "x$new_path" = x; then
17980       # It's still not found. Now this is an unrecoverable error.
17981       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17982 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17983       has_space=`$ECHO "$complete" | $GREP " "`
17984       if test "x$has_space" != x; then
17985         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17987       fi
17988       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17989     fi
17990   fi
17991 
17992   # Now new_path has a complete unix path to the binary
17993   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17994     # Keep paths in /bin as-is, but remove trailing .exe if any
17995     new_path="${new_path/%.exe/}"
17996     # Do not save /bin paths to all_fixpath_prefixes!
17997   else
17998     # Not in mixed or Windows style, start by that.
17999     new_path=`cmd //c echo $new_path`
18000 
18001   input_path="$new_path"
18002   # Check if we need to convert this using DOS-style short mode. If the path
18003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18004   # take no chances and rewrite it.
18005   # Note: m4 eats our [], so we need to use [ and ] instead.
18006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18007   if test "x$has_forbidden_chars" != x; then
18008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18009     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18010   fi
18011 
18012     # Output is in $new_path
18013 
18014   windows_path="$new_path"
18015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18016     unix_path=`$CYGPATH -u "$windows_path"`
18017     new_path="$unix_path"
18018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18019     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18020     new_path="$unix_path"
18021   fi
18022 
18023     # remove trailing .exe if any
18024     new_path="${new_path/%.exe/}"
18025 
18026     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18027     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18028   fi
18029 
18030     else
18031       # We're on a unix platform. Hooray! :)
18032       # First separate the path from the arguments. This will split at the first
18033       # space.
18034       complete="$FOUND_MAKE"
18035       path="${complete%% *}"
18036       tmp="$complete EOL"
18037       arguments="${tmp#* }"
18038 
18039       # Cannot rely on the command "which" here since it doesn't always work.
18040       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18041       if test -z "$is_absolute_path"; then
18042         # Path to executable is not absolute. Find it.
18043         IFS_save="$IFS"
18044         IFS=:
18045         for p in $PATH; do
18046           if test -f "$p/$path" && test -x "$p/$path"; then
18047             new_path="$p/$path"
18048             break
18049           fi
18050         done
18051         IFS="$IFS_save"
18052       else
18053         # This is an absolute path, we can use it without further modifications.
18054         new_path="$path"
18055       fi
18056 
18057       if test "x$new_path" = x; then
18058         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18059 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18060         has_space=`$ECHO "$complete" | $GREP " "`
18061         if test "x$has_space" != x; then
18062           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18064         fi
18065         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18066       fi
18067     fi
18068 
18069     # Now join together the path and the arguments once again
18070     if test "x$arguments" != xEOL; then
18071       new_complete="$new_path ${arguments% *}"
18072     else
18073       new_complete="$new_path"
18074     fi
18075 
18076     if test "x$complete" != "x$new_complete"; then
18077       FOUND_MAKE="$new_complete"
18078       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18079 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18080     fi
18081   fi
18082 
18083         fi
18084       fi
18085     fi
18086   fi
18087 
18088         fi
18089         PATH=$OLD_PATH
18090       fi
18091     fi
18092 
18093     if test "x$FOUND_MAKE" = x; then
18094       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
18095     fi
18096 
18097   else
18098     # The variable is set, but is it from the command line or the environment?
18099 
18100     # Try to remove the string !MAKE! from our list.
18101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18103       # If it failed, the variable was not from the command line. Ignore it,
18104       # but warn the user (except for BASH, which is always set by the calling BASH).
18105       if test "xMAKE" != xBASH; then
18106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18107 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18108       fi
18109       # Try to locate tool using the code snippet
18110 
18111     # Try our hardest to locate a correct version of GNU make
18112     for ac_prog in gmake
18113 do
18114   # Extract the first word of "$ac_prog", so it can be a program name with args.
18115 set dummy $ac_prog; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18119   $as_echo_n "(cached) " >&6
18120 else
18121   case $CHECK_GMAKE in
18122   [\\/]* | ?:[\\/]*)
18123   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18124   ;;
18125   *)
18126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18128 do
18129   IFS=$as_save_IFS
18130   test -z "$as_dir" && as_dir=.
18131     for ac_exec_ext in '' $ac_executable_extensions; do
18132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18133     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135     break 2
18136   fi
18137 done
18138   done
18139 IFS=$as_save_IFS
18140 
18141   ;;
18142 esac
18143 fi
18144 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18145 if test -n "$CHECK_GMAKE"; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18147 $as_echo "$CHECK_GMAKE" >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18151 fi
18152 
18153 
18154   test -n "$CHECK_GMAKE" && break
18155 done
18156 
18157 
18158   MAKE_CANDIDATE=""$CHECK_GMAKE""
18159   DESCRIPTION="gmake in PATH"
18160 
18161   # On Cygwin, we require a newer version of make than on other platforms
18162   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18163     MAKE_VERSION_EXPR="-e 4\."
18164     MAKE_REQUIRED_VERSION="4.0"
18165    else
18166     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18167     MAKE_REQUIRED_VERSION="3.81"
18168   fi
18169 
18170   if test "x$MAKE_CANDIDATE" != x; then
18171     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18172 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18173     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18174     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18175     if test "x$IS_GNU_MAKE" = x; then
18176       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18177 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18178     else
18179       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18180       if test "x$IS_MODERN_MAKE" = x; then
18181         { $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
18182 $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;}
18183       else
18184         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18185           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18186             MAKE_EXPECTED_ENV='cygwin'
18187           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18188             MAKE_EXPECTED_ENV='msys'
18189           else
18190             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18191           fi
18192           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18193           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18194         else
18195           # Not relevant for non-Windows
18196           IS_MAKE_CORRECT_ENV=true
18197         fi
18198         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18199           { $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
18200 $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;}
18201         else
18202           FOUND_MAKE=$MAKE_CANDIDATE
18203 
18204   # Only process if variable expands to non-empty
18205 
18206   if test "x$FOUND_MAKE" != x; then
18207     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18208 
18209   # First separate the path from the arguments. This will split at the first
18210   # space.
18211   complete="$FOUND_MAKE"
18212   path="${complete%% *}"
18213   tmp="$complete EOL"
18214   arguments="${tmp#* }"
18215 
18216   # Input might be given as Windows format, start by converting to
18217   # unix format.
18218   new_path=`$CYGPATH -u "$path"`
18219 
18220   # Now try to locate executable using which
18221   new_path=`$WHICH "$new_path" 2> /dev/null`
18222   # bat and cmd files are not always considered executable in cygwin causing which
18223   # to not find them
18224   if test "x$new_path" = x \
18225       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18226       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18227     new_path=`$CYGPATH -u "$path"`
18228   fi
18229   if test "x$new_path" = x; then
18230     # Oops. Which didn't find the executable.
18231     # The splitting of arguments from the executable at a space might have been incorrect,
18232     # since paths with space are more likely in Windows. Give it another try with the whole
18233     # argument.
18234     path="$complete"
18235     arguments="EOL"
18236     new_path=`$CYGPATH -u "$path"`
18237     new_path=`$WHICH "$new_path" 2> /dev/null`
18238     # bat and cmd files are not always considered executable in cygwin causing which
18239     # to not find them
18240     if test "x$new_path" = x \
18241         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18242         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18243       new_path=`$CYGPATH -u "$path"`
18244     fi
18245     if test "x$new_path" = x; then
18246       # It's still not found. Now this is an unrecoverable error.
18247       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18248 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18249       has_space=`$ECHO "$complete" | $GREP " "`
18250       if test "x$has_space" != x; then
18251         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18253       fi
18254       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18255     fi
18256   fi
18257 
18258   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18259   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18260   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18261   # "foo.exe" is OK but "foo" is an error.
18262   #
18263   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18264   # It is also a way to make sure we got the proper file name for the real test later on.
18265   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18266   if test "x$test_shortpath" = x; then
18267     # Short path failed, file does not exist as specified.
18268     # Try adding .exe or .cmd
18269     if test -f "${new_path}.exe"; then
18270       input_to_shortpath="${new_path}.exe"
18271     elif test -f "${new_path}.cmd"; then
18272       input_to_shortpath="${new_path}.cmd"
18273     else
18274       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18275 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18276       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18277 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18278       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18279     fi
18280   else
18281     input_to_shortpath="$new_path"
18282   fi
18283 
18284   # Call helper function which possibly converts this using DOS-style short mode.
18285   # If so, the updated path is stored in $new_path.
18286   new_path="$input_to_shortpath"
18287 
18288   input_path="$input_to_shortpath"
18289   # Check if we need to convert this using DOS-style short mode. If the path
18290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18291   # take no chances and rewrite it.
18292   # Note: m4 eats our [], so we need to use [ and ] instead.
18293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18294   if test "x$has_forbidden_chars" != x; then
18295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18299       # Going to short mode and back again did indeed matter. Since short mode is
18300       # case insensitive, let's make it lowercase to improve readability.
18301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18302       # Now convert it back to Unix-style (cygpath)
18303       input_path=`$CYGPATH -u "$shortmode_path"`
18304       new_path="$input_path"
18305     fi
18306   fi
18307 
18308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18309   if test "x$test_cygdrive_prefix" = x; then
18310     # As a simple fix, exclude /usr/bin since it's not a real path.
18311     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18313       # a path prefixed by /cygdrive for fixpath to work.
18314       new_path="$CYGWIN_ROOT_PATH$input_path"
18315     fi
18316   fi
18317 
18318   # remove trailing .exe if any
18319   new_path="${new_path/%.exe/}"
18320 
18321     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18322 
18323   # First separate the path from the arguments. This will split at the first
18324   # space.
18325   complete="$FOUND_MAKE"
18326   path="${complete%% *}"
18327   tmp="$complete EOL"
18328   arguments="${tmp#* }"
18329 
18330   # Input might be given as Windows format, start by converting to
18331   # unix format.
18332   new_path="$path"
18333 
18334   windows_path="$new_path"
18335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18336     unix_path=`$CYGPATH -u "$windows_path"`
18337     new_path="$unix_path"
18338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18340     new_path="$unix_path"
18341   fi
18342 
18343 
18344   # Now try to locate executable using which
18345   new_path=`$WHICH "$new_path" 2> /dev/null`
18346 
18347   if test "x$new_path" = x; then
18348     # Oops. Which didn't find the executable.
18349     # The splitting of arguments from the executable at a space might have been incorrect,
18350     # since paths with space are more likely in Windows. Give it another try with the whole
18351     # argument.
18352     path="$complete"
18353     arguments="EOL"
18354     new_path="$path"
18355 
18356   windows_path="$new_path"
18357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18358     unix_path=`$CYGPATH -u "$windows_path"`
18359     new_path="$unix_path"
18360   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18361     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18362     new_path="$unix_path"
18363   fi
18364 
18365 
18366     new_path=`$WHICH "$new_path" 2> /dev/null`
18367     # bat and cmd files are not always considered executable in MSYS causing which
18368     # to not find them
18369     if test "x$new_path" = x \
18370         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18371         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18372       new_path="$path"
18373 
18374   windows_path="$new_path"
18375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18376     unix_path=`$CYGPATH -u "$windows_path"`
18377     new_path="$unix_path"
18378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18380     new_path="$unix_path"
18381   fi
18382 
18383     fi
18384 
18385     if test "x$new_path" = x; then
18386       # It's still not found. Now this is an unrecoverable error.
18387       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18388 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18389       has_space=`$ECHO "$complete" | $GREP " "`
18390       if test "x$has_space" != x; then
18391         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18393       fi
18394       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18395     fi
18396   fi
18397 
18398   # Now new_path has a complete unix path to the binary
18399   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18400     # Keep paths in /bin as-is, but remove trailing .exe if any
18401     new_path="${new_path/%.exe/}"
18402     # Do not save /bin paths to all_fixpath_prefixes!
18403   else
18404     # Not in mixed or Windows style, start by that.
18405     new_path=`cmd //c echo $new_path`
18406 
18407   input_path="$new_path"
18408   # Check if we need to convert this using DOS-style short mode. If the path
18409   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18410   # take no chances and rewrite it.
18411   # Note: m4 eats our [], so we need to use [ and ] instead.
18412   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18413   if test "x$has_forbidden_chars" != x; then
18414     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18415     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18416   fi
18417 
18418     # Output is in $new_path
18419 
18420   windows_path="$new_path"
18421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18422     unix_path=`$CYGPATH -u "$windows_path"`
18423     new_path="$unix_path"
18424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18426     new_path="$unix_path"
18427   fi
18428 
18429     # remove trailing .exe if any
18430     new_path="${new_path/%.exe/}"
18431 
18432     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18433     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18434   fi
18435 
18436     else
18437       # We're on a unix platform. Hooray! :)
18438       # First separate the path from the arguments. This will split at the first
18439       # space.
18440       complete="$FOUND_MAKE"
18441       path="${complete%% *}"
18442       tmp="$complete EOL"
18443       arguments="${tmp#* }"
18444 
18445       # Cannot rely on the command "which" here since it doesn't always work.
18446       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18447       if test -z "$is_absolute_path"; then
18448         # Path to executable is not absolute. Find it.
18449         IFS_save="$IFS"
18450         IFS=:
18451         for p in $PATH; do
18452           if test -f "$p/$path" && test -x "$p/$path"; then
18453             new_path="$p/$path"
18454             break
18455           fi
18456         done
18457         IFS="$IFS_save"
18458       else
18459         # This is an absolute path, we can use it without further modifications.
18460         new_path="$path"
18461       fi
18462 
18463       if test "x$new_path" = x; then
18464         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18465 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18466         has_space=`$ECHO "$complete" | $GREP " "`
18467         if test "x$has_space" != x; then
18468           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18469 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18470         fi
18471         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18472       fi
18473     fi
18474 
18475     # Now join together the path and the arguments once again
18476     if test "x$arguments" != xEOL; then
18477       new_complete="$new_path ${arguments% *}"
18478     else
18479       new_complete="$new_path"
18480     fi
18481 
18482     if test "x$complete" != "x$new_complete"; then
18483       FOUND_MAKE="$new_complete"
18484       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18485 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18486     fi
18487   fi
18488 
18489         fi
18490       fi
18491     fi
18492   fi
18493 
18494 
18495     if test "x$FOUND_MAKE" = x; then
18496       for ac_prog in make
18497 do
18498   # Extract the first word of "$ac_prog", so it can be a program name with args.
18499 set dummy $ac_prog; ac_word=$2
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18501 $as_echo_n "checking for $ac_word... " >&6; }
18502 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18503   $as_echo_n "(cached) " >&6
18504 else
18505   case $CHECK_MAKE in
18506   [\\/]* | ?:[\\/]*)
18507   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18508   ;;
18509   *)
18510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18511 for as_dir in $PATH
18512 do
18513   IFS=$as_save_IFS
18514   test -z "$as_dir" && as_dir=.
18515     for ac_exec_ext in '' $ac_executable_extensions; do
18516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18517     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18519     break 2
18520   fi
18521 done
18522   done
18523 IFS=$as_save_IFS
18524 
18525   ;;
18526 esac
18527 fi
18528 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18529 if test -n "$CHECK_MAKE"; then
18530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18531 $as_echo "$CHECK_MAKE" >&6; }
18532 else
18533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18534 $as_echo "no" >&6; }
18535 fi
18536 
18537 
18538   test -n "$CHECK_MAKE" && break
18539 done
18540 
18541 
18542   MAKE_CANDIDATE=""$CHECK_MAKE""
18543   DESCRIPTION="make in PATH"
18544 
18545   # On Cygwin, we require a newer version of make than on other platforms
18546   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18547     MAKE_VERSION_EXPR="-e 4\."
18548     MAKE_REQUIRED_VERSION="4.0"
18549    else
18550     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18551     MAKE_REQUIRED_VERSION="3.81"
18552   fi
18553 
18554   if test "x$MAKE_CANDIDATE" != x; then
18555     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18556 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18557     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18558     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18559     if test "x$IS_GNU_MAKE" = x; then
18560       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18561 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18562     else
18563       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18564       if test "x$IS_MODERN_MAKE" = x; then
18565         { $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
18566 $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;}
18567       else
18568         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18569           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18570             MAKE_EXPECTED_ENV='cygwin'
18571           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18572             MAKE_EXPECTED_ENV='msys'
18573           else
18574             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18575           fi
18576           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18577           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18578         else
18579           # Not relevant for non-Windows
18580           IS_MAKE_CORRECT_ENV=true
18581         fi
18582         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18583           { $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
18584 $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;}
18585         else
18586           FOUND_MAKE=$MAKE_CANDIDATE
18587 
18588   # Only process if variable expands to non-empty
18589 
18590   if test "x$FOUND_MAKE" != x; then
18591     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18592 
18593   # First separate the path from the arguments. This will split at the first
18594   # space.
18595   complete="$FOUND_MAKE"
18596   path="${complete%% *}"
18597   tmp="$complete EOL"
18598   arguments="${tmp#* }"
18599 
18600   # Input might be given as Windows format, start by converting to
18601   # unix format.
18602   new_path=`$CYGPATH -u "$path"`
18603 
18604   # Now try to locate executable using which
18605   new_path=`$WHICH "$new_path" 2> /dev/null`
18606   # bat and cmd files are not always considered executable in cygwin causing which
18607   # to not find them
18608   if test "x$new_path" = x \
18609       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18610       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18611     new_path=`$CYGPATH -u "$path"`
18612   fi
18613   if test "x$new_path" = x; then
18614     # Oops. Which didn't find the executable.
18615     # The splitting of arguments from the executable at a space might have been incorrect,
18616     # since paths with space are more likely in Windows. Give it another try with the whole
18617     # argument.
18618     path="$complete"
18619     arguments="EOL"
18620     new_path=`$CYGPATH -u "$path"`
18621     new_path=`$WHICH "$new_path" 2> /dev/null`
18622     # bat and cmd files are not always considered executable in cygwin causing which
18623     # to not find them
18624     if test "x$new_path" = x \
18625         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18626         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18627       new_path=`$CYGPATH -u "$path"`
18628     fi
18629     if test "x$new_path" = x; then
18630       # It's still not found. Now this is an unrecoverable error.
18631       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18632 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18633       has_space=`$ECHO "$complete" | $GREP " "`
18634       if test "x$has_space" != x; then
18635         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18636 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18637       fi
18638       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18639     fi
18640   fi
18641 
18642   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18643   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18644   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18645   # "foo.exe" is OK but "foo" is an error.
18646   #
18647   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18648   # It is also a way to make sure we got the proper file name for the real test later on.
18649   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18650   if test "x$test_shortpath" = x; then
18651     # Short path failed, file does not exist as specified.
18652     # Try adding .exe or .cmd
18653     if test -f "${new_path}.exe"; then
18654       input_to_shortpath="${new_path}.exe"
18655     elif test -f "${new_path}.cmd"; then
18656       input_to_shortpath="${new_path}.cmd"
18657     else
18658       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18659 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18660       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18661 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18662       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18663     fi
18664   else
18665     input_to_shortpath="$new_path"
18666   fi
18667 
18668   # Call helper function which possibly converts this using DOS-style short mode.
18669   # If so, the updated path is stored in $new_path.
18670   new_path="$input_to_shortpath"
18671 
18672   input_path="$input_to_shortpath"
18673   # Check if we need to convert this using DOS-style short mode. If the path
18674   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18675   # take no chances and rewrite it.
18676   # Note: m4 eats our [], so we need to use [ and ] instead.
18677   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18678   if test "x$has_forbidden_chars" != x; then
18679     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18680     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18681     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18682     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18683       # Going to short mode and back again did indeed matter. Since short mode is
18684       # case insensitive, let's make it lowercase to improve readability.
18685       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18686       # Now convert it back to Unix-style (cygpath)
18687       input_path=`$CYGPATH -u "$shortmode_path"`
18688       new_path="$input_path"
18689     fi
18690   fi
18691 
18692   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18693   if test "x$test_cygdrive_prefix" = x; then
18694     # As a simple fix, exclude /usr/bin since it's not a real path.
18695     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18696       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18697       # a path prefixed by /cygdrive for fixpath to work.
18698       new_path="$CYGWIN_ROOT_PATH$input_path"
18699     fi
18700   fi
18701 
18702   # remove trailing .exe if any
18703   new_path="${new_path/%.exe/}"
18704 
18705     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18706 
18707   # First separate the path from the arguments. This will split at the first
18708   # space.
18709   complete="$FOUND_MAKE"
18710   path="${complete%% *}"
18711   tmp="$complete EOL"
18712   arguments="${tmp#* }"
18713 
18714   # Input might be given as Windows format, start by converting to
18715   # unix format.
18716   new_path="$path"
18717 
18718   windows_path="$new_path"
18719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18720     unix_path=`$CYGPATH -u "$windows_path"`
18721     new_path="$unix_path"
18722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18723     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18724     new_path="$unix_path"
18725   fi
18726 
18727 
18728   # Now try to locate executable using which
18729   new_path=`$WHICH "$new_path" 2> /dev/null`
18730 
18731   if test "x$new_path" = x; then
18732     # Oops. Which didn't find the executable.
18733     # The splitting of arguments from the executable at a space might have been incorrect,
18734     # since paths with space are more likely in Windows. Give it another try with the whole
18735     # argument.
18736     path="$complete"
18737     arguments="EOL"
18738     new_path="$path"
18739 
18740   windows_path="$new_path"
18741   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18742     unix_path=`$CYGPATH -u "$windows_path"`
18743     new_path="$unix_path"
18744   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18745     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18746     new_path="$unix_path"
18747   fi
18748 
18749 
18750     new_path=`$WHICH "$new_path" 2> /dev/null`
18751     # bat and cmd files are not always considered executable in MSYS causing which
18752     # to not find them
18753     if test "x$new_path" = x \
18754         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18755         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18756       new_path="$path"
18757 
18758   windows_path="$new_path"
18759   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18760     unix_path=`$CYGPATH -u "$windows_path"`
18761     new_path="$unix_path"
18762   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18763     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18764     new_path="$unix_path"
18765   fi
18766 
18767     fi
18768 
18769     if test "x$new_path" = x; then
18770       # It's still not found. Now this is an unrecoverable error.
18771       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18772 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18773       has_space=`$ECHO "$complete" | $GREP " "`
18774       if test "x$has_space" != x; then
18775         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18776 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18777       fi
18778       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18779     fi
18780   fi
18781 
18782   # Now new_path has a complete unix path to the binary
18783   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18784     # Keep paths in /bin as-is, but remove trailing .exe if any
18785     new_path="${new_path/%.exe/}"
18786     # Do not save /bin paths to all_fixpath_prefixes!
18787   else
18788     # Not in mixed or Windows style, start by that.
18789     new_path=`cmd //c echo $new_path`
18790 
18791   input_path="$new_path"
18792   # Check if we need to convert this using DOS-style short mode. If the path
18793   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18794   # take no chances and rewrite it.
18795   # Note: m4 eats our [], so we need to use [ and ] instead.
18796   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18797   if test "x$has_forbidden_chars" != x; then
18798     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18799     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18800   fi
18801 
18802     # Output is in $new_path
18803 
18804   windows_path="$new_path"
18805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18806     unix_path=`$CYGPATH -u "$windows_path"`
18807     new_path="$unix_path"
18808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18810     new_path="$unix_path"
18811   fi
18812 
18813     # remove trailing .exe if any
18814     new_path="${new_path/%.exe/}"
18815 
18816     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18817     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18818   fi
18819 
18820     else
18821       # We're on a unix platform. Hooray! :)
18822       # First separate the path from the arguments. This will split at the first
18823       # space.
18824       complete="$FOUND_MAKE"
18825       path="${complete%% *}"
18826       tmp="$complete EOL"
18827       arguments="${tmp#* }"
18828 
18829       # Cannot rely on the command "which" here since it doesn't always work.
18830       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18831       if test -z "$is_absolute_path"; then
18832         # Path to executable is not absolute. Find it.
18833         IFS_save="$IFS"
18834         IFS=:
18835         for p in $PATH; do
18836           if test -f "$p/$path" && test -x "$p/$path"; then
18837             new_path="$p/$path"
18838             break
18839           fi
18840         done
18841         IFS="$IFS_save"
18842       else
18843         # This is an absolute path, we can use it without further modifications.
18844         new_path="$path"
18845       fi
18846 
18847       if test "x$new_path" = x; then
18848         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18849 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18850         has_space=`$ECHO "$complete" | $GREP " "`
18851         if test "x$has_space" != x; then
18852           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18853 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18854         fi
18855         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18856       fi
18857     fi
18858 
18859     # Now join together the path and the arguments once again
18860     if test "x$arguments" != xEOL; then
18861       new_complete="$new_path ${arguments% *}"
18862     else
18863       new_complete="$new_path"
18864     fi
18865 
18866     if test "x$complete" != "x$new_complete"; then
18867       FOUND_MAKE="$new_complete"
18868       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18869 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18870     fi
18871   fi
18872 
18873         fi
18874       fi
18875     fi
18876   fi
18877 
18878     fi
18879 
18880     if test "x$FOUND_MAKE" = x; then
18881       if test "x$TOOLCHAIN_PATH" != x; then
18882         # We have a toolchain path, check that as well before giving up.
18883         OLD_PATH=$PATH
18884         PATH=$TOOLCHAIN_PATH:$PATH
18885         for ac_prog in gmake
18886 do
18887   # Extract the first word of "$ac_prog", so it can be a program name with args.
18888 set dummy $ac_prog; ac_word=$2
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18890 $as_echo_n "checking for $ac_word... " >&6; }
18891 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18892   $as_echo_n "(cached) " >&6
18893 else
18894   case $CHECK_TOOLSDIR_GMAKE in
18895   [\\/]* | ?:[\\/]*)
18896   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18897   ;;
18898   *)
18899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18900 for as_dir in $PATH
18901 do
18902   IFS=$as_save_IFS
18903   test -z "$as_dir" && as_dir=.
18904     for ac_exec_ext in '' $ac_executable_extensions; do
18905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18906     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18908     break 2
18909   fi
18910 done
18911   done
18912 IFS=$as_save_IFS
18913 
18914   ;;
18915 esac
18916 fi
18917 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18918 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18920 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18921 else
18922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923 $as_echo "no" >&6; }
18924 fi
18925 
18926 
18927   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18928 done
18929 
18930 
18931   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18932   DESCRIPTION="gmake in tools-dir"
18933 
18934   # On Cygwin, we require a newer version of make than on other platforms
18935   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18936     MAKE_VERSION_EXPR="-e 4\."
18937     MAKE_REQUIRED_VERSION="4.0"
18938    else
18939     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18940     MAKE_REQUIRED_VERSION="3.81"
18941   fi
18942 
18943   if test "x$MAKE_CANDIDATE" != x; then
18944     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18945 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18946     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18947     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18948     if test "x$IS_GNU_MAKE" = x; then
18949       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18950 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18951     else
18952       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18953       if test "x$IS_MODERN_MAKE" = x; then
18954         { $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
18955 $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;}
18956       else
18957         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18958           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18959             MAKE_EXPECTED_ENV='cygwin'
18960           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18961             MAKE_EXPECTED_ENV='msys'
18962           else
18963             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18964           fi
18965           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18966           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18967         else
18968           # Not relevant for non-Windows
18969           IS_MAKE_CORRECT_ENV=true
18970         fi
18971         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18972           { $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
18973 $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;}
18974         else
18975           FOUND_MAKE=$MAKE_CANDIDATE
18976 
18977   # Only process if variable expands to non-empty
18978 
18979   if test "x$FOUND_MAKE" != x; then
18980     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18981 
18982   # First separate the path from the arguments. This will split at the first
18983   # space.
18984   complete="$FOUND_MAKE"
18985   path="${complete%% *}"
18986   tmp="$complete EOL"
18987   arguments="${tmp#* }"
18988 
18989   # Input might be given as Windows format, start by converting to
18990   # unix format.
18991   new_path=`$CYGPATH -u "$path"`
18992 
18993   # Now try to locate executable using which
18994   new_path=`$WHICH "$new_path" 2> /dev/null`
18995   # bat and cmd files are not always considered executable in cygwin causing which
18996   # to not find them
18997   if test "x$new_path" = x \
18998       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18999       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19000     new_path=`$CYGPATH -u "$path"`
19001   fi
19002   if test "x$new_path" = x; then
19003     # Oops. Which didn't find the executable.
19004     # The splitting of arguments from the executable at a space might have been incorrect,
19005     # since paths with space are more likely in Windows. Give it another try with the whole
19006     # argument.
19007     path="$complete"
19008     arguments="EOL"
19009     new_path=`$CYGPATH -u "$path"`
19010     new_path=`$WHICH "$new_path" 2> /dev/null`
19011     # bat and cmd files are not always considered executable in cygwin causing which
19012     # to not find them
19013     if test "x$new_path" = x \
19014         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19015         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19016       new_path=`$CYGPATH -u "$path"`
19017     fi
19018     if test "x$new_path" = x; then
19019       # It's still not found. Now this is an unrecoverable error.
19020       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19022       has_space=`$ECHO "$complete" | $GREP " "`
19023       if test "x$has_space" != x; then
19024         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19025 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19026       fi
19027       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19028     fi
19029   fi
19030 
19031   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19032   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19033   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19034   # "foo.exe" is OK but "foo" is an error.
19035   #
19036   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19037   # It is also a way to make sure we got the proper file name for the real test later on.
19038   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19039   if test "x$test_shortpath" = x; then
19040     # Short path failed, file does not exist as specified.
19041     # Try adding .exe or .cmd
19042     if test -f "${new_path}.exe"; then
19043       input_to_shortpath="${new_path}.exe"
19044     elif test -f "${new_path}.cmd"; then
19045       input_to_shortpath="${new_path}.cmd"
19046     else
19047       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19048 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19049       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19050 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19051       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19052     fi
19053   else
19054     input_to_shortpath="$new_path"
19055   fi
19056 
19057   # Call helper function which possibly converts this using DOS-style short mode.
19058   # If so, the updated path is stored in $new_path.
19059   new_path="$input_to_shortpath"
19060 
19061   input_path="$input_to_shortpath"
19062   # Check if we need to convert this using DOS-style short mode. If the path
19063   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19064   # take no chances and rewrite it.
19065   # Note: m4 eats our [], so we need to use [ and ] instead.
19066   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19067   if test "x$has_forbidden_chars" != x; then
19068     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19069     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19070     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19071     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19072       # Going to short mode and back again did indeed matter. Since short mode is
19073       # case insensitive, let's make it lowercase to improve readability.
19074       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19075       # Now convert it back to Unix-style (cygpath)
19076       input_path=`$CYGPATH -u "$shortmode_path"`
19077       new_path="$input_path"
19078     fi
19079   fi
19080 
19081   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19082   if test "x$test_cygdrive_prefix" = x; then
19083     # As a simple fix, exclude /usr/bin since it's not a real path.
19084     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19085       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19086       # a path prefixed by /cygdrive for fixpath to work.
19087       new_path="$CYGWIN_ROOT_PATH$input_path"
19088     fi
19089   fi
19090 
19091   # remove trailing .exe if any
19092   new_path="${new_path/%.exe/}"
19093 
19094     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19095 
19096   # First separate the path from the arguments. This will split at the first
19097   # space.
19098   complete="$FOUND_MAKE"
19099   path="${complete%% *}"
19100   tmp="$complete EOL"
19101   arguments="${tmp#* }"
19102 
19103   # Input might be given as Windows format, start by converting to
19104   # unix format.
19105   new_path="$path"
19106 
19107   windows_path="$new_path"
19108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19109     unix_path=`$CYGPATH -u "$windows_path"`
19110     new_path="$unix_path"
19111   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19112     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19113     new_path="$unix_path"
19114   fi
19115 
19116 
19117   # Now try to locate executable using which
19118   new_path=`$WHICH "$new_path" 2> /dev/null`
19119 
19120   if test "x$new_path" = x; then
19121     # Oops. Which didn't find the executable.
19122     # The splitting of arguments from the executable at a space might have been incorrect,
19123     # since paths with space are more likely in Windows. Give it another try with the whole
19124     # argument.
19125     path="$complete"
19126     arguments="EOL"
19127     new_path="$path"
19128 
19129   windows_path="$new_path"
19130   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19131     unix_path=`$CYGPATH -u "$windows_path"`
19132     new_path="$unix_path"
19133   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19134     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19135     new_path="$unix_path"
19136   fi
19137 
19138 
19139     new_path=`$WHICH "$new_path" 2> /dev/null`
19140     # bat and cmd files are not always considered executable in MSYS causing which
19141     # to not find them
19142     if test "x$new_path" = x \
19143         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19144         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19145       new_path="$path"
19146 
19147   windows_path="$new_path"
19148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19149     unix_path=`$CYGPATH -u "$windows_path"`
19150     new_path="$unix_path"
19151   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19152     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19153     new_path="$unix_path"
19154   fi
19155 
19156     fi
19157 
19158     if test "x$new_path" = x; then
19159       # It's still not found. Now this is an unrecoverable error.
19160       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19161 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19162       has_space=`$ECHO "$complete" | $GREP " "`
19163       if test "x$has_space" != x; then
19164         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19165 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19166       fi
19167       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19168     fi
19169   fi
19170 
19171   # Now new_path has a complete unix path to the binary
19172   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19173     # Keep paths in /bin as-is, but remove trailing .exe if any
19174     new_path="${new_path/%.exe/}"
19175     # Do not save /bin paths to all_fixpath_prefixes!
19176   else
19177     # Not in mixed or Windows style, start by that.
19178     new_path=`cmd //c echo $new_path`
19179 
19180   input_path="$new_path"
19181   # Check if we need to convert this using DOS-style short mode. If the path
19182   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19183   # take no chances and rewrite it.
19184   # Note: m4 eats our [], so we need to use [ and ] instead.
19185   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19186   if test "x$has_forbidden_chars" != x; then
19187     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19188     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19189   fi
19190 
19191     # Output is in $new_path
19192 
19193   windows_path="$new_path"
19194   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19195     unix_path=`$CYGPATH -u "$windows_path"`
19196     new_path="$unix_path"
19197   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19198     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19199     new_path="$unix_path"
19200   fi
19201 
19202     # remove trailing .exe if any
19203     new_path="${new_path/%.exe/}"
19204 
19205     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19206     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19207   fi
19208 
19209     else
19210       # We're on a unix platform. Hooray! :)
19211       # First separate the path from the arguments. This will split at the first
19212       # space.
19213       complete="$FOUND_MAKE"
19214       path="${complete%% *}"
19215       tmp="$complete EOL"
19216       arguments="${tmp#* }"
19217 
19218       # Cannot rely on the command "which" here since it doesn't always work.
19219       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19220       if test -z "$is_absolute_path"; then
19221         # Path to executable is not absolute. Find it.
19222         IFS_save="$IFS"
19223         IFS=:
19224         for p in $PATH; do
19225           if test -f "$p/$path" && test -x "$p/$path"; then
19226             new_path="$p/$path"
19227             break
19228           fi
19229         done
19230         IFS="$IFS_save"
19231       else
19232         # This is an absolute path, we can use it without further modifications.
19233         new_path="$path"
19234       fi
19235 
19236       if test "x$new_path" = x; then
19237         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19238 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19239         has_space=`$ECHO "$complete" | $GREP " "`
19240         if test "x$has_space" != x; then
19241           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19242 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19243         fi
19244         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19245       fi
19246     fi
19247 
19248     # Now join together the path and the arguments once again
19249     if test "x$arguments" != xEOL; then
19250       new_complete="$new_path ${arguments% *}"
19251     else
19252       new_complete="$new_path"
19253     fi
19254 
19255     if test "x$complete" != "x$new_complete"; then
19256       FOUND_MAKE="$new_complete"
19257       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19258 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19259     fi
19260   fi
19261 
19262         fi
19263       fi
19264     fi
19265   fi
19266 
19267         if test "x$FOUND_MAKE" = x; then
19268           for ac_prog in make
19269 do
19270   # Extract the first word of "$ac_prog", so it can be a program name with args.
19271 set dummy $ac_prog; ac_word=$2
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19273 $as_echo_n "checking for $ac_word... " >&6; }
19274 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19275   $as_echo_n "(cached) " >&6
19276 else
19277   case $CHECK_TOOLSDIR_MAKE in
19278   [\\/]* | ?:[\\/]*)
19279   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19280   ;;
19281   *)
19282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19283 for as_dir in $PATH
19284 do
19285   IFS=$as_save_IFS
19286   test -z "$as_dir" && as_dir=.
19287     for ac_exec_ext in '' $ac_executable_extensions; do
19288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19289     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19291     break 2
19292   fi
19293 done
19294   done
19295 IFS=$as_save_IFS
19296 
19297   ;;
19298 esac
19299 fi
19300 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19301 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19303 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19304 else
19305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306 $as_echo "no" >&6; }
19307 fi
19308 
19309 
19310   test -n "$CHECK_TOOLSDIR_MAKE" && break
19311 done
19312 
19313 
19314   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19315   DESCRIPTION="make in tools-dir"
19316 
19317   # On Cygwin, we require a newer version of make than on other platforms
19318   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19319     MAKE_VERSION_EXPR="-e 4\."
19320     MAKE_REQUIRED_VERSION="4.0"
19321    else
19322     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19323     MAKE_REQUIRED_VERSION="3.81"
19324   fi
19325 
19326   if test "x$MAKE_CANDIDATE" != x; then
19327     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19328 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19329     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19330     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19331     if test "x$IS_GNU_MAKE" = x; then
19332       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19333 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19334     else
19335       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19336       if test "x$IS_MODERN_MAKE" = x; then
19337         { $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
19338 $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;}
19339       else
19340         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19341           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19342             MAKE_EXPECTED_ENV='cygwin'
19343           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19344             MAKE_EXPECTED_ENV='msys'
19345           else
19346             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19347           fi
19348           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19349           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19350         else
19351           # Not relevant for non-Windows
19352           IS_MAKE_CORRECT_ENV=true
19353         fi
19354         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19355           { $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
19356 $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;}
19357         else
19358           FOUND_MAKE=$MAKE_CANDIDATE
19359 
19360   # Only process if variable expands to non-empty
19361 
19362   if test "x$FOUND_MAKE" != x; then
19363     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19364 
19365   # First separate the path from the arguments. This will split at the first
19366   # space.
19367   complete="$FOUND_MAKE"
19368   path="${complete%% *}"
19369   tmp="$complete EOL"
19370   arguments="${tmp#* }"
19371 
19372   # Input might be given as Windows format, start by converting to
19373   # unix format.
19374   new_path=`$CYGPATH -u "$path"`
19375 
19376   # Now try to locate executable using which
19377   new_path=`$WHICH "$new_path" 2> /dev/null`
19378   # bat and cmd files are not always considered executable in cygwin causing which
19379   # to not find them
19380   if test "x$new_path" = x \
19381       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19382       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19383     new_path=`$CYGPATH -u "$path"`
19384   fi
19385   if test "x$new_path" = x; then
19386     # Oops. Which didn't find the executable.
19387     # The splitting of arguments from the executable at a space might have been incorrect,
19388     # since paths with space are more likely in Windows. Give it another try with the whole
19389     # argument.
19390     path="$complete"
19391     arguments="EOL"
19392     new_path=`$CYGPATH -u "$path"`
19393     new_path=`$WHICH "$new_path" 2> /dev/null`
19394     # bat and cmd files are not always considered executable in cygwin causing which
19395     # to not find them
19396     if test "x$new_path" = x \
19397         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19398         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19399       new_path=`$CYGPATH -u "$path"`
19400     fi
19401     if test "x$new_path" = x; then
19402       # It's still not found. Now this is an unrecoverable error.
19403       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19404 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19405       has_space=`$ECHO "$complete" | $GREP " "`
19406       if test "x$has_space" != x; then
19407         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19408 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19409       fi
19410       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19411     fi
19412   fi
19413 
19414   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19415   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19416   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19417   # "foo.exe" is OK but "foo" is an error.
19418   #
19419   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19420   # It is also a way to make sure we got the proper file name for the real test later on.
19421   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19422   if test "x$test_shortpath" = x; then
19423     # Short path failed, file does not exist as specified.
19424     # Try adding .exe or .cmd
19425     if test -f "${new_path}.exe"; then
19426       input_to_shortpath="${new_path}.exe"
19427     elif test -f "${new_path}.cmd"; then
19428       input_to_shortpath="${new_path}.cmd"
19429     else
19430       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19431 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19432       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19433 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19434       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19435     fi
19436   else
19437     input_to_shortpath="$new_path"
19438   fi
19439 
19440   # Call helper function which possibly converts this using DOS-style short mode.
19441   # If so, the updated path is stored in $new_path.
19442   new_path="$input_to_shortpath"
19443 
19444   input_path="$input_to_shortpath"
19445   # Check if we need to convert this using DOS-style short mode. If the path
19446   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19447   # take no chances and rewrite it.
19448   # Note: m4 eats our [], so we need to use [ and ] instead.
19449   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19450   if test "x$has_forbidden_chars" != x; then
19451     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19452     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19453     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19454     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19455       # Going to short mode and back again did indeed matter. Since short mode is
19456       # case insensitive, let's make it lowercase to improve readability.
19457       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19458       # Now convert it back to Unix-style (cygpath)
19459       input_path=`$CYGPATH -u "$shortmode_path"`
19460       new_path="$input_path"
19461     fi
19462   fi
19463 
19464   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19465   if test "x$test_cygdrive_prefix" = x; then
19466     # As a simple fix, exclude /usr/bin since it's not a real path.
19467     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19468       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19469       # a path prefixed by /cygdrive for fixpath to work.
19470       new_path="$CYGWIN_ROOT_PATH$input_path"
19471     fi
19472   fi
19473 
19474   # remove trailing .exe if any
19475   new_path="${new_path/%.exe/}"
19476 
19477     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19478 
19479   # First separate the path from the arguments. This will split at the first
19480   # space.
19481   complete="$FOUND_MAKE"
19482   path="${complete%% *}"
19483   tmp="$complete EOL"
19484   arguments="${tmp#* }"
19485 
19486   # Input might be given as Windows format, start by converting to
19487   # unix format.
19488   new_path="$path"
19489 
19490   windows_path="$new_path"
19491   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19492     unix_path=`$CYGPATH -u "$windows_path"`
19493     new_path="$unix_path"
19494   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19495     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19496     new_path="$unix_path"
19497   fi
19498 
19499 
19500   # Now try to locate executable using which
19501   new_path=`$WHICH "$new_path" 2> /dev/null`
19502 
19503   if test "x$new_path" = x; then
19504     # Oops. Which didn't find the executable.
19505     # The splitting of arguments from the executable at a space might have been incorrect,
19506     # since paths with space are more likely in Windows. Give it another try with the whole
19507     # argument.
19508     path="$complete"
19509     arguments="EOL"
19510     new_path="$path"
19511 
19512   windows_path="$new_path"
19513   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19514     unix_path=`$CYGPATH -u "$windows_path"`
19515     new_path="$unix_path"
19516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19517     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19518     new_path="$unix_path"
19519   fi
19520 
19521 
19522     new_path=`$WHICH "$new_path" 2> /dev/null`
19523     # bat and cmd files are not always considered executable in MSYS causing which
19524     # to not find them
19525     if test "x$new_path" = x \
19526         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19527         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19528       new_path="$path"
19529 
19530   windows_path="$new_path"
19531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19532     unix_path=`$CYGPATH -u "$windows_path"`
19533     new_path="$unix_path"
19534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19535     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19536     new_path="$unix_path"
19537   fi
19538 
19539     fi
19540 
19541     if test "x$new_path" = x; then
19542       # It's still not found. Now this is an unrecoverable error.
19543       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19544 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19545       has_space=`$ECHO "$complete" | $GREP " "`
19546       if test "x$has_space" != x; then
19547         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19549       fi
19550       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19551     fi
19552   fi
19553 
19554   # Now new_path has a complete unix path to the binary
19555   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19556     # Keep paths in /bin as-is, but remove trailing .exe if any
19557     new_path="${new_path/%.exe/}"
19558     # Do not save /bin paths to all_fixpath_prefixes!
19559   else
19560     # Not in mixed or Windows style, start by that.
19561     new_path=`cmd //c echo $new_path`
19562 
19563   input_path="$new_path"
19564   # Check if we need to convert this using DOS-style short mode. If the path
19565   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19566   # take no chances and rewrite it.
19567   # Note: m4 eats our [], so we need to use [ and ] instead.
19568   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19569   if test "x$has_forbidden_chars" != x; then
19570     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19571     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19572   fi
19573 
19574     # Output is in $new_path
19575 
19576   windows_path="$new_path"
19577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19578     unix_path=`$CYGPATH -u "$windows_path"`
19579     new_path="$unix_path"
19580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19582     new_path="$unix_path"
19583   fi
19584 
19585     # remove trailing .exe if any
19586     new_path="${new_path/%.exe/}"
19587 
19588     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19589     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19590   fi
19591 
19592     else
19593       # We're on a unix platform. Hooray! :)
19594       # First separate the path from the arguments. This will split at the first
19595       # space.
19596       complete="$FOUND_MAKE"
19597       path="${complete%% *}"
19598       tmp="$complete EOL"
19599       arguments="${tmp#* }"
19600 
19601       # Cannot rely on the command "which" here since it doesn't always work.
19602       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19603       if test -z "$is_absolute_path"; then
19604         # Path to executable is not absolute. Find it.
19605         IFS_save="$IFS"
19606         IFS=:
19607         for p in $PATH; do
19608           if test -f "$p/$path" && test -x "$p/$path"; then
19609             new_path="$p/$path"
19610             break
19611           fi
19612         done
19613         IFS="$IFS_save"
19614       else
19615         # This is an absolute path, we can use it without further modifications.
19616         new_path="$path"
19617       fi
19618 
19619       if test "x$new_path" = x; then
19620         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19621 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19622         has_space=`$ECHO "$complete" | $GREP " "`
19623         if test "x$has_space" != x; then
19624           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19625 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19626         fi
19627         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19628       fi
19629     fi
19630 
19631     # Now join together the path and the arguments once again
19632     if test "x$arguments" != xEOL; then
19633       new_complete="$new_path ${arguments% *}"
19634     else
19635       new_complete="$new_path"
19636     fi
19637 
19638     if test "x$complete" != "x$new_complete"; then
19639       FOUND_MAKE="$new_complete"
19640       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19641 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19642     fi
19643   fi
19644 
19645         fi
19646       fi
19647     fi
19648   fi
19649 
19650         fi
19651         PATH=$OLD_PATH
19652       fi
19653     fi
19654 
19655     if test "x$FOUND_MAKE" = x; then
19656       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
19657     fi
19658 
19659     else
19660       # If it succeeded, then it was overridden by the user. We will use it
19661       # for the tool.
19662 
19663       # First remove it from the list of overridden variables, so we can test
19664       # for unknown variables in the end.
19665       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19666 
19667       # Check if we try to supply an empty value
19668       if test "x$MAKE" = x; then
19669         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19670 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19672 $as_echo_n "checking for MAKE... " >&6; }
19673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19674 $as_echo "disabled" >&6; }
19675       else
19676         # Check if the provided tool contains a complete path.
19677         tool_specified="$MAKE"
19678         tool_basename="${tool_specified##*/}"
19679         if test "x$tool_basename" = "x$tool_specified"; then
19680           # A command without a complete path is provided, search $PATH.
19681           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19682 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19683           # Extract the first word of "$tool_basename", so it can be a program name with args.
19684 set dummy $tool_basename; ac_word=$2
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19686 $as_echo_n "checking for $ac_word... " >&6; }
19687 if ${ac_cv_path_MAKE+:} false; then :
19688   $as_echo_n "(cached) " >&6
19689 else
19690   case $MAKE in
19691   [\\/]* | ?:[\\/]*)
19692   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19693   ;;
19694   *)
19695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19697 do
19698   IFS=$as_save_IFS
19699   test -z "$as_dir" && as_dir=.
19700     for ac_exec_ext in '' $ac_executable_extensions; do
19701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19702     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19704     break 2
19705   fi
19706 done
19707   done
19708 IFS=$as_save_IFS
19709 
19710   ;;
19711 esac
19712 fi
19713 MAKE=$ac_cv_path_MAKE
19714 if test -n "$MAKE"; then
19715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19716 $as_echo "$MAKE" >&6; }
19717 else
19718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19719 $as_echo "no" >&6; }
19720 fi
19721 
19722 
19723           if test "x$MAKE" = x; then
19724             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19725           fi
19726         else
19727           # Otherwise we believe it is a complete path. Use it as it is.
19728           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19729 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19730           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19731 $as_echo_n "checking for MAKE... " >&6; }
19732           if test ! -x "$tool_specified"; then
19733             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19734 $as_echo "not found" >&6; }
19735             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19736           fi
19737           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19738 $as_echo "$tool_specified" >&6; }
19739         fi
19740       fi
19741     fi
19742 
19743     # If MAKE was set by user, verify the version
19744 
19745   MAKE_CANDIDATE=""$MAKE""
19746   DESCRIPTION="user supplied MAKE=$MAKE"
19747 
19748   # On Cygwin, we require a newer version of make than on other platforms
19749   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19750     MAKE_VERSION_EXPR="-e 4\."
19751     MAKE_REQUIRED_VERSION="4.0"
19752    else
19753     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19754     MAKE_REQUIRED_VERSION="3.81"
19755   fi
19756 
19757   if test "x$MAKE_CANDIDATE" != x; then
19758     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19759 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19760     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19761     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19762     if test "x$IS_GNU_MAKE" = x; then
19763       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19764 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19765     else
19766       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19767       if test "x$IS_MODERN_MAKE" = x; then
19768         { $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
19769 $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;}
19770       else
19771         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19772           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19773             MAKE_EXPECTED_ENV='cygwin'
19774           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19775             MAKE_EXPECTED_ENV='msys'
19776           else
19777             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19778           fi
19779           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19780           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19781         else
19782           # Not relevant for non-Windows
19783           IS_MAKE_CORRECT_ENV=true
19784         fi
19785         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19786           { $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
19787 $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;}
19788         else
19789           FOUND_MAKE=$MAKE_CANDIDATE
19790 
19791   # Only process if variable expands to non-empty
19792 
19793   if test "x$FOUND_MAKE" != x; then
19794     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19795 
19796   # First separate the path from the arguments. This will split at the first
19797   # space.
19798   complete="$FOUND_MAKE"
19799   path="${complete%% *}"
19800   tmp="$complete EOL"
19801   arguments="${tmp#* }"
19802 
19803   # Input might be given as Windows format, start by converting to
19804   # unix format.
19805   new_path=`$CYGPATH -u "$path"`
19806 
19807   # Now try to locate executable using which
19808   new_path=`$WHICH "$new_path" 2> /dev/null`
19809   # bat and cmd files are not always considered executable in cygwin causing which
19810   # to not find them
19811   if test "x$new_path" = x \
19812       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19813       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19814     new_path=`$CYGPATH -u "$path"`
19815   fi
19816   if test "x$new_path" = x; then
19817     # Oops. Which didn't find the executable.
19818     # The splitting of arguments from the executable at a space might have been incorrect,
19819     # since paths with space are more likely in Windows. Give it another try with the whole
19820     # argument.
19821     path="$complete"
19822     arguments="EOL"
19823     new_path=`$CYGPATH -u "$path"`
19824     new_path=`$WHICH "$new_path" 2> /dev/null`
19825     # bat and cmd files are not always considered executable in cygwin causing which
19826     # to not find them
19827     if test "x$new_path" = x \
19828         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19829         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19830       new_path=`$CYGPATH -u "$path"`
19831     fi
19832     if test "x$new_path" = x; then
19833       # It's still not found. Now this is an unrecoverable error.
19834       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19835 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19836       has_space=`$ECHO "$complete" | $GREP " "`
19837       if test "x$has_space" != x; then
19838         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19839 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19840       fi
19841       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19842     fi
19843   fi
19844 
19845   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19846   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19847   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19848   # "foo.exe" is OK but "foo" is an error.
19849   #
19850   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19851   # It is also a way to make sure we got the proper file name for the real test later on.
19852   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19853   if test "x$test_shortpath" = x; then
19854     # Short path failed, file does not exist as specified.
19855     # Try adding .exe or .cmd
19856     if test -f "${new_path}.exe"; then
19857       input_to_shortpath="${new_path}.exe"
19858     elif test -f "${new_path}.cmd"; then
19859       input_to_shortpath="${new_path}.cmd"
19860     else
19861       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19862 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19863       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19864 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19865       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19866     fi
19867   else
19868     input_to_shortpath="$new_path"
19869   fi
19870 
19871   # Call helper function which possibly converts this using DOS-style short mode.
19872   # If so, the updated path is stored in $new_path.
19873   new_path="$input_to_shortpath"
19874 
19875   input_path="$input_to_shortpath"
19876   # Check if we need to convert this using DOS-style short mode. If the path
19877   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19878   # take no chances and rewrite it.
19879   # Note: m4 eats our [], so we need to use [ and ] instead.
19880   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19881   if test "x$has_forbidden_chars" != x; then
19882     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19883     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19884     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19885     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19886       # Going to short mode and back again did indeed matter. Since short mode is
19887       # case insensitive, let's make it lowercase to improve readability.
19888       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19889       # Now convert it back to Unix-style (cygpath)
19890       input_path=`$CYGPATH -u "$shortmode_path"`
19891       new_path="$input_path"
19892     fi
19893   fi
19894 
19895   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19896   if test "x$test_cygdrive_prefix" = x; then
19897     # As a simple fix, exclude /usr/bin since it's not a real path.
19898     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19899       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19900       # a path prefixed by /cygdrive for fixpath to work.
19901       new_path="$CYGWIN_ROOT_PATH$input_path"
19902     fi
19903   fi
19904 
19905   # remove trailing .exe if any
19906   new_path="${new_path/%.exe/}"
19907 
19908     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19909 
19910   # First separate the path from the arguments. This will split at the first
19911   # space.
19912   complete="$FOUND_MAKE"
19913   path="${complete%% *}"
19914   tmp="$complete EOL"
19915   arguments="${tmp#* }"
19916 
19917   # Input might be given as Windows format, start by converting to
19918   # unix format.
19919   new_path="$path"
19920 
19921   windows_path="$new_path"
19922   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19923     unix_path=`$CYGPATH -u "$windows_path"`
19924     new_path="$unix_path"
19925   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19926     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19927     new_path="$unix_path"
19928   fi
19929 
19930 
19931   # Now try to locate executable using which
19932   new_path=`$WHICH "$new_path" 2> /dev/null`
19933 
19934   if test "x$new_path" = x; then
19935     # Oops. Which didn't find the executable.
19936     # The splitting of arguments from the executable at a space might have been incorrect,
19937     # since paths with space are more likely in Windows. Give it another try with the whole
19938     # argument.
19939     path="$complete"
19940     arguments="EOL"
19941     new_path="$path"
19942 
19943   windows_path="$new_path"
19944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19945     unix_path=`$CYGPATH -u "$windows_path"`
19946     new_path="$unix_path"
19947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19948     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19949     new_path="$unix_path"
19950   fi
19951 
19952 
19953     new_path=`$WHICH "$new_path" 2> /dev/null`
19954     # bat and cmd files are not always considered executable in MSYS causing which
19955     # to not find them
19956     if test "x$new_path" = x \
19957         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19958         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19959       new_path="$path"
19960 
19961   windows_path="$new_path"
19962   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19963     unix_path=`$CYGPATH -u "$windows_path"`
19964     new_path="$unix_path"
19965   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19966     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19967     new_path="$unix_path"
19968   fi
19969 
19970     fi
19971 
19972     if test "x$new_path" = x; then
19973       # It's still not found. Now this is an unrecoverable error.
19974       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19975 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19976       has_space=`$ECHO "$complete" | $GREP " "`
19977       if test "x$has_space" != x; then
19978         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19979 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19980       fi
19981       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19982     fi
19983   fi
19984 
19985   # Now new_path has a complete unix path to the binary
19986   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19987     # Keep paths in /bin as-is, but remove trailing .exe if any
19988     new_path="${new_path/%.exe/}"
19989     # Do not save /bin paths to all_fixpath_prefixes!
19990   else
19991     # Not in mixed or Windows style, start by that.
19992     new_path=`cmd //c echo $new_path`
19993 
19994   input_path="$new_path"
19995   # Check if we need to convert this using DOS-style short mode. If the path
19996   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19997   # take no chances and rewrite it.
19998   # Note: m4 eats our [], so we need to use [ and ] instead.
19999   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20000   if test "x$has_forbidden_chars" != x; then
20001     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20002     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20003   fi
20004 
20005     # Output is in $new_path
20006 
20007   windows_path="$new_path"
20008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20009     unix_path=`$CYGPATH -u "$windows_path"`
20010     new_path="$unix_path"
20011   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20012     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20013     new_path="$unix_path"
20014   fi
20015 
20016     # remove trailing .exe if any
20017     new_path="${new_path/%.exe/}"
20018 
20019     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20020     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20021   fi
20022 
20023     else
20024       # We're on a unix platform. Hooray! :)
20025       # First separate the path from the arguments. This will split at the first
20026       # space.
20027       complete="$FOUND_MAKE"
20028       path="${complete%% *}"
20029       tmp="$complete EOL"
20030       arguments="${tmp#* }"
20031 
20032       # Cannot rely on the command "which" here since it doesn't always work.
20033       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20034       if test -z "$is_absolute_path"; then
20035         # Path to executable is not absolute. Find it.
20036         IFS_save="$IFS"
20037         IFS=:
20038         for p in $PATH; do
20039           if test -f "$p/$path" && test -x "$p/$path"; then
20040             new_path="$p/$path"
20041             break
20042           fi
20043         done
20044         IFS="$IFS_save"
20045       else
20046         # This is an absolute path, we can use it without further modifications.
20047         new_path="$path"
20048       fi
20049 
20050       if test "x$new_path" = x; then
20051         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20052 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20053         has_space=`$ECHO "$complete" | $GREP " "`
20054         if test "x$has_space" != x; then
20055           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20056 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20057         fi
20058         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20059       fi
20060     fi
20061 
20062     # Now join together the path and the arguments once again
20063     if test "x$arguments" != xEOL; then
20064       new_complete="$new_path ${arguments% *}"
20065     else
20066       new_complete="$new_path"
20067     fi
20068 
20069     if test "x$complete" != "x$new_complete"; then
20070       FOUND_MAKE="$new_complete"
20071       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20072 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20073     fi
20074   fi
20075 
20076         fi
20077       fi
20078     fi
20079   fi
20080 
20081     if test "x$FOUND_MAKE" = x; then
20082       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20083     fi
20084 
20085   fi
20086 
20087 
20088   MAKE=$FOUND_MAKE
20089 
20090   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20091 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20092 
20093 
20094   # Check if make supports the output sync option and if so, setup using it.
20095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20096 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20097   if $MAKE --version -O > /dev/null 2>&1; then
20098     OUTPUT_SYNC_SUPPORTED=true
20099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20100 $as_echo "yes" >&6; }
20101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20102 $as_echo_n "checking for output-sync value... " >&6; }
20103 
20104 # Check whether --with-output-sync was given.
20105 if test "${with_output_sync+set}" = set; then :
20106   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20107 fi
20108 
20109     if test "x$OUTPUT_SYNC" = "x"; then
20110       OUTPUT_SYNC=none
20111     fi
20112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20113 $as_echo "$OUTPUT_SYNC" >&6; }
20114     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20115       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20116     fi
20117   else
20118     OUTPUT_SYNC_SUPPORTED=false
20119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20120 $as_echo "no" >&6; }
20121   fi
20122 
20123 
20124 
20125 
20126 
20127 
20128   # Test if find supports -delete
20129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20130 $as_echo_n "checking if find supports -delete... " >&6; }
20131   FIND_DELETE="-delete"
20132 
20133   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20134 
20135   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20136 
20137   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20138   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20139     # No, it does not.
20140     rm $DELETEDIR/TestIfFindSupportsDelete
20141     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20142       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20143       FIND_DELETE="-print | xargs rm"
20144     else
20145       FIND_DELETE="-exec rm \{\} \+"
20146     fi
20147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20148 $as_echo "no" >&6; }
20149   else
20150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20151 $as_echo "yes" >&6; }
20152   fi
20153   rmdir $DELETEDIR
20154 
20155 
20156 
20157   # These tools might not be installed by default,
20158   # need hint on how to install them.
20159 
20160 
20161 
20162   # Publish this variable in the help.
20163 
20164 
20165   if [ -z "${UNZIP+x}" ]; then
20166     # The variable is not set by user, try to locate tool using the code snippet
20167     for ac_prog in unzip
20168 do
20169   # Extract the first word of "$ac_prog", so it can be a program name with args.
20170 set dummy $ac_prog; ac_word=$2
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20172 $as_echo_n "checking for $ac_word... " >&6; }
20173 if ${ac_cv_path_UNZIP+:} false; then :
20174   $as_echo_n "(cached) " >&6
20175 else
20176   case $UNZIP in
20177   [\\/]* | ?:[\\/]*)
20178   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20179   ;;
20180   *)
20181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20182 for as_dir in $PATH
20183 do
20184   IFS=$as_save_IFS
20185   test -z "$as_dir" && as_dir=.
20186     for ac_exec_ext in '' $ac_executable_extensions; do
20187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20188     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20190     break 2
20191   fi
20192 done
20193   done
20194 IFS=$as_save_IFS
20195 
20196   ;;
20197 esac
20198 fi
20199 UNZIP=$ac_cv_path_UNZIP
20200 if test -n "$UNZIP"; then
20201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20202 $as_echo "$UNZIP" >&6; }
20203 else
20204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20205 $as_echo "no" >&6; }
20206 fi
20207 
20208 
20209   test -n "$UNZIP" && break
20210 done
20211 
20212   else
20213     # The variable is set, but is it from the command line or the environment?
20214 
20215     # Try to remove the string !UNZIP! from our list.
20216     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20217     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20218       # If it failed, the variable was not from the command line. Ignore it,
20219       # but warn the user (except for BASH, which is always set by the calling BASH).
20220       if test "xUNZIP" != xBASH; then
20221         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20222 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20223       fi
20224       # Try to locate tool using the code snippet
20225       for ac_prog in unzip
20226 do
20227   # Extract the first word of "$ac_prog", so it can be a program name with args.
20228 set dummy $ac_prog; ac_word=$2
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20230 $as_echo_n "checking for $ac_word... " >&6; }
20231 if ${ac_cv_path_UNZIP+:} false; then :
20232   $as_echo_n "(cached) " >&6
20233 else
20234   case $UNZIP in
20235   [\\/]* | ?:[\\/]*)
20236   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20237   ;;
20238   *)
20239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20240 for as_dir in $PATH
20241 do
20242   IFS=$as_save_IFS
20243   test -z "$as_dir" && as_dir=.
20244     for ac_exec_ext in '' $ac_executable_extensions; do
20245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20246     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20248     break 2
20249   fi
20250 done
20251   done
20252 IFS=$as_save_IFS
20253 
20254   ;;
20255 esac
20256 fi
20257 UNZIP=$ac_cv_path_UNZIP
20258 if test -n "$UNZIP"; then
20259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20260 $as_echo "$UNZIP" >&6; }
20261 else
20262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20263 $as_echo "no" >&6; }
20264 fi
20265 
20266 
20267   test -n "$UNZIP" && break
20268 done
20269 
20270     else
20271       # If it succeeded, then it was overridden by the user. We will use it
20272       # for the tool.
20273 
20274       # First remove it from the list of overridden variables, so we can test
20275       # for unknown variables in the end.
20276       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20277 
20278       # Check if we try to supply an empty value
20279       if test "x$UNZIP" = x; then
20280         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20281 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20283 $as_echo_n "checking for UNZIP... " >&6; }
20284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20285 $as_echo "disabled" >&6; }
20286       else
20287         # Check if the provided tool contains a complete path.
20288         tool_specified="$UNZIP"
20289         tool_basename="${tool_specified##*/}"
20290         if test "x$tool_basename" = "x$tool_specified"; then
20291           # A command without a complete path is provided, search $PATH.
20292           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20293 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20294           # Extract the first word of "$tool_basename", so it can be a program name with args.
20295 set dummy $tool_basename; ac_word=$2
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20297 $as_echo_n "checking for $ac_word... " >&6; }
20298 if ${ac_cv_path_UNZIP+:} false; then :
20299   $as_echo_n "(cached) " >&6
20300 else
20301   case $UNZIP in
20302   [\\/]* | ?:[\\/]*)
20303   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20304   ;;
20305   *)
20306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20307 for as_dir in $PATH
20308 do
20309   IFS=$as_save_IFS
20310   test -z "$as_dir" && as_dir=.
20311     for ac_exec_ext in '' $ac_executable_extensions; do
20312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20313     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20315     break 2
20316   fi
20317 done
20318   done
20319 IFS=$as_save_IFS
20320 
20321   ;;
20322 esac
20323 fi
20324 UNZIP=$ac_cv_path_UNZIP
20325 if test -n "$UNZIP"; then
20326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20327 $as_echo "$UNZIP" >&6; }
20328 else
20329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20330 $as_echo "no" >&6; }
20331 fi
20332 
20333 
20334           if test "x$UNZIP" = x; then
20335             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20336           fi
20337         else
20338           # Otherwise we believe it is a complete path. Use it as it is.
20339           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20340 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20341           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20342 $as_echo_n "checking for UNZIP... " >&6; }
20343           if test ! -x "$tool_specified"; then
20344             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20345 $as_echo "not found" >&6; }
20346             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20347           fi
20348           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20349 $as_echo "$tool_specified" >&6; }
20350         fi
20351       fi
20352     fi
20353 
20354   fi
20355 
20356 
20357 
20358   if test "x$UNZIP" = x; then
20359     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20360   fi
20361 
20362 
20363 
20364 
20365 
20366   # Publish this variable in the help.
20367 
20368 
20369   if [ -z "${ZIP+x}" ]; then
20370     # The variable is not set by user, try to locate tool using the code snippet
20371     for ac_prog in zip
20372 do
20373   # Extract the first word of "$ac_prog", so it can be a program name with args.
20374 set dummy $ac_prog; ac_word=$2
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20376 $as_echo_n "checking for $ac_word... " >&6; }
20377 if ${ac_cv_path_ZIP+:} false; then :
20378   $as_echo_n "(cached) " >&6
20379 else
20380   case $ZIP in
20381   [\\/]* | ?:[\\/]*)
20382   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20383   ;;
20384   *)
20385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20386 for as_dir in $PATH
20387 do
20388   IFS=$as_save_IFS
20389   test -z "$as_dir" && as_dir=.
20390     for ac_exec_ext in '' $ac_executable_extensions; do
20391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20392     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20394     break 2
20395   fi
20396 done
20397   done
20398 IFS=$as_save_IFS
20399 
20400   ;;
20401 esac
20402 fi
20403 ZIP=$ac_cv_path_ZIP
20404 if test -n "$ZIP"; then
20405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20406 $as_echo "$ZIP" >&6; }
20407 else
20408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409 $as_echo "no" >&6; }
20410 fi
20411 
20412 
20413   test -n "$ZIP" && break
20414 done
20415 
20416   else
20417     # The variable is set, but is it from the command line or the environment?
20418 
20419     # Try to remove the string !ZIP! from our list.
20420     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20421     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20422       # If it failed, the variable was not from the command line. Ignore it,
20423       # but warn the user (except for BASH, which is always set by the calling BASH).
20424       if test "xZIP" != xBASH; then
20425         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20426 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20427       fi
20428       # Try to locate tool using the code snippet
20429       for ac_prog in zip
20430 do
20431   # Extract the first word of "$ac_prog", so it can be a program name with args.
20432 set dummy $ac_prog; ac_word=$2
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20434 $as_echo_n "checking for $ac_word... " >&6; }
20435 if ${ac_cv_path_ZIP+:} false; then :
20436   $as_echo_n "(cached) " >&6
20437 else
20438   case $ZIP in
20439   [\\/]* | ?:[\\/]*)
20440   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20441   ;;
20442   *)
20443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444 for as_dir in $PATH
20445 do
20446   IFS=$as_save_IFS
20447   test -z "$as_dir" && as_dir=.
20448     for ac_exec_ext in '' $ac_executable_extensions; do
20449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20450     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20452     break 2
20453   fi
20454 done
20455   done
20456 IFS=$as_save_IFS
20457 
20458   ;;
20459 esac
20460 fi
20461 ZIP=$ac_cv_path_ZIP
20462 if test -n "$ZIP"; then
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20464 $as_echo "$ZIP" >&6; }
20465 else
20466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20467 $as_echo "no" >&6; }
20468 fi
20469 
20470 
20471   test -n "$ZIP" && break
20472 done
20473 
20474     else
20475       # If it succeeded, then it was overridden by the user. We will use it
20476       # for the tool.
20477 
20478       # First remove it from the list of overridden variables, so we can test
20479       # for unknown variables in the end.
20480       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20481 
20482       # Check if we try to supply an empty value
20483       if test "x$ZIP" = x; then
20484         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20485 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20487 $as_echo_n "checking for ZIP... " >&6; }
20488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20489 $as_echo "disabled" >&6; }
20490       else
20491         # Check if the provided tool contains a complete path.
20492         tool_specified="$ZIP"
20493         tool_basename="${tool_specified##*/}"
20494         if test "x$tool_basename" = "x$tool_specified"; then
20495           # A command without a complete path is provided, search $PATH.
20496           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20497 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20498           # Extract the first word of "$tool_basename", so it can be a program name with args.
20499 set dummy $tool_basename; ac_word=$2
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20501 $as_echo_n "checking for $ac_word... " >&6; }
20502 if ${ac_cv_path_ZIP+:} false; then :
20503   $as_echo_n "(cached) " >&6
20504 else
20505   case $ZIP in
20506   [\\/]* | ?:[\\/]*)
20507   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20508   ;;
20509   *)
20510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20511 for as_dir in $PATH
20512 do
20513   IFS=$as_save_IFS
20514   test -z "$as_dir" && as_dir=.
20515     for ac_exec_ext in '' $ac_executable_extensions; do
20516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20517     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20519     break 2
20520   fi
20521 done
20522   done
20523 IFS=$as_save_IFS
20524 
20525   ;;
20526 esac
20527 fi
20528 ZIP=$ac_cv_path_ZIP
20529 if test -n "$ZIP"; then
20530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20531 $as_echo "$ZIP" >&6; }
20532 else
20533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535 fi
20536 
20537 
20538           if test "x$ZIP" = x; then
20539             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20540           fi
20541         else
20542           # Otherwise we believe it is a complete path. Use it as it is.
20543           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20544 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20545           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20546 $as_echo_n "checking for ZIP... " >&6; }
20547           if test ! -x "$tool_specified"; then
20548             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20549 $as_echo "not found" >&6; }
20550             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20551           fi
20552           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20553 $as_echo "$tool_specified" >&6; }
20554         fi
20555       fi
20556     fi
20557 
20558   fi
20559 
20560 
20561 
20562   if test "x$ZIP" = x; then
20563     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20564   fi
20565 
20566 
20567 
20568   # Non-required basic tools
20569 
20570 
20571 
20572   # Publish this variable in the help.
20573 
20574 
20575   if [ -z "${LDD+x}" ]; then
20576     # The variable is not set by user, try to locate tool using the code snippet
20577     for ac_prog in ldd
20578 do
20579   # Extract the first word of "$ac_prog", so it can be a program name with args.
20580 set dummy $ac_prog; ac_word=$2
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20582 $as_echo_n "checking for $ac_word... " >&6; }
20583 if ${ac_cv_path_LDD+:} false; then :
20584   $as_echo_n "(cached) " >&6
20585 else
20586   case $LDD in
20587   [\\/]* | ?:[\\/]*)
20588   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20589   ;;
20590   *)
20591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20592 for as_dir in $PATH
20593 do
20594   IFS=$as_save_IFS
20595   test -z "$as_dir" && as_dir=.
20596     for ac_exec_ext in '' $ac_executable_extensions; do
20597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20598     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20600     break 2
20601   fi
20602 done
20603   done
20604 IFS=$as_save_IFS
20605 
20606   ;;
20607 esac
20608 fi
20609 LDD=$ac_cv_path_LDD
20610 if test -n "$LDD"; then
20611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20612 $as_echo "$LDD" >&6; }
20613 else
20614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20615 $as_echo "no" >&6; }
20616 fi
20617 
20618 
20619   test -n "$LDD" && break
20620 done
20621 
20622   else
20623     # The variable is set, but is it from the command line or the environment?
20624 
20625     # Try to remove the string !LDD! from our list.
20626     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20627     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20628       # If it failed, the variable was not from the command line. Ignore it,
20629       # but warn the user (except for BASH, which is always set by the calling BASH).
20630       if test "xLDD" != xBASH; then
20631         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20632 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20633       fi
20634       # Try to locate tool using the code snippet
20635       for ac_prog in ldd
20636 do
20637   # Extract the first word of "$ac_prog", so it can be a program name with args.
20638 set dummy $ac_prog; ac_word=$2
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20640 $as_echo_n "checking for $ac_word... " >&6; }
20641 if ${ac_cv_path_LDD+:} false; then :
20642   $as_echo_n "(cached) " >&6
20643 else
20644   case $LDD in
20645   [\\/]* | ?:[\\/]*)
20646   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20647   ;;
20648   *)
20649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20650 for as_dir in $PATH
20651 do
20652   IFS=$as_save_IFS
20653   test -z "$as_dir" && as_dir=.
20654     for ac_exec_ext in '' $ac_executable_extensions; do
20655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20656     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20658     break 2
20659   fi
20660 done
20661   done
20662 IFS=$as_save_IFS
20663 
20664   ;;
20665 esac
20666 fi
20667 LDD=$ac_cv_path_LDD
20668 if test -n "$LDD"; then
20669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20670 $as_echo "$LDD" >&6; }
20671 else
20672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20673 $as_echo "no" >&6; }
20674 fi
20675 
20676 
20677   test -n "$LDD" && break
20678 done
20679 
20680     else
20681       # If it succeeded, then it was overridden by the user. We will use it
20682       # for the tool.
20683 
20684       # First remove it from the list of overridden variables, so we can test
20685       # for unknown variables in the end.
20686       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20687 
20688       # Check if we try to supply an empty value
20689       if test "x$LDD" = x; then
20690         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20691 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20693 $as_echo_n "checking for LDD... " >&6; }
20694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20695 $as_echo "disabled" >&6; }
20696       else
20697         # Check if the provided tool contains a complete path.
20698         tool_specified="$LDD"
20699         tool_basename="${tool_specified##*/}"
20700         if test "x$tool_basename" = "x$tool_specified"; then
20701           # A command without a complete path is provided, search $PATH.
20702           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20703 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20704           # Extract the first word of "$tool_basename", so it can be a program name with args.
20705 set dummy $tool_basename; ac_word=$2
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20707 $as_echo_n "checking for $ac_word... " >&6; }
20708 if ${ac_cv_path_LDD+:} false; then :
20709   $as_echo_n "(cached) " >&6
20710 else
20711   case $LDD in
20712   [\\/]* | ?:[\\/]*)
20713   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20714   ;;
20715   *)
20716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20717 for as_dir in $PATH
20718 do
20719   IFS=$as_save_IFS
20720   test -z "$as_dir" && as_dir=.
20721     for ac_exec_ext in '' $ac_executable_extensions; do
20722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20725     break 2
20726   fi
20727 done
20728   done
20729 IFS=$as_save_IFS
20730 
20731   ;;
20732 esac
20733 fi
20734 LDD=$ac_cv_path_LDD
20735 if test -n "$LDD"; then
20736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20737 $as_echo "$LDD" >&6; }
20738 else
20739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741 fi
20742 
20743 
20744           if test "x$LDD" = x; then
20745             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20746           fi
20747         else
20748           # Otherwise we believe it is a complete path. Use it as it is.
20749           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20750 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20751           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20752 $as_echo_n "checking for LDD... " >&6; }
20753           if test ! -x "$tool_specified"; then
20754             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20755 $as_echo "not found" >&6; }
20756             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20757           fi
20758           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20759 $as_echo "$tool_specified" >&6; }
20760         fi
20761       fi
20762     fi
20763 
20764   fi
20765 
20766 
20767   if test "x$LDD" = "x"; then
20768     # List shared lib dependencies is used for
20769     # debug output and checking for forbidden dependencies.
20770     # We can build without it.
20771     LDD="true"
20772   fi
20773 
20774 
20775   # Publish this variable in the help.
20776 
20777 
20778   if [ -z "${OTOOL+x}" ]; then
20779     # The variable is not set by user, try to locate tool using the code snippet
20780     for ac_prog in otool
20781 do
20782   # Extract the first word of "$ac_prog", so it can be a program name with args.
20783 set dummy $ac_prog; ac_word=$2
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20785 $as_echo_n "checking for $ac_word... " >&6; }
20786 if ${ac_cv_path_OTOOL+:} false; then :
20787   $as_echo_n "(cached) " >&6
20788 else
20789   case $OTOOL in
20790   [\\/]* | ?:[\\/]*)
20791   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20792   ;;
20793   *)
20794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20795 for as_dir in $PATH
20796 do
20797   IFS=$as_save_IFS
20798   test -z "$as_dir" && as_dir=.
20799     for ac_exec_ext in '' $ac_executable_extensions; do
20800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20801     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20803     break 2
20804   fi
20805 done
20806   done
20807 IFS=$as_save_IFS
20808 
20809   ;;
20810 esac
20811 fi
20812 OTOOL=$ac_cv_path_OTOOL
20813 if test -n "$OTOOL"; then
20814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20815 $as_echo "$OTOOL" >&6; }
20816 else
20817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20818 $as_echo "no" >&6; }
20819 fi
20820 
20821 
20822   test -n "$OTOOL" && break
20823 done
20824 
20825   else
20826     # The variable is set, but is it from the command line or the environment?
20827 
20828     # Try to remove the string !OTOOL! from our list.
20829     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20830     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20831       # If it failed, the variable was not from the command line. Ignore it,
20832       # but warn the user (except for BASH, which is always set by the calling BASH).
20833       if test "xOTOOL" != xBASH; then
20834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20835 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20836       fi
20837       # Try to locate tool using the code snippet
20838       for ac_prog in otool
20839 do
20840   # Extract the first word of "$ac_prog", so it can be a program name with args.
20841 set dummy $ac_prog; ac_word=$2
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20843 $as_echo_n "checking for $ac_word... " >&6; }
20844 if ${ac_cv_path_OTOOL+:} false; then :
20845   $as_echo_n "(cached) " >&6
20846 else
20847   case $OTOOL in
20848   [\\/]* | ?:[\\/]*)
20849   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20850   ;;
20851   *)
20852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20853 for as_dir in $PATH
20854 do
20855   IFS=$as_save_IFS
20856   test -z "$as_dir" && as_dir=.
20857     for ac_exec_ext in '' $ac_executable_extensions; do
20858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20859     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20861     break 2
20862   fi
20863 done
20864   done
20865 IFS=$as_save_IFS
20866 
20867   ;;
20868 esac
20869 fi
20870 OTOOL=$ac_cv_path_OTOOL
20871 if test -n "$OTOOL"; then
20872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20873 $as_echo "$OTOOL" >&6; }
20874 else
20875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876 $as_echo "no" >&6; }
20877 fi
20878 
20879 
20880   test -n "$OTOOL" && break
20881 done
20882 
20883     else
20884       # If it succeeded, then it was overridden by the user. We will use it
20885       # for the tool.
20886 
20887       # First remove it from the list of overridden variables, so we can test
20888       # for unknown variables in the end.
20889       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20890 
20891       # Check if we try to supply an empty value
20892       if test "x$OTOOL" = x; then
20893         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20894 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20896 $as_echo_n "checking for OTOOL... " >&6; }
20897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20898 $as_echo "disabled" >&6; }
20899       else
20900         # Check if the provided tool contains a complete path.
20901         tool_specified="$OTOOL"
20902         tool_basename="${tool_specified##*/}"
20903         if test "x$tool_basename" = "x$tool_specified"; then
20904           # A command without a complete path is provided, search $PATH.
20905           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20906 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20907           # Extract the first word of "$tool_basename", so it can be a program name with args.
20908 set dummy $tool_basename; ac_word=$2
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20910 $as_echo_n "checking for $ac_word... " >&6; }
20911 if ${ac_cv_path_OTOOL+:} false; then :
20912   $as_echo_n "(cached) " >&6
20913 else
20914   case $OTOOL in
20915   [\\/]* | ?:[\\/]*)
20916   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20917   ;;
20918   *)
20919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20920 for as_dir in $PATH
20921 do
20922   IFS=$as_save_IFS
20923   test -z "$as_dir" && as_dir=.
20924     for ac_exec_ext in '' $ac_executable_extensions; do
20925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20926     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20928     break 2
20929   fi
20930 done
20931   done
20932 IFS=$as_save_IFS
20933 
20934   ;;
20935 esac
20936 fi
20937 OTOOL=$ac_cv_path_OTOOL
20938 if test -n "$OTOOL"; then
20939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20940 $as_echo "$OTOOL" >&6; }
20941 else
20942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20944 fi
20945 
20946 
20947           if test "x$OTOOL" = x; then
20948             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20949           fi
20950         else
20951           # Otherwise we believe it is a complete path. Use it as it is.
20952           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20953 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20954           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20955 $as_echo_n "checking for OTOOL... " >&6; }
20956           if test ! -x "$tool_specified"; then
20957             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20958 $as_echo "not found" >&6; }
20959             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
20960           fi
20961           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20962 $as_echo "$tool_specified" >&6; }
20963         fi
20964       fi
20965     fi
20966 
20967   fi
20968 
20969 
20970   if test "x$OTOOL" = "x"; then
20971     OTOOL="true"
20972   fi
20973 
20974 
20975   # Publish this variable in the help.
20976 
20977 
20978   if [ -z "${READELF+x}" ]; then
20979     # The variable is not set by user, try to locate tool using the code snippet
20980     for ac_prog in greadelf readelf
20981 do
20982   # Extract the first word of "$ac_prog", so it can be a program name with args.
20983 set dummy $ac_prog; ac_word=$2
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20985 $as_echo_n "checking for $ac_word... " >&6; }
20986 if ${ac_cv_path_READELF+:} false; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989   case $READELF in
20990   [\\/]* | ?:[\\/]*)
20991   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
20992   ;;
20993   *)
20994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20995 for as_dir in $PATH
20996 do
20997   IFS=$as_save_IFS
20998   test -z "$as_dir" && as_dir=.
20999     for ac_exec_ext in '' $ac_executable_extensions; do
21000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21001     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21003     break 2
21004   fi
21005 done
21006   done
21007 IFS=$as_save_IFS
21008 
21009   ;;
21010 esac
21011 fi
21012 READELF=$ac_cv_path_READELF
21013 if test -n "$READELF"; then
21014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21015 $as_echo "$READELF" >&6; }
21016 else
21017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21018 $as_echo "no" >&6; }
21019 fi
21020 
21021 
21022   test -n "$READELF" && break
21023 done
21024 
21025   else
21026     # The variable is set, but is it from the command line or the environment?
21027 
21028     # Try to remove the string !READELF! from our list.
21029     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21030     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21031       # If it failed, the variable was not from the command line. Ignore it,
21032       # but warn the user (except for BASH, which is always set by the calling BASH).
21033       if test "xREADELF" != xBASH; then
21034         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21035 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21036       fi
21037       # Try to locate tool using the code snippet
21038       for ac_prog in greadelf readelf
21039 do
21040   # Extract the first word of "$ac_prog", so it can be a program name with args.
21041 set dummy $ac_prog; ac_word=$2
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21043 $as_echo_n "checking for $ac_word... " >&6; }
21044 if ${ac_cv_path_READELF+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   case $READELF in
21048   [\\/]* | ?:[\\/]*)
21049   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21050   ;;
21051   *)
21052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21053 for as_dir in $PATH
21054 do
21055   IFS=$as_save_IFS
21056   test -z "$as_dir" && as_dir=.
21057     for ac_exec_ext in '' $ac_executable_extensions; do
21058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21059     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21061     break 2
21062   fi
21063 done
21064   done
21065 IFS=$as_save_IFS
21066 
21067   ;;
21068 esac
21069 fi
21070 READELF=$ac_cv_path_READELF
21071 if test -n "$READELF"; then
21072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21073 $as_echo "$READELF" >&6; }
21074 else
21075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076 $as_echo "no" >&6; }
21077 fi
21078 
21079 
21080   test -n "$READELF" && break
21081 done
21082 
21083     else
21084       # If it succeeded, then it was overridden by the user. We will use it
21085       # for the tool.
21086 
21087       # First remove it from the list of overridden variables, so we can test
21088       # for unknown variables in the end.
21089       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21090 
21091       # Check if we try to supply an empty value
21092       if test "x$READELF" = x; then
21093         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21094 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21096 $as_echo_n "checking for READELF... " >&6; }
21097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21098 $as_echo "disabled" >&6; }
21099       else
21100         # Check if the provided tool contains a complete path.
21101         tool_specified="$READELF"
21102         tool_basename="${tool_specified##*/}"
21103         if test "x$tool_basename" = "x$tool_specified"; then
21104           # A command without a complete path is provided, search $PATH.
21105           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21106 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21107           # Extract the first word of "$tool_basename", so it can be a program name with args.
21108 set dummy $tool_basename; ac_word=$2
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21110 $as_echo_n "checking for $ac_word... " >&6; }
21111 if ${ac_cv_path_READELF+:} false; then :
21112   $as_echo_n "(cached) " >&6
21113 else
21114   case $READELF in
21115   [\\/]* | ?:[\\/]*)
21116   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21117   ;;
21118   *)
21119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21120 for as_dir in $PATH
21121 do
21122   IFS=$as_save_IFS
21123   test -z "$as_dir" && as_dir=.
21124     for ac_exec_ext in '' $ac_executable_extensions; do
21125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21126     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21128     break 2
21129   fi
21130 done
21131   done
21132 IFS=$as_save_IFS
21133 
21134   ;;
21135 esac
21136 fi
21137 READELF=$ac_cv_path_READELF
21138 if test -n "$READELF"; then
21139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21140 $as_echo "$READELF" >&6; }
21141 else
21142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143 $as_echo "no" >&6; }
21144 fi
21145 
21146 
21147           if test "x$READELF" = x; then
21148             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21149           fi
21150         else
21151           # Otherwise we believe it is a complete path. Use it as it is.
21152           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21153 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21154           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21155 $as_echo_n "checking for READELF... " >&6; }
21156           if test ! -x "$tool_specified"; then
21157             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21158 $as_echo "not found" >&6; }
21159             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21160           fi
21161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21162 $as_echo "$tool_specified" >&6; }
21163         fi
21164       fi
21165     fi
21166 
21167   fi
21168 
21169 
21170 
21171 
21172   # Publish this variable in the help.
21173 
21174 
21175   if [ -z "${HG+x}" ]; then
21176     # The variable is not set by user, try to locate tool using the code snippet
21177     for ac_prog in hg
21178 do
21179   # Extract the first word of "$ac_prog", so it can be a program name with args.
21180 set dummy $ac_prog; ac_word=$2
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21182 $as_echo_n "checking for $ac_word... " >&6; }
21183 if ${ac_cv_path_HG+:} false; then :
21184   $as_echo_n "(cached) " >&6
21185 else
21186   case $HG in
21187   [\\/]* | ?:[\\/]*)
21188   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21189   ;;
21190   *)
21191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21192 for as_dir in $PATH
21193 do
21194   IFS=$as_save_IFS
21195   test -z "$as_dir" && as_dir=.
21196     for ac_exec_ext in '' $ac_executable_extensions; do
21197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21198     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21200     break 2
21201   fi
21202 done
21203   done
21204 IFS=$as_save_IFS
21205 
21206   ;;
21207 esac
21208 fi
21209 HG=$ac_cv_path_HG
21210 if test -n "$HG"; then
21211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21212 $as_echo "$HG" >&6; }
21213 else
21214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21215 $as_echo "no" >&6; }
21216 fi
21217 
21218 
21219   test -n "$HG" && break
21220 done
21221 
21222   else
21223     # The variable is set, but is it from the command line or the environment?
21224 
21225     # Try to remove the string !HG! from our list.
21226     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21227     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21228       # If it failed, the variable was not from the command line. Ignore it,
21229       # but warn the user (except for BASH, which is always set by the calling BASH).
21230       if test "xHG" != xBASH; then
21231         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21232 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21233       fi
21234       # Try to locate tool using the code snippet
21235       for ac_prog in hg
21236 do
21237   # Extract the first word of "$ac_prog", so it can be a program name with args.
21238 set dummy $ac_prog; ac_word=$2
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21240 $as_echo_n "checking for $ac_word... " >&6; }
21241 if ${ac_cv_path_HG+:} false; then :
21242   $as_echo_n "(cached) " >&6
21243 else
21244   case $HG in
21245   [\\/]* | ?:[\\/]*)
21246   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21247   ;;
21248   *)
21249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21250 for as_dir in $PATH
21251 do
21252   IFS=$as_save_IFS
21253   test -z "$as_dir" && as_dir=.
21254     for ac_exec_ext in '' $ac_executable_extensions; do
21255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21256     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21258     break 2
21259   fi
21260 done
21261   done
21262 IFS=$as_save_IFS
21263 
21264   ;;
21265 esac
21266 fi
21267 HG=$ac_cv_path_HG
21268 if test -n "$HG"; then
21269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21270 $as_echo "$HG" >&6; }
21271 else
21272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 $as_echo "no" >&6; }
21274 fi
21275 
21276 
21277   test -n "$HG" && break
21278 done
21279 
21280     else
21281       # If it succeeded, then it was overridden by the user. We will use it
21282       # for the tool.
21283 
21284       # First remove it from the list of overridden variables, so we can test
21285       # for unknown variables in the end.
21286       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21287 
21288       # Check if we try to supply an empty value
21289       if test "x$HG" = x; then
21290         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21291 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21292         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21293 $as_echo_n "checking for HG... " >&6; }
21294         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21295 $as_echo "disabled" >&6; }
21296       else
21297         # Check if the provided tool contains a complete path.
21298         tool_specified="$HG"
21299         tool_basename="${tool_specified##*/}"
21300         if test "x$tool_basename" = "x$tool_specified"; then
21301           # A command without a complete path is provided, search $PATH.
21302           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21303 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21304           # Extract the first word of "$tool_basename", so it can be a program name with args.
21305 set dummy $tool_basename; ac_word=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if ${ac_cv_path_HG+:} false; then :
21309   $as_echo_n "(cached) " >&6
21310 else
21311   case $HG in
21312   [\\/]* | ?:[\\/]*)
21313   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21314   ;;
21315   *)
21316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21317 for as_dir in $PATH
21318 do
21319   IFS=$as_save_IFS
21320   test -z "$as_dir" && as_dir=.
21321     for ac_exec_ext in '' $ac_executable_extensions; do
21322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21323     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21325     break 2
21326   fi
21327 done
21328   done
21329 IFS=$as_save_IFS
21330 
21331   ;;
21332 esac
21333 fi
21334 HG=$ac_cv_path_HG
21335 if test -n "$HG"; then
21336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21337 $as_echo "$HG" >&6; }
21338 else
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341 fi
21342 
21343 
21344           if test "x$HG" = x; then
21345             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21346           fi
21347         else
21348           # Otherwise we believe it is a complete path. Use it as it is.
21349           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21350 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21351           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21352 $as_echo_n "checking for HG... " >&6; }
21353           if test ! -x "$tool_specified"; then
21354             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21355 $as_echo "not found" >&6; }
21356             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21357           fi
21358           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21359 $as_echo "$tool_specified" >&6; }
21360         fi
21361       fi
21362     fi
21363 
21364   fi
21365 
21366 
21367 
21368 
21369   # Publish this variable in the help.
21370 
21371 
21372   if [ -z "${STAT+x}" ]; then
21373     # The variable is not set by user, try to locate tool using the code snippet
21374     for ac_prog in stat
21375 do
21376   # Extract the first word of "$ac_prog", so it can be a program name with args.
21377 set dummy $ac_prog; ac_word=$2
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21379 $as_echo_n "checking for $ac_word... " >&6; }
21380 if ${ac_cv_path_STAT+:} false; then :
21381   $as_echo_n "(cached) " >&6
21382 else
21383   case $STAT in
21384   [\\/]* | ?:[\\/]*)
21385   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21386   ;;
21387   *)
21388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21389 for as_dir in $PATH
21390 do
21391   IFS=$as_save_IFS
21392   test -z "$as_dir" && as_dir=.
21393     for ac_exec_ext in '' $ac_executable_extensions; do
21394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21395     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21397     break 2
21398   fi
21399 done
21400   done
21401 IFS=$as_save_IFS
21402 
21403   ;;
21404 esac
21405 fi
21406 STAT=$ac_cv_path_STAT
21407 if test -n "$STAT"; then
21408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21409 $as_echo "$STAT" >&6; }
21410 else
21411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21412 $as_echo "no" >&6; }
21413 fi
21414 
21415 
21416   test -n "$STAT" && break
21417 done
21418 
21419   else
21420     # The variable is set, but is it from the command line or the environment?
21421 
21422     # Try to remove the string !STAT! from our list.
21423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21425       # If it failed, the variable was not from the command line. Ignore it,
21426       # but warn the user (except for BASH, which is always set by the calling BASH).
21427       if test "xSTAT" != xBASH; then
21428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21429 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21430       fi
21431       # Try to locate tool using the code snippet
21432       for ac_prog in stat
21433 do
21434   # Extract the first word of "$ac_prog", so it can be a program name with args.
21435 set dummy $ac_prog; ac_word=$2
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21437 $as_echo_n "checking for $ac_word... " >&6; }
21438 if ${ac_cv_path_STAT+:} false; then :
21439   $as_echo_n "(cached) " >&6
21440 else
21441   case $STAT in
21442   [\\/]* | ?:[\\/]*)
21443   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21444   ;;
21445   *)
21446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21447 for as_dir in $PATH
21448 do
21449   IFS=$as_save_IFS
21450   test -z "$as_dir" && as_dir=.
21451     for ac_exec_ext in '' $ac_executable_extensions; do
21452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21453     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21455     break 2
21456   fi
21457 done
21458   done
21459 IFS=$as_save_IFS
21460 
21461   ;;
21462 esac
21463 fi
21464 STAT=$ac_cv_path_STAT
21465 if test -n "$STAT"; then
21466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21467 $as_echo "$STAT" >&6; }
21468 else
21469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21471 fi
21472 
21473 
21474   test -n "$STAT" && break
21475 done
21476 
21477     else
21478       # If it succeeded, then it was overridden by the user. We will use it
21479       # for the tool.
21480 
21481       # First remove it from the list of overridden variables, so we can test
21482       # for unknown variables in the end.
21483       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21484 
21485       # Check if we try to supply an empty value
21486       if test "x$STAT" = x; then
21487         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21488 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21490 $as_echo_n "checking for STAT... " >&6; }
21491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21492 $as_echo "disabled" >&6; }
21493       else
21494         # Check if the provided tool contains a complete path.
21495         tool_specified="$STAT"
21496         tool_basename="${tool_specified##*/}"
21497         if test "x$tool_basename" = "x$tool_specified"; then
21498           # A command without a complete path is provided, search $PATH.
21499           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21500 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21501           # Extract the first word of "$tool_basename", so it can be a program name with args.
21502 set dummy $tool_basename; ac_word=$2
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21504 $as_echo_n "checking for $ac_word... " >&6; }
21505 if ${ac_cv_path_STAT+:} false; then :
21506   $as_echo_n "(cached) " >&6
21507 else
21508   case $STAT in
21509   [\\/]* | ?:[\\/]*)
21510   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21511   ;;
21512   *)
21513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21514 for as_dir in $PATH
21515 do
21516   IFS=$as_save_IFS
21517   test -z "$as_dir" && as_dir=.
21518     for ac_exec_ext in '' $ac_executable_extensions; do
21519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21520     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21522     break 2
21523   fi
21524 done
21525   done
21526 IFS=$as_save_IFS
21527 
21528   ;;
21529 esac
21530 fi
21531 STAT=$ac_cv_path_STAT
21532 if test -n "$STAT"; then
21533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21534 $as_echo "$STAT" >&6; }
21535 else
21536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21537 $as_echo "no" >&6; }
21538 fi
21539 
21540 
21541           if test "x$STAT" = x; then
21542             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21543           fi
21544         else
21545           # Otherwise we believe it is a complete path. Use it as it is.
21546           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21547 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21548           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21549 $as_echo_n "checking for STAT... " >&6; }
21550           if test ! -x "$tool_specified"; then
21551             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21552 $as_echo "not found" >&6; }
21553             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21554           fi
21555           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21556 $as_echo "$tool_specified" >&6; }
21557         fi
21558       fi
21559     fi
21560 
21561   fi
21562 
21563 
21564 
21565 
21566   # Publish this variable in the help.
21567 
21568 
21569   if [ -z "${TIME+x}" ]; then
21570     # The variable is not set by user, try to locate tool using the code snippet
21571     for ac_prog in time
21572 do
21573   # Extract the first word of "$ac_prog", so it can be a program name with args.
21574 set dummy $ac_prog; ac_word=$2
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21576 $as_echo_n "checking for $ac_word... " >&6; }
21577 if ${ac_cv_path_TIME+:} false; then :
21578   $as_echo_n "(cached) " >&6
21579 else
21580   case $TIME in
21581   [\\/]* | ?:[\\/]*)
21582   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21583   ;;
21584   *)
21585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21586 for as_dir in $PATH
21587 do
21588   IFS=$as_save_IFS
21589   test -z "$as_dir" && as_dir=.
21590     for ac_exec_ext in '' $ac_executable_extensions; do
21591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21592     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21594     break 2
21595   fi
21596 done
21597   done
21598 IFS=$as_save_IFS
21599 
21600   ;;
21601 esac
21602 fi
21603 TIME=$ac_cv_path_TIME
21604 if test -n "$TIME"; then
21605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21606 $as_echo "$TIME" >&6; }
21607 else
21608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21609 $as_echo "no" >&6; }
21610 fi
21611 
21612 
21613   test -n "$TIME" && break
21614 done
21615 
21616   else
21617     # The variable is set, but is it from the command line or the environment?
21618 
21619     # Try to remove the string !TIME! from our list.
21620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21622       # If it failed, the variable was not from the command line. Ignore it,
21623       # but warn the user (except for BASH, which is always set by the calling BASH).
21624       if test "xTIME" != xBASH; then
21625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21626 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21627       fi
21628       # Try to locate tool using the code snippet
21629       for ac_prog in time
21630 do
21631   # Extract the first word of "$ac_prog", so it can be a program name with args.
21632 set dummy $ac_prog; ac_word=$2
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21634 $as_echo_n "checking for $ac_word... " >&6; }
21635 if ${ac_cv_path_TIME+:} false; then :
21636   $as_echo_n "(cached) " >&6
21637 else
21638   case $TIME in
21639   [\\/]* | ?:[\\/]*)
21640   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21641   ;;
21642   *)
21643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21644 for as_dir in $PATH
21645 do
21646   IFS=$as_save_IFS
21647   test -z "$as_dir" && as_dir=.
21648     for ac_exec_ext in '' $ac_executable_extensions; do
21649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21650     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21652     break 2
21653   fi
21654 done
21655   done
21656 IFS=$as_save_IFS
21657 
21658   ;;
21659 esac
21660 fi
21661 TIME=$ac_cv_path_TIME
21662 if test -n "$TIME"; then
21663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21664 $as_echo "$TIME" >&6; }
21665 else
21666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21667 $as_echo "no" >&6; }
21668 fi
21669 
21670 
21671   test -n "$TIME" && break
21672 done
21673 
21674     else
21675       # If it succeeded, then it was overridden by the user. We will use it
21676       # for the tool.
21677 
21678       # First remove it from the list of overridden variables, so we can test
21679       # for unknown variables in the end.
21680       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21681 
21682       # Check if we try to supply an empty value
21683       if test "x$TIME" = x; then
21684         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21685 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21687 $as_echo_n "checking for TIME... " >&6; }
21688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21689 $as_echo "disabled" >&6; }
21690       else
21691         # Check if the provided tool contains a complete path.
21692         tool_specified="$TIME"
21693         tool_basename="${tool_specified##*/}"
21694         if test "x$tool_basename" = "x$tool_specified"; then
21695           # A command without a complete path is provided, search $PATH.
21696           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21697 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21698           # Extract the first word of "$tool_basename", so it can be a program name with args.
21699 set dummy $tool_basename; ac_word=$2
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21701 $as_echo_n "checking for $ac_word... " >&6; }
21702 if ${ac_cv_path_TIME+:} false; then :
21703   $as_echo_n "(cached) " >&6
21704 else
21705   case $TIME in
21706   [\\/]* | ?:[\\/]*)
21707   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21708   ;;
21709   *)
21710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21712 do
21713   IFS=$as_save_IFS
21714   test -z "$as_dir" && as_dir=.
21715     for ac_exec_ext in '' $ac_executable_extensions; do
21716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21717     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21719     break 2
21720   fi
21721 done
21722   done
21723 IFS=$as_save_IFS
21724 
21725   ;;
21726 esac
21727 fi
21728 TIME=$ac_cv_path_TIME
21729 if test -n "$TIME"; then
21730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21731 $as_echo "$TIME" >&6; }
21732 else
21733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21735 fi
21736 
21737 
21738           if test "x$TIME" = x; then
21739             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21740           fi
21741         else
21742           # Otherwise we believe it is a complete path. Use it as it is.
21743           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21744 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21745           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21746 $as_echo_n "checking for TIME... " >&6; }
21747           if test ! -x "$tool_specified"; then
21748             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21749 $as_echo "not found" >&6; }
21750             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21751           fi
21752           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21753 $as_echo "$tool_specified" >&6; }
21754         fi
21755       fi
21756     fi
21757 
21758   fi
21759 
21760 
21761 
21762 
21763   # Publish this variable in the help.
21764 
21765 
21766   if [ -z "${PATCH+x}" ]; then
21767     # The variable is not set by user, try to locate tool using the code snippet
21768     for ac_prog in gpatch patch
21769 do
21770   # Extract the first word of "$ac_prog", so it can be a program name with args.
21771 set dummy $ac_prog; ac_word=$2
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21773 $as_echo_n "checking for $ac_word... " >&6; }
21774 if ${ac_cv_path_PATCH+:} false; then :
21775   $as_echo_n "(cached) " >&6
21776 else
21777   case $PATCH in
21778   [\\/]* | ?:[\\/]*)
21779   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21780   ;;
21781   *)
21782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21783 for as_dir in $PATH
21784 do
21785   IFS=$as_save_IFS
21786   test -z "$as_dir" && as_dir=.
21787     for ac_exec_ext in '' $ac_executable_extensions; do
21788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21789     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21791     break 2
21792   fi
21793 done
21794   done
21795 IFS=$as_save_IFS
21796 
21797   ;;
21798 esac
21799 fi
21800 PATCH=$ac_cv_path_PATCH
21801 if test -n "$PATCH"; then
21802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21803 $as_echo "$PATCH" >&6; }
21804 else
21805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21806 $as_echo "no" >&6; }
21807 fi
21808 
21809 
21810   test -n "$PATCH" && break
21811 done
21812 
21813   else
21814     # The variable is set, but is it from the command line or the environment?
21815 
21816     # Try to remove the string !PATCH! from our list.
21817     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21818     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21819       # If it failed, the variable was not from the command line. Ignore it,
21820       # but warn the user (except for BASH, which is always set by the calling BASH).
21821       if test "xPATCH" != xBASH; then
21822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21823 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21824       fi
21825       # Try to locate tool using the code snippet
21826       for ac_prog in gpatch patch
21827 do
21828   # Extract the first word of "$ac_prog", so it can be a program name with args.
21829 set dummy $ac_prog; ac_word=$2
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21831 $as_echo_n "checking for $ac_word... " >&6; }
21832 if ${ac_cv_path_PATCH+:} false; then :
21833   $as_echo_n "(cached) " >&6
21834 else
21835   case $PATCH in
21836   [\\/]* | ?:[\\/]*)
21837   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21838   ;;
21839   *)
21840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21841 for as_dir in $PATH
21842 do
21843   IFS=$as_save_IFS
21844   test -z "$as_dir" && as_dir=.
21845     for ac_exec_ext in '' $ac_executable_extensions; do
21846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21847     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21849     break 2
21850   fi
21851 done
21852   done
21853 IFS=$as_save_IFS
21854 
21855   ;;
21856 esac
21857 fi
21858 PATCH=$ac_cv_path_PATCH
21859 if test -n "$PATCH"; then
21860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21861 $as_echo "$PATCH" >&6; }
21862 else
21863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21864 $as_echo "no" >&6; }
21865 fi
21866 
21867 
21868   test -n "$PATCH" && break
21869 done
21870 
21871     else
21872       # If it succeeded, then it was overridden by the user. We will use it
21873       # for the tool.
21874 
21875       # First remove it from the list of overridden variables, so we can test
21876       # for unknown variables in the end.
21877       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21878 
21879       # Check if we try to supply an empty value
21880       if test "x$PATCH" = x; then
21881         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21882 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21884 $as_echo_n "checking for PATCH... " >&6; }
21885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21886 $as_echo "disabled" >&6; }
21887       else
21888         # Check if the provided tool contains a complete path.
21889         tool_specified="$PATCH"
21890         tool_basename="${tool_specified##*/}"
21891         if test "x$tool_basename" = "x$tool_specified"; then
21892           # A command without a complete path is provided, search $PATH.
21893           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21894 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21895           # Extract the first word of "$tool_basename", so it can be a program name with args.
21896 set dummy $tool_basename; ac_word=$2
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21898 $as_echo_n "checking for $ac_word... " >&6; }
21899 if ${ac_cv_path_PATCH+:} false; then :
21900   $as_echo_n "(cached) " >&6
21901 else
21902   case $PATCH in
21903   [\\/]* | ?:[\\/]*)
21904   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21905   ;;
21906   *)
21907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908 for as_dir in $PATH
21909 do
21910   IFS=$as_save_IFS
21911   test -z "$as_dir" && as_dir=.
21912     for ac_exec_ext in '' $ac_executable_extensions; do
21913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21914     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21916     break 2
21917   fi
21918 done
21919   done
21920 IFS=$as_save_IFS
21921 
21922   ;;
21923 esac
21924 fi
21925 PATCH=$ac_cv_path_PATCH
21926 if test -n "$PATCH"; then
21927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21928 $as_echo "$PATCH" >&6; }
21929 else
21930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21931 $as_echo "no" >&6; }
21932 fi
21933 
21934 
21935           if test "x$PATCH" = x; then
21936             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21937           fi
21938         else
21939           # Otherwise we believe it is a complete path. Use it as it is.
21940           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21941 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21942           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21943 $as_echo_n "checking for PATCH... " >&6; }
21944           if test ! -x "$tool_specified"; then
21945             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21946 $as_echo "not found" >&6; }
21947             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21948           fi
21949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21950 $as_echo "$tool_specified" >&6; }
21951         fi
21952       fi
21953     fi
21954 
21955   fi
21956 
21957 
21958   # Check if it's GNU time
21959   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
21960   if test "x$IS_GNU_TIME" != x; then
21961     IS_GNU_TIME=yes
21962   else
21963     IS_GNU_TIME=no
21964   fi
21965 
21966 
21967   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
21968 
21969 
21970 
21971   # Publish this variable in the help.
21972 
21973 
21974   if [ -z "${DSYMUTIL+x}" ]; then
21975     # The variable is not set by user, try to locate tool using the code snippet
21976     for ac_prog in dsymutil
21977 do
21978   # Extract the first word of "$ac_prog", so it can be a program name with args.
21979 set dummy $ac_prog; ac_word=$2
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21981 $as_echo_n "checking for $ac_word... " >&6; }
21982 if ${ac_cv_path_DSYMUTIL+:} false; then :
21983   $as_echo_n "(cached) " >&6
21984 else
21985   case $DSYMUTIL in
21986   [\\/]* | ?:[\\/]*)
21987   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
21988   ;;
21989   *)
21990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21991 for as_dir in $PATH
21992 do
21993   IFS=$as_save_IFS
21994   test -z "$as_dir" && as_dir=.
21995     for ac_exec_ext in '' $ac_executable_extensions; do
21996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21997     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
21998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21999     break 2
22000   fi
22001 done
22002   done
22003 IFS=$as_save_IFS
22004 
22005   ;;
22006 esac
22007 fi
22008 DSYMUTIL=$ac_cv_path_DSYMUTIL
22009 if test -n "$DSYMUTIL"; then
22010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22011 $as_echo "$DSYMUTIL" >&6; }
22012 else
22013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22015 fi
22016 
22017 
22018   test -n "$DSYMUTIL" && break
22019 done
22020 
22021   else
22022     # The variable is set, but is it from the command line or the environment?
22023 
22024     # Try to remove the string !DSYMUTIL! from our list.
22025     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22026     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22027       # If it failed, the variable was not from the command line. Ignore it,
22028       # but warn the user (except for BASH, which is always set by the calling BASH).
22029       if test "xDSYMUTIL" != xBASH; then
22030         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22031 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22032       fi
22033       # Try to locate tool using the code snippet
22034       for ac_prog in dsymutil
22035 do
22036   # Extract the first word of "$ac_prog", so it can be a program name with args.
22037 set dummy $ac_prog; ac_word=$2
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22039 $as_echo_n "checking for $ac_word... " >&6; }
22040 if ${ac_cv_path_DSYMUTIL+:} false; then :
22041   $as_echo_n "(cached) " >&6
22042 else
22043   case $DSYMUTIL in
22044   [\\/]* | ?:[\\/]*)
22045   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22046   ;;
22047   *)
22048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22049 for as_dir in $PATH
22050 do
22051   IFS=$as_save_IFS
22052   test -z "$as_dir" && as_dir=.
22053     for ac_exec_ext in '' $ac_executable_extensions; do
22054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22055     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22057     break 2
22058   fi
22059 done
22060   done
22061 IFS=$as_save_IFS
22062 
22063   ;;
22064 esac
22065 fi
22066 DSYMUTIL=$ac_cv_path_DSYMUTIL
22067 if test -n "$DSYMUTIL"; then
22068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22069 $as_echo "$DSYMUTIL" >&6; }
22070 else
22071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22072 $as_echo "no" >&6; }
22073 fi
22074 
22075 
22076   test -n "$DSYMUTIL" && break
22077 done
22078 
22079     else
22080       # If it succeeded, then it was overridden by the user. We will use it
22081       # for the tool.
22082 
22083       # First remove it from the list of overridden variables, so we can test
22084       # for unknown variables in the end.
22085       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22086 
22087       # Check if we try to supply an empty value
22088       if test "x$DSYMUTIL" = x; then
22089         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22090 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22091         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22092 $as_echo_n "checking for DSYMUTIL... " >&6; }
22093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22094 $as_echo "disabled" >&6; }
22095       else
22096         # Check if the provided tool contains a complete path.
22097         tool_specified="$DSYMUTIL"
22098         tool_basename="${tool_specified##*/}"
22099         if test "x$tool_basename" = "x$tool_specified"; then
22100           # A command without a complete path is provided, search $PATH.
22101           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22102 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22103           # Extract the first word of "$tool_basename", so it can be a program name with args.
22104 set dummy $tool_basename; ac_word=$2
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22106 $as_echo_n "checking for $ac_word... " >&6; }
22107 if ${ac_cv_path_DSYMUTIL+:} false; then :
22108   $as_echo_n "(cached) " >&6
22109 else
22110   case $DSYMUTIL in
22111   [\\/]* | ?:[\\/]*)
22112   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22113   ;;
22114   *)
22115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22116 for as_dir in $PATH
22117 do
22118   IFS=$as_save_IFS
22119   test -z "$as_dir" && as_dir=.
22120     for ac_exec_ext in '' $ac_executable_extensions; do
22121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22122     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22124     break 2
22125   fi
22126 done
22127   done
22128 IFS=$as_save_IFS
22129 
22130   ;;
22131 esac
22132 fi
22133 DSYMUTIL=$ac_cv_path_DSYMUTIL
22134 if test -n "$DSYMUTIL"; then
22135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22136 $as_echo "$DSYMUTIL" >&6; }
22137 else
22138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139 $as_echo "no" >&6; }
22140 fi
22141 
22142 
22143           if test "x$DSYMUTIL" = x; then
22144             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22145           fi
22146         else
22147           # Otherwise we believe it is a complete path. Use it as it is.
22148           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22149 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22150           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22151 $as_echo_n "checking for DSYMUTIL... " >&6; }
22152           if test ! -x "$tool_specified"; then
22153             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22154 $as_echo "not found" >&6; }
22155             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22156           fi
22157           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22158 $as_echo "$tool_specified" >&6; }
22159         fi
22160       fi
22161     fi
22162 
22163   fi
22164 
22165 
22166 
22167   if test "x$DSYMUTIL" = x; then
22168     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22169   fi
22170 
22171 
22172 
22173 
22174 
22175   # Publish this variable in the help.
22176 
22177 
22178   if [ -z "${XATTR+x}" ]; then
22179     # The variable is not set by user, try to locate tool using the code snippet
22180     for ac_prog in xattr
22181 do
22182   # Extract the first word of "$ac_prog", so it can be a program name with args.
22183 set dummy $ac_prog; ac_word=$2
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22185 $as_echo_n "checking for $ac_word... " >&6; }
22186 if ${ac_cv_path_XATTR+:} false; then :
22187   $as_echo_n "(cached) " >&6
22188 else
22189   case $XATTR in
22190   [\\/]* | ?:[\\/]*)
22191   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22192   ;;
22193   *)
22194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22195 for as_dir in $PATH
22196 do
22197   IFS=$as_save_IFS
22198   test -z "$as_dir" && as_dir=.
22199     for ac_exec_ext in '' $ac_executable_extensions; do
22200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22201     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22203     break 2
22204   fi
22205 done
22206   done
22207 IFS=$as_save_IFS
22208 
22209   ;;
22210 esac
22211 fi
22212 XATTR=$ac_cv_path_XATTR
22213 if test -n "$XATTR"; then
22214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22215 $as_echo "$XATTR" >&6; }
22216 else
22217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22218 $as_echo "no" >&6; }
22219 fi
22220 
22221 
22222   test -n "$XATTR" && break
22223 done
22224 
22225   else
22226     # The variable is set, but is it from the command line or the environment?
22227 
22228     # Try to remove the string !XATTR! from our list.
22229     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22230     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22231       # If it failed, the variable was not from the command line. Ignore it,
22232       # but warn the user (except for BASH, which is always set by the calling BASH).
22233       if test "xXATTR" != xBASH; then
22234         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22235 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22236       fi
22237       # Try to locate tool using the code snippet
22238       for ac_prog in xattr
22239 do
22240   # Extract the first word of "$ac_prog", so it can be a program name with args.
22241 set dummy $ac_prog; ac_word=$2
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22243 $as_echo_n "checking for $ac_word... " >&6; }
22244 if ${ac_cv_path_XATTR+:} false; then :
22245   $as_echo_n "(cached) " >&6
22246 else
22247   case $XATTR in
22248   [\\/]* | ?:[\\/]*)
22249   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22250   ;;
22251   *)
22252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22253 for as_dir in $PATH
22254 do
22255   IFS=$as_save_IFS
22256   test -z "$as_dir" && as_dir=.
22257     for ac_exec_ext in '' $ac_executable_extensions; do
22258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22259     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22261     break 2
22262   fi
22263 done
22264   done
22265 IFS=$as_save_IFS
22266 
22267   ;;
22268 esac
22269 fi
22270 XATTR=$ac_cv_path_XATTR
22271 if test -n "$XATTR"; then
22272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22273 $as_echo "$XATTR" >&6; }
22274 else
22275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22276 $as_echo "no" >&6; }
22277 fi
22278 
22279 
22280   test -n "$XATTR" && break
22281 done
22282 
22283     else
22284       # If it succeeded, then it was overridden by the user. We will use it
22285       # for the tool.
22286 
22287       # First remove it from the list of overridden variables, so we can test
22288       # for unknown variables in the end.
22289       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22290 
22291       # Check if we try to supply an empty value
22292       if test "x$XATTR" = x; then
22293         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22294 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22295         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22296 $as_echo_n "checking for XATTR... " >&6; }
22297         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22298 $as_echo "disabled" >&6; }
22299       else
22300         # Check if the provided tool contains a complete path.
22301         tool_specified="$XATTR"
22302         tool_basename="${tool_specified##*/}"
22303         if test "x$tool_basename" = "x$tool_specified"; then
22304           # A command without a complete path is provided, search $PATH.
22305           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22306 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22307           # Extract the first word of "$tool_basename", so it can be a program name with args.
22308 set dummy $tool_basename; ac_word=$2
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22310 $as_echo_n "checking for $ac_word... " >&6; }
22311 if ${ac_cv_path_XATTR+:} false; then :
22312   $as_echo_n "(cached) " >&6
22313 else
22314   case $XATTR in
22315   [\\/]* | ?:[\\/]*)
22316   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22317   ;;
22318   *)
22319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22320 for as_dir in $PATH
22321 do
22322   IFS=$as_save_IFS
22323   test -z "$as_dir" && as_dir=.
22324     for ac_exec_ext in '' $ac_executable_extensions; do
22325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22326     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22328     break 2
22329   fi
22330 done
22331   done
22332 IFS=$as_save_IFS
22333 
22334   ;;
22335 esac
22336 fi
22337 XATTR=$ac_cv_path_XATTR
22338 if test -n "$XATTR"; then
22339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22340 $as_echo "$XATTR" >&6; }
22341 else
22342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22343 $as_echo "no" >&6; }
22344 fi
22345 
22346 
22347           if test "x$XATTR" = x; then
22348             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22349           fi
22350         else
22351           # Otherwise we believe it is a complete path. Use it as it is.
22352           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22353 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22354           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22355 $as_echo_n "checking for XATTR... " >&6; }
22356           if test ! -x "$tool_specified"; then
22357             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22358 $as_echo "not found" >&6; }
22359             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22360           fi
22361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22362 $as_echo "$tool_specified" >&6; }
22363         fi
22364       fi
22365     fi
22366 
22367   fi
22368 
22369 
22370 
22371   if test "x$XATTR" = x; then
22372     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22373   fi
22374 
22375 
22376 
22377 
22378   # Publish this variable in the help.
22379 
22380 
22381   if [ -z "${CODESIGN+x}" ]; then
22382     # The variable is not set by user, try to locate tool using the code snippet
22383     for ac_prog in codesign
22384 do
22385   # Extract the first word of "$ac_prog", so it can be a program name with args.
22386 set dummy $ac_prog; ac_word=$2
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22388 $as_echo_n "checking for $ac_word... " >&6; }
22389 if ${ac_cv_path_CODESIGN+:} false; then :
22390   $as_echo_n "(cached) " >&6
22391 else
22392   case $CODESIGN in
22393   [\\/]* | ?:[\\/]*)
22394   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22395   ;;
22396   *)
22397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22398 for as_dir in $PATH
22399 do
22400   IFS=$as_save_IFS
22401   test -z "$as_dir" && as_dir=.
22402     for ac_exec_ext in '' $ac_executable_extensions; do
22403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22404     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22406     break 2
22407   fi
22408 done
22409   done
22410 IFS=$as_save_IFS
22411 
22412   ;;
22413 esac
22414 fi
22415 CODESIGN=$ac_cv_path_CODESIGN
22416 if test -n "$CODESIGN"; then
22417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22418 $as_echo "$CODESIGN" >&6; }
22419 else
22420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22421 $as_echo "no" >&6; }
22422 fi
22423 
22424 
22425   test -n "$CODESIGN" && break
22426 done
22427 
22428   else
22429     # The variable is set, but is it from the command line or the environment?
22430 
22431     # Try to remove the string !CODESIGN! from our list.
22432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22434       # If it failed, the variable was not from the command line. Ignore it,
22435       # but warn the user (except for BASH, which is always set by the calling BASH).
22436       if test "xCODESIGN" != xBASH; then
22437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22438 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22439       fi
22440       # Try to locate tool using the code snippet
22441       for ac_prog in codesign
22442 do
22443   # Extract the first word of "$ac_prog", so it can be a program name with args.
22444 set dummy $ac_prog; ac_word=$2
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22446 $as_echo_n "checking for $ac_word... " >&6; }
22447 if ${ac_cv_path_CODESIGN+:} false; then :
22448   $as_echo_n "(cached) " >&6
22449 else
22450   case $CODESIGN in
22451   [\\/]* | ?:[\\/]*)
22452   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22453   ;;
22454   *)
22455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22456 for as_dir in $PATH
22457 do
22458   IFS=$as_save_IFS
22459   test -z "$as_dir" && as_dir=.
22460     for ac_exec_ext in '' $ac_executable_extensions; do
22461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22462     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22464     break 2
22465   fi
22466 done
22467   done
22468 IFS=$as_save_IFS
22469 
22470   ;;
22471 esac
22472 fi
22473 CODESIGN=$ac_cv_path_CODESIGN
22474 if test -n "$CODESIGN"; then
22475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22476 $as_echo "$CODESIGN" >&6; }
22477 else
22478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22479 $as_echo "no" >&6; }
22480 fi
22481 
22482 
22483   test -n "$CODESIGN" && break
22484 done
22485 
22486     else
22487       # If it succeeded, then it was overridden by the user. We will use it
22488       # for the tool.
22489 
22490       # First remove it from the list of overridden variables, so we can test
22491       # for unknown variables in the end.
22492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22493 
22494       # Check if we try to supply an empty value
22495       if test "x$CODESIGN" = x; then
22496         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22497 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22499 $as_echo_n "checking for CODESIGN... " >&6; }
22500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22501 $as_echo "disabled" >&6; }
22502       else
22503         # Check if the provided tool contains a complete path.
22504         tool_specified="$CODESIGN"
22505         tool_basename="${tool_specified##*/}"
22506         if test "x$tool_basename" = "x$tool_specified"; then
22507           # A command without a complete path is provided, search $PATH.
22508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22509 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22510           # Extract the first word of "$tool_basename", so it can be a program name with args.
22511 set dummy $tool_basename; ac_word=$2
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22513 $as_echo_n "checking for $ac_word... " >&6; }
22514 if ${ac_cv_path_CODESIGN+:} false; then :
22515   $as_echo_n "(cached) " >&6
22516 else
22517   case $CODESIGN in
22518   [\\/]* | ?:[\\/]*)
22519   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22520   ;;
22521   *)
22522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22523 for as_dir in $PATH
22524 do
22525   IFS=$as_save_IFS
22526   test -z "$as_dir" && as_dir=.
22527     for ac_exec_ext in '' $ac_executable_extensions; do
22528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22529     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22531     break 2
22532   fi
22533 done
22534   done
22535 IFS=$as_save_IFS
22536 
22537   ;;
22538 esac
22539 fi
22540 CODESIGN=$ac_cv_path_CODESIGN
22541 if test -n "$CODESIGN"; then
22542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22543 $as_echo "$CODESIGN" >&6; }
22544 else
22545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22547 fi
22548 
22549 
22550           if test "x$CODESIGN" = x; then
22551             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22552           fi
22553         else
22554           # Otherwise we believe it is a complete path. Use it as it is.
22555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22556 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22557           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22558 $as_echo_n "checking for CODESIGN... " >&6; }
22559           if test ! -x "$tool_specified"; then
22560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22561 $as_echo "not found" >&6; }
22562             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22563           fi
22564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22565 $as_echo "$tool_specified" >&6; }
22566         fi
22567       fi
22568     fi
22569 
22570   fi
22571 
22572 
22573     if test "x$CODESIGN" != "x"; then
22574       # Verify that the openjdk_codesign certificate is present
22575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22576 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22577       rm -f codesign-testfile
22578       touch codesign-testfile
22579       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22580       rm -f codesign-testfile
22581       if test "x$CODESIGN" = x; then
22582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22583 $as_echo "no" >&6; }
22584       else
22585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22586 $as_echo "yes" >&6; }
22587       fi
22588     fi
22589 
22590 
22591 
22592   # Publish this variable in the help.
22593 
22594 
22595   if [ -z "${SETFILE+x}" ]; then
22596     # The variable is not set by user, try to locate tool using the code snippet
22597     for ac_prog in SetFile
22598 do
22599   # Extract the first word of "$ac_prog", so it can be a program name with args.
22600 set dummy $ac_prog; ac_word=$2
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22602 $as_echo_n "checking for $ac_word... " >&6; }
22603 if ${ac_cv_path_SETFILE+:} false; then :
22604   $as_echo_n "(cached) " >&6
22605 else
22606   case $SETFILE in
22607   [\\/]* | ?:[\\/]*)
22608   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22609   ;;
22610   *)
22611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22612 for as_dir in $PATH
22613 do
22614   IFS=$as_save_IFS
22615   test -z "$as_dir" && as_dir=.
22616     for ac_exec_ext in '' $ac_executable_extensions; do
22617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22618     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22620     break 2
22621   fi
22622 done
22623   done
22624 IFS=$as_save_IFS
22625 
22626   ;;
22627 esac
22628 fi
22629 SETFILE=$ac_cv_path_SETFILE
22630 if test -n "$SETFILE"; then
22631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22632 $as_echo "$SETFILE" >&6; }
22633 else
22634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22635 $as_echo "no" >&6; }
22636 fi
22637 
22638 
22639   test -n "$SETFILE" && break
22640 done
22641 
22642   else
22643     # The variable is set, but is it from the command line or the environment?
22644 
22645     # Try to remove the string !SETFILE! from our list.
22646     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22647     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22648       # If it failed, the variable was not from the command line. Ignore it,
22649       # but warn the user (except for BASH, which is always set by the calling BASH).
22650       if test "xSETFILE" != xBASH; then
22651         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22652 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22653       fi
22654       # Try to locate tool using the code snippet
22655       for ac_prog in SetFile
22656 do
22657   # Extract the first word of "$ac_prog", so it can be a program name with args.
22658 set dummy $ac_prog; ac_word=$2
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22660 $as_echo_n "checking for $ac_word... " >&6; }
22661 if ${ac_cv_path_SETFILE+:} false; then :
22662   $as_echo_n "(cached) " >&6
22663 else
22664   case $SETFILE in
22665   [\\/]* | ?:[\\/]*)
22666   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22667   ;;
22668   *)
22669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22670 for as_dir in $PATH
22671 do
22672   IFS=$as_save_IFS
22673   test -z "$as_dir" && as_dir=.
22674     for ac_exec_ext in '' $ac_executable_extensions; do
22675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22676     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22678     break 2
22679   fi
22680 done
22681   done
22682 IFS=$as_save_IFS
22683 
22684   ;;
22685 esac
22686 fi
22687 SETFILE=$ac_cv_path_SETFILE
22688 if test -n "$SETFILE"; then
22689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22690 $as_echo "$SETFILE" >&6; }
22691 else
22692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22693 $as_echo "no" >&6; }
22694 fi
22695 
22696 
22697   test -n "$SETFILE" && break
22698 done
22699 
22700     else
22701       # If it succeeded, then it was overridden by the user. We will use it
22702       # for the tool.
22703 
22704       # First remove it from the list of overridden variables, so we can test
22705       # for unknown variables in the end.
22706       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22707 
22708       # Check if we try to supply an empty value
22709       if test "x$SETFILE" = x; then
22710         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22711 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22713 $as_echo_n "checking for SETFILE... " >&6; }
22714         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22715 $as_echo "disabled" >&6; }
22716       else
22717         # Check if the provided tool contains a complete path.
22718         tool_specified="$SETFILE"
22719         tool_basename="${tool_specified##*/}"
22720         if test "x$tool_basename" = "x$tool_specified"; then
22721           # A command without a complete path is provided, search $PATH.
22722           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22723 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22724           # Extract the first word of "$tool_basename", so it can be a program name with args.
22725 set dummy $tool_basename; ac_word=$2
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22727 $as_echo_n "checking for $ac_word... " >&6; }
22728 if ${ac_cv_path_SETFILE+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731   case $SETFILE in
22732   [\\/]* | ?:[\\/]*)
22733   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22734   ;;
22735   *)
22736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22737 for as_dir in $PATH
22738 do
22739   IFS=$as_save_IFS
22740   test -z "$as_dir" && as_dir=.
22741     for ac_exec_ext in '' $ac_executable_extensions; do
22742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22743     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22745     break 2
22746   fi
22747 done
22748   done
22749 IFS=$as_save_IFS
22750 
22751   ;;
22752 esac
22753 fi
22754 SETFILE=$ac_cv_path_SETFILE
22755 if test -n "$SETFILE"; then
22756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22757 $as_echo "$SETFILE" >&6; }
22758 else
22759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22760 $as_echo "no" >&6; }
22761 fi
22762 
22763 
22764           if test "x$SETFILE" = x; then
22765             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22766           fi
22767         else
22768           # Otherwise we believe it is a complete path. Use it as it is.
22769           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22770 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22771           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22772 $as_echo_n "checking for SETFILE... " >&6; }
22773           if test ! -x "$tool_specified"; then
22774             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22775 $as_echo "not found" >&6; }
22776             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22777           fi
22778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22779 $as_echo "$tool_specified" >&6; }
22780         fi
22781       fi
22782     fi
22783 
22784   fi
22785 
22786 
22787 
22788   if test "x$SETFILE" = x; then
22789     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22790   fi
22791 
22792 
22793   fi
22794 
22795 
22796   # Test if bash supports pipefail.
22797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22798 $as_echo_n "checking if bash supports pipefail... " >&6; }
22799   if ${BASH} -c 'set -o pipefail'; then
22800     BASH_ARGS="$BASH_ARGS -o pipefail"
22801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22802 $as_echo "yes" >&6; }
22803   else
22804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22805 $as_echo "no" >&6; }
22806   fi
22807 
22808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22809 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22810   if ${BASH} -e -c 'true'; then
22811     BASH_ARGS="$BASH_ARGS -e"
22812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22813 $as_echo "yes" >&6; }
22814   else
22815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22816 $as_echo "no" >&6; }
22817   fi
22818 
22819 
22820 
22821 
22822 # Check if pkg-config is available.
22823 
22824 
22825 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22826         if test -n "$ac_tool_prefix"; then
22827   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22828 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22830 $as_echo_n "checking for $ac_word... " >&6; }
22831 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22832   $as_echo_n "(cached) " >&6
22833 else
22834   case $PKG_CONFIG in
22835   [\\/]* | ?:[\\/]*)
22836   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22837   ;;
22838   *)
22839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22840 for as_dir in $PATH
22841 do
22842   IFS=$as_save_IFS
22843   test -z "$as_dir" && as_dir=.
22844     for ac_exec_ext in '' $ac_executable_extensions; do
22845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22846     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22848     break 2
22849   fi
22850 done
22851   done
22852 IFS=$as_save_IFS
22853 
22854   ;;
22855 esac
22856 fi
22857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22858 if test -n "$PKG_CONFIG"; then
22859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22860 $as_echo "$PKG_CONFIG" >&6; }
22861 else
22862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22863 $as_echo "no" >&6; }
22864 fi
22865 
22866 
22867 fi
22868 if test -z "$ac_cv_path_PKG_CONFIG"; then
22869   ac_pt_PKG_CONFIG=$PKG_CONFIG
22870   # Extract the first word of "pkg-config", so it can be a program name with args.
22871 set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
22875   $as_echo_n "(cached) " >&6
22876 else
22877   case $ac_pt_PKG_CONFIG in
22878   [\\/]* | ?:[\\/]*)
22879   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22901 if test -n "$ac_pt_PKG_CONFIG"; then
22902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22903 $as_echo "$ac_pt_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   if test "x$ac_pt_PKG_CONFIG" = x; then
22910     PKG_CONFIG=""
22911   else
22912     case $cross_compiling:$ac_tool_warned in
22913 yes:)
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22916 ac_tool_warned=yes ;;
22917 esac
22918     PKG_CONFIG=$ac_pt_PKG_CONFIG
22919   fi
22920 else
22921   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22922 fi
22923 
22924 fi
22925 if test -n "$PKG_CONFIG"; then
22926         _pkg_min_version=0.9.0
22927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22928 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22929         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22930                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22931 $as_echo "yes" >&6; }
22932         else
22933                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22934 $as_echo "no" >&6; }
22935                 PKG_CONFIG=""
22936         fi
22937 
22938 fi
22939 
22940 # After basic tools have been setup, we can check build os specific details.
22941 
22942   ###############################################################################
22943 
22944   # Note that this is the build platform OS version!
22945 
22946   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22947   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22948   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22949   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22950 
22951 
22952 
22953 
22954 
22955 ###############################################################################
22956 #
22957 # Determine OpenJDK variants, options and version numbers.
22958 #
22959 ###############################################################################
22960 
22961 # We need build & target for this.
22962 
22963 
22964   ###############################################################################
22965   #
22966   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
22967   # We always build headless support.
22968   #
22969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
22970 $as_echo_n "checking headful support... " >&6; }
22971   # Check whether --enable-headful was given.
22972 if test "${enable_headful+set}" = set; then :
22973   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
22974 else
22975   SUPPORT_HEADFUL=yes
22976 fi
22977 
22978 
22979   SUPPORT_HEADLESS=yes
22980   BUILD_HEADLESS="BUILD_HEADLESS:=true"
22981 
22982   if test "x$SUPPORT_HEADFUL" = xyes; then
22983     # We are building both headful and headless.
22984     headful_msg="include support for both headful and headless"
22985   fi
22986 
22987   if test "x$SUPPORT_HEADFUL" = xno; then
22988     # Thus we are building headless only.
22989     BUILD_HEADLESS="BUILD_HEADLESS:=true"
22990     headful_msg="headless only"
22991   fi
22992 
22993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
22994 $as_echo "$headful_msg" >&6; }
22995 
22996 
22997 
22998 
22999 
23000   # Control wether Hotspot runs Queens test after build.
23001   # Check whether --enable-hotspot-test-in-build was given.
23002 if test "${enable_hotspot_test_in_build+set}" = set; then :
23003   enableval=$enable_hotspot_test_in_build;
23004 else
23005   enable_hotspot_test_in_build=no
23006 fi
23007 
23008   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23009     TEST_IN_BUILD=true
23010   else
23011     TEST_IN_BUILD=false
23012   fi
23013 
23014 
23015   ###############################################################################
23016   #
23017   # Choose cacerts source file
23018   #
23019 
23020 # Check whether --with-cacerts-file was given.
23021 if test "${with_cacerts_file+set}" = set; then :
23022   withval=$with_cacerts_file;
23023 fi
23024 
23025   if test "x$with_cacerts_file" != x; then
23026     CACERTS_FILE=$with_cacerts_file
23027   fi
23028 
23029 
23030   ###############################################################################
23031   #
23032   # Enable or disable unlimited crypto
23033   #
23034   # Check whether --enable-unlimited-crypto was given.
23035 if test "${enable_unlimited_crypto+set}" = set; then :
23036   enableval=$enable_unlimited_crypto;
23037 else
23038   enable_unlimited_crypto=no
23039 fi
23040 
23041   if test "x$enable_unlimited_crypto" = "xyes"; then
23042     UNLIMITED_CRYPTO=true
23043   else
23044     UNLIMITED_CRYPTO=false
23045   fi
23046 
23047 
23048   ###############################################################################
23049   #
23050   # Enable or disable the elliptic curve crypto implementation
23051   #
23052 
23053 
23054   ###############################################################################
23055   #
23056   # Compress jars
23057   #
23058   COMPRESS_JARS=false
23059 
23060 
23061 
23062 
23063   # Source the version numbers
23064   . $AUTOCONF_DIR/version-numbers
23065 
23066   # Get the settings from parameters
23067 
23068 # Check whether --with-milestone was given.
23069 if test "${with_milestone+set}" = set; then :
23070   withval=$with_milestone;
23071 fi
23072 
23073   if test "x$with_milestone" = xyes; then
23074     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23075   elif test "x$with_milestone" != x; then
23076     MILESTONE="$with_milestone"
23077   fi
23078   if test "x$MILESTONE" = x; then
23079     MILESTONE=internal
23080   fi
23081 
23082 
23083 # Check whether --with-update-version was given.
23084 if test "${with_update_version+set}" = set; then :
23085   withval=$with_update_version;
23086 fi
23087 
23088   if test "x$with_update_version" = xyes; then
23089     as_fn_error $? "Update version must have a value" "$LINENO" 5
23090   elif test "x$with_update_version" != x; then
23091     JDK_UPDATE_VERSION="$with_update_version"
23092     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23093     # to a bug in expr (which reduces it to just X). To work around this, we
23094     # always add a 0 to one digit update versions.
23095     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23096       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23097     fi
23098   fi
23099 
23100 
23101 # Check whether --with-user-release-suffix was given.
23102 if test "${with_user_release_suffix+set}" = set; then :
23103   withval=$with_user_release_suffix;
23104 fi
23105 
23106   if test "x$with_user_release_suffix" = xyes; then
23107     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23108   elif test "x$with_user_release_suffix" != x; then
23109     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23110   fi
23111 
23112 
23113 # Check whether --with-build-number was given.
23114 if test "${with_build_number+set}" = set; then :
23115   withval=$with_build_number;
23116 fi
23117 
23118   if test "x$with_build_number" = xyes; then
23119     as_fn_error $? "Build number must have a value" "$LINENO" 5
23120   elif test "x$with_build_number" != x; then
23121     JDK_BUILD_NUMBER="$with_build_number"
23122   fi
23123   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23124   if test "x$JDK_BUILD_NUMBER" = x; then
23125     JDK_BUILD_NUMBER=b00
23126     if test "x$USER_RELEASE_SUFFIX" = x; then
23127       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23128       # Avoid [:alnum:] since it depends on the locale.
23129       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23130       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23131     fi
23132   fi
23133 
23134   # Now set the JDK version, milestone, build number etc.
23135 
23136 
23137 
23138 
23139 
23140 
23141 
23142 
23143 
23144 
23145 
23146 
23147 
23148 
23149 
23150 
23151 # Check whether --with-copyright-year was given.
23152 if test "${with_copyright_year+set}" = set; then :
23153   withval=$with_copyright_year;
23154 fi
23155 
23156   if test "x$with_copyright_year" = xyes; then
23157     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23158   elif test "x$with_copyright_year" != x; then
23159     COPYRIGHT_YEAR="$with_copyright_year"
23160   else
23161     COPYRIGHT_YEAR=`date +'%Y'`
23162   fi
23163 
23164 
23165   if test "x$JDK_UPDATE_VERSION" != x; then
23166     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23167   else
23168     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23169   fi
23170 
23171 
23172   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23173 
23174 
23175 
23176 ###############################################################################
23177 #
23178 # Setup BootJDK, used to bootstrap the build.
23179 #
23180 ###############################################################################
23181 
23182 
23183   BOOT_JDK_FOUND=no
23184 
23185 # Check whether --with-boot-jdk was given.
23186 if test "${with_boot_jdk+set}" = set; then :
23187   withval=$with_boot_jdk;
23188 fi
23189 
23190 
23191   # We look for the Boot JDK through various means, going from more certain to
23192   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23193   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23194   # must check if this is indeed valid; otherwise we'll continue looking.
23195 
23196   # Test: Is bootjdk explicitely set by command line arguments?
23197 
23198   if test "x$BOOT_JDK_FOUND" = xno; then
23199     # Now execute the test
23200 
23201   if test "x$with_boot_jdk" != x; then
23202     BOOT_JDK=$with_boot_jdk
23203     BOOT_JDK_FOUND=maybe
23204     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23205 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23206   fi
23207 
23208 
23209     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23210     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23211       # Do we have a bin/java?
23212       if test ! -x "$BOOT_JDK/bin/java"; then
23213         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23214 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23215         BOOT_JDK_FOUND=no
23216       else
23217         # Do we have a bin/javac?
23218         if test ! -x "$BOOT_JDK/bin/javac"; then
23219           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23220 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23221           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23222 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23223           BOOT_JDK_FOUND=no
23224         else
23225           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23226           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23227 
23228           # Extra M4 quote needed to protect [] in grep expression.
23229           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23230           if test "x$FOUND_CORRECT_VERSION" = x; then
23231             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23233             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23234 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23235             BOOT_JDK_FOUND=no
23236           else
23237             # We're done! :-)
23238             BOOT_JDK_FOUND=yes
23239 
23240   # Only process if variable expands to non-empty
23241 
23242   if test "x$BOOT_JDK" != x; then
23243     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23244 
23245   # Input might be given as Windows format, start by converting to
23246   # unix format.
23247   path="$BOOT_JDK"
23248   new_path=`$CYGPATH -u "$path"`
23249 
23250   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23251   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23252   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23253   # "foo.exe" is OK but "foo" is an error.
23254   #
23255   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23256   # It is also a way to make sure we got the proper file name for the real test later on.
23257   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23258   if test "x$test_shortpath" = x; then
23259     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23260 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23261     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23262   fi
23263 
23264   # Call helper function which possibly converts this using DOS-style short mode.
23265   # If so, the updated path is stored in $new_path.
23266 
23267   input_path="$new_path"
23268   # Check if we need to convert this using DOS-style short mode. If the path
23269   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23270   # take no chances and rewrite it.
23271   # Note: m4 eats our [], so we need to use [ and ] instead.
23272   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23273   if test "x$has_forbidden_chars" != x; then
23274     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23275     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23276     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23277     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23278       # Going to short mode and back again did indeed matter. Since short mode is
23279       # case insensitive, let's make it lowercase to improve readability.
23280       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23281       # Now convert it back to Unix-style (cygpath)
23282       input_path=`$CYGPATH -u "$shortmode_path"`
23283       new_path="$input_path"
23284     fi
23285   fi
23286 
23287   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23288   if test "x$test_cygdrive_prefix" = x; then
23289     # As a simple fix, exclude /usr/bin since it's not a real path.
23290     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23291       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23292       # a path prefixed by /cygdrive for fixpath to work.
23293       new_path="$CYGWIN_ROOT_PATH$input_path"
23294     fi
23295   fi
23296 
23297 
23298   if test "x$path" != "x$new_path"; then
23299     BOOT_JDK="$new_path"
23300     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23301 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23302   fi
23303 
23304     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23305 
23306   path="$BOOT_JDK"
23307   has_colon=`$ECHO $path | $GREP ^.:`
23308   new_path="$path"
23309   if test "x$has_colon" = x; then
23310     # Not in mixed or Windows style, start by that.
23311     new_path=`cmd //c echo $path`
23312   fi
23313 
23314 
23315   input_path="$new_path"
23316   # Check if we need to convert this using DOS-style short mode. If the path
23317   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23318   # take no chances and rewrite it.
23319   # Note: m4 eats our [], so we need to use [ and ] instead.
23320   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23321   if test "x$has_forbidden_chars" != x; then
23322     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23323     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23324   fi
23325 
23326 
23327   windows_path="$new_path"
23328   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23329     unix_path=`$CYGPATH -u "$windows_path"`
23330     new_path="$unix_path"
23331   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23332     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23333     new_path="$unix_path"
23334   fi
23335 
23336   if test "x$path" != "x$new_path"; then
23337     BOOT_JDK="$new_path"
23338     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23339 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23340   fi
23341 
23342   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23343   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23344 
23345     else
23346       # We're on a unix platform. Hooray! :)
23347       path="$BOOT_JDK"
23348       has_space=`$ECHO "$path" | $GREP " "`
23349       if test "x$has_space" != x; then
23350         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23351 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23352         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23353       fi
23354 
23355       # Use eval to expand a potential ~
23356       eval path="$path"
23357       if test ! -f "$path" && test ! -d "$path"; then
23358         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23359       fi
23360 
23361       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23362     fi
23363   fi
23364 
23365             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23366 $as_echo_n "checking for Boot JDK... " >&6; }
23367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23368 $as_echo "$BOOT_JDK" >&6; }
23369             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23370 $as_echo_n "checking Boot JDK version... " >&6; }
23371             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23372             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23373 $as_echo "$BOOT_JDK_VERSION" >&6; }
23374           fi # end check jdk version
23375         fi # end check javac
23376       fi # end check java
23377     fi # end check boot jdk found
23378   fi
23379 
23380   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23381     # Having specified an argument which is incorrect will produce an instant failure;
23382     # we should not go on looking
23383     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23384   fi
23385 
23386   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23387 
23388   if test "x$BOOT_JDK_FOUND" = xno; then
23389     # Now execute the test
23390 
23391   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23392     # First check at user selected default
23393 
23394   if test "x$BOOT_JDK_FOUND" = xno; then
23395     # Now execute the test
23396 
23397   if test -x /usr/libexec/java_home; then
23398     BOOT_JDK=`/usr/libexec/java_home `
23399     BOOT_JDK_FOUND=maybe
23400     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23401 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23402   fi
23403 
23404 
23405     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23406     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23407       # Do we have a bin/java?
23408       if test ! -x "$BOOT_JDK/bin/java"; then
23409         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23410 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23411         BOOT_JDK_FOUND=no
23412       else
23413         # Do we have a bin/javac?
23414         if test ! -x "$BOOT_JDK/bin/javac"; then
23415           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23417           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23418 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23419           BOOT_JDK_FOUND=no
23420         else
23421           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23422           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23423 
23424           # Extra M4 quote needed to protect [] in grep expression.
23425           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23426           if test "x$FOUND_CORRECT_VERSION" = x; then
23427             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23429             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23430 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23431             BOOT_JDK_FOUND=no
23432           else
23433             # We're done! :-)
23434             BOOT_JDK_FOUND=yes
23435 
23436   # Only process if variable expands to non-empty
23437 
23438   if test "x$BOOT_JDK" != x; then
23439     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23440 
23441   # Input might be given as Windows format, start by converting to
23442   # unix format.
23443   path="$BOOT_JDK"
23444   new_path=`$CYGPATH -u "$path"`
23445 
23446   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23447   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23448   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23449   # "foo.exe" is OK but "foo" is an error.
23450   #
23451   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23452   # It is also a way to make sure we got the proper file name for the real test later on.
23453   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23454   if test "x$test_shortpath" = x; then
23455     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23456 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23457     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23458   fi
23459 
23460   # Call helper function which possibly converts this using DOS-style short mode.
23461   # If so, the updated path is stored in $new_path.
23462 
23463   input_path="$new_path"
23464   # Check if we need to convert this using DOS-style short mode. If the path
23465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23466   # take no chances and rewrite it.
23467   # Note: m4 eats our [], so we need to use [ and ] instead.
23468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23469   if test "x$has_forbidden_chars" != x; then
23470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23471     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23472     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23473     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23474       # Going to short mode and back again did indeed matter. Since short mode is
23475       # case insensitive, let's make it lowercase to improve readability.
23476       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23477       # Now convert it back to Unix-style (cygpath)
23478       input_path=`$CYGPATH -u "$shortmode_path"`
23479       new_path="$input_path"
23480     fi
23481   fi
23482 
23483   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23484   if test "x$test_cygdrive_prefix" = x; then
23485     # As a simple fix, exclude /usr/bin since it's not a real path.
23486     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23487       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23488       # a path prefixed by /cygdrive for fixpath to work.
23489       new_path="$CYGWIN_ROOT_PATH$input_path"
23490     fi
23491   fi
23492 
23493 
23494   if test "x$path" != "x$new_path"; then
23495     BOOT_JDK="$new_path"
23496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23498   fi
23499 
23500     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23501 
23502   path="$BOOT_JDK"
23503   has_colon=`$ECHO $path | $GREP ^.:`
23504   new_path="$path"
23505   if test "x$has_colon" = x; then
23506     # Not in mixed or Windows style, start by that.
23507     new_path=`cmd //c echo $path`
23508   fi
23509 
23510 
23511   input_path="$new_path"
23512   # Check if we need to convert this using DOS-style short mode. If the path
23513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23514   # take no chances and rewrite it.
23515   # Note: m4 eats our [], so we need to use [ and ] instead.
23516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23517   if test "x$has_forbidden_chars" != x; then
23518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23519     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23520   fi
23521 
23522 
23523   windows_path="$new_path"
23524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23525     unix_path=`$CYGPATH -u "$windows_path"`
23526     new_path="$unix_path"
23527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23528     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23529     new_path="$unix_path"
23530   fi
23531 
23532   if test "x$path" != "x$new_path"; then
23533     BOOT_JDK="$new_path"
23534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23536   fi
23537 
23538   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23539   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23540 
23541     else
23542       # We're on a unix platform. Hooray! :)
23543       path="$BOOT_JDK"
23544       has_space=`$ECHO "$path" | $GREP " "`
23545       if test "x$has_space" != x; then
23546         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23548         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23549       fi
23550 
23551       # Use eval to expand a potential ~
23552       eval path="$path"
23553       if test ! -f "$path" && test ! -d "$path"; then
23554         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23555       fi
23556 
23557       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23558     fi
23559   fi
23560 
23561             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23562 $as_echo_n "checking for Boot JDK... " >&6; }
23563             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23564 $as_echo "$BOOT_JDK" >&6; }
23565             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23566 $as_echo_n "checking Boot JDK version... " >&6; }
23567             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23568             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23569 $as_echo "$BOOT_JDK_VERSION" >&6; }
23570           fi # end check jdk version
23571         fi # end check javac
23572       fi # end check java
23573     fi # end check boot jdk found
23574   fi
23575 
23576     # If that did not work out (e.g. too old), try explicit versions instead
23577 
23578   if test "x$BOOT_JDK_FOUND" = xno; then
23579     # Now execute the test
23580 
23581   if test -x /usr/libexec/java_home; then
23582     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23583     BOOT_JDK_FOUND=maybe
23584     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23585 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23586   fi
23587 
23588 
23589     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23590     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23591       # Do we have a bin/java?
23592       if test ! -x "$BOOT_JDK/bin/java"; then
23593         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23595         BOOT_JDK_FOUND=no
23596       else
23597         # Do we have a bin/javac?
23598         if test ! -x "$BOOT_JDK/bin/javac"; then
23599           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23600 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23601           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23602 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23603           BOOT_JDK_FOUND=no
23604         else
23605           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23606           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23607 
23608           # Extra M4 quote needed to protect [] in grep expression.
23609           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23610           if test "x$FOUND_CORRECT_VERSION" = x; then
23611             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23613             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23614 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23615             BOOT_JDK_FOUND=no
23616           else
23617             # We're done! :-)
23618             BOOT_JDK_FOUND=yes
23619 
23620   # Only process if variable expands to non-empty
23621 
23622   if test "x$BOOT_JDK" != x; then
23623     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23624 
23625   # Input might be given as Windows format, start by converting to
23626   # unix format.
23627   path="$BOOT_JDK"
23628   new_path=`$CYGPATH -u "$path"`
23629 
23630   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23631   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23632   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23633   # "foo.exe" is OK but "foo" is an error.
23634   #
23635   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23636   # It is also a way to make sure we got the proper file name for the real test later on.
23637   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23638   if test "x$test_shortpath" = x; then
23639     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23641     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23642   fi
23643 
23644   # Call helper function which possibly converts this using DOS-style short mode.
23645   # If so, the updated path is stored in $new_path.
23646 
23647   input_path="$new_path"
23648   # Check if we need to convert this using DOS-style short mode. If the path
23649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23650   # take no chances and rewrite it.
23651   # Note: m4 eats our [], so we need to use [ and ] instead.
23652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23653   if test "x$has_forbidden_chars" != x; then
23654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23655     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23656     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23657     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23658       # Going to short mode and back again did indeed matter. Since short mode is
23659       # case insensitive, let's make it lowercase to improve readability.
23660       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23661       # Now convert it back to Unix-style (cygpath)
23662       input_path=`$CYGPATH -u "$shortmode_path"`
23663       new_path="$input_path"
23664     fi
23665   fi
23666 
23667   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23668   if test "x$test_cygdrive_prefix" = x; then
23669     # As a simple fix, exclude /usr/bin since it's not a real path.
23670     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23671       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23672       # a path prefixed by /cygdrive for fixpath to work.
23673       new_path="$CYGWIN_ROOT_PATH$input_path"
23674     fi
23675   fi
23676 
23677 
23678   if test "x$path" != "x$new_path"; then
23679     BOOT_JDK="$new_path"
23680     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23681 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23682   fi
23683 
23684     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23685 
23686   path="$BOOT_JDK"
23687   has_colon=`$ECHO $path | $GREP ^.:`
23688   new_path="$path"
23689   if test "x$has_colon" = x; then
23690     # Not in mixed or Windows style, start by that.
23691     new_path=`cmd //c echo $path`
23692   fi
23693 
23694 
23695   input_path="$new_path"
23696   # Check if we need to convert this using DOS-style short mode. If the path
23697   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23698   # take no chances and rewrite it.
23699   # Note: m4 eats our [], so we need to use [ and ] instead.
23700   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23701   if test "x$has_forbidden_chars" != x; then
23702     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23703     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23704   fi
23705 
23706 
23707   windows_path="$new_path"
23708   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23709     unix_path=`$CYGPATH -u "$windows_path"`
23710     new_path="$unix_path"
23711   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23712     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23713     new_path="$unix_path"
23714   fi
23715 
23716   if test "x$path" != "x$new_path"; then
23717     BOOT_JDK="$new_path"
23718     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23720   fi
23721 
23722   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23723   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23724 
23725     else
23726       # We're on a unix platform. Hooray! :)
23727       path="$BOOT_JDK"
23728       has_space=`$ECHO "$path" | $GREP " "`
23729       if test "x$has_space" != x; then
23730         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23732         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23733       fi
23734 
23735       # Use eval to expand a potential ~
23736       eval path="$path"
23737       if test ! -f "$path" && test ! -d "$path"; then
23738         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23739       fi
23740 
23741       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23742     fi
23743   fi
23744 
23745             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23746 $as_echo_n "checking for Boot JDK... " >&6; }
23747             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23748 $as_echo "$BOOT_JDK" >&6; }
23749             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23750 $as_echo_n "checking Boot JDK version... " >&6; }
23751             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23752             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23753 $as_echo "$BOOT_JDK_VERSION" >&6; }
23754           fi # end check jdk version
23755         fi # end check javac
23756       fi # end check java
23757     fi # end check boot jdk found
23758   fi
23759 
23760 
23761   if test "x$BOOT_JDK_FOUND" = xno; then
23762     # Now execute the test
23763 
23764   if test -x /usr/libexec/java_home; then
23765     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23766     BOOT_JDK_FOUND=maybe
23767     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23768 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23769   fi
23770 
23771 
23772     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23773     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23774       # Do we have a bin/java?
23775       if test ! -x "$BOOT_JDK/bin/java"; then
23776         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23778         BOOT_JDK_FOUND=no
23779       else
23780         # Do we have a bin/javac?
23781         if test ! -x "$BOOT_JDK/bin/javac"; then
23782           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23784           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23785 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23786           BOOT_JDK_FOUND=no
23787         else
23788           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23789           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23790 
23791           # Extra M4 quote needed to protect [] in grep expression.
23792           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23793           if test "x$FOUND_CORRECT_VERSION" = x; then
23794             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23796             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23797 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23798             BOOT_JDK_FOUND=no
23799           else
23800             # We're done! :-)
23801             BOOT_JDK_FOUND=yes
23802 
23803   # Only process if variable expands to non-empty
23804 
23805   if test "x$BOOT_JDK" != x; then
23806     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23807 
23808   # Input might be given as Windows format, start by converting to
23809   # unix format.
23810   path="$BOOT_JDK"
23811   new_path=`$CYGPATH -u "$path"`
23812 
23813   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23814   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23815   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23816   # "foo.exe" is OK but "foo" is an error.
23817   #
23818   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23819   # It is also a way to make sure we got the proper file name for the real test later on.
23820   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23821   if test "x$test_shortpath" = x; then
23822     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23823 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23824     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23825   fi
23826 
23827   # Call helper function which possibly converts this using DOS-style short mode.
23828   # If so, the updated path is stored in $new_path.
23829 
23830   input_path="$new_path"
23831   # Check if we need to convert this using DOS-style short mode. If the path
23832   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23833   # take no chances and rewrite it.
23834   # Note: m4 eats our [], so we need to use [ and ] instead.
23835   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23836   if test "x$has_forbidden_chars" != x; then
23837     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23838     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23839     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23840     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23841       # Going to short mode and back again did indeed matter. Since short mode is
23842       # case insensitive, let's make it lowercase to improve readability.
23843       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23844       # Now convert it back to Unix-style (cygpath)
23845       input_path=`$CYGPATH -u "$shortmode_path"`
23846       new_path="$input_path"
23847     fi
23848   fi
23849 
23850   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23851   if test "x$test_cygdrive_prefix" = x; then
23852     # As a simple fix, exclude /usr/bin since it's not a real path.
23853     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23854       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23855       # a path prefixed by /cygdrive for fixpath to work.
23856       new_path="$CYGWIN_ROOT_PATH$input_path"
23857     fi
23858   fi
23859 
23860 
23861   if test "x$path" != "x$new_path"; then
23862     BOOT_JDK="$new_path"
23863     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23864 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23865   fi
23866 
23867     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23868 
23869   path="$BOOT_JDK"
23870   has_colon=`$ECHO $path | $GREP ^.:`
23871   new_path="$path"
23872   if test "x$has_colon" = x; then
23873     # Not in mixed or Windows style, start by that.
23874     new_path=`cmd //c echo $path`
23875   fi
23876 
23877 
23878   input_path="$new_path"
23879   # Check if we need to convert this using DOS-style short mode. If the path
23880   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23881   # take no chances and rewrite it.
23882   # Note: m4 eats our [], so we need to use [ and ] instead.
23883   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23884   if test "x$has_forbidden_chars" != x; then
23885     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23886     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23887   fi
23888 
23889 
23890   windows_path="$new_path"
23891   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23892     unix_path=`$CYGPATH -u "$windows_path"`
23893     new_path="$unix_path"
23894   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23895     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23896     new_path="$unix_path"
23897   fi
23898 
23899   if test "x$path" != "x$new_path"; then
23900     BOOT_JDK="$new_path"
23901     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23903   fi
23904 
23905   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23906   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23907 
23908     else
23909       # We're on a unix platform. Hooray! :)
23910       path="$BOOT_JDK"
23911       has_space=`$ECHO "$path" | $GREP " "`
23912       if test "x$has_space" != x; then
23913         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23915         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23916       fi
23917 
23918       # Use eval to expand a potential ~
23919       eval path="$path"
23920       if test ! -f "$path" && test ! -d "$path"; then
23921         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23922       fi
23923 
23924       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23925     fi
23926   fi
23927 
23928             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23929 $as_echo_n "checking for Boot JDK... " >&6; }
23930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23931 $as_echo "$BOOT_JDK" >&6; }
23932             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23933 $as_echo_n "checking Boot JDK version... " >&6; }
23934             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23935             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23936 $as_echo "$BOOT_JDK_VERSION" >&6; }
23937           fi # end check jdk version
23938         fi # end check javac
23939       fi # end check java
23940     fi # end check boot jdk found
23941   fi
23942 
23943 
23944   if test "x$BOOT_JDK_FOUND" = xno; then
23945     # Now execute the test
23946 
23947   if test -x /usr/libexec/java_home; then
23948     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23949     BOOT_JDK_FOUND=maybe
23950     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23951 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23952   fi
23953 
23954 
23955     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23956     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23957       # Do we have a bin/java?
23958       if test ! -x "$BOOT_JDK/bin/java"; then
23959         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23961         BOOT_JDK_FOUND=no
23962       else
23963         # Do we have a bin/javac?
23964         if test ! -x "$BOOT_JDK/bin/javac"; then
23965           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23966 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23967           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23968 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23969           BOOT_JDK_FOUND=no
23970         else
23971           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23972           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23973 
23974           # Extra M4 quote needed to protect [] in grep expression.
23975           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23976           if test "x$FOUND_CORRECT_VERSION" = x; then
23977             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23979             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23980 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23981             BOOT_JDK_FOUND=no
23982           else
23983             # We're done! :-)
23984             BOOT_JDK_FOUND=yes
23985 
23986   # Only process if variable expands to non-empty
23987 
23988   if test "x$BOOT_JDK" != x; then
23989     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23990 
23991   # Input might be given as Windows format, start by converting to
23992   # unix format.
23993   path="$BOOT_JDK"
23994   new_path=`$CYGPATH -u "$path"`
23995 
23996   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23997   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23998   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23999   # "foo.exe" is OK but "foo" is an error.
24000   #
24001   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24002   # It is also a way to make sure we got the proper file name for the real test later on.
24003   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24004   if test "x$test_shortpath" = x; then
24005     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24006 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24007     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24008   fi
24009 
24010   # Call helper function which possibly converts this using DOS-style short mode.
24011   # If so, the updated path is stored in $new_path.
24012 
24013   input_path="$new_path"
24014   # Check if we need to convert this using DOS-style short mode. If the path
24015   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24016   # take no chances and rewrite it.
24017   # Note: m4 eats our [], so we need to use [ and ] instead.
24018   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24019   if test "x$has_forbidden_chars" != x; then
24020     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24021     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24022     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24023     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24024       # Going to short mode and back again did indeed matter. Since short mode is
24025       # case insensitive, let's make it lowercase to improve readability.
24026       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24027       # Now convert it back to Unix-style (cygpath)
24028       input_path=`$CYGPATH -u "$shortmode_path"`
24029       new_path="$input_path"
24030     fi
24031   fi
24032 
24033   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24034   if test "x$test_cygdrive_prefix" = x; then
24035     # As a simple fix, exclude /usr/bin since it's not a real path.
24036     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24037       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24038       # a path prefixed by /cygdrive for fixpath to work.
24039       new_path="$CYGWIN_ROOT_PATH$input_path"
24040     fi
24041   fi
24042 
24043 
24044   if test "x$path" != "x$new_path"; then
24045     BOOT_JDK="$new_path"
24046     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24047 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24048   fi
24049 
24050     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24051 
24052   path="$BOOT_JDK"
24053   has_colon=`$ECHO $path | $GREP ^.:`
24054   new_path="$path"
24055   if test "x$has_colon" = x; then
24056     # Not in mixed or Windows style, start by that.
24057     new_path=`cmd //c echo $path`
24058   fi
24059 
24060 
24061   input_path="$new_path"
24062   # Check if we need to convert this using DOS-style short mode. If the path
24063   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24064   # take no chances and rewrite it.
24065   # Note: m4 eats our [], so we need to use [ and ] instead.
24066   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24067   if test "x$has_forbidden_chars" != x; then
24068     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24069     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24070   fi
24071 
24072 
24073   windows_path="$new_path"
24074   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24075     unix_path=`$CYGPATH -u "$windows_path"`
24076     new_path="$unix_path"
24077   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24078     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24079     new_path="$unix_path"
24080   fi
24081 
24082   if test "x$path" != "x$new_path"; then
24083     BOOT_JDK="$new_path"
24084     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24086   fi
24087 
24088   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24089   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24090 
24091     else
24092       # We're on a unix platform. Hooray! :)
24093       path="$BOOT_JDK"
24094       has_space=`$ECHO "$path" | $GREP " "`
24095       if test "x$has_space" != x; then
24096         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24097 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24098         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24099       fi
24100 
24101       # Use eval to expand a potential ~
24102       eval path="$path"
24103       if test ! -f "$path" && test ! -d "$path"; then
24104         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24105       fi
24106 
24107       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24108     fi
24109   fi
24110 
24111             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24112 $as_echo_n "checking for Boot JDK... " >&6; }
24113             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24114 $as_echo "$BOOT_JDK" >&6; }
24115             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24116 $as_echo_n "checking Boot JDK version... " >&6; }
24117             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24118             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24119 $as_echo "$BOOT_JDK_VERSION" >&6; }
24120           fi # end check jdk version
24121         fi # end check javac
24122       fi # end check java
24123     fi # end check boot jdk found
24124   fi
24125 
24126   fi
24127 
24128 
24129     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24130     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24131       # Do we have a bin/java?
24132       if test ! -x "$BOOT_JDK/bin/java"; then
24133         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24135         BOOT_JDK_FOUND=no
24136       else
24137         # Do we have a bin/javac?
24138         if test ! -x "$BOOT_JDK/bin/javac"; then
24139           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24141           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24142 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24143           BOOT_JDK_FOUND=no
24144         else
24145           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24146           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24147 
24148           # Extra M4 quote needed to protect [] in grep expression.
24149           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24150           if test "x$FOUND_CORRECT_VERSION" = x; then
24151             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24153             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24154 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24155             BOOT_JDK_FOUND=no
24156           else
24157             # We're done! :-)
24158             BOOT_JDK_FOUND=yes
24159 
24160   # Only process if variable expands to non-empty
24161 
24162   if test "x$BOOT_JDK" != x; then
24163     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24164 
24165   # Input might be given as Windows format, start by converting to
24166   # unix format.
24167   path="$BOOT_JDK"
24168   new_path=`$CYGPATH -u "$path"`
24169 
24170   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24171   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24172   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24173   # "foo.exe" is OK but "foo" is an error.
24174   #
24175   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24176   # It is also a way to make sure we got the proper file name for the real test later on.
24177   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24178   if test "x$test_shortpath" = x; then
24179     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24180 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24181     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24182   fi
24183 
24184   # Call helper function which possibly converts this using DOS-style short mode.
24185   # If so, the updated path is stored in $new_path.
24186 
24187   input_path="$new_path"
24188   # Check if we need to convert this using DOS-style short mode. If the path
24189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24190   # take no chances and rewrite it.
24191   # Note: m4 eats our [], so we need to use [ and ] instead.
24192   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24193   if test "x$has_forbidden_chars" != x; then
24194     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24195     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24196     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24197     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24198       # Going to short mode and back again did indeed matter. Since short mode is
24199       # case insensitive, let's make it lowercase to improve readability.
24200       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24201       # Now convert it back to Unix-style (cygpath)
24202       input_path=`$CYGPATH -u "$shortmode_path"`
24203       new_path="$input_path"
24204     fi
24205   fi
24206 
24207   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24208   if test "x$test_cygdrive_prefix" = x; then
24209     # As a simple fix, exclude /usr/bin since it's not a real path.
24210     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24211       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24212       # a path prefixed by /cygdrive for fixpath to work.
24213       new_path="$CYGWIN_ROOT_PATH$input_path"
24214     fi
24215   fi
24216 
24217 
24218   if test "x$path" != "x$new_path"; then
24219     BOOT_JDK="$new_path"
24220     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24221 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24222   fi
24223 
24224     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24225 
24226   path="$BOOT_JDK"
24227   has_colon=`$ECHO $path | $GREP ^.:`
24228   new_path="$path"
24229   if test "x$has_colon" = x; then
24230     # Not in mixed or Windows style, start by that.
24231     new_path=`cmd //c echo $path`
24232   fi
24233 
24234 
24235   input_path="$new_path"
24236   # Check if we need to convert this using DOS-style short mode. If the path
24237   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24238   # take no chances and rewrite it.
24239   # Note: m4 eats our [], so we need to use [ and ] instead.
24240   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24241   if test "x$has_forbidden_chars" != x; then
24242     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24243     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24244   fi
24245 
24246 
24247   windows_path="$new_path"
24248   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24249     unix_path=`$CYGPATH -u "$windows_path"`
24250     new_path="$unix_path"
24251   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24252     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24253     new_path="$unix_path"
24254   fi
24255 
24256   if test "x$path" != "x$new_path"; then
24257     BOOT_JDK="$new_path"
24258     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24260   fi
24261 
24262   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24263   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24264 
24265     else
24266       # We're on a unix platform. Hooray! :)
24267       path="$BOOT_JDK"
24268       has_space=`$ECHO "$path" | $GREP " "`
24269       if test "x$has_space" != x; then
24270         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24271 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24272         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24273       fi
24274 
24275       # Use eval to expand a potential ~
24276       eval path="$path"
24277       if test ! -f "$path" && test ! -d "$path"; then
24278         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24279       fi
24280 
24281       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24282     fi
24283   fi
24284 
24285             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24286 $as_echo_n "checking for Boot JDK... " >&6; }
24287             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24288 $as_echo "$BOOT_JDK" >&6; }
24289             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24290 $as_echo_n "checking Boot JDK version... " >&6; }
24291             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24292             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24293 $as_echo "$BOOT_JDK_VERSION" >&6; }
24294           fi # end check jdk version
24295         fi # end check javac
24296       fi # end check java
24297     fi # end check boot jdk found
24298   fi
24299 
24300 
24301   # Test: Is $JAVA_HOME set?
24302 
24303   if test "x$BOOT_JDK_FOUND" = xno; then
24304     # Now execute the test
24305 
24306   if test "x$JAVA_HOME" != x; then
24307     JAVA_HOME_PROCESSED="$JAVA_HOME"
24308 
24309   # Only process if variable expands to non-empty
24310 
24311   if test "x$JAVA_HOME_PROCESSED" != x; then
24312     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24313 
24314   # Input might be given as Windows format, start by converting to
24315   # unix format.
24316   path="$JAVA_HOME_PROCESSED"
24317   new_path=`$CYGPATH -u "$path"`
24318 
24319   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24320   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24321   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24322   # "foo.exe" is OK but "foo" is an error.
24323   #
24324   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24325   # It is also a way to make sure we got the proper file name for the real test later on.
24326   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24327   if test "x$test_shortpath" = x; then
24328     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24329 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24330     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24331   fi
24332 
24333   # Call helper function which possibly converts this using DOS-style short mode.
24334   # If so, the updated path is stored in $new_path.
24335 
24336   input_path="$new_path"
24337   # Check if we need to convert this using DOS-style short mode. If the path
24338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24339   # take no chances and rewrite it.
24340   # Note: m4 eats our [], so we need to use [ and ] instead.
24341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24342   if test "x$has_forbidden_chars" != x; then
24343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24344     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24345     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24346     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24347       # Going to short mode and back again did indeed matter. Since short mode is
24348       # case insensitive, let's make it lowercase to improve readability.
24349       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24350       # Now convert it back to Unix-style (cygpath)
24351       input_path=`$CYGPATH -u "$shortmode_path"`
24352       new_path="$input_path"
24353     fi
24354   fi
24355 
24356   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24357   if test "x$test_cygdrive_prefix" = x; then
24358     # As a simple fix, exclude /usr/bin since it's not a real path.
24359     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24360       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24361       # a path prefixed by /cygdrive for fixpath to work.
24362       new_path="$CYGWIN_ROOT_PATH$input_path"
24363     fi
24364   fi
24365 
24366 
24367   if test "x$path" != "x$new_path"; then
24368     JAVA_HOME_PROCESSED="$new_path"
24369     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24370 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24371   fi
24372 
24373     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24374 
24375   path="$JAVA_HOME_PROCESSED"
24376   has_colon=`$ECHO $path | $GREP ^.:`
24377   new_path="$path"
24378   if test "x$has_colon" = x; then
24379     # Not in mixed or Windows style, start by that.
24380     new_path=`cmd //c echo $path`
24381   fi
24382 
24383 
24384   input_path="$new_path"
24385   # Check if we need to convert this using DOS-style short mode. If the path
24386   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24387   # take no chances and rewrite it.
24388   # Note: m4 eats our [], so we need to use [ and ] instead.
24389   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24390   if test "x$has_forbidden_chars" != x; then
24391     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24392     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24393   fi
24394 
24395 
24396   windows_path="$new_path"
24397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24398     unix_path=`$CYGPATH -u "$windows_path"`
24399     new_path="$unix_path"
24400   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24401     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24402     new_path="$unix_path"
24403   fi
24404 
24405   if test "x$path" != "x$new_path"; then
24406     JAVA_HOME_PROCESSED="$new_path"
24407     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24408 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24409   fi
24410 
24411   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24412   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24413 
24414     else
24415       # We're on a unix platform. Hooray! :)
24416       path="$JAVA_HOME_PROCESSED"
24417       has_space=`$ECHO "$path" | $GREP " "`
24418       if test "x$has_space" != x; then
24419         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24420 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24421         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24422       fi
24423 
24424       # Use eval to expand a potential ~
24425       eval path="$path"
24426       if test ! -f "$path" && test ! -d "$path"; then
24427         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24428       fi
24429 
24430       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24431     fi
24432   fi
24433 
24434     if test ! -d "$JAVA_HOME_PROCESSED"; then
24435       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24436 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24437     else
24438       # Aha, the user has set a JAVA_HOME
24439       # let us use that as the Boot JDK.
24440       BOOT_JDK="$JAVA_HOME_PROCESSED"
24441       BOOT_JDK_FOUND=maybe
24442       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24443 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24444     fi
24445   fi
24446 
24447 
24448     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24449     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24450       # Do we have a bin/java?
24451       if test ! -x "$BOOT_JDK/bin/java"; then
24452         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24453 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24454         BOOT_JDK_FOUND=no
24455       else
24456         # Do we have a bin/javac?
24457         if test ! -x "$BOOT_JDK/bin/javac"; then
24458           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24459 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24460           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24461 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24462           BOOT_JDK_FOUND=no
24463         else
24464           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24465           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24466 
24467           # Extra M4 quote needed to protect [] in grep expression.
24468           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24469           if test "x$FOUND_CORRECT_VERSION" = x; then
24470             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24472             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24473 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24474             BOOT_JDK_FOUND=no
24475           else
24476             # We're done! :-)
24477             BOOT_JDK_FOUND=yes
24478 
24479   # Only process if variable expands to non-empty
24480 
24481   if test "x$BOOT_JDK" != x; then
24482     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24483 
24484   # Input might be given as Windows format, start by converting to
24485   # unix format.
24486   path="$BOOT_JDK"
24487   new_path=`$CYGPATH -u "$path"`
24488 
24489   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24490   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24491   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24492   # "foo.exe" is OK but "foo" is an error.
24493   #
24494   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24495   # It is also a way to make sure we got the proper file name for the real test later on.
24496   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24497   if test "x$test_shortpath" = x; then
24498     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24499 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24500     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24501   fi
24502 
24503   # Call helper function which possibly converts this using DOS-style short mode.
24504   # If so, the updated path is stored in $new_path.
24505 
24506   input_path="$new_path"
24507   # Check if we need to convert this using DOS-style short mode. If the path
24508   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24509   # take no chances and rewrite it.
24510   # Note: m4 eats our [], so we need to use [ and ] instead.
24511   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24512   if test "x$has_forbidden_chars" != x; then
24513     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24514     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24515     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24516     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24517       # Going to short mode and back again did indeed matter. Since short mode is
24518       # case insensitive, let's make it lowercase to improve readability.
24519       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24520       # Now convert it back to Unix-style (cygpath)
24521       input_path=`$CYGPATH -u "$shortmode_path"`
24522       new_path="$input_path"
24523     fi
24524   fi
24525 
24526   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24527   if test "x$test_cygdrive_prefix" = x; then
24528     # As a simple fix, exclude /usr/bin since it's not a real path.
24529     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24530       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24531       # a path prefixed by /cygdrive for fixpath to work.
24532       new_path="$CYGWIN_ROOT_PATH$input_path"
24533     fi
24534   fi
24535 
24536 
24537   if test "x$path" != "x$new_path"; then
24538     BOOT_JDK="$new_path"
24539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24541   fi
24542 
24543     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24544 
24545   path="$BOOT_JDK"
24546   has_colon=`$ECHO $path | $GREP ^.:`
24547   new_path="$path"
24548   if test "x$has_colon" = x; then
24549     # Not in mixed or Windows style, start by that.
24550     new_path=`cmd //c echo $path`
24551   fi
24552 
24553 
24554   input_path="$new_path"
24555   # Check if we need to convert this using DOS-style short mode. If the path
24556   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24557   # take no chances and rewrite it.
24558   # Note: m4 eats our [], so we need to use [ and ] instead.
24559   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24560   if test "x$has_forbidden_chars" != x; then
24561     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24562     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24563   fi
24564 
24565 
24566   windows_path="$new_path"
24567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24568     unix_path=`$CYGPATH -u "$windows_path"`
24569     new_path="$unix_path"
24570   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24571     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24572     new_path="$unix_path"
24573   fi
24574 
24575   if test "x$path" != "x$new_path"; then
24576     BOOT_JDK="$new_path"
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24578 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24579   fi
24580 
24581   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24582   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24583 
24584     else
24585       # We're on a unix platform. Hooray! :)
24586       path="$BOOT_JDK"
24587       has_space=`$ECHO "$path" | $GREP " "`
24588       if test "x$has_space" != x; then
24589         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24590 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24591         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24592       fi
24593 
24594       # Use eval to expand a potential ~
24595       eval path="$path"
24596       if test ! -f "$path" && test ! -d "$path"; then
24597         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24598       fi
24599 
24600       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24601     fi
24602   fi
24603 
24604             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24605 $as_echo_n "checking for Boot JDK... " >&6; }
24606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24607 $as_echo "$BOOT_JDK" >&6; }
24608             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24609 $as_echo_n "checking Boot JDK version... " >&6; }
24610             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24612 $as_echo "$BOOT_JDK_VERSION" >&6; }
24613           fi # end check jdk version
24614         fi # end check javac
24615       fi # end check java
24616     fi # end check boot jdk found
24617   fi
24618 
24619 
24620   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24621 
24622   if test "x$BOOT_JDK_FOUND" = xno; then
24623     # Now execute the test
24624 
24625   # Extract the first word of "javac", so it can be a program name with args.
24626 set dummy javac; ac_word=$2
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24628 $as_echo_n "checking for $ac_word... " >&6; }
24629 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24630   $as_echo_n "(cached) " >&6
24631 else
24632   case $JAVAC_CHECK in
24633   [\\/]* | ?:[\\/]*)
24634   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24635   ;;
24636   *)
24637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24638 for as_dir in $PATH
24639 do
24640   IFS=$as_save_IFS
24641   test -z "$as_dir" && as_dir=.
24642     for ac_exec_ext in '' $ac_executable_extensions; do
24643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24644     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24646     break 2
24647   fi
24648 done
24649   done
24650 IFS=$as_save_IFS
24651 
24652   ;;
24653 esac
24654 fi
24655 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24656 if test -n "$JAVAC_CHECK"; then
24657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24658 $as_echo "$JAVAC_CHECK" >&6; }
24659 else
24660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24661 $as_echo "no" >&6; }
24662 fi
24663 
24664 
24665   # Extract the first word of "java", so it can be a program name with args.
24666 set dummy java; ac_word=$2
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24668 $as_echo_n "checking for $ac_word... " >&6; }
24669 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24670   $as_echo_n "(cached) " >&6
24671 else
24672   case $JAVA_CHECK in
24673   [\\/]* | ?:[\\/]*)
24674   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24675   ;;
24676   *)
24677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24678 for as_dir in $PATH
24679 do
24680   IFS=$as_save_IFS
24681   test -z "$as_dir" && as_dir=.
24682     for ac_exec_ext in '' $ac_executable_extensions; do
24683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24684     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24686     break 2
24687   fi
24688 done
24689   done
24690 IFS=$as_save_IFS
24691 
24692   ;;
24693 esac
24694 fi
24695 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24696 if test -n "$JAVA_CHECK"; then
24697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24698 $as_echo "$JAVA_CHECK" >&6; }
24699 else
24700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24701 $as_echo "no" >&6; }
24702 fi
24703 
24704 
24705   BINARY="$JAVAC_CHECK"
24706   if test "x$JAVAC_CHECK" = x; then
24707     BINARY="$JAVA_CHECK"
24708   fi
24709   if test "x$BINARY" != x; then
24710     # So there is a java(c) binary, it might be part of a JDK.
24711     # Lets find the JDK/JRE directory by following symbolic links.
24712     # Linux/GNU systems often have links from /usr/bin/java to
24713     # /etc/alternatives/java to the real JDK binary.
24714 
24715   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24716     # Follow a chain of symbolic links. Use readlink
24717     # where it exists, else fall back to horribly
24718     # complicated shell code.
24719     if test "x$READLINK_TESTED" != yes; then
24720       # On MacOSX there is a readlink tool with a different
24721       # purpose than the GNU readlink tool. Check the found readlink.
24722       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24723       if test "x$ISGNU" = x; then
24724         # A readlink that we do not know how to use.
24725         # Are there other non-GNU readlinks out there?
24726         READLINK_TESTED=yes
24727         READLINK=
24728       fi
24729     fi
24730 
24731     if test "x$READLINK" != x; then
24732       BINARY=`$READLINK -f $BINARY`
24733     else
24734       # Save the current directory for restoring afterwards
24735       STARTDIR=$PWD
24736       COUNTER=0
24737       sym_link_dir=`$DIRNAME $BINARY`
24738       sym_link_file=`$BASENAME $BINARY`
24739       cd $sym_link_dir
24740       # Use -P flag to resolve symlinks in directories.
24741       cd `$THEPWDCMD -P`
24742       sym_link_dir=`$THEPWDCMD -P`
24743       # Resolve file symlinks
24744       while test $COUNTER -lt 20; do
24745         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24746         if test "x$ISLINK" == x; then
24747           # This is not a symbolic link! We are done!
24748           break
24749         fi
24750         # Again resolve directory symlinks since the target of the just found
24751         # link could be in a different directory
24752         cd `$DIRNAME $ISLINK`
24753         sym_link_dir=`$THEPWDCMD -P`
24754         sym_link_file=`$BASENAME $ISLINK`
24755         let COUNTER=COUNTER+1
24756       done
24757       cd $STARTDIR
24758       BINARY=$sym_link_dir/$sym_link_file
24759     fi
24760   fi
24761 
24762     BOOT_JDK=`dirname "$BINARY"`
24763     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24764     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24765       # Looks like we found ourselves an JDK
24766       BOOT_JDK_FOUND=maybe
24767       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24768 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24769     fi
24770   fi
24771 
24772 
24773     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24774     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24775       # Do we have a bin/java?
24776       if test ! -x "$BOOT_JDK/bin/java"; then
24777         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24778 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24779         BOOT_JDK_FOUND=no
24780       else
24781         # Do we have a bin/javac?
24782         if test ! -x "$BOOT_JDK/bin/javac"; then
24783           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24785           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24786 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24787           BOOT_JDK_FOUND=no
24788         else
24789           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24790           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24791 
24792           # Extra M4 quote needed to protect [] in grep expression.
24793           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24794           if test "x$FOUND_CORRECT_VERSION" = x; then
24795             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24797             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24798 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24799             BOOT_JDK_FOUND=no
24800           else
24801             # We're done! :-)
24802             BOOT_JDK_FOUND=yes
24803 
24804   # Only process if variable expands to non-empty
24805 
24806   if test "x$BOOT_JDK" != x; then
24807     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24808 
24809   # Input might be given as Windows format, start by converting to
24810   # unix format.
24811   path="$BOOT_JDK"
24812   new_path=`$CYGPATH -u "$path"`
24813 
24814   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24815   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24816   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24817   # "foo.exe" is OK but "foo" is an error.
24818   #
24819   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24820   # It is also a way to make sure we got the proper file name for the real test later on.
24821   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24822   if test "x$test_shortpath" = x; then
24823     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24824 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24825     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24826   fi
24827 
24828   # Call helper function which possibly converts this using DOS-style short mode.
24829   # If so, the updated path is stored in $new_path.
24830 
24831   input_path="$new_path"
24832   # Check if we need to convert this using DOS-style short mode. If the path
24833   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24834   # take no chances and rewrite it.
24835   # Note: m4 eats our [], so we need to use [ and ] instead.
24836   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24837   if test "x$has_forbidden_chars" != x; then
24838     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24839     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24840     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24841     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24842       # Going to short mode and back again did indeed matter. Since short mode is
24843       # case insensitive, let's make it lowercase to improve readability.
24844       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24845       # Now convert it back to Unix-style (cygpath)
24846       input_path=`$CYGPATH -u "$shortmode_path"`
24847       new_path="$input_path"
24848     fi
24849   fi
24850 
24851   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24852   if test "x$test_cygdrive_prefix" = x; then
24853     # As a simple fix, exclude /usr/bin since it's not a real path.
24854     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24855       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24856       # a path prefixed by /cygdrive for fixpath to work.
24857       new_path="$CYGWIN_ROOT_PATH$input_path"
24858     fi
24859   fi
24860 
24861 
24862   if test "x$path" != "x$new_path"; then
24863     BOOT_JDK="$new_path"
24864     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24865 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24866   fi
24867 
24868     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24869 
24870   path="$BOOT_JDK"
24871   has_colon=`$ECHO $path | $GREP ^.:`
24872   new_path="$path"
24873   if test "x$has_colon" = x; then
24874     # Not in mixed or Windows style, start by that.
24875     new_path=`cmd //c echo $path`
24876   fi
24877 
24878 
24879   input_path="$new_path"
24880   # Check if we need to convert this using DOS-style short mode. If the path
24881   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24882   # take no chances and rewrite it.
24883   # Note: m4 eats our [], so we need to use [ and ] instead.
24884   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24885   if test "x$has_forbidden_chars" != x; then
24886     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24887     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24888   fi
24889 
24890 
24891   windows_path="$new_path"
24892   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24893     unix_path=`$CYGPATH -u "$windows_path"`
24894     new_path="$unix_path"
24895   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24896     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24897     new_path="$unix_path"
24898   fi
24899 
24900   if test "x$path" != "x$new_path"; then
24901     BOOT_JDK="$new_path"
24902     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24903 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24904   fi
24905 
24906   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24907   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24908 
24909     else
24910       # We're on a unix platform. Hooray! :)
24911       path="$BOOT_JDK"
24912       has_space=`$ECHO "$path" | $GREP " "`
24913       if test "x$has_space" != x; then
24914         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24915 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24916         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24917       fi
24918 
24919       # Use eval to expand a potential ~
24920       eval path="$path"
24921       if test ! -f "$path" && test ! -d "$path"; then
24922         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24923       fi
24924 
24925       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24926     fi
24927   fi
24928 
24929             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24930 $as_echo_n "checking for Boot JDK... " >&6; }
24931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24932 $as_echo "$BOOT_JDK" >&6; }
24933             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24934 $as_echo_n "checking Boot JDK version... " >&6; }
24935             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24936             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24937 $as_echo "$BOOT_JDK_VERSION" >&6; }
24938           fi # end check jdk version
24939         fi # end check javac
24940       fi # end check java
24941     fi # end check boot jdk found
24942   fi
24943 
24944 
24945   # Test: Is there a JDK installed in default, well-known locations?
24946 
24947   if test "x$BOOT_JDK_FOUND" = xno; then
24948     # Now execute the test
24949 
24950   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24951 
24952   if test "x$BOOT_JDK_FOUND" = xno; then
24953     # Now execute the test
24954 
24955   if test "x$ProgramW6432" != x; then
24956     VIRTUAL_DIR="$ProgramW6432/Java"
24957 
24958   windows_path="$VIRTUAL_DIR"
24959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24960     unix_path=`$CYGPATH -u "$windows_path"`
24961     VIRTUAL_DIR="$unix_path"
24962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24964     VIRTUAL_DIR="$unix_path"
24965   fi
24966 
24967 
24968   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24969   BOOT_JDK_SUFFIX=""
24970   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24971   if test "x$ALL_JDKS_FOUND" != x; then
24972     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24973 
24974   if test "x$BOOT_JDK_FOUND" = xno; then
24975     # Now execute the test
24976 
24977         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24978         if test -d "$BOOT_JDK"; then
24979           BOOT_JDK_FOUND=maybe
24980           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24981 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24982         fi
24983 
24984 
24985     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24986     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24987       # Do we have a bin/java?
24988       if test ! -x "$BOOT_JDK/bin/java"; then
24989         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24991         BOOT_JDK_FOUND=no
24992       else
24993         # Do we have a bin/javac?
24994         if test ! -x "$BOOT_JDK/bin/javac"; then
24995           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24996 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24997           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24998 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24999           BOOT_JDK_FOUND=no
25000         else
25001           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25002           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25003 
25004           # Extra M4 quote needed to protect [] in grep expression.
25005           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25006           if test "x$FOUND_CORRECT_VERSION" = x; then
25007             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25009             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25010 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25011             BOOT_JDK_FOUND=no
25012           else
25013             # We're done! :-)
25014             BOOT_JDK_FOUND=yes
25015 
25016   # Only process if variable expands to non-empty
25017 
25018   if test "x$BOOT_JDK" != x; then
25019     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25020 
25021   # Input might be given as Windows format, start by converting to
25022   # unix format.
25023   path="$BOOT_JDK"
25024   new_path=`$CYGPATH -u "$path"`
25025 
25026   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25027   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25028   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25029   # "foo.exe" is OK but "foo" is an error.
25030   #
25031   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25032   # It is also a way to make sure we got the proper file name for the real test later on.
25033   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25034   if test "x$test_shortpath" = x; then
25035     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25036 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25037     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25038   fi
25039 
25040   # Call helper function which possibly converts this using DOS-style short mode.
25041   # If so, the updated path is stored in $new_path.
25042 
25043   input_path="$new_path"
25044   # Check if we need to convert this using DOS-style short mode. If the path
25045   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25046   # take no chances and rewrite it.
25047   # Note: m4 eats our [], so we need to use [ and ] instead.
25048   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25049   if test "x$has_forbidden_chars" != x; then
25050     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25051     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25052     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25053     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25054       # Going to short mode and back again did indeed matter. Since short mode is
25055       # case insensitive, let's make it lowercase to improve readability.
25056       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25057       # Now convert it back to Unix-style (cygpath)
25058       input_path=`$CYGPATH -u "$shortmode_path"`
25059       new_path="$input_path"
25060     fi
25061   fi
25062 
25063   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25064   if test "x$test_cygdrive_prefix" = x; then
25065     # As a simple fix, exclude /usr/bin since it's not a real path.
25066     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25067       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25068       # a path prefixed by /cygdrive for fixpath to work.
25069       new_path="$CYGWIN_ROOT_PATH$input_path"
25070     fi
25071   fi
25072 
25073 
25074   if test "x$path" != "x$new_path"; then
25075     BOOT_JDK="$new_path"
25076     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25077 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25078   fi
25079 
25080     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25081 
25082   path="$BOOT_JDK"
25083   has_colon=`$ECHO $path | $GREP ^.:`
25084   new_path="$path"
25085   if test "x$has_colon" = x; then
25086     # Not in mixed or Windows style, start by that.
25087     new_path=`cmd //c echo $path`
25088   fi
25089 
25090 
25091   input_path="$new_path"