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 STRIP_POLICY
 687 DEBUG_BINARIES
 688 DEBUG_SYMBOLS
 689 CFLAGS_WARNINGS_ARE_ERRORS
 690 DISABLE_WARNING_PREFIX
 691 HOTSPOT_SET_WARNINGS_AS_ERRORS
 692 WARNINGS_AS_ERRORS
 693 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 694 ZERO_ARCHFLAG
 695 LDFLAGS_TESTEXE
 696 LDFLAGS_TESTLIB
 697 LDFLAGS_CXX_JDK
 698 JDKEXE_LIBS
 699 JDKLIB_LIBS
 700 LDFLAGS_JDKEXE
 701 LDFLAGS_JDKLIB
 702 CXXFLAGS_TESTEXE
 703 CXXFLAGS_TESTLIB
 704 CFLAGS_TESTEXE
 705 CFLAGS_TESTLIB
 706 CXXFLAGS_JDKEXE
 707 CXXFLAGS_JDKLIB
 708 CFLAGS_JDKEXE
 709 CFLAGS_JDKLIB
 710 MACOSX_VERSION_MIN
 711 CXX_O_FLAG_NONE
 712 CXX_O_FLAG_DEBUG
 713 CXX_O_FLAG_NORM
 714 CXX_O_FLAG_HI
 715 CXX_O_FLAG_HIGHEST
 716 C_O_FLAG_NONE
 717 C_O_FLAG_DEBUG
 718 C_O_FLAG_NORM
 719 C_O_FLAG_HI
 720 C_O_FLAG_HIGHEST
 721 CXXFLAGS_DEBUG_SYMBOLS
 722 CFLAGS_DEBUG_SYMBOLS
 723 CXX_FLAG_DEPS
 724 C_FLAG_DEPS
 725 SET_SHARED_LIBRARY_MAPFILE
 726 SET_SHARED_LIBRARY_NAME
 727 SET_SHARED_LIBRARY_ORIGIN
 728 SET_EXECUTABLE_ORIGIN
 729 CXX_FLAG_REORDER
 730 C_FLAG_REORDER
 731 RC_FLAGS
 732 AR_OUT_OPTION
 733 LD_OUT_OPTION
 734 EXE_OUT_OPTION
 735 CC_OUT_OPTION
 736 STRIPFLAGS
 737 ARFLAGS
 738 COMPILER_TARGET_BITS_FLAG
 739 JT_HOME
 740 JTREGEXE
 741 USING_BROKEN_SUSE_LD
 742 PACKAGE_PATH
 743 USE_CLANG
 744 HOTSPOT_LD
 745 HOTSPOT_CXX
 746 HOTSPOT_RC
 747 HOTSPOT_MT
 748 BUILD_LD
 749 BUILD_CXX
 750 BUILD_CC
 751 BUILD_SYSROOT_LDFLAGS
 752 BUILD_SYSROOT_CFLAGS
 753 ac_ct_OBJDUMP
 754 OBJDUMP
 755 ac_ct_OBJCOPY
 756 OBJCOPY
 757 ac_ct_NM
 758 ac_ct_STRIP
 759 GNM
 760 NM
 761 STRIP
 762 MSBUILD
 763 DUMPBIN
 764 RC
 765 MT
 766 LIPO
 767 ac_ct_AR
 768 AR
 769 AS
 770 LDCXX
 771 LD
 772 CXXCPP
 773 CPP
 774 ac_ct_CXX
 775 CXXFLAGS
 776 CXX
 777 ac_ct_PROPER_COMPILER_CXX
 778 PROPER_COMPILER_CXX
 779 TOOLCHAIN_PATH_CXX
 780 POTENTIAL_CXX
 781 OBJEXT
 782 EXEEXT
 783 ac_ct_CC
 784 CPPFLAGS
 785 LDFLAGS
 786 CFLAGS
 787 CC
 788 ac_ct_PROPER_COMPILER_CC
 789 PROPER_COMPILER_CC
 790 TOOLCHAIN_PATH_CC
 791 POTENTIAL_CC
 792 VS_LIB
 793 VS_INCLUDE
 794 VS_PATH
 795 CYGWIN_LINK
 796 SYSROOT_LDFLAGS
 797 SYSROOT_CFLAGS
 798 LEGACY_EXTRA_LDFLAGS
 799 LEGACY_EXTRA_CXXFLAGS
 800 LEGACY_EXTRA_CFLAGS
 801 EXE_SUFFIX
 802 OBJ_SUFFIX
 803 STATIC_LIBRARY
 804 SHARED_LIBRARY
 805 STATIC_LIBRARY_SUFFIX
 806 SHARED_LIBRARY_SUFFIX
 807 LIBRARY_PREFIX
 808 TOOLCHAIN_TYPE
 809 STATIC_BUILD
 810 BUILD_HOTSPOT
 811 HOTSPOT_DIST
 812 BUILD_OUTPUT
 813 JDK_TOPDIR
 814 NASHORN_TOPDIR
 815 HOTSPOT_TOPDIR
 816 JAXWS_TOPDIR
 817 JAXP_TOPDIR
 818 CORBA_TOPDIR
 819 LANGTOOLS_TOPDIR
 820 BOOT_JDK_BITS
 821 JAVAC_FLAGS
 822 BOOT_JDK_SOURCETARGET
 823 JARSIGNER
 824 JAR
 825 JAVAH
 826 JAVAC
 827 JAVA
 828 BOOT_JDK
 829 JAVA_CHECK
 830 JAVAC_CHECK
 831 COOKED_BUILD_NUMBER
 832 JDK_VERSION
 833 COPYRIGHT_YEAR
 834 MACOSX_BUNDLE_ID_BASE
 835 MACOSX_BUNDLE_NAME_BASE
 836 COMPANY_NAME
 837 JDK_RC_PLATFORM_NAME
 838 PRODUCT_SUFFIX
 839 PRODUCT_NAME
 840 LAUNCHER_NAME
 841 MILESTONE
 842 JDK_BUILD_NUMBER
 843 JDK_UPDATE_VERSION
 844 JDK_MICRO_VERSION
 845 JDK_MINOR_VERSION
 846 JDK_MAJOR_VERSION
 847 USER_RELEASE_SUFFIX
 848 COMPRESS_JARS
 849 UNLIMITED_CRYPTO
 850 CACERTS_FILE
 851 TEST_IN_BUILD
 852 BUILD_HEADLESS
 853 SUPPORT_HEADFUL
 854 SUPPORT_HEADLESS
 855 OS_VERSION_MICRO
 856 OS_VERSION_MINOR
 857 OS_VERSION_MAJOR
 858 PKG_CONFIG
 859 BASH_ARGS
 860 SETFILE
 861 CODESIGN
 862 XATTR
 863 DSYMUTIL
 864 IS_GNU_TIME
 865 PATCH
 866 TIME
 867 STAT
 868 HG
 869 READELF
 870 OTOOL
 871 LDD
 872 ZIP
 873 UNZIP
 874 FIND_DELETE
 875 OUTPUT_SYNC
 876 OUTPUT_SYNC_SUPPORTED
 877 CHECK_TOOLSDIR_MAKE
 878 CHECK_TOOLSDIR_GMAKE
 879 CHECK_MAKE
 880 CHECK_GMAKE
 881 MAKE
 882 PKGHANDLER
 883 CONFIGURESUPPORT_OUTPUTDIR
 884 OUTPUT_ROOT
 885 CONF_NAME
 886 SPEC
 887 SDKROOT
 888 XCODEBUILD
 889 BUILD_VARIANT_RELEASE
 890 DEBUG_CLASSFILES
 891 FASTDEBUG
 892 VARIANT
 893 DEBUG_LEVEL
 894 MACOSX_UNIVERSAL
 895 INCLUDE_SA
 896 JVM_VARIANT_CORE
 897 JVM_VARIANT_ZEROSHARK
 898 JVM_VARIANT_ZERO
 899 JVM_VARIANT_KERNEL
 900 JVM_VARIANT_MINIMAL1
 901 JVM_VARIANT_CLIENT
 902 JVM_VARIANT_SERVER
 903 JVM_VARIANTS
 904 JVM_INTERPRETER
 905 JDK_VARIANT
 906 SET_OPENJDK
 907 CANONICAL_TOPDIR
 908 ORIGINAL_TOPDIR
 909 TOPDIR
 910 PATH_SEP
 911 ZERO_ARCHDEF
 912 DEFINE_CROSS_COMPILE_ARCH
 913 LP64
 914 OPENJDK_TARGET_OS_EXPORT_DIR
 915 OPENJDK_TARGET_CPU_JLI_CFLAGS
 916 OPENJDK_TARGET_CPU_OSARCH
 917 OPENJDK_TARGET_CPU_ISADIR
 918 OPENJDK_TARGET_CPU_LIBDIR
 919 OPENJDK_TARGET_CPU_LEGACY_LIB
 920 OPENJDK_TARGET_CPU_LEGACY
 921 REQUIRED_OS_VERSION
 922 REQUIRED_OS_NAME
 923 COMPILE_TYPE
 924 OPENJDK_TARGET_CPU_ENDIAN
 925 OPENJDK_TARGET_CPU_BITS
 926 OPENJDK_TARGET_CPU_ARCH
 927 OPENJDK_TARGET_CPU
 928 OPENJDK_TARGET_OS_ENV
 929 OPENJDK_TARGET_OS_TYPE
 930 OPENJDK_TARGET_OS
 931 OPENJDK_BUILD_CPU_ENDIAN
 932 OPENJDK_BUILD_CPU_BITS
 933 OPENJDK_BUILD_CPU_ARCH
 934 OPENJDK_BUILD_CPU
 935 OPENJDK_BUILD_OS_ENV
 936 OPENJDK_BUILD_OS_TYPE
 937 OPENJDK_BUILD_OS
 938 OPENJDK_BUILD_AUTOCONF_NAME
 939 OPENJDK_TARGET_AUTOCONF_NAME
 940 target_os
 941 target_vendor
 942 target_cpu
 943 target
 944 host_os
 945 host_vendor
 946 host_cpu
 947 host
 948 build_os
 949 build_vendor
 950 build_cpu
 951 build
 952 NICE
 953 CPIO
 954 DF
 955 READLINK
 956 CYGPATH
 957 SED
 958 FGREP
 959 EGREP
 960 GREP
 961 AWK
 962 XARGS
 963 WHICH
 964 WC
 965 UNIQ
 966 UNAME
 967 TR
 968 TOUCH
 969 TEE
 970 TAR
 971 TAIL
 972 SORT
 973 SH
 974 RMDIR
 975 RM
 976 PRINTF
 977 NAWK
 978 MV
 979 MKTEMP
 980 MKDIR
 981 LS
 982 LN
 983 HEAD
 984 FIND
 985 FILE
 986 EXPR
 987 ECHO
 988 DIRNAME
 989 DIFF
 990 DATE
 991 CUT
 992 CP
 993 COMM
 994 CMP
 995 CHMOD
 996 CAT
 997 BASH
 998 BASENAME
 999 DATE_WHEN_CONFIGURED
1000 ORIGINAL_PATH
1001 CONFIGURE_COMMAND_LINE
1002 target_alias
1003 host_alias
1004 build_alias
1005 LIBS
1006 ECHO_T
1007 ECHO_N
1008 ECHO_C
1009 DEFS
1010 mandir
1011 localedir
1012 libdir
1013 psdir
1014 pdfdir
1015 dvidir
1016 htmldir
1017 infodir
1018 docdir
1019 oldincludedir
1020 includedir
1021 localstatedir
1022 sharedstatedir
1023 sysconfdir
1024 datadir
1025 datarootdir
1026 libexecdir
1027 sbindir
1028 bindir
1029 program_transform_name
1030 prefix
1031 exec_prefix
1032 PACKAGE_URL
1033 PACKAGE_BUGREPORT
1034 PACKAGE_STRING
1035 PACKAGE_VERSION
1036 PACKAGE_TARNAME
1037 PACKAGE_NAME
1038 PATH_SEPARATOR
1039 SHELL'
1040 ac_subst_files=''
1041 ac_user_opts='
1042 enable_option_checking
1043 with_target_bits
1044 enable_openjdk_only
1045 with_custom_make_dir
1046 with_jdk_variant
1047 with_jvm_interpreter
1048 with_jvm_variants
1049 enable_debug
1050 with_debug_level
1051 with_devkit
1052 with_sys_root
1053 with_sysroot
1054 with_tools_dir
1055 with_toolchain_path
1056 with_extra_path
1057 with_sdk_name
1058 with_conf_name
1059 with_output_sync
1060 enable_headful
1061 enable_hotspot_test_in_build
1062 with_cacerts_file
1063 enable_unlimited_crypto
1064 with_milestone
1065 with_update_version
1066 with_user_release_suffix
1067 with_build_number
1068 with_copyright_year
1069 with_boot_jdk
1070 with_add_source_root
1071 with_override_source_root
1072 with_adds_and_overrides
1073 with_override_langtools
1074 with_override_corba
1075 with_override_jaxp
1076 with_override_jaxws
1077 with_override_hotspot
1078 with_override_nashorn
1079 with_override_jdk
1080 with_import_hotspot
1081 enable_static_build
1082 with_toolchain_type
1083 with_extra_cflags
1084 with_extra_cxxflags
1085 with_extra_ldflags
1086 with_toolchain_version
1087 with_build_devkit
1088 with_jtreg
1089 enable_warnings_as_errors
1090 with_debug_symbols
1091 enable_debug_binaries
1092 with_strip_policy
1093 enable_debug_symbols
1094 enable_zip_debug_info
1095 enable_native_coverage
1096 with_stdc__lib
1097 with_msvcr_dll
1098 with_msvcp_dll
1099 with_x
1100 with_cups
1101 with_cups_include
1102 with_freetype
1103 with_freetype_include
1104 with_freetype_lib
1105 with_freetype_src
1106 enable_freetype_bundling
1107 with_alsa
1108 with_alsa_include
1109 with_alsa_lib
1110 with_libffi
1111 with_libffi_include
1112 with_libffi_lib
1113 with_libjpeg
1114 with_giflib
1115 with_libpng
1116 with_zlib
1117 with_lcms
1118 with_dxsdk
1119 with_dxsdk_lib
1120 with_dxsdk_include
1121 with_num_cores
1122 with_memory_size
1123 with_jobs
1124 with_boot_jdk_jvmargs
1125 with_sjavac_server_java
1126 enable_sjavac
1127 enable_javac_server
1128 enable_precompiled_headers
1129 enable_ccache
1130 with_ccache_dir
1131 '
1132       ac_precious_vars='build_alias
1133 host_alias
1134 target_alias
1135 BASENAME
1136 BASH
1137 CAT
1138 CHMOD
1139 CMP
1140 COMM
1141 CP
1142 CUT
1143 DATE
1144 DIFF
1145 DIRNAME
1146 ECHO
1147 EXPR
1148 FILE
1149 FIND
1150 HEAD
1151 LN
1152 LS
1153 MKDIR
1154 MKTEMP
1155 MV
1156 NAWK
1157 PRINTF
1158 RM
1159 RMDIR
1160 SH
1161 SORT
1162 TAIL
1163 TAR
1164 TEE
1165 TOUCH
1166 TR
1167 UNAME
1168 UNIQ
1169 WC
1170 WHICH
1171 XARGS
1172 AWK
1173 GREP
1174 EGREP
1175 FGREP
1176 SED
1177 CYGPATH
1178 READLINK
1179 DF
1180 CPIO
1181 NICE
1182 MAKE
1183 UNZIP
1184 ZIP
1185 LDD
1186 OTOOL
1187 READELF
1188 HG
1189 STAT
1190 TIME
1191 PATCH
1192 DSYMUTIL
1193 XATTR
1194 CODESIGN
1195 SETFILE
1196 PKG_CONFIG
1197 JAVA
1198 JAVAC
1199 JAVAH
1200 JAR
1201 JARSIGNER
1202 CC
1203 CFLAGS
1204 LDFLAGS
1205 LIBS
1206 CPPFLAGS
1207 CXX
1208 CXXFLAGS
1209 CCC
1210 CPP
1211 CXXCPP
1212 AS
1213 AR
1214 LIPO
1215 STRIP
1216 NM
1217 GNM
1218 OBJCOPY
1219 OBJDUMP
1220 BUILD_CC
1221 BUILD_CXX
1222 JTREGEXE
1223 XMKMF
1224 FREETYPE_CFLAGS
1225 FREETYPE_LIBS
1226 ALSA_CFLAGS
1227 ALSA_LIBS
1228 LIBFFI_CFLAGS
1229 LIBFFI_LIBS
1230 PNG_CFLAGS
1231 PNG_LIBS
1232 LCMS_CFLAGS
1233 LCMS_LIBS
1234 CCACHE'
1235 
1236 
1237 # Initialize some variables set by options.
1238 ac_init_help=
1239 ac_init_version=false
1240 ac_unrecognized_opts=
1241 ac_unrecognized_sep=
1242 # The variables have the same names as the options, with
1243 # dashes changed to underlines.
1244 cache_file=/dev/null
1245 exec_prefix=NONE
1246 no_create=
1247 no_recursion=
1248 prefix=NONE
1249 program_prefix=NONE
1250 program_suffix=NONE
1251 program_transform_name=s,x,x,
1252 silent=
1253 site=
1254 srcdir=
1255 verbose=
1256 x_includes=NONE
1257 x_libraries=NONE
1258 
1259 # Installation directory options.
1260 # These are left unexpanded so users can "make install exec_prefix=/foo"
1261 # and all the variables that are supposed to be based on exec_prefix
1262 # by default will actually change.
1263 # Use braces instead of parens because sh, perl, etc. also accept them.
1264 # (The list follows the same order as the GNU Coding Standards.)
1265 bindir='${exec_prefix}/bin'
1266 sbindir='${exec_prefix}/sbin'
1267 libexecdir='${exec_prefix}/libexec'
1268 datarootdir='${prefix}/share'
1269 datadir='${datarootdir}'
1270 sysconfdir='${prefix}/etc'
1271 sharedstatedir='${prefix}/com'
1272 localstatedir='${prefix}/var'
1273 includedir='${prefix}/include'
1274 oldincludedir='/usr/include'
1275 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1276 infodir='${datarootdir}/info'
1277 htmldir='${docdir}'
1278 dvidir='${docdir}'
1279 pdfdir='${docdir}'
1280 psdir='${docdir}'
1281 libdir='${exec_prefix}/lib'
1282 localedir='${datarootdir}/locale'
1283 mandir='${datarootdir}/man'
1284 
1285 ac_prev=
1286 ac_dashdash=
1287 for ac_option
1288 do
1289   # If the previous option needs an argument, assign it.
1290   if test -n "$ac_prev"; then
1291     eval $ac_prev=\$ac_option
1292     ac_prev=
1293     continue
1294   fi
1295 
1296   case $ac_option in
1297   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1298   *=)   ac_optarg= ;;
1299   *)    ac_optarg=yes ;;
1300   esac
1301 
1302   # Accept the important Cygnus configure options, so we can diagnose typos.
1303 
1304   case $ac_dashdash$ac_option in
1305   --)
1306     ac_dashdash=yes ;;
1307 
1308   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1309     ac_prev=bindir ;;
1310   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1311     bindir=$ac_optarg ;;
1312 
1313   -build | --build | --buil | --bui | --bu)
1314     ac_prev=build_alias ;;
1315   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1316     build_alias=$ac_optarg ;;
1317 
1318   -cache-file | --cache-file | --cache-fil | --cache-fi \
1319   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1320     ac_prev=cache_file ;;
1321   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1322   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1323     cache_file=$ac_optarg ;;
1324 
1325   --config-cache | -C)
1326     cache_file=config.cache ;;
1327 
1328   -datadir | --datadir | --datadi | --datad)
1329     ac_prev=datadir ;;
1330   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1331     datadir=$ac_optarg ;;
1332 
1333   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1334   | --dataroo | --dataro | --datar)
1335     ac_prev=datarootdir ;;
1336   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1337   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1338     datarootdir=$ac_optarg ;;
1339 
1340   -disable-* | --disable-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       as_fn_error $? "invalid feature name: $ac_useropt"
1345     ac_useropt_orig=$ac_useropt
1346     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347     case $ac_user_opts in
1348       *"
1349 "enable_$ac_useropt"
1350 "*) ;;
1351       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1352          ac_unrecognized_sep=', ';;
1353     esac
1354     eval enable_$ac_useropt=no ;;
1355 
1356   -docdir | --docdir | --docdi | --doc | --do)
1357     ac_prev=docdir ;;
1358   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1359     docdir=$ac_optarg ;;
1360 
1361   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1362     ac_prev=dvidir ;;
1363   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1364     dvidir=$ac_optarg ;;
1365 
1366   -enable-* | --enable-*)
1367     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1368     # Reject names that are not valid shell variable names.
1369     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370       as_fn_error $? "invalid feature name: $ac_useropt"
1371     ac_useropt_orig=$ac_useropt
1372     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1373     case $ac_user_opts in
1374       *"
1375 "enable_$ac_useropt"
1376 "*) ;;
1377       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1378          ac_unrecognized_sep=', ';;
1379     esac
1380     eval enable_$ac_useropt=\$ac_optarg ;;
1381 
1382   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1383   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1384   | --exec | --exe | --ex)
1385     ac_prev=exec_prefix ;;
1386   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1387   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1388   | --exec=* | --exe=* | --ex=*)
1389     exec_prefix=$ac_optarg ;;
1390 
1391   -gas | --gas | --ga | --g)
1392     # Obsolete; use --with-gas.
1393     with_gas=yes ;;
1394 
1395   -help | --help | --hel | --he | -h)
1396     ac_init_help=long ;;
1397   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1398     ac_init_help=recursive ;;
1399   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1400     ac_init_help=short ;;
1401 
1402   -host | --host | --hos | --ho)
1403     ac_prev=host_alias ;;
1404   -host=* | --host=* | --hos=* | --ho=*)
1405     host_alias=$ac_optarg ;;
1406 
1407   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1408     ac_prev=htmldir ;;
1409   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1410   | --ht=*)
1411     htmldir=$ac_optarg ;;
1412 
1413   -includedir | --includedir | --includedi | --included | --include \
1414   | --includ | --inclu | --incl | --inc)
1415     ac_prev=includedir ;;
1416   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1417   | --includ=* | --inclu=* | --incl=* | --inc=*)
1418     includedir=$ac_optarg ;;
1419 
1420   -infodir | --infodir | --infodi | --infod | --info | --inf)
1421     ac_prev=infodir ;;
1422   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1423     infodir=$ac_optarg ;;
1424 
1425   -libdir | --libdir | --libdi | --libd)
1426     ac_prev=libdir ;;
1427   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1428     libdir=$ac_optarg ;;
1429 
1430   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1431   | --libexe | --libex | --libe)
1432     ac_prev=libexecdir ;;
1433   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1434   | --libexe=* | --libex=* | --libe=*)
1435     libexecdir=$ac_optarg ;;
1436 
1437   -localedir | --localedir | --localedi | --localed | --locale)
1438     ac_prev=localedir ;;
1439   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1440     localedir=$ac_optarg ;;
1441 
1442   -localstatedir | --localstatedir | --localstatedi | --localstated \
1443   | --localstate | --localstat | --localsta | --localst | --locals)
1444     ac_prev=localstatedir ;;
1445   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1446   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1447     localstatedir=$ac_optarg ;;
1448 
1449   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1450     ac_prev=mandir ;;
1451   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1452     mandir=$ac_optarg ;;
1453 
1454   -nfp | --nfp | --nf)
1455     # Obsolete; use --without-fp.
1456     with_fp=no ;;
1457 
1458   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1459   | --no-cr | --no-c | -n)
1460     no_create=yes ;;
1461 
1462   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1463   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1464     no_recursion=yes ;;
1465 
1466   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1467   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1468   | --oldin | --oldi | --old | --ol | --o)
1469     ac_prev=oldincludedir ;;
1470   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1471   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1472   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1473     oldincludedir=$ac_optarg ;;
1474 
1475   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1476     ac_prev=prefix ;;
1477   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1478     prefix=$ac_optarg ;;
1479 
1480   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1481   | --program-pre | --program-pr | --program-p)
1482     ac_prev=program_prefix ;;
1483   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1484   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1485     program_prefix=$ac_optarg ;;
1486 
1487   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1488   | --program-suf | --program-su | --program-s)
1489     ac_prev=program_suffix ;;
1490   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1491   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1492     program_suffix=$ac_optarg ;;
1493 
1494   -program-transform-name | --program-transform-name \
1495   | --program-transform-nam | --program-transform-na \
1496   | --program-transform-n | --program-transform- \
1497   | --program-transform | --program-transfor \
1498   | --program-transfo | --program-transf \
1499   | --program-trans | --program-tran \
1500   | --progr-tra | --program-tr | --program-t)
1501     ac_prev=program_transform_name ;;
1502   -program-transform-name=* | --program-transform-name=* \
1503   | --program-transform-nam=* | --program-transform-na=* \
1504   | --program-transform-n=* | --program-transform-=* \
1505   | --program-transform=* | --program-transfor=* \
1506   | --program-transfo=* | --program-transf=* \
1507   | --program-trans=* | --program-tran=* \
1508   | --progr-tra=* | --program-tr=* | --program-t=*)
1509     program_transform_name=$ac_optarg ;;
1510 
1511   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1512     ac_prev=pdfdir ;;
1513   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1514     pdfdir=$ac_optarg ;;
1515 
1516   -psdir | --psdir | --psdi | --psd | --ps)
1517     ac_prev=psdir ;;
1518   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1519     psdir=$ac_optarg ;;
1520 
1521   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1522   | -silent | --silent | --silen | --sile | --sil)
1523     silent=yes ;;
1524 
1525   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1526     ac_prev=sbindir ;;
1527   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1528   | --sbi=* | --sb=*)
1529     sbindir=$ac_optarg ;;
1530 
1531   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1532   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1533   | --sharedst | --shareds | --shared | --share | --shar \
1534   | --sha | --sh)
1535     ac_prev=sharedstatedir ;;
1536   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1537   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1538   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1539   | --sha=* | --sh=*)
1540     sharedstatedir=$ac_optarg ;;
1541 
1542   -site | --site | --sit)
1543     ac_prev=site ;;
1544   -site=* | --site=* | --sit=*)
1545     site=$ac_optarg ;;
1546 
1547   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1548     ac_prev=srcdir ;;
1549   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1550     srcdir=$ac_optarg ;;
1551 
1552   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1553   | --syscon | --sysco | --sysc | --sys | --sy)
1554     ac_prev=sysconfdir ;;
1555   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1556   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1557     sysconfdir=$ac_optarg ;;
1558 
1559   -target | --target | --targe | --targ | --tar | --ta | --t)
1560     ac_prev=target_alias ;;
1561   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1562     target_alias=$ac_optarg ;;
1563 
1564   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1565     verbose=yes ;;
1566 
1567   -version | --version | --versio | --versi | --vers | -V)
1568     ac_init_version=: ;;
1569 
1570   -with-* | --with-*)
1571     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1572     # Reject names that are not valid shell variable names.
1573     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1574       as_fn_error $? "invalid package name: $ac_useropt"
1575     ac_useropt_orig=$ac_useropt
1576     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1577     case $ac_user_opts in
1578       *"
1579 "with_$ac_useropt"
1580 "*) ;;
1581       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1582          ac_unrecognized_sep=', ';;
1583     esac
1584     eval with_$ac_useropt=\$ac_optarg ;;
1585 
1586   -without-* | --without-*)
1587     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1588     # Reject names that are not valid shell variable names.
1589     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1590       as_fn_error $? "invalid package name: $ac_useropt"
1591     ac_useropt_orig=$ac_useropt
1592     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1593     case $ac_user_opts in
1594       *"
1595 "with_$ac_useropt"
1596 "*) ;;
1597       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1598          ac_unrecognized_sep=', ';;
1599     esac
1600     eval with_$ac_useropt=no ;;
1601 
1602   --x)
1603     # Obsolete; use --with-x.
1604     with_x=yes ;;
1605 
1606   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1607   | --x-incl | --x-inc | --x-in | --x-i)
1608     ac_prev=x_includes ;;
1609   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1610   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1611     x_includes=$ac_optarg ;;
1612 
1613   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1614   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1615     ac_prev=x_libraries ;;
1616   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1617   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1618     x_libraries=$ac_optarg ;;
1619 
1620   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1621 Try \`$0 --help' for more information"
1622     ;;
1623 
1624   *=*)
1625     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1626     # Reject names that are not valid shell variable names.
1627     case $ac_envvar in #(
1628       '' | [0-9]* | *[!_$as_cr_alnum]* )
1629       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1630     esac
1631     eval $ac_envvar=\$ac_optarg
1632     export $ac_envvar ;;
1633 
1634   *)
1635     # FIXME: should be removed in autoconf 3.0.
1636     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1637     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1638       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1639     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1640     ;;
1641 
1642   esac
1643 done
1644 
1645 if test -n "$ac_prev"; then
1646   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1647   as_fn_error $? "missing argument to $ac_option"
1648 fi
1649 
1650 if test -n "$ac_unrecognized_opts"; then
1651   case $enable_option_checking in
1652     no) ;;
1653     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1654     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1655   esac
1656 fi
1657 
1658 # Check all directory arguments for consistency.
1659 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1660                 datadir sysconfdir sharedstatedir localstatedir includedir \
1661                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1662                 libdir localedir mandir
1663 do
1664   eval ac_val=\$$ac_var
1665   # Remove trailing slashes.
1666   case $ac_val in
1667     */ )
1668       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1669       eval $ac_var=\$ac_val;;
1670   esac
1671   # Be sure to have absolute directory names.
1672   case $ac_val in
1673     [\\/$]* | ?:[\\/]* )  continue;;
1674     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1675   esac
1676   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1677 done
1678 
1679 # There might be people who depend on the old broken behavior: `$host'
1680 # used to hold the argument of --host etc.
1681 # FIXME: To remove some day.
1682 build=$build_alias
1683 host=$host_alias
1684 target=$target_alias
1685 
1686 # FIXME: To remove some day.
1687 if test "x$host_alias" != x; then
1688   if test "x$build_alias" = x; then
1689     cross_compiling=maybe
1690   elif test "x$build_alias" != "x$host_alias"; then
1691     cross_compiling=yes
1692   fi
1693 fi
1694 
1695 ac_tool_prefix=
1696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1697 
1698 test "$silent" = yes && exec 6>/dev/null
1699 
1700 
1701 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1702 ac_ls_di=`ls -di .` &&
1703 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1704   as_fn_error $? "working directory cannot be determined"
1705 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1706   as_fn_error $? "pwd does not report name of working directory"
1707 
1708 
1709 # Find the source files, if location was not specified.
1710 if test -z "$srcdir"; then
1711   ac_srcdir_defaulted=yes
1712   # Try the directory containing this script, then the parent directory.
1713   ac_confdir=`$as_dirname -- "$as_myself" ||
1714 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1715          X"$as_myself" : 'X\(//\)[^/]' \| \
1716          X"$as_myself" : 'X\(//\)$' \| \
1717          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1718 $as_echo X"$as_myself" |
1719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1720             s//\1/
1721             q
1722           }
1723           /^X\(\/\/\)[^/].*/{
1724             s//\1/
1725             q
1726           }
1727           /^X\(\/\/\)$/{
1728             s//\1/
1729             q
1730           }
1731           /^X\(\/\).*/{
1732             s//\1/
1733             q
1734           }
1735           s/.*/./; q'`
1736   srcdir=$ac_confdir
1737   if test ! -r "$srcdir/$ac_unique_file"; then
1738     srcdir=..
1739   fi
1740 else
1741   ac_srcdir_defaulted=no
1742 fi
1743 if test ! -r "$srcdir/$ac_unique_file"; then
1744   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1745   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1746 fi
1747 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1748 ac_abs_confdir=`(
1749         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1750         pwd)`
1751 # When building in place, set srcdir=.
1752 if test "$ac_abs_confdir" = "$ac_pwd"; then
1753   srcdir=.
1754 fi
1755 # Remove unnecessary trailing slashes from srcdir.
1756 # Double slashes in file names in object file debugging info
1757 # mess up M-x gdb in Emacs.
1758 case $srcdir in
1759 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1760 esac
1761 for ac_var in $ac_precious_vars; do
1762   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1763   eval ac_env_${ac_var}_value=\$${ac_var}
1764   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1765   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1766 done
1767 
1768 #
1769 # Report the --help message.
1770 #
1771 if test "$ac_init_help" = "long"; then
1772   # Omit some internal or obsolete options to make the list less imposing.
1773   # This message is too long to be a string in the A/UX 3.1 sh.
1774   cat <<_ACEOF
1775 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1776 
1777 Usage: $0 [OPTION]... [VAR=VALUE]...
1778 
1779 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1780 VAR=VALUE.  See below for descriptions of some of the useful variables.
1781 
1782 Defaults for the options are specified in brackets.
1783 
1784 Configuration:
1785   -h, --help              display this help and exit
1786       --help=short        display options specific to this package
1787       --help=recursive    display the short help of all the included packages
1788   -V, --version           display version information and exit
1789   -q, --quiet, --silent   do not print \`checking ...' messages
1790       --cache-file=FILE   cache test results in FILE [disabled]
1791   -C, --config-cache      alias for \`--cache-file=config.cache'
1792   -n, --no-create         do not create output files
1793       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1794 
1795 Installation directories:
1796   --prefix=PREFIX         install architecture-independent files in PREFIX
1797                           [$ac_default_prefix]
1798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1799                           [PREFIX]
1800 
1801 By default, \`make install' will install all the files in
1802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1804 for instance \`--prefix=\$HOME'.
1805 
1806 For better control, use the options below.
1807 
1808 Fine tuning of the installation directories:
1809   --bindir=DIR            user executables [EPREFIX/bin]
1810   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1811   --libexecdir=DIR        program executables [EPREFIX/libexec]
1812   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1813   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1814   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1815   --libdir=DIR            object code libraries [EPREFIX/lib]
1816   --includedir=DIR        C header files [PREFIX/include]
1817   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1818   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1819   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1820   --infodir=DIR           info documentation [DATAROOTDIR/info]
1821   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1822   --mandir=DIR            man documentation [DATAROOTDIR/man]
1823   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1824   --htmldir=DIR           html documentation [DOCDIR]
1825   --dvidir=DIR            dvi documentation [DOCDIR]
1826   --pdfdir=DIR            pdf documentation [DOCDIR]
1827   --psdir=DIR             ps documentation [DOCDIR]
1828 _ACEOF
1829 
1830   cat <<\_ACEOF
1831 
1832 X features:
1833   --x-includes=DIR    X include files are in DIR
1834   --x-libraries=DIR   X library files are in DIR
1835 
1836 System types:
1837   --build=BUILD     configure for building on BUILD [guessed]
1838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1839   --target=TARGET   configure for building compilers for TARGET [HOST]
1840 _ACEOF
1841 fi
1842 
1843 if test -n "$ac_init_help"; then
1844   case $ac_init_help in
1845      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1846    esac
1847   cat <<\_ACEOF
1848 
1849 Optional Features:
1850   --disable-option-checking  ignore unrecognized --enable/--with options
1851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1853   --enable-openjdk-only   suppress building custom source even if present
1854                           [disabled]
1855   --enable-debug          set the debug level to fastdebug (shorthand for
1856                           --with-debug-level=fastdebug) [disabled]
1857   --disable-headful       disable building headful support (graphical UI
1858                           support) [enabled]
1859   --enable-hotspot-test-in-build
1860                           run the Queens test after Hotspot build [disabled]
1861   --enable-unlimited-crypto
1862                           Enable unlimited crypto policy [disabled]
1863   --enable-static-build   enable static library build [disabled]
1864   --disable-warnings-as-errors
1865                           do not consider native warnings to be an error
1866                           [enabled]
1867   --disable-debug-binaries
1868                           disable generating debug information [enabled]
1869   --disable-debug-symbols disable generation of debug symbols [enabled]
1870   --disable-zip-debug-info
1871                           disable zipping of debug-info files [enabled]
1872   --enable-native-coverage
1873                           enable native compilation with code coverage
1874                           data[disabled]
1875   --disable-freetype-bundling
1876                           disable bundling of the freetype library with the
1877                           build result [enabled on Windows or when using
1878                           --with-freetype, disabled otherwise]
1879   --enable-sjavac         use sjavac to do fast incremental compiles
1880                           [disabled]
1881   --enable-javac-server   use only the server part of sjavac for faster javac
1882                           compiles [disabled]
1883   --disable-precompiled-headers
1884                           disable using precompiled headers when compiling C++
1885                           [enabled]
1886   --enable-ccache         enable using ccache to speed up recompilations
1887                           [disabled]
1888 
1889 Optional Packages:
1890   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1891   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1892   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1893                           support it), e.g. --with-target-bits=32 [guessed]
1894   --with-custom-make-dir  Deprecated. Option is kept for backwards
1895                           compatibility and is ignored
1896   --with-jdk-variant      JDK variant to build (normal) [normal]
1897   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1898   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1899                           client, minimal1, kernel, zero, zeroshark, core)
1900                           [server]
1901   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1902                           optimized (HotSpot build only)) [release]
1903   --with-devkit           use this devkit for compilers, tools and resources
1904   --with-sys-root         alias for --with-sysroot for backwards compatability
1905   --with-sysroot          use this directory as sysroot
1906   --with-tools-dir        alias for --with-toolchain-path for backwards
1907                           compatibility
1908   --with-toolchain-path   prepend these directories when searching for
1909                           toolchain binaries (compilers etc)
1910   --with-extra-path       prepend these directories to the default path
1911   --with-sdk-name         use the platform SDK of the given name. [macosx]
1912   --with-conf-name        use this as the name of the configuration [generated
1913                           from important configuration options]
1914   --with-output-sync      set make output sync type if supported by make.
1915                           [recurse]
1916   --with-cacerts-file     specify alternative cacerts file
1917   --with-milestone        Set milestone value for build [internal]
1918   --with-update-version   Set update version value for build [b00]
1919   --with-user-release-suffix
1920                           Add a custom string to the version string if build
1921                           number is not set.[username_builddateb00]
1922   --with-build-number     Set build number value for build [b00]
1923   --with-copyright-year   Set copyright year value for build [current year]
1924   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1925   --with-add-source-root  Deprecated. Option is kept for backwards
1926                           compatibility and is ignored
1927   --with-override-source-root
1928                           Deprecated. Option is kept for backwards
1929                           compatibility and is ignored
1930   --with-adds-and-overrides
1931                           Deprecated. Option is kept for backwards
1932                           compatibility and is ignored
1933   --with-override-langtools
1934                           Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --with-override-corba   Deprecated. Option is kept for backwards
1937                           compatibility and is ignored
1938   --with-override-jaxp    Deprecated. Option is kept for backwards
1939                           compatibility and is ignored
1940   --with-override-jaxws   Deprecated. Option is kept for backwards
1941                           compatibility and is ignored
1942   --with-override-hotspot Deprecated. Option is kept for backwards
1943                           compatibility and is ignored
1944   --with-override-nashorn Deprecated. Option is kept for backwards
1945                           compatibility and is ignored
1946   --with-override-jdk     Deprecated. Option is kept for backwards
1947                           compatibility and is ignored
1948   --with-import-hotspot   import hotspot binaries from this jdk image or
1949                           hotspot build dist dir instead of building from
1950                           source
1951   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1952                           to show possible values [platform dependent]
1953   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1954   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1955   --with-extra-ldflags    extra flags to be used when linking jdk
1956   --with-toolchain-version
1957                           the version of the toolchain to look for, use
1958                           '--help' to show possible values [platform
1959                           dependent]
1960   --with-build-devkit     Devkit to use for the build platform toolchain
1961   --with-jtreg            Regression Test Harness [probed]
1962   --with-debug-symbols    set the debug symbol configuration (none, internal,
1963                           external, zipped) [zipped]
1964   --with-strip-policy     set the policy of strip (all_strip, min_strip,
1965                           no_strip) [min_strip]
1966   --with-stdc++lib=<static>,<dynamic>,<default>
1967                           force linking of the C++ runtime on Linux to either
1968                           static or dynamic, default is static with dynamic as
1969                           fallback
1970   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1971                           (Windows only) [probed]
1972   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1973                           (Windows only) [probed]
1974   --with-x                use the X Window System
1975   --with-cups             specify prefix directory for the cups package
1976                           (expecting the headers under PATH/include)
1977   --with-cups-include     specify directory for the cups include files
1978   --with-freetype         specify prefix directory for the freetype package
1979                           (expecting the libraries under PATH/lib and the
1980                           headers under PATH/include)
1981   --with-freetype-include specify directory for the freetype include files
1982   --with-freetype-lib     specify directory for the freetype library
1983   --with-freetype-src     specify directory with freetype sources to
1984                           automatically build the library (experimental,
1985                           Windows-only)
1986   --with-alsa             specify prefix directory for the alsa package
1987                           (expecting the libraries under PATH/lib and the
1988                           headers under PATH/include)
1989   --with-alsa-include     specify directory for the alsa include files
1990   --with-alsa-lib         specify directory for the alsa library
1991   --with-libffi           specify prefix directory for the libffi package
1992                           (expecting the libraries under PATH/lib and the
1993                           headers under PATH/include)
1994   --with-libffi-include   specify directory for the libffi include files
1995   --with-libffi-lib       specify directory for the libffi library
1996   --with-libjpeg          use libjpeg from build system or OpenJDK source
1997                           (system, bundled) [bundled]
1998   --with-giflib           use giflib from build system or OpenJDK source
1999                           (system, bundled) [bundled]
2000   --with-libpng           use libpng from build system or OpenJDK source
2001                           (system, bundled) [bundled]
2002   --with-zlib             use zlib from build system or OpenJDK source
2003                           (system, bundled) [bundled]
2004   --with-lcms             use lcms2 from build system or OpenJDK source
2005                           (system, bundled) [bundled]
2006   --with-dxsdk            Deprecated. Option is kept for backwards
2007                           compatibility and is ignored
2008   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2009                           compatibility and is ignored
2010   --with-dxsdk-include    Deprecated. Option is kept for backwards
2011                           compatibility and is ignored
2012   --with-num-cores        number of cores in the build system, e.g.
2013                           --with-num-cores=8 [probed]
2014   --with-memory-size      memory (in MB) available in the build system, e.g.
2015                           --with-memory-size=1024 [probed]
2016   --with-jobs             number of parallel jobs to let make run [calculated
2017                           based on cores and memory]
2018   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2019                           invocations of boot JDK, overriding the default
2020                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2021                           -enableassertions"
2022   --with-sjavac-server-java
2023                           use this java binary for running the sjavac
2024                           background server [Boot JDK java]
2025   --with-ccache-dir       where to store ccache files [~/.ccache]
2026 
2027 Some influential environment variables:
2028   BASENAME    Override default value for BASENAME
2029   BASH        Override default value for BASH
2030   CAT         Override default value for CAT
2031   CHMOD       Override default value for CHMOD
2032   CMP         Override default value for CMP
2033   COMM        Override default value for COMM
2034   CP          Override default value for CP
2035   CUT         Override default value for CUT
2036   DATE        Override default value for DATE
2037   DIFF        Override default value for DIFF
2038   DIRNAME     Override default value for DIRNAME
2039   ECHO        Override default value for ECHO
2040   EXPR        Override default value for EXPR
2041   FILE        Override default value for FILE
2042   FIND        Override default value for FIND
2043   HEAD        Override default value for HEAD
2044   LN          Override default value for LN
2045   LS          Override default value for LS
2046   MKDIR       Override default value for MKDIR
2047   MKTEMP      Override default value for MKTEMP
2048   MV          Override default value for MV
2049   NAWK        Override default value for NAWK
2050   PRINTF      Override default value for PRINTF
2051   RM          Override default value for RM
2052   RMDIR       Override default value for RMDIR
2053   SH          Override default value for SH
2054   SORT        Override default value for SORT
2055   TAIL        Override default value for TAIL
2056   TAR         Override default value for TAR
2057   TEE         Override default value for TEE
2058   TOUCH       Override default value for TOUCH
2059   TR          Override default value for TR
2060   UNAME       Override default value for UNAME
2061   UNIQ        Override default value for UNIQ
2062   WC          Override default value for WC
2063   WHICH       Override default value for WHICH
2064   XARGS       Override default value for XARGS
2065   AWK         Override default value for AWK
2066   GREP        Override default value for GREP
2067   EGREP       Override default value for EGREP
2068   FGREP       Override default value for FGREP
2069   SED         Override default value for SED
2070   CYGPATH     Override default value for CYGPATH
2071   READLINK    Override default value for READLINK
2072   DF          Override default value for DF
2073   CPIO        Override default value for CPIO
2074   NICE        Override default value for NICE
2075   MAKE        Override default value for MAKE
2076   UNZIP       Override default value for UNZIP
2077   ZIP         Override default value for ZIP
2078   LDD         Override default value for LDD
2079   OTOOL       Override default value for OTOOL
2080   READELF     Override default value for READELF
2081   HG          Override default value for HG
2082   STAT        Override default value for STAT
2083   TIME        Override default value for TIME
2084   PATCH       Override default value for PATCH
2085   DSYMUTIL    Override default value for DSYMUTIL
2086   XATTR       Override default value for XATTR
2087   CODESIGN    Override default value for CODESIGN
2088   SETFILE     Override default value for SETFILE
2089   PKG_CONFIG  path to pkg-config utility
2090   JAVA        Override default value for JAVA
2091   JAVAC       Override default value for JAVAC
2092   JAVAH       Override default value for JAVAH
2093   JAR         Override default value for JAR
2094   JARSIGNER   Override default value for JARSIGNER
2095   CC          C compiler command
2096   CFLAGS      C compiler flags
2097   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2098               nonstandard directory <lib dir>
2099   LIBS        libraries to pass to the linker, e.g. -l<library>
2100   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2101               you have headers in a nonstandard directory <include dir>
2102   CXX         C++ compiler command
2103   CXXFLAGS    C++ compiler flags
2104   CPP         C preprocessor
2105   CXXCPP      C++ preprocessor
2106   AS          Override default value for AS
2107   AR          Override default value for AR
2108   LIPO        Override default value for LIPO
2109   STRIP       Override default value for STRIP
2110   NM          Override default value for NM
2111   GNM         Override default value for GNM
2112   OBJCOPY     Override default value for OBJCOPY
2113   OBJDUMP     Override default value for OBJDUMP
2114   BUILD_CC    Override default value for BUILD_CC
2115   BUILD_CXX   Override default value for BUILD_CXX
2116   JTREGEXE    Override default value for JTREGEXE
2117   XMKMF       Path to xmkmf, Makefile generator for X Window System
2118   FREETYPE_CFLAGS
2119               C compiler flags for FREETYPE, overriding pkg-config
2120   FREETYPE_LIBS
2121               linker flags for FREETYPE, overriding pkg-config
2122   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2123   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2124   LIBFFI_CFLAGS
2125               C compiler flags for LIBFFI, overriding pkg-config
2126   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2127   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2128   PNG_LIBS    linker flags for PNG, overriding pkg-config
2129   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2130   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2131   CCACHE      Override default value for CCACHE
2132 
2133 Use these variables to override the choices made by `configure' or to help
2134 it to find libraries and programs with nonstandard names/locations.
2135 
2136 Report bugs to <build-dev@openjdk.java.net>.
2137 OpenJDK home page: <http://openjdk.java.net>.
2138 _ACEOF
2139 ac_status=$?
2140 fi
2141 
2142 if test "$ac_init_help" = "recursive"; then
2143   # If there are subdirs, report their specific --help.
2144   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2145     test -d "$ac_dir" ||
2146       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2147       continue
2148     ac_builddir=.
2149 
2150 case "$ac_dir" in
2151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2152 *)
2153   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2154   # A ".." for each directory in $ac_dir_suffix.
2155   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2156   case $ac_top_builddir_sub in
2157   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2158   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2159   esac ;;
2160 esac
2161 ac_abs_top_builddir=$ac_pwd
2162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2163 # for backward compatibility:
2164 ac_top_builddir=$ac_top_build_prefix
2165 
2166 case $srcdir in
2167   .)  # We are building in place.
2168     ac_srcdir=.
2169     ac_top_srcdir=$ac_top_builddir_sub
2170     ac_abs_top_srcdir=$ac_pwd ;;
2171   [\\/]* | ?:[\\/]* )  # Absolute name.
2172     ac_srcdir=$srcdir$ac_dir_suffix;
2173     ac_top_srcdir=$srcdir
2174     ac_abs_top_srcdir=$srcdir ;;
2175   *) # Relative name.
2176     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2177     ac_top_srcdir=$ac_top_build_prefix$srcdir
2178     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2179 esac
2180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2181 
2182     cd "$ac_dir" || { ac_status=$?; continue; }
2183     # Check for guested configure.
2184     if test -f "$ac_srcdir/configure.gnu"; then
2185       echo &&
2186       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2187     elif test -f "$ac_srcdir/configure"; then
2188       echo &&
2189       $SHELL "$ac_srcdir/configure" --help=recursive
2190     else
2191       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2192     fi || ac_status=$?
2193     cd "$ac_pwd" || { ac_status=$?; break; }
2194   done
2195 fi
2196 
2197 test -n "$ac_init_help" && exit $ac_status
2198 if $ac_init_version; then
2199   cat <<\_ACEOF
2200 OpenJDK configure jdk9
2201 generated by GNU Autoconf 2.69
2202 
2203 Copyright (C) 2012 Free Software Foundation, Inc.
2204 This configure script is free software; the Free Software Foundation
2205 gives unlimited permission to copy, distribute and modify it.
2206 _ACEOF
2207   exit
2208 fi
2209 
2210 ## ------------------------ ##
2211 ## Autoconf initialization. ##
2212 ## ------------------------ ##
2213 
2214 # ac_fn_c_try_compile LINENO
2215 # --------------------------
2216 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2217 ac_fn_c_try_compile ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   rm -f conftest.$ac_objext
2221   if { { ac_try="$ac_compile"
2222 case "(($ac_try" in
2223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224   *) ac_try_echo=$ac_try;;
2225 esac
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228   (eval "$ac_compile") 2>conftest.err
2229   ac_status=$?
2230   if test -s conftest.err; then
2231     grep -v '^ *+' conftest.err >conftest.er1
2232     cat conftest.er1 >&5
2233     mv -f conftest.er1 conftest.err
2234   fi
2235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236   test $ac_status = 0; } && {
2237          test -z "$ac_c_werror_flag" ||
2238          test ! -s conftest.err
2239        } && test -s conftest.$ac_objext; then :
2240   ac_retval=0
2241 else
2242   $as_echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2244 
2245         ac_retval=1
2246 fi
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249 
2250 } # ac_fn_c_try_compile
2251 
2252 # ac_fn_cxx_try_compile LINENO
2253 # ----------------------------
2254 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2255 ac_fn_cxx_try_compile ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   rm -f conftest.$ac_objext
2259   if { { ac_try="$ac_compile"
2260 case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266   (eval "$ac_compile") 2>conftest.err
2267   ac_status=$?
2268   if test -s conftest.err; then
2269     grep -v '^ *+' conftest.err >conftest.er1
2270     cat conftest.er1 >&5
2271     mv -f conftest.er1 conftest.err
2272   fi
2273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274   test $ac_status = 0; } && {
2275          test -z "$ac_cxx_werror_flag" ||
2276          test ! -s conftest.err
2277        } && test -s conftest.$ac_objext; then :
2278   ac_retval=0
2279 else
2280   $as_echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282 
2283         ac_retval=1
2284 fi
2285   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286   as_fn_set_status $ac_retval
2287 
2288 } # ac_fn_cxx_try_compile
2289 
2290 # ac_fn_c_try_cpp LINENO
2291 # ----------------------
2292 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2293 ac_fn_c_try_cpp ()
2294 {
2295   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296   if { { ac_try="$ac_cpp conftest.$ac_ext"
2297 case "(($ac_try" in
2298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299   *) ac_try_echo=$ac_try;;
2300 esac
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2304   ac_status=$?
2305   if test -s conftest.err; then
2306     grep -v '^ *+' conftest.err >conftest.er1
2307     cat conftest.er1 >&5
2308     mv -f conftest.er1 conftest.err
2309   fi
2310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311   test $ac_status = 0; } > conftest.i && {
2312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2313          test ! -s conftest.err
2314        }; then :
2315   ac_retval=0
2316 else
2317   $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319 
2320     ac_retval=1
2321 fi
2322   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323   as_fn_set_status $ac_retval
2324 
2325 } # ac_fn_c_try_cpp
2326 
2327 # ac_fn_cxx_try_cpp LINENO
2328 # ------------------------
2329 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2330 ac_fn_cxx_try_cpp ()
2331 {
2332   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333   if { { ac_try="$ac_cpp conftest.$ac_ext"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2341   ac_status=$?
2342   if test -s conftest.err; then
2343     grep -v '^ *+' conftest.err >conftest.er1
2344     cat conftest.er1 >&5
2345     mv -f conftest.er1 conftest.err
2346   fi
2347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348   test $ac_status = 0; } > conftest.i && {
2349          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2350          test ! -s conftest.err
2351        }; then :
2352   ac_retval=0
2353 else
2354   $as_echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356 
2357     ac_retval=1
2358 fi
2359   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360   as_fn_set_status $ac_retval
2361 
2362 } # ac_fn_cxx_try_cpp
2363 
2364 # ac_fn_c_try_link LINENO
2365 # -----------------------
2366 # Try to link conftest.$ac_ext, and return whether this succeeded.
2367 ac_fn_c_try_link ()
2368 {
2369   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370   rm -f conftest.$ac_objext conftest$ac_exeext
2371   if { { ac_try="$ac_link"
2372 case "(($ac_try" in
2373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374   *) ac_try_echo=$ac_try;;
2375 esac
2376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377 $as_echo "$ac_try_echo"; } >&5
2378   (eval "$ac_link") 2>conftest.err
2379   ac_status=$?
2380   if test -s conftest.err; then
2381     grep -v '^ *+' conftest.err >conftest.er1
2382     cat conftest.er1 >&5
2383     mv -f conftest.er1 conftest.err
2384   fi
2385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386   test $ac_status = 0; } && {
2387          test -z "$ac_c_werror_flag" ||
2388          test ! -s conftest.err
2389        } && test -s conftest$ac_exeext && {
2390          test "$cross_compiling" = yes ||
2391          test -x conftest$ac_exeext
2392        }; then :
2393   ac_retval=0
2394 else
2395   $as_echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397 
2398         ac_retval=1
2399 fi
2400   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2401   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2402   # interfere with the next link command; also delete a directory that is
2403   # left behind by Apple's compiler.  We do this before executing the actions.
2404   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2405   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406   as_fn_set_status $ac_retval
2407 
2408 } # ac_fn_c_try_link
2409 
2410 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2411 # ---------------------------------------------------------
2412 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2413 # the include files in INCLUDES and setting the cache variable VAR
2414 # accordingly.
2415 ac_fn_cxx_check_header_mongrel ()
2416 {
2417   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418   if eval \${$3+:} false; then :
2419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if eval \${$3+:} false; then :
2422   $as_echo_n "(cached) " >&6
2423 fi
2424 eval ac_res=\$$3
2425                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2427 else
2428   # Is the header compilable?
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2430 $as_echo_n "checking $2 usability... " >&6; }
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h.  */
2433 $4
2434 #include <$2>
2435 _ACEOF
2436 if ac_fn_cxx_try_compile "$LINENO"; then :
2437   ac_header_compiler=yes
2438 else
2439   ac_header_compiler=no
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2443 $as_echo "$ac_header_compiler" >&6; }
2444 
2445 # Is the header present?
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2447 $as_echo_n "checking $2 presence... " >&6; }
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h.  */
2450 #include <$2>
2451 _ACEOF
2452 if ac_fn_cxx_try_cpp "$LINENO"; then :
2453   ac_header_preproc=yes
2454 else
2455   ac_header_preproc=no
2456 fi
2457 rm -f conftest.err conftest.i conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2459 $as_echo "$ac_header_preproc" >&6; }
2460 
2461 # So?  What about this header?
2462 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2463   yes:no: )
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2465 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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     ;;
2469   no:yes:* )
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2471 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2473 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2475 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2477 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2479 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2480 ( $as_echo "## ----------------------------------------- ##
2481 ## Report this to build-dev@openjdk.java.net ##
2482 ## ----------------------------------------- ##"
2483      ) | sed "s/^/$as_me: WARNING:     /" >&2
2484     ;;
2485 esac
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if eval \${$3+:} false; then :
2489   $as_echo_n "(cached) " >&6
2490 else
2491   eval "$3=\$ac_header_compiler"
2492 fi
2493 eval ac_res=\$$3
2494                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2496 fi
2497   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498 
2499 } # ac_fn_cxx_check_header_mongrel
2500 
2501 # ac_fn_cxx_try_run LINENO
2502 # ------------------------
2503 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2504 # that executables *can* be run.
2505 ac_fn_cxx_try_run ()
2506 {
2507   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508   if { { ac_try="$ac_link"
2509 case "(($ac_try" in
2510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511   *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515   (eval "$ac_link") 2>&5
2516   ac_status=$?
2517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2518   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2519   { { case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 $as_echo "$ac_try_echo"; } >&5
2525   (eval "$ac_try") 2>&5
2526   ac_status=$?
2527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528   test $ac_status = 0; }; }; then :
2529   ac_retval=0
2530 else
2531   $as_echo "$as_me: program exited with status $ac_status" >&5
2532        $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534 
2535        ac_retval=$ac_status
2536 fi
2537   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2538   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539   as_fn_set_status $ac_retval
2540 
2541 } # ac_fn_cxx_try_run
2542 
2543 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2544 # ---------------------------------------------------------
2545 # Tests whether HEADER exists and can be compiled using the include files in
2546 # INCLUDES, setting the cache variable VAR accordingly.
2547 ac_fn_cxx_check_header_compile ()
2548 {
2549   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if eval \${$3+:} false; then :
2553   $as_echo_n "(cached) " >&6
2554 else
2555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h.  */
2557 $4
2558 #include <$2>
2559 _ACEOF
2560 if ac_fn_cxx_try_compile "$LINENO"; then :
2561   eval "$3=yes"
2562 else
2563   eval "$3=no"
2564 fi
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 fi
2567 eval ac_res=\$$3
2568                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2569 $as_echo "$ac_res" >&6; }
2570   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 
2572 } # ac_fn_cxx_check_header_compile
2573 
2574 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2575 # ----------------------------------------------
2576 # Tries to find the compile-time value of EXPR in a program that includes
2577 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2578 # computed
2579 ac_fn_cxx_compute_int ()
2580 {
2581   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582   if test "$cross_compiling" = yes; then
2583     # Depending upon the size, compute the lo and hi bounds.
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h.  */
2586 $4
2587 int
2588 main ()
2589 {
2590 static int test_array [1 - 2 * !(($2) >= 0)];
2591 test_array [0] = 0;
2592 return test_array [0];
2593 
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 if ac_fn_cxx_try_compile "$LINENO"; then :
2599   ac_lo=0 ac_mid=0
2600   while :; do
2601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h.  */
2603 $4
2604 int
2605 main ()
2606 {
2607 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2608 test_array [0] = 0;
2609 return test_array [0];
2610 
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 if ac_fn_cxx_try_compile "$LINENO"; then :
2616   ac_hi=$ac_mid; break
2617 else
2618   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2619                         if test $ac_lo -le $ac_mid; then
2620                           ac_lo= ac_hi=
2621                           break
2622                         fi
2623                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626   done
2627 else
2628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 int
2632 main ()
2633 {
2634 static int test_array [1 - 2 * !(($2) < 0)];
2635 test_array [0] = 0;
2636 return test_array [0];
2637 
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 if ac_fn_cxx_try_compile "$LINENO"; then :
2643   ac_hi=-1 ac_mid=-1
2644   while :; do
2645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h.  */
2647 $4
2648 int
2649 main ()
2650 {
2651 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2652 test_array [0] = 0;
2653 return test_array [0];
2654 
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 if ac_fn_cxx_try_compile "$LINENO"; then :
2660   ac_lo=$ac_mid; break
2661 else
2662   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2663                         if test $ac_mid -le $ac_hi; then
2664                           ac_lo= ac_hi=
2665                           break
2666                         fi
2667                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670   done
2671 else
2672   ac_lo= ac_hi=
2673 fi
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 fi
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 # Binary search between lo and hi bounds.
2678 while test "x$ac_lo" != "x$ac_hi"; do
2679   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h.  */
2682 $4
2683 int
2684 main ()
2685 {
2686 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2687 test_array [0] = 0;
2688 return test_array [0];
2689 
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 if ac_fn_cxx_try_compile "$LINENO"; then :
2695   ac_hi=$ac_mid
2696 else
2697   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2698 fi
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 done
2701 case $ac_lo in #((
2702 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2703 '') ac_retval=1 ;;
2704 esac
2705   else
2706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h.  */
2708 $4
2709 static long int longval () { return $2; }
2710 static unsigned long int ulongval () { return $2; }
2711 #include <stdio.h>
2712 #include <stdlib.h>
2713 int
2714 main ()
2715 {
2716 
2717   FILE *f = fopen ("conftest.val", "w");
2718   if (! f)
2719     return 1;
2720   if (($2) < 0)
2721     {
2722       long int i = longval ();
2723       if (i != ($2))
2724         return 1;
2725       fprintf (f, "%ld", i);
2726     }
2727   else
2728     {
2729       unsigned long int i = ulongval ();
2730       if (i != ($2))
2731         return 1;
2732       fprintf (f, "%lu", i);
2733     }
2734   /* Do not output a trailing newline, as this causes \r\n confusion
2735      on some platforms.  */
2736   return ferror (f) || fclose (f) != 0;
2737 
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 if ac_fn_cxx_try_run "$LINENO"; then :
2743   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2744 else
2745   ac_retval=1
2746 fi
2747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2748   conftest.$ac_objext conftest.beam conftest.$ac_ext
2749 rm -f conftest.val
2750 
2751   fi
2752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753   as_fn_set_status $ac_retval
2754 
2755 } # ac_fn_cxx_compute_int
2756 
2757 # ac_fn_cxx_try_link LINENO
2758 # -------------------------
2759 # Try to link conftest.$ac_ext, and return whether this succeeded.
2760 ac_fn_cxx_try_link ()
2761 {
2762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763   rm -f conftest.$ac_objext conftest$ac_exeext
2764   if { { ac_try="$ac_link"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770 $as_echo "$ac_try_echo"; } >&5
2771   (eval "$ac_link") 2>conftest.err
2772   ac_status=$?
2773   if test -s conftest.err; then
2774     grep -v '^ *+' conftest.err >conftest.er1
2775     cat conftest.er1 >&5
2776     mv -f conftest.er1 conftest.err
2777   fi
2778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779   test $ac_status = 0; } && {
2780          test -z "$ac_cxx_werror_flag" ||
2781          test ! -s conftest.err
2782        } && test -s conftest$ac_exeext && {
2783          test "$cross_compiling" = yes ||
2784          test -x conftest$ac_exeext
2785        }; then :
2786   ac_retval=0
2787 else
2788   $as_echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790 
2791         ac_retval=1
2792 fi
2793   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2794   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2795   # interfere with the next link command; also delete a directory that is
2796   # left behind by Apple's compiler.  We do this before executing the actions.
2797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799   as_fn_set_status $ac_retval
2800 
2801 } # ac_fn_cxx_try_link
2802 
2803 # ac_fn_cxx_check_func LINENO FUNC VAR
2804 # ------------------------------------
2805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2806 ac_fn_cxx_check_func ()
2807 {
2808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2810 $as_echo_n "checking for $2... " >&6; }
2811 if eval \${$3+:} false; then :
2812   $as_echo_n "(cached) " >&6
2813 else
2814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h.  */
2816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2818 #define $2 innocuous_$2
2819 
2820 /* System header to define __stub macros and hopefully few prototypes,
2821     which can conflict with char $2 (); below.
2822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823     <limits.h> exists even on freestanding compilers.  */
2824 
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830 
2831 #undef $2
2832 
2833 /* Override any GCC internal prototype to avoid an error.
2834    Use char because int might match the return type of a GCC
2835    builtin and then its argument prototype would still apply.  */
2836 #ifdef __cplusplus
2837 extern "C"
2838 #endif
2839 char $2 ();
2840 /* The GNU C library defines this for functions which it implements
2841     to always fail with ENOSYS.  Some functions are actually named
2842     something starting with __ and the normal name is an alias.  */
2843 #if defined __stub_$2 || defined __stub___$2
2844 choke me
2845 #endif
2846 
2847 int
2848 main ()
2849 {
2850 return $2 ();
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_cxx_try_link "$LINENO"; then :
2856   eval "$3=yes"
2857 else
2858   eval "$3=no"
2859 fi
2860 rm -f core conftest.err conftest.$ac_objext \
2861     conftest$ac_exeext conftest.$ac_ext
2862 fi
2863 eval ac_res=\$$3
2864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865 $as_echo "$ac_res" >&6; }
2866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2867 
2868 } # ac_fn_cxx_check_func
2869 
2870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2871 # -------------------------------------------------------
2872 # Tests whether HEADER exists and can be compiled using the include files in
2873 # INCLUDES, setting the cache variable VAR accordingly.
2874 ac_fn_c_check_header_compile ()
2875 {
2876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878 $as_echo_n "checking for $2... " >&6; }
2879 if eval \${$3+:} false; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h.  */
2884 $4
2885 #include <$2>
2886 _ACEOF
2887 if ac_fn_c_try_compile "$LINENO"; then :
2888   eval "$3=yes"
2889 else
2890   eval "$3=no"
2891 fi
2892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 fi
2894 eval ac_res=\$$3
2895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2896 $as_echo "$ac_res" >&6; }
2897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898 
2899 } # ac_fn_c_check_header_compile
2900 cat >config.log <<_ACEOF
2901 This file contains any messages produced by compilers while
2902 running configure, to aid debugging if configure makes a mistake.
2903 
2904 It was created by OpenJDK $as_me jdk9, which was
2905 generated by GNU Autoconf 2.69.  Invocation command line was
2906 
2907   $ $0 $@
2908 
2909 _ACEOF
2910 exec 5>>config.log
2911 {
2912 cat <<_ASUNAME
2913 ## --------- ##
2914 ## Platform. ##
2915 ## --------- ##
2916 
2917 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2918 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2919 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2920 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2921 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2922 
2923 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2924 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2925 
2926 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2927 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2928 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2929 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2930 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2931 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2932 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2933 
2934 _ASUNAME
2935 
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939   IFS=$as_save_IFS
2940   test -z "$as_dir" && as_dir=.
2941     $as_echo "PATH: $as_dir"
2942   done
2943 IFS=$as_save_IFS
2944 
2945 } >&5
2946 
2947 cat >&5 <<_ACEOF
2948 
2949 
2950 ## ----------- ##
2951 ## Core tests. ##
2952 ## ----------- ##
2953 
2954 _ACEOF
2955 
2956 
2957 # Keep a trace of the command line.
2958 # Strip out --no-create and --no-recursion so they do not pile up.
2959 # Strip out --silent because we don't want to record it for future runs.
2960 # Also quote any args containing shell meta-characters.
2961 # Make two passes to allow for proper duplicate-argument suppression.
2962 ac_configure_args=
2963 ac_configure_args0=
2964 ac_configure_args1=
2965 ac_must_keep_next=false
2966 for ac_pass in 1 2
2967 do
2968   for ac_arg
2969   do
2970     case $ac_arg in
2971     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2972     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2973     | -silent | --silent | --silen | --sile | --sil)
2974       continue ;;
2975     *\'*)
2976       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977     esac
2978     case $ac_pass in
2979     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2980     2)
2981       as_fn_append ac_configure_args1 " '$ac_arg'"
2982       if test $ac_must_keep_next = true; then
2983         ac_must_keep_next=false # Got value, back to normal.
2984       else
2985         case $ac_arg in
2986           *=* | --config-cache | -C | -disable-* | --disable-* \
2987           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2988           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2989           | -with-* | --with-* | -without-* | --without-* | --x)
2990             case "$ac_configure_args0 " in
2991               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992             esac
2993             ;;
2994           -* ) ac_must_keep_next=true ;;
2995         esac
2996       fi
2997       as_fn_append ac_configure_args " '$ac_arg'"
2998       ;;
2999     esac
3000   done
3001 done
3002 { ac_configure_args0=; unset ac_configure_args0;}
3003 { ac_configure_args1=; unset ac_configure_args1;}
3004 
3005 # When interrupted or exit'd, cleanup temporary files, and complete
3006 # config.log.  We remove comments because anyway the quotes in there
3007 # would cause problems or look ugly.
3008 # WARNING: Use '\'' to represent an apostrophe within the trap.
3009 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3010 trap 'exit_status=$?
3011   # Save into config.log some information that might help in debugging.
3012   {
3013     echo
3014 
3015     $as_echo "## ---------------- ##
3016 ## Cache variables. ##
3017 ## ---------------- ##"
3018     echo
3019     # The following way of writing the cache mishandles newlines in values,
3020 (
3021   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3022     eval ac_val=\$$ac_var
3023     case $ac_val in #(
3024     *${as_nl}*)
3025       case $ac_var in #(
3026       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028       esac
3029       case $ac_var in #(
3030       _ | IFS | as_nl) ;; #(
3031       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3032       *) { eval $ac_var=; unset $ac_var;} ;;
3033       esac ;;
3034     esac
3035   done
3036   (set) 2>&1 |
3037     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3038     *${as_nl}ac_space=\ *)
3039       sed -n \
3040         "s/'\''/'\''\\\\'\'''\''/g;
3041           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042       ;; #(
3043     *)
3044       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045       ;;
3046     esac |
3047     sort
3048 )
3049     echo
3050 
3051     $as_echo "## ----------------- ##
3052 ## Output variables. ##
3053 ## ----------------- ##"
3054     echo
3055     for ac_var in $ac_subst_vars
3056     do
3057       eval ac_val=\$$ac_var
3058       case $ac_val in
3059       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3060       esac
3061       $as_echo "$ac_var='\''$ac_val'\''"
3062     done | sort
3063     echo
3064 
3065     if test -n "$ac_subst_files"; then
3066       $as_echo "## ------------------- ##
3067 ## File substitutions. ##
3068 ## ------------------- ##"
3069       echo
3070       for ac_var in $ac_subst_files
3071       do
3072         eval ac_val=\$$ac_var
3073         case $ac_val in
3074         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3075         esac
3076         $as_echo "$ac_var='\''$ac_val'\''"
3077       done | sort
3078       echo
3079     fi
3080 
3081     if test -s confdefs.h; then
3082       $as_echo "## ----------- ##
3083 ## confdefs.h. ##
3084 ## ----------- ##"
3085       echo
3086       cat confdefs.h
3087       echo
3088     fi
3089     test "$ac_signal" != 0 &&
3090       $as_echo "$as_me: caught signal $ac_signal"
3091     $as_echo "$as_me: exit $exit_status"
3092   } >&5
3093   rm -f core *.core core.conftest.* &&
3094     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3095     exit $exit_status
3096 ' 0
3097 for ac_signal in 1 2 13 15; do
3098   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3099 done
3100 ac_signal=0
3101 
3102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3103 rm -f -r conftest* confdefs.h
3104 
3105 $as_echo "/* confdefs.h */" > confdefs.h
3106 
3107 # Predefined preprocessor variables.
3108 
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_NAME "$PACKAGE_NAME"
3111 _ACEOF
3112 
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3115 _ACEOF
3116 
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3119 _ACEOF
3120 
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_STRING "$PACKAGE_STRING"
3123 _ACEOF
3124 
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3127 _ACEOF
3128 
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_URL "$PACKAGE_URL"
3131 _ACEOF
3132 
3133 
3134 # Let the site file select an alternate cache file if it wants to.
3135 # Prefer an explicitly selected file to automatically selected ones.
3136 ac_site_file1=NONE
3137 ac_site_file2=NONE
3138 if test -n "$CONFIG_SITE"; then
3139   # We do not want a PATH search for config.site.
3140   case $CONFIG_SITE in #((
3141     -*)  ac_site_file1=./$CONFIG_SITE;;
3142     */*) ac_site_file1=$CONFIG_SITE;;
3143     *)   ac_site_file1=./$CONFIG_SITE;;
3144   esac
3145 elif test "x$prefix" != xNONE; then
3146   ac_site_file1=$prefix/share/config.site
3147   ac_site_file2=$prefix/etc/config.site
3148 else
3149   ac_site_file1=$ac_default_prefix/share/config.site
3150   ac_site_file2=$ac_default_prefix/etc/config.site
3151 fi
3152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3153 do
3154   test "x$ac_site_file" = xNONE && continue
3155   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3156     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3158     sed 's/^/| /' "$ac_site_file" >&5
3159     . "$ac_site_file" \
3160       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "failed to load site script $ac_site_file
3163 See \`config.log' for more details" "$LINENO" 5; }
3164   fi
3165 done
3166 
3167 if test -r "$cache_file"; then
3168   # Some versions of bash will fail to source /dev/null (special files
3169   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3170   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3171     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3172 $as_echo "$as_me: loading cache $cache_file" >&6;}
3173     case $cache_file in
3174       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3175       *)                      . "./$cache_file";;
3176     esac
3177   fi
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3180 $as_echo "$as_me: creating cache $cache_file" >&6;}
3181   >$cache_file
3182 fi
3183 
3184 # Check that the precious variables saved in the cache have kept the same
3185 # value.
3186 ac_cache_corrupted=false
3187 for ac_var in $ac_precious_vars; do
3188   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3189   eval ac_new_set=\$ac_env_${ac_var}_set
3190   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3191   eval ac_new_val=\$ac_env_${ac_var}_value
3192   case $ac_old_set,$ac_new_set in
3193     set,)
3194       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196       ac_cache_corrupted=: ;;
3197     ,set)
3198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200       ac_cache_corrupted=: ;;
3201     ,);;
3202     *)
3203       if test "x$ac_old_val" != "x$ac_new_val"; then
3204         # differences in whitespace do not lead to failure.
3205         ac_old_val_w=`echo x $ac_old_val`
3206         ac_new_val_w=`echo x $ac_new_val`
3207         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210           ac_cache_corrupted=:
3211         else
3212           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214           eval $ac_var=\$ac_old_val
3215         fi
3216         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3217 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3218         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3219 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3220       fi;;
3221   esac
3222   # Pass precious variables to config.status.
3223   if test "$ac_new_set" = set; then
3224     case $ac_new_val in
3225     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226     *) ac_arg=$ac_var=$ac_new_val ;;
3227     esac
3228     case " $ac_configure_args " in
3229       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3230       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3231     esac
3232   fi
3233 done
3234 if $ac_cache_corrupted; then
3235   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3240 fi
3241 ## -------------------- ##
3242 ## Main body of script. ##
3243 ## -------------------- ##
3244 
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 
3251 
3252 
3253 ac_aux_dir=
3254 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3255   if test -f "$ac_dir/install-sh"; then
3256     ac_aux_dir=$ac_dir
3257     ac_install_sh="$ac_aux_dir/install-sh -c"
3258     break
3259   elif test -f "$ac_dir/install.sh"; then
3260     ac_aux_dir=$ac_dir
3261     ac_install_sh="$ac_aux_dir/install.sh -c"
3262     break
3263   elif test -f "$ac_dir/shtool"; then
3264     ac_aux_dir=$ac_dir
3265     ac_install_sh="$ac_aux_dir/shtool install -c"
3266     break
3267   fi
3268 done
3269 if test -z "$ac_aux_dir"; then
3270   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
3271 fi
3272 
3273 # These three variables are undocumented and unsupported,
3274 # and are intended to be withdrawn in a future Autoconf release.
3275 # They can cause serious problems if a builder's source tree is in a directory
3276 # whose full name contains unusual characters.
3277 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3278 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3279 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3280 
3281 
3282 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3283 
3284 #
3285 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3286 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3287 #
3288 # This code is free software; you can redistribute it and/or modify it
3289 # under the terms of the GNU General Public License version 2 only, as
3290 # published by the Free Software Foundation.  Oracle designates this
3291 # particular file as subject to the "Classpath" exception as provided
3292 # by Oracle in the LICENSE file that accompanied this code.
3293 #
3294 # This code is distributed in the hope that it will be useful, but WITHOUT
3295 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3296 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3297 # version 2 for more details (a copy is included in the LICENSE file that
3298 # accompanied this code).
3299 #
3300 # You should have received a copy of the GNU General Public License version
3301 # 2 along with this work; if not, write to the Free Software Foundation,
3302 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3303 #
3304 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3305 # or visit www.oracle.com if you need additional information or have any
3306 # questions.
3307 #
3308 
3309 #
3310 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3311 #
3312 # This program is free software; you can redistribute it and/or modify
3313 # it under the terms of the GNU General Public License as published by
3314 # the Free Software Foundation; either version 2 of the License, or
3315 # (at your option) any later version.
3316 #
3317 # This program is distributed in the hope that it will be useful, but
3318 # WITHOUT ANY WARRANTY; without even the implied warranty of
3319 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3320 # General Public License for more details.
3321 #
3322 # You should have received a copy of the GNU General Public License
3323 # along with this program; if not, write to the Free Software
3324 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3325 #
3326 # As a special exception to the GNU General Public License, if you
3327 # distribute this file as part of a program that contains a
3328 # configuration script generated by Autoconf, you may include it under
3329 # the same distribution terms that you use for the rest of that program.
3330 
3331 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3332 # ----------------------------------
3333 # PKG_PROG_PKG_CONFIG
3334 
3335 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3336 #
3337 # Check to see whether a particular set of modules exists.  Similar
3338 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3339 #
3340 #
3341 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3342 # this or PKG_CHECK_MODULES is called, or make sure to call
3343 # PKG_CHECK_EXISTS manually
3344 # --------------------------------------------------------------
3345 
3346 
3347 
3348 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3349 # ---------------------------------------------
3350 # _PKG_CONFIG
3351 
3352 # _PKG_SHORT_ERRORS_SUPPORTED
3353 # -----------------------------
3354 # _PKG_SHORT_ERRORS_SUPPORTED
3355 
3356 
3357 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3358 # [ACTION-IF-NOT-FOUND])
3359 #
3360 #
3361 # Note that if there is a possibility the first call to
3362 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3363 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3364 #
3365 #
3366 # --------------------------------------------------------------
3367 # PKG_CHECK_MODULES
3368 
3369 
3370 # Include these first...
3371 #
3372 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3373 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3374 #
3375 # This code is free software; you can redistribute it and/or modify it
3376 # under the terms of the GNU General Public License version 2 only, as
3377 # published by the Free Software Foundation.  Oracle designates this
3378 # particular file as subject to the "Classpath" exception as provided
3379 # by Oracle in the LICENSE file that accompanied this code.
3380 #
3381 # This code is distributed in the hope that it will be useful, but WITHOUT
3382 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3383 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3384 # version 2 for more details (a copy is included in the LICENSE file that
3385 # accompanied this code).
3386 #
3387 # You should have received a copy of the GNU General Public License version
3388 # 2 along with this work; if not, write to the Free Software Foundation,
3389 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3390 #
3391 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3392 # or visit www.oracle.com if you need additional information or have any
3393 # questions.
3394 #
3395 
3396 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3397 # If so, then append $1 to $2 \
3398 # Also set JVM_ARG_OK to true/false depending on outcome.
3399 
3400 
3401 # Appends a string to a path variable, only adding the : when needed.
3402 
3403 
3404 # Prepends a string to a path variable, only adding the : when needed.
3405 
3406 
3407 # This will make sure the given variable points to a full and proper
3408 # path. This means:
3409 # 1) There will be no spaces in the path. On unix platforms,
3410 #    spaces in the path will result in an error. On Windows,
3411 #    the path will be rewritten using short-style to be space-free.
3412 # 2) The path will be absolute, and it will be in unix-style (on
3413 #     cygwin).
3414 # $1: The name of the variable to fix
3415 
3416 
3417 # This will make sure the given variable points to a executable
3418 # with a full and proper path. This means:
3419 # 1) There will be no spaces in the path. On unix platforms,
3420 #    spaces in the path will result in an error. On Windows,
3421 #    the path will be rewritten using short-style to be space-free.
3422 # 2) The path will be absolute, and it will be in unix-style (on
3423 #     cygwin).
3424 # Any arguments given to the executable is preserved.
3425 # If the input variable does not have a directory specification, then
3426 # it need to be in the PATH.
3427 # $1: The name of the variable to fix
3428 
3429 
3430 
3431 
3432 # Register a --with argument but mark it as deprecated
3433 # $1: The name of the with argument to deprecate, not including --with-
3434 
3435 
3436 # Register a --enable argument but mark it as deprecated
3437 # $1: The name of the with argument to deprecate, not including --enable-
3438 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3439 
3440 
3441 
3442 
3443 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3444 # $1: variable to check
3445 
3446 
3447 # Check that there are no unprocessed overridden variables left.
3448 # If so, they are an incorrect argument and we will exit with an error.
3449 
3450 
3451 # Setup a tool for the given variable. If correctly specified by the user,
3452 # use that value, otherwise search for the tool using the supplied code snippet.
3453 # $1: variable to set
3454 # $2: code snippet to call to look for the tool
3455 # $3: code snippet to call if variable was used to find tool
3456 
3457 
3458 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3459 # $1: variable to set
3460 # $2: executable name (or list of names) to look for
3461 
3462 
3463 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3464 # $1: variable to set
3465 # $2: executable name (or list of names) to look for
3466 
3467 
3468 # Like BASIC_PATH_PROGS but fails if no tool was found.
3469 # $1: variable to set
3470 # $2: executable name (or list of names) to look for
3471 
3472 
3473 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3474 # $1: variable to set
3475 # $2: autoconf macro to call to look for the special tool
3476 
3477 
3478 # Setup the most fundamental tools that relies on not much else to set up,
3479 # but is used by much of the early bootstrap code.
3480 
3481 
3482 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3483 
3484 
3485 # Evaluates platform specific overrides for devkit variables.
3486 # $1: Name of variable
3487 
3488 
3489 
3490 
3491 
3492 
3493 #%%% Simple tools %%%
3494 
3495 # Check if we have found a usable version of make
3496 # $1: the path to a potential make binary (or empty)
3497 # $2: the description on how we found this
3498 
3499 
3500 
3501 
3502 # Goes looking for a usable version of GNU make.
3503 
3504 
3505 
3506 
3507 
3508 
3509 # Check if build directory is on local disk. If not possible to determine,
3510 # we prefer to claim it's local.
3511 # Argument 1: directory to test
3512 # Argument 2: what to do if it is on local disk
3513 # Argument 3: what to do otherwise (remote disk or failure)
3514 
3515 
3516 # Check that source files have basic read permissions set. This might
3517 # not be the case in cygwin in certain conditions.
3518 
3519 
3520 
3521 
3522 # Check for support for specific options in bash
3523 
3524 
3525 # Code to run after AC_OUTPUT
3526 
3527 
3528 #
3529 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3530 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3531 #
3532 # This code is free software; you can redistribute it and/or modify it
3533 # under the terms of the GNU General Public License version 2 only, as
3534 # published by the Free Software Foundation.  Oracle designates this
3535 # particular file as subject to the "Classpath" exception as provided
3536 # by Oracle in the LICENSE file that accompanied this code.
3537 #
3538 # This code is distributed in the hope that it will be useful, but WITHOUT
3539 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3540 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3541 # version 2 for more details (a copy is included in the LICENSE file that
3542 # accompanied this code).
3543 #
3544 # You should have received a copy of the GNU General Public License version
3545 # 2 along with this work; if not, write to the Free Software Foundation,
3546 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3547 #
3548 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3549 # or visit www.oracle.com if you need additional information or have any
3550 # questions.
3551 #
3552 
3553 
3554 
3555 
3556 
3557 # Helper function which possibly converts a path using DOS-style short mode.
3558 # If so, the updated path is stored in $new_path.
3559 # $1: The path to check
3560 
3561 
3562 # Helper function which possibly converts a path using DOS-style short mode.
3563 # If so, the updated path is stored in $new_path.
3564 # $1: The path to check
3565 
3566 
3567 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3568 # and could probably be heavily simplified. However, all changes in this
3569 # area tend to need lot of testing in different scenarios, and in lack of
3570 # proper unit testing, cleaning this up has not been deemed worth the effort
3571 # at the moment.
3572 
3573 
3574 
3575 
3576 
3577 
3578 
3579 
3580 
3581 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3582 
3583 
3584 
3585 
3586 # ... then the rest
3587 #
3588 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3589 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3590 #
3591 # This code is free software; you can redistribute it and/or modify it
3592 # under the terms of the GNU General Public License version 2 only, as
3593 # published by the Free Software Foundation.  Oracle designates this
3594 # particular file as subject to the "Classpath" exception as provided
3595 # by Oracle in the LICENSE file that accompanied this code.
3596 #
3597 # This code is distributed in the hope that it will be useful, but WITHOUT
3598 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3599 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3600 # version 2 for more details (a copy is included in the LICENSE file that
3601 # accompanied this code).
3602 #
3603 # You should have received a copy of the GNU General Public License version
3604 # 2 along with this work; if not, write to the Free Software Foundation,
3605 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3606 #
3607 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3608 # or visit www.oracle.com if you need additional information or have any
3609 # questions.
3610 #
3611 
3612 ########################################################################
3613 # This file handles detection of the Boot JDK. The Boot JDK detection
3614 # process has been developed as a response to solve a complex real-world
3615 # problem. Initially, it was simple, but it has grown as platform after
3616 # platform, idiosyncracy after idiosyncracy has been supported.
3617 #
3618 # The basic idea is this:
3619 # 1) You need an acceptable *) JDK to use as a Boot JDK
3620 # 2) There are several ways to locate a JDK, that are mostly platform
3621 #    dependent **)
3622 # 3) You can have multiple JDKs installed
3623 # 4) If possible, configure should try to dig out an acceptable JDK
3624 #    automatically, without having to resort to command-line options
3625 #
3626 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3627 #     javac) and not a JRE, etc.
3628 #
3629 # **) On Windows we typically use a well-known path.
3630 #     On MacOSX we typically use the tool java_home.
3631 #     On Linux we typically find javac in the $PATH, and then follow a
3632 #     chain of symlinks that often ends up in a real JDK.
3633 #
3634 # This leads to the code where we check in different ways to locate a
3635 # JDK, and if one is found, check if it is acceptable. If not, we print
3636 # our reasons for rejecting it (useful when debugging non-working
3637 # configure situations) and continue checking the next one.
3638 ########################################################################
3639 
3640 # Execute the check given as argument, and verify the result
3641 # If the Boot JDK was previously found, do nothing
3642 # $1 A command line (typically autoconf macro) to execute
3643 
3644 
3645 # Test: Is bootjdk explicitely set by command line arguments?
3646 
3647 
3648 # Test: Is $JAVA_HOME set?
3649 
3650 
3651 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3652 
3653 
3654 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3655 # $1: Argument to the java_home binary (optional)
3656 
3657 
3658 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3659 
3660 
3661 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3662 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3663 # $1 = Path to directory containing jdk installations.
3664 # $2 = String to append to the found JDK directory to get the proper JDK home
3665 
3666 
3667 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3668 # environmental variable as base for where to look.
3669 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3670 
3671 
3672 # Test: Is there a JDK installed in default, well-known locations?
3673 
3674 
3675 # Check that a command-line tool in the Boot JDK is correct
3676 # $1 = name of variable to assign
3677 # $2 = name of binary
3678 
3679 
3680 ###############################################################################
3681 #
3682 # We need a Boot JDK to bootstrap the build.
3683 #
3684 
3685 
3686 
3687 
3688 
3689 #
3690 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3691 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3692 #
3693 # This code is free software; you can redistribute it and/or modify it
3694 # under the terms of the GNU General Public License version 2 only, as
3695 # published by the Free Software Foundation.  Oracle designates this
3696 # particular file as subject to the "Classpath" exception as provided
3697 # by Oracle in the LICENSE file that accompanied this code.
3698 #
3699 # This code is distributed in the hope that it will be useful, but WITHOUT
3700 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3701 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3702 # version 2 for more details (a copy is included in the LICENSE file that
3703 # accompanied this code).
3704 #
3705 # You should have received a copy of the GNU General Public License version
3706 # 2 along with this work; if not, write to the Free Software Foundation,
3707 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3708 #
3709 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3710 # or visit www.oracle.com if you need additional information or have any
3711 # questions.
3712 #
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 
3729 
3730 
3731 
3732 
3733 #
3734 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3735 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3736 #
3737 # This code is free software; you can redistribute it and/or modify it
3738 # under the terms of the GNU General Public License version 2 only, as
3739 # published by the Free Software Foundation.  Oracle designates this
3740 # particular file as subject to the "Classpath" exception as provided
3741 # by Oracle in the LICENSE file that accompanied this code.
3742 #
3743 # This code is distributed in the hope that it will be useful, but WITHOUT
3744 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3745 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3746 # version 2 for more details (a copy is included in the LICENSE file that
3747 # accompanied this code).
3748 #
3749 # You should have received a copy of the GNU General Public License version
3750 # 2 along with this work; if not, write to the Free Software Foundation,
3751 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3752 #
3753 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3754 # or visit www.oracle.com if you need additional information or have any
3755 # questions.
3756 #
3757 
3758 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3759 # corresponding configure arguments instead
3760 
3761 
3762 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3763 # that configure can use them while detecting compilers.
3764 # TOOLCHAIN_TYPE is available here.
3765 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3766 
3767 
3768 
3769 
3770 
3771 
3772 # Documentation on common flags used for solstudio in HIGHEST.
3773 #
3774 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3775 #          done with care, there are some assumptions below that need to
3776 #          be understood about the use of pointers, and IEEE behavior.
3777 #
3778 # -fns: Use non-standard floating point mode (not IEEE 754)
3779 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3780 # -fsingle: Use single precision floating point with 'float'
3781 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3782 #   (Source with excessing pointer casting and data access with mixed
3783 #    pointer types are not recommended)
3784 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3785 #   (If you expect perfect errno behavior, do not use this)
3786 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3787 # -xrestrict: Pointer parameters to functions do not overlap
3788 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3789 #    If you pass in multiple pointers to the same data, do not use this)
3790 # -xlibmil: Inline some library routines
3791 #   (If you expect perfect errno behavior, do not use this)
3792 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3793 #   (If you expect perfect errno behavior, do not use this)
3794 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3795 
3796     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3797     # Bug?
3798     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3799     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3800     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3801     #fi
3802 
3803 
3804 
3805 
3806 
3807 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3808 #                                   [RUN-IF-FALSE])
3809 # ------------------------------------------------------------
3810 # Check that the c and c++ compilers support an argument
3811 
3812 
3813 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3814 #                                    [RUN-IF-FALSE])
3815 # ------------------------------------------------------------
3816 # Check that the linker support an argument
3817 
3818 
3819 
3820 
3821 #
3822 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3823 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3824 #
3825 # This code is free software; you can redistribute it and/or modify it
3826 # under the terms of the GNU General Public License version 2 only, as
3827 # published by the Free Software Foundation.  Oracle designates this
3828 # particular file as subject to the "Classpath" exception as provided
3829 # by Oracle in the LICENSE file that accompanied this code.
3830 #
3831 # This code is distributed in the hope that it will be useful, but WITHOUT
3832 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3833 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3834 # version 2 for more details (a copy is included in the LICENSE file that
3835 # accompanied this code).
3836 #
3837 # You should have received a copy of the GNU General Public License version
3838 # 2 along with this work; if not, write to the Free Software Foundation,
3839 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3840 #
3841 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3842 # or visit www.oracle.com if you need additional information or have any
3843 # questions.
3844 #
3845 
3846 
3847 
3848 
3849 
3850 cygwin_help() {
3851   case $1 in
3852     unzip)
3853       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3854       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3855       ;;
3856     zip)
3857       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3858       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3859       ;;
3860     make)
3861       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3862       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3863       ;;
3864     freetype)
3865       HELP_MSG="
3866 The freetype library can now be build during the configure process.
3867 Download the freetype sources and unpack them into an arbitrary directory:
3868 
3869 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3870 tar -xzf freetype-2.5.3.tar.gz
3871 
3872 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3873 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3874 builds or into '<freetype_src>/lib32' for 32-bit builds.
3875 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3876 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3877       ;;
3878   esac
3879 }
3880 
3881 msys_help() {
3882   PKGHANDLER_COMMAND=""
3883 }
3884 
3885 apt_help() {
3886   case $1 in
3887     reduced)
3888       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3889     devkit)
3890       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3891     openjdk)
3892       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3893     alsa)
3894       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3895     cups)
3896       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3897     freetype)
3898       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3899     ffi)
3900       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3901     x11)
3902       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3903     ccache)
3904       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3905   esac
3906 }
3907 
3908 yum_help() {
3909   case $1 in
3910     devkit)
3911       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3912     openjdk)
3913       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3914     alsa)
3915       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3916     cups)
3917       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3918     freetype)
3919       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3920     x11)
3921       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3922     ccache)
3923       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3924   esac
3925 }
3926 
3927 port_help() {
3928   PKGHANDLER_COMMAND=""
3929 }
3930 
3931 pkgutil_help() {
3932   PKGHANDLER_COMMAND=""
3933 }
3934 
3935 pkgadd_help() {
3936   PKGHANDLER_COMMAND=""
3937 }
3938 
3939 # This function will check if we're called from the "configure" wrapper while
3940 # printing --help. If so, we will print out additional information that can
3941 # only be extracted within the autoconf script, and then exit. This must be
3942 # called at the very beginning in configure.ac.
3943 
3944 
3945 
3946 
3947 
3948 
3949 #
3950 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3951 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3952 #
3953 # This code is free software; you can redistribute it and/or modify it
3954 # under the terms of the GNU General Public License version 2 only, as
3955 # published by the Free Software Foundation.  Oracle designates this
3956 # particular file as subject to the "Classpath" exception as provided
3957 # by Oracle in the LICENSE file that accompanied this code.
3958 #
3959 # This code is distributed in the hope that it will be useful, but WITHOUT
3960 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3961 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3962 # version 2 for more details (a copy is included in the LICENSE file that
3963 # accompanied this code).
3964 #
3965 # You should have received a copy of the GNU General Public License version
3966 # 2 along with this work; if not, write to the Free Software Foundation,
3967 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3968 #
3969 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3970 # or visit www.oracle.com if you need additional information or have any
3971 # questions.
3972 #
3973 
3974 
3975 
3976 
3977 
3978 
3979 
3980 
3981 
3982 
3983 ###############################################################################
3984 #
3985 # Should we build only OpenJDK even if closed sources are present?
3986 #
3987 
3988 
3989 
3990 
3991 ###############################################################################
3992 #
3993 # Setup version numbers
3994 #
3995 
3996 
3997 
3998 
3999 
4000 
4001 ################################################################################
4002 #
4003 # Gcov coverage data for hotspot
4004 #
4005 
4006 
4007 ################################################################################
4008 #
4009 # Static build support.  When enabled will generate static
4010 # libraries instead of shared libraries for all JDK libs.
4011 #
4012 
4013 
4014 
4015 
4016 #
4017 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4018 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4019 #
4020 # This code is free software; you can redistribute it and/or modify it
4021 # under the terms of the GNU General Public License version 2 only, as
4022 # published by the Free Software Foundation.  Oracle designates this
4023 # particular file as subject to the "Classpath" exception as provided
4024 # by Oracle in the LICENSE file that accompanied this code.
4025 #
4026 # This code is distributed in the hope that it will be useful, but WITHOUT
4027 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4028 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4029 # version 2 for more details (a copy is included in the LICENSE file that
4030 # accompanied this code).
4031 #
4032 # You should have received a copy of the GNU General Public License version
4033 # 2 along with this work; if not, write to the Free Software Foundation,
4034 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4035 #
4036 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4037 # or visit www.oracle.com if you need additional information or have any
4038 # questions.
4039 #
4040 
4041 # Major library component reside in separate files.
4042 #
4043 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4044 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4045 #
4046 # This code is free software; you can redistribute it and/or modify it
4047 # under the terms of the GNU General Public License version 2 only, as
4048 # published by the Free Software Foundation.  Oracle designates this
4049 # particular file as subject to the "Classpath" exception as provided
4050 # by Oracle in the LICENSE file that accompanied this code.
4051 #
4052 # This code is distributed in the hope that it will be useful, but WITHOUT
4053 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4054 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4055 # version 2 for more details (a copy is included in the LICENSE file that
4056 # accompanied this code).
4057 #
4058 # You should have received a copy of the GNU General Public License version
4059 # 2 along with this work; if not, write to the Free Software Foundation,
4060 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4061 #
4062 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063 # or visit www.oracle.com if you need additional information or have any
4064 # questions.
4065 #
4066 
4067 ################################################################################
4068 # Setup alsa (Advanced Linux Sound Architecture)
4069 ################################################################################
4070 
4071 
4072 #
4073 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4074 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4075 #
4076 # This code is free software; you can redistribute it and/or modify it
4077 # under the terms of the GNU General Public License version 2 only, as
4078 # published by the Free Software Foundation.  Oracle designates this
4079 # particular file as subject to the "Classpath" exception as provided
4080 # by Oracle in the LICENSE file that accompanied this code.
4081 #
4082 # This code is distributed in the hope that it will be useful, but WITHOUT
4083 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4084 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4085 # version 2 for more details (a copy is included in the LICENSE file that
4086 # accompanied this code).
4087 #
4088 # You should have received a copy of the GNU General Public License version
4089 # 2 along with this work; if not, write to the Free Software Foundation,
4090 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4091 #
4092 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4093 # or visit www.oracle.com if you need additional information or have any
4094 # questions.
4095 #
4096 
4097 ################################################################################
4098 # Setup bundled libraries.
4099 #
4100 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4101 # OpenJDK repository. Default is to use these libraries as bundled, but they
4102 # might be replaced by en external version by the user.
4103 ################################################################################
4104 
4105 
4106 ################################################################################
4107 # Setup libjpeg
4108 ################################################################################
4109 
4110 
4111 ################################################################################
4112 # Setup giflib
4113 ################################################################################
4114 
4115 
4116 ################################################################################
4117 # Setup libpng
4118 ################################################################################
4119 
4120 
4121 ################################################################################
4122 # Setup zlib
4123 ################################################################################
4124 
4125 
4126 ################################################################################
4127 # Setup lcms (Little CMS)
4128 ################################################################################
4129 
4130 
4131 #
4132 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4133 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4134 #
4135 # This code is free software; you can redistribute it and/or modify it
4136 # under the terms of the GNU General Public License version 2 only, as
4137 # published by the Free Software Foundation.  Oracle designates this
4138 # particular file as subject to the "Classpath" exception as provided
4139 # by Oracle in the LICENSE file that accompanied this code.
4140 #
4141 # This code is distributed in the hope that it will be useful, but WITHOUT
4142 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4143 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4144 # version 2 for more details (a copy is included in the LICENSE file that
4145 # accompanied this code).
4146 #
4147 # You should have received a copy of the GNU General Public License version
4148 # 2 along with this work; if not, write to the Free Software Foundation,
4149 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4150 #
4151 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4152 # or visit www.oracle.com if you need additional information or have any
4153 # questions.
4154 #
4155 
4156 ################################################################################
4157 # Setup cups (Common Unix Printing System)
4158 ################################################################################
4159 
4160 
4161 #
4162 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4163 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4164 #
4165 # This code is free software; you can redistribute it and/or modify it
4166 # under the terms of the GNU General Public License version 2 only, as
4167 # published by the Free Software Foundation.  Oracle designates this
4168 # particular file as subject to the "Classpath" exception as provided
4169 # by Oracle in the LICENSE file that accompanied this code.
4170 #
4171 # This code is distributed in the hope that it will be useful, but WITHOUT
4172 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4173 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4174 # version 2 for more details (a copy is included in the LICENSE file that
4175 # accompanied this code).
4176 #
4177 # You should have received a copy of the GNU General Public License version
4178 # 2 along with this work; if not, write to the Free Software Foundation,
4179 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4180 #
4181 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4182 # or visit www.oracle.com if you need additional information or have any
4183 # questions.
4184 #
4185 
4186 ################################################################################
4187 # Setup libffi (Foreign Function Interface)
4188 ################################################################################
4189 
4190 
4191 #
4192 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4193 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4194 #
4195 # This code is free software; you can redistribute it and/or modify it
4196 # under the terms of the GNU General Public License version 2 only, as
4197 # published by the Free Software Foundation.  Oracle designates this
4198 # particular file as subject to the "Classpath" exception as provided
4199 # by Oracle in the LICENSE file that accompanied this code.
4200 #
4201 # This code is distributed in the hope that it will be useful, but WITHOUT
4202 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4203 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4204 # version 2 for more details (a copy is included in the LICENSE file that
4205 # accompanied this code).
4206 #
4207 # You should have received a copy of the GNU General Public License version
4208 # 2 along with this work; if not, write to the Free Software Foundation,
4209 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4210 #
4211 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4212 # or visit www.oracle.com if you need additional information or have any
4213 # questions.
4214 #
4215 
4216 ################################################################################
4217 # Build the freetype lib from source
4218 ################################################################################
4219 
4220 
4221 ################################################################################
4222 # Check if a potential freeype library match is correct and usable
4223 ################################################################################
4224 
4225 
4226 ################################################################################
4227 # Setup freetype (The FreeType2 font rendering library)
4228 ################################################################################
4229 
4230 
4231 #
4232 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4233 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4234 #
4235 # This code is free software; you can redistribute it and/or modify it
4236 # under the terms of the GNU General Public License version 2 only, as
4237 # published by the Free Software Foundation.  Oracle designates this
4238 # particular file as subject to the "Classpath" exception as provided
4239 # by Oracle in the LICENSE file that accompanied this code.
4240 #
4241 # This code is distributed in the hope that it will be useful, but WITHOUT
4242 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4243 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4244 # version 2 for more details (a copy is included in the LICENSE file that
4245 # accompanied this code).
4246 #
4247 # You should have received a copy of the GNU General Public License version
4248 # 2 along with this work; if not, write to the Free Software Foundation,
4249 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4250 #
4251 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4252 # or visit www.oracle.com if you need additional information or have any
4253 # questions.
4254 #
4255 
4256 ################################################################################
4257 # Setup the standard C/C++ runtime libraries.
4258 #
4259 # Most importantly, determine if stdc++ should be linked statically or
4260 # dynamically.
4261 ################################################################################
4262 
4263 
4264 #
4265 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4266 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4267 #
4268 # This code is free software; you can redistribute it and/or modify it
4269 # under the terms of the GNU General Public License version 2 only, as
4270 # published by the Free Software Foundation.  Oracle designates this
4271 # particular file as subject to the "Classpath" exception as provided
4272 # by Oracle in the LICENSE file that accompanied this code.
4273 #
4274 # This code is distributed in the hope that it will be useful, but WITHOUT
4275 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4276 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4277 # version 2 for more details (a copy is included in the LICENSE file that
4278 # accompanied this code).
4279 #
4280 # You should have received a copy of the GNU General Public License version
4281 # 2 along with this work; if not, write to the Free Software Foundation,
4282 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4283 #
4284 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4285 # or visit www.oracle.com if you need additional information or have any
4286 # questions.
4287 #
4288 
4289 ################################################################################
4290 # Setup X11 Windows system
4291 ################################################################################
4292 
4293 
4294 
4295 ################################################################################
4296 # Determine which libraries are needed for this configuration
4297 ################################################################################
4298 
4299 
4300 ################################################################################
4301 # Parse library options, and setup needed libraries
4302 ################################################################################
4303 
4304 
4305 ################################################################################
4306 # Setup llvm (Low-Level VM)
4307 ################################################################################
4308 
4309 
4310 ################################################################################
4311 # Setup various libraries, typically small system libraries
4312 ################################################################################
4313 
4314 
4315 #
4316 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4317 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4318 #
4319 # This code is free software; you can redistribute it and/or modify it
4320 # under the terms of the GNU General Public License version 2 only, as
4321 # published by the Free Software Foundation.  Oracle designates this
4322 # particular file as subject to the "Classpath" exception as provided
4323 # by Oracle in the LICENSE file that accompanied this code.
4324 #
4325 # This code is distributed in the hope that it will be useful, but WITHOUT
4326 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4327 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4328 # version 2 for more details (a copy is included in the LICENSE file that
4329 # accompanied this code).
4330 #
4331 # You should have received a copy of the GNU General Public License version
4332 # 2 along with this work; if not, write to the Free Software Foundation,
4333 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4334 #
4335 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4336 # or visit www.oracle.com if you need additional information or have any
4337 # questions.
4338 #
4339 
4340 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4341 # Converts autoconf style CPU name to OpenJDK style, into
4342 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4343 
4344 
4345 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4346 # Converts autoconf style OS name to OpenJDK style, into
4347 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4348 
4349 
4350 # Expects $host_os $host_cpu $build_os and $build_cpu
4351 # and $with_target_bits to have been setup!
4352 #
4353 # Translate the standard triplet(quadruplet) definition
4354 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4355 # OPENJDK_BUILD_OS, etc.
4356 
4357 
4358 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4359 # accordingly. Must be done after setting up build and target system, but before
4360 # doing anything else with these values.
4361 
4362 
4363 # Setup the legacy variables, for controlling the old makefiles.
4364 #
4365 
4366 
4367 
4368 
4369 #%%% Build and target systems %%%
4370 
4371 
4372 
4373 
4374 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4375 # Add -mX to various FLAGS variables.
4376 
4377 
4378 
4379 
4380 
4381 
4382 #
4383 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4385 #
4386 # This code is free software; you can redistribute it and/or modify it
4387 # under the terms of the GNU General Public License version 2 only, as
4388 # published by the Free Software Foundation.  Oracle designates this
4389 # particular file as subject to the "Classpath" exception as provided
4390 # by Oracle in the LICENSE file that accompanied this code.
4391 #
4392 # This code is distributed in the hope that it will be useful, but WITHOUT
4393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4394 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4395 # version 2 for more details (a copy is included in the LICENSE file that
4396 # accompanied this code).
4397 #
4398 # You should have received a copy of the GNU General Public License version
4399 # 2 along with this work; if not, write to the Free Software Foundation,
4400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4401 #
4402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4403 # or visit www.oracle.com if you need additional information or have any
4404 # questions.
4405 #
4406 
4407 
4408 
4409 
4410 
4411 
4412 
4413 #
4414 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4415 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4416 #
4417 # This code is free software; you can redistribute it and/or modify it
4418 # under the terms of the GNU General Public License version 2 only, as
4419 # published by the Free Software Foundation.  Oracle designates this
4420 # particular file as subject to the "Classpath" exception as provided
4421 # by Oracle in the LICENSE file that accompanied this code.
4422 #
4423 # This code is distributed in the hope that it will be useful, but WITHOUT
4424 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4425 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4426 # version 2 for more details (a copy is included in the LICENSE file that
4427 # accompanied this code).
4428 #
4429 # You should have received a copy of the GNU General Public License version
4430 # 2 along with this work; if not, write to the Free Software Foundation,
4431 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4432 #
4433 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4434 # or visit www.oracle.com if you need additional information or have any
4435 # questions.
4436 #
4437 
4438 ########################################################################
4439 # This file is responsible for detecting, verifying and setting up the
4440 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4441 # proper paths to the binaries, but it will not setup any flags.
4442 #
4443 # The binaries used is determined by the toolchain type, which is the family of
4444 # compilers and related tools that are used.
4445 ########################################################################
4446 
4447 
4448 # All valid toolchains, regardless of platform (used by help.m4)
4449 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4450 
4451 # These toolchains are valid on different platforms
4452 VALID_TOOLCHAINS_linux="gcc clang"
4453 VALID_TOOLCHAINS_solaris="solstudio"
4454 VALID_TOOLCHAINS_macosx="gcc clang"
4455 VALID_TOOLCHAINS_aix="xlc"
4456 VALID_TOOLCHAINS_windows="microsoft"
4457 
4458 # Toolchain descriptions
4459 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4460 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4461 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4462 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4463 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4464 
4465 # Setup a number of variables describing how native output files are
4466 # named on this platform/toolchain.
4467 
4468 
4469 # Determine which toolchain type to use, and make sure it is valid for this
4470 # platform. Setup various information about the selected toolchain.
4471 
4472 
4473 # Before we start detecting the toolchain executables, we might need some
4474 # special setup, e.g. additional paths etc.
4475 
4476 
4477 # Restore path, etc
4478 
4479 
4480 # Check if a compiler is of the toolchain type we expect, and save the version
4481 # information from it. If the compiler does not match the expected type,
4482 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4483 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4484 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4485 #
4486 # $1 = compiler to test (CC or CXX)
4487 # $2 = human readable name of compiler (C or C++)
4488 
4489 
4490 # Try to locate the given C or C++ compiler in the path, or otherwise.
4491 #
4492 # $1 = compiler to test (CC or CXX)
4493 # $2 = human readable name of compiler (C or C++)
4494 # $3 = list of compiler names to search for
4495 
4496 
4497 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4498 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4499 # archiver (AR). Verify that the compilers are correct according to the
4500 # toolchain type.
4501 
4502 
4503 # Setup additional tools that is considered a part of the toolchain, but not the
4504 # core part. Many of these are highly platform-specific and do not exist,
4505 # and/or are not needed on all platforms.
4506 
4507 
4508 # Setup the build tools (i.e, the compiler and linker used to build programs
4509 # that should be run on the build platform, not the target platform, as a build
4510 # helper). Since the non-cross-compile case uses the normal, target compilers
4511 # for this, we can only do this after these have been setup.
4512 
4513 
4514 # Setup legacy variables that are still needed as alternative ways to refer to
4515 # parts of the toolchain.
4516 
4517 
4518 # Do some additional checks on the detected tools.
4519 
4520 
4521 # Setup the JTReg Regression Test Harness.
4522 
4523 
4524 #
4525 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4526 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4527 #
4528 # This code is free software; you can redistribute it and/or modify it
4529 # under the terms of the GNU General Public License version 2 only, as
4530 # published by the Free Software Foundation.  Oracle designates this
4531 # particular file as subject to the "Classpath" exception as provided
4532 # by Oracle in the LICENSE file that accompanied this code.
4533 #
4534 # This code is distributed in the hope that it will be useful, but WITHOUT
4535 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4536 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4537 # version 2 for more details (a copy is included in the LICENSE file that
4538 # accompanied this code).
4539 #
4540 # You should have received a copy of the GNU General Public License version
4541 # 2 along with this work; if not, write to the Free Software Foundation,
4542 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4543 #
4544 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4545 # or visit www.oracle.com if you need additional information or have any
4546 # questions.
4547 #
4548 
4549 ################################################################################
4550 # The order of these defines the priority by which we try to find them.
4551 VALID_VS_VERSIONS="2013 2012 2010"
4552 
4553 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4554 VS_VERSION_INTERNAL_2010=100
4555 VS_MSVCR_2010=msvcr100.dll
4556 # We don't use msvcp on Visual Studio 2010
4557 #VS_MSVCP_2010=msvcp100.dll
4558 VS_ENVVAR_2010="VS100COMNTOOLS"
4559 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4560 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4561 VS_VS_PLATFORM_NAME_2010="v100"
4562 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4563 
4564 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4565 VS_VERSION_INTERNAL_2012=110
4566 VS_MSVCR_2012=msvcr110.dll
4567 VS_MSVCP_2012=msvcp110.dll
4568 VS_ENVVAR_2012="VS110COMNTOOLS"
4569 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4570 VS_SDK_INSTALLDIR_2012=
4571 VS_VS_PLATFORM_NAME_2012="v110"
4572 VS_SDK_PLATFORM_NAME_2012=
4573 
4574 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4575 VS_VERSION_INTERNAL_2013=120
4576 VS_MSVCR_2013=msvcr120.dll
4577 VS_MSVCP_2013=msvcp120.dll
4578 VS_ENVVAR_2013="VS120COMNTOOLS"
4579 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4580 VS_SDK_INSTALLDIR_2013=
4581 VS_VS_PLATFORM_NAME_2013="v120"
4582 VS_SDK_PLATFORM_NAME_2013=
4583 
4584 ################################################################################
4585 
4586 
4587 
4588 ################################################################################
4589 
4590 
4591 
4592 ################################################################################
4593 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4594 # build environment and assigns it to VS_ENV_CMD
4595 
4596 
4597 ################################################################################
4598 
4599 
4600 
4601 ################################################################################
4602 # Check if the VS env variables were setup prior to running configure.
4603 # If not, then find vcvarsall.bat and run it automatically, and integrate
4604 # the set env variables into the spec file.
4605 
4606 
4607 
4608 
4609 
4610 
4611 
4612 
4613 
4614 
4615 
4616 
4617 
4618 
4619 # This line needs to be here, verbatim, after all includes and the dummy hook
4620 # definitions. It is replaced with custom functionality when building
4621 # custom sources.
4622 #CUSTOM_AUTOCONF_INCLUDE
4623 
4624 # Do not change or remove the following line, it is needed for consistency checks:
4625 DATE_WHEN_GENERATED=1447929925
4626 
4627 ###############################################################################
4628 #
4629 # Initialization / Boot-strapping
4630 #
4631 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4632 # thus it jumps back and forth, each time gaining something needed later on.
4633 #
4634 ###############################################################################
4635 
4636 # If we are requested to print additional help, do that and then exit.
4637 # This must be the very first call.
4638 
4639   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4640     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4641     $PRINTF "Which are valid to use depends on the build platform.\n"
4642     for toolchain in $VALID_TOOLCHAINS_all; do
4643       # Use indirect variable referencing
4644       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4645       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4646       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4647     done
4648 
4649     # And now exit directly
4650     exit 0
4651   fi
4652 
4653 
4654 # Basic initialization that must happen first of all in the normal process.
4655 
4656   # Save the original command line. This is passed to us by the wrapper configure script.
4657 
4658   # Save the path variable before it gets changed
4659   ORIGINAL_PATH="$PATH"
4660 
4661   DATE_WHEN_CONFIGURED=`LANG=C date`
4662 
4663   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4664 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4666 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4667 
4668 
4669   # Start with tools that do not need have cross compilation support
4670   # and can be expected to be found in the default PATH. These tools are
4671   # used by configure.
4672 
4673   # First are all the simple required tools.
4674 
4675 
4676 
4677   # Publish this variable in the help.
4678 
4679 
4680   if [ -z "${BASENAME+x}" ]; then
4681     # The variable is not set by user, try to locate tool using the code snippet
4682     for ac_prog in basename
4683 do
4684   # Extract the first word of "$ac_prog", so it can be a program name with args.
4685 set dummy $ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_path_BASENAME+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   case $BASENAME in
4692   [\\/]* | ?:[\\/]*)
4693   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4694   ;;
4695   *)
4696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701     for ac_exec_ext in '' $ac_executable_extensions; do
4702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708   done
4709 IFS=$as_save_IFS
4710 
4711   ;;
4712 esac
4713 fi
4714 BASENAME=$ac_cv_path_BASENAME
4715 if test -n "$BASENAME"; then
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4717 $as_echo "$BASENAME" >&6; }
4718 else
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722 
4723 
4724   test -n "$BASENAME" && break
4725 done
4726 
4727   else
4728     # The variable is set, but is it from the command line or the environment?
4729 
4730     # Try to remove the string !BASENAME! from our list.
4731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4733       # If it failed, the variable was not from the command line. Ignore it,
4734       # but warn the user (except for BASH, which is always set by the calling BASH).
4735       if test "xBASENAME" != xBASH; then
4736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4737 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4738       fi
4739       # Try to locate tool using the code snippet
4740       for ac_prog in basename
4741 do
4742   # Extract the first word of "$ac_prog", so it can be a program name with args.
4743 set dummy $ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_path_BASENAME+:} false; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   case $BASENAME in
4750   [\\/]* | ?:[\\/]*)
4751   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4752   ;;
4753   *)
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_exec_ext in '' $ac_executable_extensions; do
4760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763     break 2
4764   fi
4765 done
4766   done
4767 IFS=$as_save_IFS
4768 
4769   ;;
4770 esac
4771 fi
4772 BASENAME=$ac_cv_path_BASENAME
4773 if test -n "$BASENAME"; then
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4775 $as_echo "$BASENAME" >&6; }
4776 else
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780 
4781 
4782   test -n "$BASENAME" && break
4783 done
4784 
4785     else
4786       # If it succeeded, then it was overridden by the user. We will use it
4787       # for the tool.
4788 
4789       # First remove it from the list of overridden variables, so we can test
4790       # for unknown variables in the end.
4791       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4792 
4793       # Check if we try to supply an empty value
4794       if test "x$BASENAME" = x; then
4795         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4796 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4798 $as_echo_n "checking for BASENAME... " >&6; }
4799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4800 $as_echo "disabled" >&6; }
4801       else
4802         # Check if the provided tool contains a complete path.
4803         tool_specified="$BASENAME"
4804         tool_basename="${tool_specified##*/}"
4805         if test "x$tool_basename" = "x$tool_specified"; then
4806           # A command without a complete path is provided, search $PATH.
4807           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4808 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4809           # Extract the first word of "$tool_basename", so it can be a program name with args.
4810 set dummy $tool_basename; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if ${ac_cv_path_BASENAME+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   case $BASENAME in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_exec_ext in '' $ac_executable_extensions; do
4827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833   done
4834 IFS=$as_save_IFS
4835 
4836   ;;
4837 esac
4838 fi
4839 BASENAME=$ac_cv_path_BASENAME
4840 if test -n "$BASENAME"; then
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4842 $as_echo "$BASENAME" >&6; }
4843 else
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4846 fi
4847 
4848 
4849           if test "x$BASENAME" = x; then
4850             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4851           fi
4852         else
4853           # Otherwise we believe it is a complete path. Use it as it is.
4854           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4855 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4856           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4857 $as_echo_n "checking for BASENAME... " >&6; }
4858           if test ! -x "$tool_specified"; then
4859             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4860 $as_echo "not found" >&6; }
4861             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4862           fi
4863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4864 $as_echo "$tool_specified" >&6; }
4865         fi
4866       fi
4867     fi
4868 
4869   fi
4870 
4871 
4872 
4873   if test "x$BASENAME" = x; then
4874     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4875   fi
4876 
4877 
4878 
4879 
4880 
4881   # Publish this variable in the help.
4882 
4883 
4884   if [ -z "${BASH+x}" ]; then
4885     # The variable is not set by user, try to locate tool using the code snippet
4886     for ac_prog in bash
4887 do
4888   # Extract the first word of "$ac_prog", so it can be a program name with args.
4889 set dummy $ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_path_BASH+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   case $BASH in
4896   [\\/]* | ?:[\\/]*)
4897   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4898   ;;
4899   *)
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_exec_ext in '' $ac_executable_extensions; do
4906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912   done
4913 IFS=$as_save_IFS
4914 
4915   ;;
4916 esac
4917 fi
4918 BASH=$ac_cv_path_BASH
4919 if test -n "$BASH"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4921 $as_echo "$BASH" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926 
4927 
4928   test -n "$BASH" && break
4929 done
4930 
4931   else
4932     # The variable is set, but is it from the command line or the environment?
4933 
4934     # Try to remove the string !BASH! from our list.
4935     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4936     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4937       # If it failed, the variable was not from the command line. Ignore it,
4938       # but warn the user (except for BASH, which is always set by the calling BASH).
4939       if test "xBASH" != xBASH; then
4940         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4941 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4942       fi
4943       # Try to locate tool using the code snippet
4944       for ac_prog in bash
4945 do
4946   # Extract the first word of "$ac_prog", so it can be a program name with args.
4947 set dummy $ac_prog; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_BASH+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   case $BASH in
4954   [\\/]* | ?:[\\/]*)
4955   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4956   ;;
4957   *)
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4965     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972 
4973   ;;
4974 esac
4975 fi
4976 BASH=$ac_cv_path_BASH
4977 if test -n "$BASH"; then
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4979 $as_echo "$BASH" >&6; }
4980 else
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984 
4985 
4986   test -n "$BASH" && break
4987 done
4988 
4989     else
4990       # If it succeeded, then it was overridden by the user. We will use it
4991       # for the tool.
4992 
4993       # First remove it from the list of overridden variables, so we can test
4994       # for unknown variables in the end.
4995       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4996 
4997       # Check if we try to supply an empty value
4998       if test "x$BASH" = x; then
4999         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5000 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5001         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5002 $as_echo_n "checking for BASH... " >&6; }
5003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5004 $as_echo "disabled" >&6; }
5005       else
5006         # Check if the provided tool contains a complete path.
5007         tool_specified="$BASH"
5008         tool_basename="${tool_specified##*/}"
5009         if test "x$tool_basename" = "x$tool_specified"; then
5010           # A command without a complete path is provided, search $PATH.
5011           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5012 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5013           # Extract the first word of "$tool_basename", so it can be a program name with args.
5014 set dummy $tool_basename; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_BASH+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   case $BASH in
5021   [\\/]* | ?:[\\/]*)
5022   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5023   ;;
5024   *)
5025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039 
5040   ;;
5041 esac
5042 fi
5043 BASH=$ac_cv_path_BASH
5044 if test -n "$BASH"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5046 $as_echo "$BASH" >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051 
5052 
5053           if test "x$BASH" = x; then
5054             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5055           fi
5056         else
5057           # Otherwise we believe it is a complete path. Use it as it is.
5058           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5059 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5060           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5061 $as_echo_n "checking for BASH... " >&6; }
5062           if test ! -x "$tool_specified"; then
5063             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5064 $as_echo "not found" >&6; }
5065             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5066           fi
5067           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5068 $as_echo "$tool_specified" >&6; }
5069         fi
5070       fi
5071     fi
5072 
5073   fi
5074 
5075 
5076 
5077   if test "x$BASH" = x; then
5078     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5079   fi
5080 
5081 
5082 
5083 
5084 
5085   # Publish this variable in the help.
5086 
5087 
5088   if [ -z "${CAT+x}" ]; then
5089     # The variable is not set by user, try to locate tool using the code snippet
5090     for ac_prog in cat
5091 do
5092   # Extract the first word of "$ac_prog", so it can be a program name with args.
5093 set dummy $ac_prog; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_path_CAT+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   case $CAT in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118 
5119   ;;
5120 esac
5121 fi
5122 CAT=$ac_cv_path_CAT
5123 if test -n "$CAT"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5125 $as_echo "$CAT" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130 
5131 
5132   test -n "$CAT" && break
5133 done
5134 
5135   else
5136     # The variable is set, but is it from the command line or the environment?
5137 
5138     # Try to remove the string !CAT! from our list.
5139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5141       # If it failed, the variable was not from the command line. Ignore it,
5142       # but warn the user (except for BASH, which is always set by the calling BASH).
5143       if test "xCAT" != xBASH; then
5144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5145 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5146       fi
5147       # Try to locate tool using the code snippet
5148       for ac_prog in cat
5149 do
5150   # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_CAT+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   case $CAT in
5158   [\\/]* | ?:[\\/]*)
5159   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5160   ;;
5161   *)
5162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176 
5177   ;;
5178 esac
5179 fi
5180 CAT=$ac_cv_path_CAT
5181 if test -n "$CAT"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5183 $as_echo "$CAT" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188 
5189 
5190   test -n "$CAT" && break
5191 done
5192 
5193     else
5194       # If it succeeded, then it was overridden by the user. We will use it
5195       # for the tool.
5196 
5197       # First remove it from the list of overridden variables, so we can test
5198       # for unknown variables in the end.
5199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5200 
5201       # Check if we try to supply an empty value
5202       if test "x$CAT" = x; then
5203         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5204 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5205         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5206 $as_echo_n "checking for CAT... " >&6; }
5207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5208 $as_echo "disabled" >&6; }
5209       else
5210         # Check if the provided tool contains a complete path.
5211         tool_specified="$CAT"
5212         tool_basename="${tool_specified##*/}"
5213         if test "x$tool_basename" = "x$tool_specified"; then
5214           # A command without a complete path is provided, search $PATH.
5215           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5216 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5217           # Extract the first word of "$tool_basename", so it can be a program name with args.
5218 set dummy $tool_basename; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_path_CAT+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   case $CAT in
5225   [\\/]* | ?:[\\/]*)
5226   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5227   ;;
5228   *)
5229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232   IFS=$as_save_IFS
5233   test -z "$as_dir" && as_dir=.
5234     for ac_exec_ext in '' $ac_executable_extensions; do
5235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238     break 2
5239   fi
5240 done
5241   done
5242 IFS=$as_save_IFS
5243 
5244   ;;
5245 esac
5246 fi
5247 CAT=$ac_cv_path_CAT
5248 if test -n "$CAT"; then
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5250 $as_echo "$CAT" >&6; }
5251 else
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255 
5256 
5257           if test "x$CAT" = x; then
5258             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5259           fi
5260         else
5261           # Otherwise we believe it is a complete path. Use it as it is.
5262           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5263 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5264           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5265 $as_echo_n "checking for CAT... " >&6; }
5266           if test ! -x "$tool_specified"; then
5267             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5268 $as_echo "not found" >&6; }
5269             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5270           fi
5271           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5272 $as_echo "$tool_specified" >&6; }
5273         fi
5274       fi
5275     fi
5276 
5277   fi
5278 
5279 
5280 
5281   if test "x$CAT" = x; then
5282     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5283   fi
5284 
5285 
5286 
5287 
5288 
5289   # Publish this variable in the help.
5290 
5291 
5292   if [ -z "${CHMOD+x}" ]; then
5293     # The variable is not set by user, try to locate tool using the code snippet
5294     for ac_prog in chmod
5295 do
5296   # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_path_CHMOD+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   case $CHMOD in
5304   [\\/]* | ?:[\\/]*)
5305   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5306   ;;
5307   *)
5308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322 
5323   ;;
5324 esac
5325 fi
5326 CHMOD=$ac_cv_path_CHMOD
5327 if test -n "$CHMOD"; then
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5329 $as_echo "$CHMOD" >&6; }
5330 else
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5333 fi
5334 
5335 
5336   test -n "$CHMOD" && break
5337 done
5338 
5339   else
5340     # The variable is set, but is it from the command line or the environment?
5341 
5342     # Try to remove the string !CHMOD! from our list.
5343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5345       # If it failed, the variable was not from the command line. Ignore it,
5346       # but warn the user (except for BASH, which is always set by the calling BASH).
5347       if test "xCHMOD" != xBASH; then
5348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5349 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5350       fi
5351       # Try to locate tool using the code snippet
5352       for ac_prog in chmod
5353 do
5354   # Extract the first word of "$ac_prog", so it can be a program name with args.
5355 set dummy $ac_prog; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_path_CHMOD+:} false; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   case $CHMOD in
5362   [\\/]* | ?:[\\/]*)
5363   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5364   ;;
5365   *)
5366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380 
5381   ;;
5382 esac
5383 fi
5384 CHMOD=$ac_cv_path_CHMOD
5385 if test -n "$CHMOD"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5387 $as_echo "$CHMOD" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392 
5393 
5394   test -n "$CHMOD" && break
5395 done
5396 
5397     else
5398       # If it succeeded, then it was overridden by the user. We will use it
5399       # for the tool.
5400 
5401       # First remove it from the list of overridden variables, so we can test
5402       # for unknown variables in the end.
5403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5404 
5405       # Check if we try to supply an empty value
5406       if test "x$CHMOD" = x; then
5407         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5408 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5409         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5410 $as_echo_n "checking for CHMOD... " >&6; }
5411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5412 $as_echo "disabled" >&6; }
5413       else
5414         # Check if the provided tool contains a complete path.
5415         tool_specified="$CHMOD"
5416         tool_basename="${tool_specified##*/}"
5417         if test "x$tool_basename" = "x$tool_specified"; then
5418           # A command without a complete path is provided, search $PATH.
5419           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5420 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5421           # Extract the first word of "$tool_basename", so it can be a program name with args.
5422 set dummy $tool_basename; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_path_CHMOD+:} false; then :
5426   $as_echo_n "(cached) " >&6
5427 else
5428   case $CHMOD in
5429   [\\/]* | ?:[\\/]*)
5430   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5431   ;;
5432   *)
5433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436   IFS=$as_save_IFS
5437   test -z "$as_dir" && as_dir=.
5438     for ac_exec_ext in '' $ac_executable_extensions; do
5439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442     break 2
5443   fi
5444 done
5445   done
5446 IFS=$as_save_IFS
5447 
5448   ;;
5449 esac
5450 fi
5451 CHMOD=$ac_cv_path_CHMOD
5452 if test -n "$CHMOD"; then
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5454 $as_echo "$CHMOD" >&6; }
5455 else
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459 
5460 
5461           if test "x$CHMOD" = x; then
5462             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5463           fi
5464         else
5465           # Otherwise we believe it is a complete path. Use it as it is.
5466           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5467 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5468           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5469 $as_echo_n "checking for CHMOD... " >&6; }
5470           if test ! -x "$tool_specified"; then
5471             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5472 $as_echo "not found" >&6; }
5473             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5474           fi
5475           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5476 $as_echo "$tool_specified" >&6; }
5477         fi
5478       fi
5479     fi
5480 
5481   fi
5482 
5483 
5484 
5485   if test "x$CHMOD" = x; then
5486     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5487   fi
5488 
5489 
5490 
5491 
5492 
5493   # Publish this variable in the help.
5494 
5495 
5496   if [ -z "${CMP+x}" ]; then
5497     # The variable is not set by user, try to locate tool using the code snippet
5498     for ac_prog in cmp
5499 do
5500   # Extract the first word of "$ac_prog", so it can be a program name with args.
5501 set dummy $ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_path_CMP+:} false; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   case $CMP in
5508   [\\/]* | ?:[\\/]*)
5509   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5510   ;;
5511   *)
5512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517     for ac_exec_ext in '' $ac_executable_extensions; do
5518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524   done
5525 IFS=$as_save_IFS
5526 
5527   ;;
5528 esac
5529 fi
5530 CMP=$ac_cv_path_CMP
5531 if test -n "$CMP"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5533 $as_echo "$CMP" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538 
5539 
5540   test -n "$CMP" && break
5541 done
5542 
5543   else
5544     # The variable is set, but is it from the command line or the environment?
5545 
5546     # Try to remove the string !CMP! from our list.
5547     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5548     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5549       # If it failed, the variable was not from the command line. Ignore it,
5550       # but warn the user (except for BASH, which is always set by the calling BASH).
5551       if test "xCMP" != xBASH; then
5552         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5553 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5554       fi
5555       # Try to locate tool using the code snippet
5556       for ac_prog in cmp
5557 do
5558   # Extract the first word of "$ac_prog", so it can be a program name with args.
5559 set dummy $ac_prog; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_path_CMP+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   case $CMP in
5566   [\\/]* | ?:[\\/]*)
5567   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5568   ;;
5569   *)
5570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584 
5585   ;;
5586 esac
5587 fi
5588 CMP=$ac_cv_path_CMP
5589 if test -n "$CMP"; then
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5591 $as_echo "$CMP" >&6; }
5592 else
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596 
5597 
5598   test -n "$CMP" && break
5599 done
5600 
5601     else
5602       # If it succeeded, then it was overridden by the user. We will use it
5603       # for the tool.
5604 
5605       # First remove it from the list of overridden variables, so we can test
5606       # for unknown variables in the end.
5607       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5608 
5609       # Check if we try to supply an empty value
5610       if test "x$CMP" = x; then
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5612 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5614 $as_echo_n "checking for CMP... " >&6; }
5615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5616 $as_echo "disabled" >&6; }
5617       else
5618         # Check if the provided tool contains a complete path.
5619         tool_specified="$CMP"
5620         tool_basename="${tool_specified##*/}"
5621         if test "x$tool_basename" = "x$tool_specified"; then
5622           # A command without a complete path is provided, search $PATH.
5623           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5624 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5625           # Extract the first word of "$tool_basename", so it can be a program name with args.
5626 set dummy $tool_basename; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if ${ac_cv_path_CMP+:} false; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   case $CMP in
5633   [\\/]* | ?:[\\/]*)
5634   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5635   ;;
5636   *)
5637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642     for ac_exec_ext in '' $ac_executable_extensions; do
5643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649   done
5650 IFS=$as_save_IFS
5651 
5652   ;;
5653 esac
5654 fi
5655 CMP=$ac_cv_path_CMP
5656 if test -n "$CMP"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5658 $as_echo "$CMP" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663 
5664 
5665           if test "x$CMP" = x; then
5666             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5667           fi
5668         else
5669           # Otherwise we believe it is a complete path. Use it as it is.
5670           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5671 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5672           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5673 $as_echo_n "checking for CMP... " >&6; }
5674           if test ! -x "$tool_specified"; then
5675             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5676 $as_echo "not found" >&6; }
5677             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5678           fi
5679           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5680 $as_echo "$tool_specified" >&6; }
5681         fi
5682       fi
5683     fi
5684 
5685   fi
5686 
5687 
5688 
5689   if test "x$CMP" = x; then
5690     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5691   fi
5692 
5693 
5694 
5695 
5696 
5697   # Publish this variable in the help.
5698 
5699 
5700   if [ -z "${COMM+x}" ]; then
5701     # The variable is not set by user, try to locate tool using the code snippet
5702     for ac_prog in comm
5703 do
5704   # Extract the first word of "$ac_prog", so it can be a program name with args.
5705 set dummy $ac_prog; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_path_COMM+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   case $COMM in
5712   [\\/]* | ?:[\\/]*)
5713   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5714   ;;
5715   *)
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730 
5731   ;;
5732 esac
5733 fi
5734 COMM=$ac_cv_path_COMM
5735 if test -n "$COMM"; then
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5737 $as_echo "$COMM" >&6; }
5738 else
5739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742 
5743 
5744   test -n "$COMM" && break
5745 done
5746 
5747   else
5748     # The variable is set, but is it from the command line or the environment?
5749 
5750     # Try to remove the string !COMM! from our list.
5751     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5752     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5753       # If it failed, the variable was not from the command line. Ignore it,
5754       # but warn the user (except for BASH, which is always set by the calling BASH).
5755       if test "xCOMM" != xBASH; then
5756         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5757 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5758       fi
5759       # Try to locate tool using the code snippet
5760       for ac_prog in comm
5761 do
5762   # Extract the first word of "$ac_prog", so it can be a program name with args.
5763 set dummy $ac_prog; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_path_COMM+:} false; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   case $COMM in
5770   [\\/]* | ?:[\\/]*)
5771   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5772   ;;
5773   *)
5774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779     for ac_exec_ext in '' $ac_executable_extensions; do
5780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786   done
5787 IFS=$as_save_IFS
5788 
5789   ;;
5790 esac
5791 fi
5792 COMM=$ac_cv_path_COMM
5793 if test -n "$COMM"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5795 $as_echo "$COMM" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800 
5801 
5802   test -n "$COMM" && break
5803 done
5804 
5805     else
5806       # If it succeeded, then it was overridden by the user. We will use it
5807       # for the tool.
5808 
5809       # First remove it from the list of overridden variables, so we can test
5810       # for unknown variables in the end.
5811       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5812 
5813       # Check if we try to supply an empty value
5814       if test "x$COMM" = x; then
5815         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5816 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5817         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5818 $as_echo_n "checking for COMM... " >&6; }
5819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5820 $as_echo "disabled" >&6; }
5821       else
5822         # Check if the provided tool contains a complete path.
5823         tool_specified="$COMM"
5824         tool_basename="${tool_specified##*/}"
5825         if test "x$tool_basename" = "x$tool_specified"; then
5826           # A command without a complete path is provided, search $PATH.
5827           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5828 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5829           # Extract the first word of "$tool_basename", so it can be a program name with args.
5830 set dummy $tool_basename; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_path_COMM+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   case $COMM in
5837   [\\/]* | ?:[\\/]*)
5838   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5839   ;;
5840   *)
5841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846     for ac_exec_ext in '' $ac_executable_extensions; do
5847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853   done
5854 IFS=$as_save_IFS
5855 
5856   ;;
5857 esac
5858 fi
5859 COMM=$ac_cv_path_COMM
5860 if test -n "$COMM"; then
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5862 $as_echo "$COMM" >&6; }
5863 else
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867 
5868 
5869           if test "x$COMM" = x; then
5870             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5871           fi
5872         else
5873           # Otherwise we believe it is a complete path. Use it as it is.
5874           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5875 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5876           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5877 $as_echo_n "checking for COMM... " >&6; }
5878           if test ! -x "$tool_specified"; then
5879             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5880 $as_echo "not found" >&6; }
5881             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5882           fi
5883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5884 $as_echo "$tool_specified" >&6; }
5885         fi
5886       fi
5887     fi
5888 
5889   fi
5890 
5891 
5892 
5893   if test "x$COMM" = x; then
5894     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5895   fi
5896 
5897 
5898 
5899 
5900 
5901   # Publish this variable in the help.
5902 
5903 
5904   if [ -z "${CP+x}" ]; then
5905     # The variable is not set by user, try to locate tool using the code snippet
5906     for ac_prog in cp
5907 do
5908   # Extract the first word of "$ac_prog", so it can be a program name with args.
5909 set dummy $ac_prog; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_path_CP+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   case $CP in
5916   [\\/]* | ?:[\\/]*)
5917   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5918   ;;
5919   *)
5920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934 
5935   ;;
5936 esac
5937 fi
5938 CP=$ac_cv_path_CP
5939 if test -n "$CP"; then
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5941 $as_echo "$CP" >&6; }
5942 else
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5945 fi
5946 
5947 
5948   test -n "$CP" && break
5949 done
5950 
5951   else
5952     # The variable is set, but is it from the command line or the environment?
5953 
5954     # Try to remove the string !CP! from our list.
5955     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5956     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5957       # If it failed, the variable was not from the command line. Ignore it,
5958       # but warn the user (except for BASH, which is always set by the calling BASH).
5959       if test "xCP" != xBASH; then
5960         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5961 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5962       fi
5963       # Try to locate tool using the code snippet
5964       for ac_prog in cp
5965 do
5966   # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_path_CP+:} false; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   case $CP in
5974   [\\/]* | ?:[\\/]*)
5975   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5976   ;;
5977   *)
5978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983     for ac_exec_ext in '' $ac_executable_extensions; do
5984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990   done
5991 IFS=$as_save_IFS
5992 
5993   ;;
5994 esac
5995 fi
5996 CP=$ac_cv_path_CP
5997 if test -n "$CP"; then
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5999 $as_echo "$CP" >&6; }
6000 else
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6003 fi
6004 
6005 
6006   test -n "$CP" && break
6007 done
6008 
6009     else
6010       # If it succeeded, then it was overridden by the user. We will use it
6011       # for the tool.
6012 
6013       # First remove it from the list of overridden variables, so we can test
6014       # for unknown variables in the end.
6015       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6016 
6017       # Check if we try to supply an empty value
6018       if test "x$CP" = x; then
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6020 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6022 $as_echo_n "checking for CP... " >&6; }
6023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6024 $as_echo "disabled" >&6; }
6025       else
6026         # Check if the provided tool contains a complete path.
6027         tool_specified="$CP"
6028         tool_basename="${tool_specified##*/}"
6029         if test "x$tool_basename" = "x$tool_specified"; then
6030           # A command without a complete path is provided, search $PATH.
6031           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6032 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6033           # Extract the first word of "$tool_basename", so it can be a program name with args.
6034 set dummy $tool_basename; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_path_CP+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   case $CP in
6041   [\\/]* | ?:[\\/]*)
6042   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6043   ;;
6044   *)
6045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059 
6060   ;;
6061 esac
6062 fi
6063 CP=$ac_cv_path_CP
6064 if test -n "$CP"; then
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6066 $as_echo "$CP" >&6; }
6067 else
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071 
6072 
6073           if test "x$CP" = x; then
6074             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6075           fi
6076         else
6077           # Otherwise we believe it is a complete path. Use it as it is.
6078           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6079 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6080           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6081 $as_echo_n "checking for CP... " >&6; }
6082           if test ! -x "$tool_specified"; then
6083             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6084 $as_echo "not found" >&6; }
6085             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6086           fi
6087           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6088 $as_echo "$tool_specified" >&6; }
6089         fi
6090       fi
6091     fi
6092 
6093   fi
6094 
6095 
6096 
6097   if test "x$CP" = x; then
6098     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6099   fi
6100 
6101 
6102 
6103 
6104 
6105   # Publish this variable in the help.
6106 
6107 
6108   if [ -z "${CUT+x}" ]; then
6109     # The variable is not set by user, try to locate tool using the code snippet
6110     for ac_prog in cut
6111 do
6112   # Extract the first word of "$ac_prog", so it can be a program name with args.
6113 set dummy $ac_prog; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_path_CUT+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   case $CUT in
6120   [\\/]* | ?:[\\/]*)
6121   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6122   ;;
6123   *)
6124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127   IFS=$as_save_IFS
6128   test -z "$as_dir" && as_dir=.
6129     for ac_exec_ext in '' $ac_executable_extensions; do
6130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133     break 2
6134   fi
6135 done
6136   done
6137 IFS=$as_save_IFS
6138 
6139   ;;
6140 esac
6141 fi
6142 CUT=$ac_cv_path_CUT
6143 if test -n "$CUT"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6145 $as_echo "$CUT" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150 
6151 
6152   test -n "$CUT" && break
6153 done
6154 
6155   else
6156     # The variable is set, but is it from the command line or the environment?
6157 
6158     # Try to remove the string !CUT! from our list.
6159     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6160     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6161       # If it failed, the variable was not from the command line. Ignore it,
6162       # but warn the user (except for BASH, which is always set by the calling BASH).
6163       if test "xCUT" != xBASH; then
6164         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6165 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6166       fi
6167       # Try to locate tool using the code snippet
6168       for ac_prog in cut
6169 do
6170   # Extract the first word of "$ac_prog", so it can be a program name with args.
6171 set dummy $ac_prog; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_path_CUT+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   case $CUT in
6178   [\\/]* | ?:[\\/]*)
6179   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6180   ;;
6181   *)
6182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187     for ac_exec_ext in '' $ac_executable_extensions; do
6188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191     break 2
6192   fi
6193 done
6194   done
6195 IFS=$as_save_IFS
6196 
6197   ;;
6198 esac
6199 fi
6200 CUT=$ac_cv_path_CUT
6201 if test -n "$CUT"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6203 $as_echo "$CUT" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208 
6209 
6210   test -n "$CUT" && break
6211 done
6212 
6213     else
6214       # If it succeeded, then it was overridden by the user. We will use it
6215       # for the tool.
6216 
6217       # First remove it from the list of overridden variables, so we can test
6218       # for unknown variables in the end.
6219       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6220 
6221       # Check if we try to supply an empty value
6222       if test "x$CUT" = x; then
6223         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6224 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6225         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6226 $as_echo_n "checking for CUT... " >&6; }
6227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6228 $as_echo "disabled" >&6; }
6229       else
6230         # Check if the provided tool contains a complete path.
6231         tool_specified="$CUT"
6232         tool_basename="${tool_specified##*/}"
6233         if test "x$tool_basename" = "x$tool_specified"; then
6234           # A command without a complete path is provided, search $PATH.
6235           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6236 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6237           # Extract the first word of "$tool_basename", so it can be a program name with args.
6238 set dummy $tool_basename; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_path_CUT+:} false; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   case $CUT in
6245   [\\/]* | ?:[\\/]*)
6246   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6247   ;;
6248   *)
6249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254     for ac_exec_ext in '' $ac_executable_extensions; do
6255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6256     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261   done
6262 IFS=$as_save_IFS
6263 
6264   ;;
6265 esac
6266 fi
6267 CUT=$ac_cv_path_CUT
6268 if test -n "$CUT"; then
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6270 $as_echo "$CUT" >&6; }
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275 
6276 
6277           if test "x$CUT" = x; then
6278             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6279           fi
6280         else
6281           # Otherwise we believe it is a complete path. Use it as it is.
6282           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6283 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6284           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6285 $as_echo_n "checking for CUT... " >&6; }
6286           if test ! -x "$tool_specified"; then
6287             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6288 $as_echo "not found" >&6; }
6289             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6290           fi
6291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6292 $as_echo "$tool_specified" >&6; }
6293         fi
6294       fi
6295     fi
6296 
6297   fi
6298 
6299 
6300 
6301   if test "x$CUT" = x; then
6302     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6303   fi
6304 
6305 
6306 
6307 
6308 
6309   # Publish this variable in the help.
6310 
6311 
6312   if [ -z "${DATE+x}" ]; then
6313     # The variable is not set by user, try to locate tool using the code snippet
6314     for ac_prog in date
6315 do
6316   # Extract the first word of "$ac_prog", so it can be a program name with args.
6317 set dummy $ac_prog; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_path_DATE+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   case $DATE in
6324   [\\/]* | ?:[\\/]*)
6325   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6326   ;;
6327   *)
6328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331   IFS=$as_save_IFS
6332   test -z "$as_dir" && as_dir=.
6333     for ac_exec_ext in '' $ac_executable_extensions; do
6334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337     break 2
6338   fi
6339 done
6340   done
6341 IFS=$as_save_IFS
6342 
6343   ;;
6344 esac
6345 fi
6346 DATE=$ac_cv_path_DATE
6347 if test -n "$DATE"; then
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6349 $as_echo "$DATE" >&6; }
6350 else
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354 
6355 
6356   test -n "$DATE" && break
6357 done
6358 
6359   else
6360     # The variable is set, but is it from the command line or the environment?
6361 
6362     # Try to remove the string !DATE! from our list.
6363     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6364     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6365       # If it failed, the variable was not from the command line. Ignore it,
6366       # but warn the user (except for BASH, which is always set by the calling BASH).
6367       if test "xDATE" != xBASH; then
6368         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6369 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6370       fi
6371       # Try to locate tool using the code snippet
6372       for ac_prog in date
6373 do
6374   # Extract the first word of "$ac_prog", so it can be a program name with args.
6375 set dummy $ac_prog; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_path_DATE+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   case $DATE in
6382   [\\/]* | ?:[\\/]*)
6383   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6384   ;;
6385   *)
6386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400 
6401   ;;
6402 esac
6403 fi
6404 DATE=$ac_cv_path_DATE
6405 if test -n "$DATE"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6407 $as_echo "$DATE" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412 
6413 
6414   test -n "$DATE" && break
6415 done
6416 
6417     else
6418       # If it succeeded, then it was overridden by the user. We will use it
6419       # for the tool.
6420 
6421       # First remove it from the list of overridden variables, so we can test
6422       # for unknown variables in the end.
6423       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6424 
6425       # Check if we try to supply an empty value
6426       if test "x$DATE" = x; then
6427         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6428 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6430 $as_echo_n "checking for DATE... " >&6; }
6431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6432 $as_echo "disabled" >&6; }
6433       else
6434         # Check if the provided tool contains a complete path.
6435         tool_specified="$DATE"
6436         tool_basename="${tool_specified##*/}"
6437         if test "x$tool_basename" = "x$tool_specified"; then
6438           # A command without a complete path is provided, search $PATH.
6439           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6440 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6441           # Extract the first word of "$tool_basename", so it can be a program name with args.
6442 set dummy $tool_basename; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_path_DATE+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   case $DATE in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6451   ;;
6452   *)
6453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467 
6468   ;;
6469 esac
6470 fi
6471 DATE=$ac_cv_path_DATE
6472 if test -n "$DATE"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6474 $as_echo "$DATE" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479 
6480 
6481           if test "x$DATE" = x; then
6482             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6483           fi
6484         else
6485           # Otherwise we believe it is a complete path. Use it as it is.
6486           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6487 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6488           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6489 $as_echo_n "checking for DATE... " >&6; }
6490           if test ! -x "$tool_specified"; then
6491             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6492 $as_echo "not found" >&6; }
6493             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6494           fi
6495           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6496 $as_echo "$tool_specified" >&6; }
6497         fi
6498       fi
6499     fi
6500 
6501   fi
6502 
6503 
6504 
6505   if test "x$DATE" = x; then
6506     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6507   fi
6508 
6509 
6510 
6511 
6512 
6513   # Publish this variable in the help.
6514 
6515 
6516   if [ -z "${DIFF+x}" ]; then
6517     # The variable is not set by user, try to locate tool using the code snippet
6518     for ac_prog in gdiff diff
6519 do
6520   # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_path_DIFF+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   case $DIFF in
6528   [\\/]* | ?:[\\/]*)
6529   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6530   ;;
6531   *)
6532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546 
6547   ;;
6548 esac
6549 fi
6550 DIFF=$ac_cv_path_DIFF
6551 if test -n "$DIFF"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6553 $as_echo "$DIFF" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558 
6559 
6560   test -n "$DIFF" && break
6561 done
6562 
6563   else
6564     # The variable is set, but is it from the command line or the environment?
6565 
6566     # Try to remove the string !DIFF! from our list.
6567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6569       # If it failed, the variable was not from the command line. Ignore it,
6570       # but warn the user (except for BASH, which is always set by the calling BASH).
6571       if test "xDIFF" != xBASH; then
6572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6573 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6574       fi
6575       # Try to locate tool using the code snippet
6576       for ac_prog in gdiff diff
6577 do
6578   # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_path_DIFF+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   case $DIFF in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604 
6605   ;;
6606 esac
6607 fi
6608 DIFF=$ac_cv_path_DIFF
6609 if test -n "$DIFF"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6611 $as_echo "$DIFF" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616 
6617 
6618   test -n "$DIFF" && break
6619 done
6620 
6621     else
6622       # If it succeeded, then it was overridden by the user. We will use it
6623       # for the tool.
6624 
6625       # First remove it from the list of overridden variables, so we can test
6626       # for unknown variables in the end.
6627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6628 
6629       # Check if we try to supply an empty value
6630       if test "x$DIFF" = x; then
6631         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6632 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6634 $as_echo_n "checking for DIFF... " >&6; }
6635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6636 $as_echo "disabled" >&6; }
6637       else
6638         # Check if the provided tool contains a complete path.
6639         tool_specified="$DIFF"
6640         tool_basename="${tool_specified##*/}"
6641         if test "x$tool_basename" = "x$tool_specified"; then
6642           # A command without a complete path is provided, search $PATH.
6643           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6644 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6645           # Extract the first word of "$tool_basename", so it can be a program name with args.
6646 set dummy $tool_basename; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_path_DIFF+:} false; then :
6650   $as_echo_n "(cached) " >&6
6651 else
6652   case $DIFF in
6653   [\\/]* | ?:[\\/]*)
6654   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6655   ;;
6656   *)
6657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671 
6672   ;;
6673 esac
6674 fi
6675 DIFF=$ac_cv_path_DIFF
6676 if test -n "$DIFF"; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6678 $as_echo "$DIFF" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6682 fi
6683 
6684 
6685           if test "x$DIFF" = x; then
6686             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6687           fi
6688         else
6689           # Otherwise we believe it is a complete path. Use it as it is.
6690           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6691 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6692           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6693 $as_echo_n "checking for DIFF... " >&6; }
6694           if test ! -x "$tool_specified"; then
6695             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6696 $as_echo "not found" >&6; }
6697             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6698           fi
6699           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6700 $as_echo "$tool_specified" >&6; }
6701         fi
6702       fi
6703     fi
6704 
6705   fi
6706 
6707 
6708 
6709   if test "x$DIFF" = x; then
6710     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6711   fi
6712 
6713 
6714 
6715 
6716 
6717   # Publish this variable in the help.
6718 
6719 
6720   if [ -z "${DIRNAME+x}" ]; then
6721     # The variable is not set by user, try to locate tool using the code snippet
6722     for ac_prog in dirname
6723 do
6724   # Extract the first word of "$ac_prog", so it can be a program name with args.
6725 set dummy $ac_prog; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_path_DIRNAME+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   case $DIRNAME in
6732   [\\/]* | ?:[\\/]*)
6733   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6734   ;;
6735   *)
6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741     for ac_exec_ext in '' $ac_executable_extensions; do
6742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748   done
6749 IFS=$as_save_IFS
6750 
6751   ;;
6752 esac
6753 fi
6754 DIRNAME=$ac_cv_path_DIRNAME
6755 if test -n "$DIRNAME"; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6757 $as_echo "$DIRNAME" >&6; }
6758 else
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762 
6763 
6764   test -n "$DIRNAME" && break
6765 done
6766 
6767   else
6768     # The variable is set, but is it from the command line or the environment?
6769 
6770     # Try to remove the string !DIRNAME! from our list.
6771     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6772     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6773       # If it failed, the variable was not from the command line. Ignore it,
6774       # but warn the user (except for BASH, which is always set by the calling BASH).
6775       if test "xDIRNAME" != xBASH; then
6776         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6777 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6778       fi
6779       # Try to locate tool using the code snippet
6780       for ac_prog in dirname
6781 do
6782   # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_path_DIRNAME+:} false; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   case $DIRNAME in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799     for ac_exec_ext in '' $ac_executable_extensions; do
6800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806   done
6807 IFS=$as_save_IFS
6808 
6809   ;;
6810 esac
6811 fi
6812 DIRNAME=$ac_cv_path_DIRNAME
6813 if test -n "$DIRNAME"; then
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6815 $as_echo "$DIRNAME" >&6; }
6816 else
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820 
6821 
6822   test -n "$DIRNAME" && break
6823 done
6824 
6825     else
6826       # If it succeeded, then it was overridden by the user. We will use it
6827       # for the tool.
6828 
6829       # First remove it from the list of overridden variables, so we can test
6830       # for unknown variables in the end.
6831       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6832 
6833       # Check if we try to supply an empty value
6834       if test "x$DIRNAME" = x; then
6835         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6836 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6838 $as_echo_n "checking for DIRNAME... " >&6; }
6839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6840 $as_echo "disabled" >&6; }
6841       else
6842         # Check if the provided tool contains a complete path.
6843         tool_specified="$DIRNAME"
6844         tool_basename="${tool_specified##*/}"
6845         if test "x$tool_basename" = "x$tool_specified"; then
6846           # A command without a complete path is provided, search $PATH.
6847           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6848 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6849           # Extract the first word of "$tool_basename", so it can be a program name with args.
6850 set dummy $tool_basename; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_path_DIRNAME+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   case $DIRNAME in
6857   [\\/]* | ?:[\\/]*)
6858   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6859   ;;
6860   *)
6861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873   done
6874 IFS=$as_save_IFS
6875 
6876   ;;
6877 esac
6878 fi
6879 DIRNAME=$ac_cv_path_DIRNAME
6880 if test -n "$DIRNAME"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6882 $as_echo "$DIRNAME" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887 
6888 
6889           if test "x$DIRNAME" = x; then
6890             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6891           fi
6892         else
6893           # Otherwise we believe it is a complete path. Use it as it is.
6894           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6895 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6896           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6897 $as_echo_n "checking for DIRNAME... " >&6; }
6898           if test ! -x "$tool_specified"; then
6899             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6900 $as_echo "not found" >&6; }
6901             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6902           fi
6903           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6904 $as_echo "$tool_specified" >&6; }
6905         fi
6906       fi
6907     fi
6908 
6909   fi
6910 
6911 
6912 
6913   if test "x$DIRNAME" = x; then
6914     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6915   fi
6916 
6917 
6918 
6919 
6920 
6921   # Publish this variable in the help.
6922 
6923 
6924   if [ -z "${ECHO+x}" ]; then
6925     # The variable is not set by user, try to locate tool using the code snippet
6926     for ac_prog in echo
6927 do
6928   # Extract the first word of "$ac_prog", so it can be a program name with args.
6929 set dummy $ac_prog; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if ${ac_cv_path_ECHO+:} false; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   case $ECHO in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954 
6955   ;;
6956 esac
6957 fi
6958 ECHO=$ac_cv_path_ECHO
6959 if test -n "$ECHO"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6961 $as_echo "$ECHO" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966 
6967 
6968   test -n "$ECHO" && break
6969 done
6970 
6971   else
6972     # The variable is set, but is it from the command line or the environment?
6973 
6974     # Try to remove the string !ECHO! from our list.
6975     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6976     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6977       # If it failed, the variable was not from the command line. Ignore it,
6978       # but warn the user (except for BASH, which is always set by the calling BASH).
6979       if test "xECHO" != xBASH; then
6980         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6981 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6982       fi
6983       # Try to locate tool using the code snippet
6984       for ac_prog in echo
6985 do
6986   # Extract the first word of "$ac_prog", so it can be a program name with args.
6987 set dummy $ac_prog; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_path_ECHO+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   case $ECHO in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003     for ac_exec_ext in '' $ac_executable_extensions; do
7004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010   done
7011 IFS=$as_save_IFS
7012 
7013   ;;
7014 esac
7015 fi
7016 ECHO=$ac_cv_path_ECHO
7017 if test -n "$ECHO"; then
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7019 $as_echo "$ECHO" >&6; }
7020 else
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024 
7025 
7026   test -n "$ECHO" && break
7027 done
7028 
7029     else
7030       # If it succeeded, then it was overridden by the user. We will use it
7031       # for the tool.
7032 
7033       # First remove it from the list of overridden variables, so we can test
7034       # for unknown variables in the end.
7035       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7036 
7037       # Check if we try to supply an empty value
7038       if test "x$ECHO" = x; then
7039         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7040 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7042 $as_echo_n "checking for ECHO... " >&6; }
7043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7044 $as_echo "disabled" >&6; }
7045       else
7046         # Check if the provided tool contains a complete path.
7047         tool_specified="$ECHO"
7048         tool_basename="${tool_specified##*/}"
7049         if test "x$tool_basename" = "x$tool_specified"; then
7050           # A command without a complete path is provided, search $PATH.
7051           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7052 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7053           # Extract the first word of "$tool_basename", so it can be a program name with args.
7054 set dummy $tool_basename; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_path_ECHO+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   case $ECHO in
7061   [\\/]* | ?:[\\/]*)
7062   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7063   ;;
7064   *)
7065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079 
7080   ;;
7081 esac
7082 fi
7083 ECHO=$ac_cv_path_ECHO
7084 if test -n "$ECHO"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7086 $as_echo "$ECHO" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091 
7092 
7093           if test "x$ECHO" = x; then
7094             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7095           fi
7096         else
7097           # Otherwise we believe it is a complete path. Use it as it is.
7098           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7099 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7100           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7101 $as_echo_n "checking for ECHO... " >&6; }
7102           if test ! -x "$tool_specified"; then
7103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7104 $as_echo "not found" >&6; }
7105             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7106           fi
7107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7108 $as_echo "$tool_specified" >&6; }
7109         fi
7110       fi
7111     fi
7112 
7113   fi
7114 
7115 
7116 
7117   if test "x$ECHO" = x; then
7118     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7119   fi
7120 
7121 
7122 
7123 
7124 
7125   # Publish this variable in the help.
7126 
7127 
7128   if [ -z "${EXPR+x}" ]; then
7129     # The variable is not set by user, try to locate tool using the code snippet
7130     for ac_prog in expr
7131 do
7132   # Extract the first word of "$ac_prog", so it can be a program name with args.
7133 set dummy $ac_prog; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_EXPR+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   case $EXPR in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158 
7159   ;;
7160 esac
7161 fi
7162 EXPR=$ac_cv_path_EXPR
7163 if test -n "$EXPR"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7165 $as_echo "$EXPR" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170 
7171 
7172   test -n "$EXPR" && break
7173 done
7174 
7175   else
7176     # The variable is set, but is it from the command line or the environment?
7177 
7178     # Try to remove the string !EXPR! from our list.
7179     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7180     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7181       # If it failed, the variable was not from the command line. Ignore it,
7182       # but warn the user (except for BASH, which is always set by the calling BASH).
7183       if test "xEXPR" != xBASH; then
7184         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7185 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7186       fi
7187       # Try to locate tool using the code snippet
7188       for ac_prog in expr
7189 do
7190   # Extract the first word of "$ac_prog", so it can be a program name with args.
7191 set dummy $ac_prog; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_path_EXPR+:} false; then :
7195   $as_echo_n "(cached) " >&6
7196 else
7197   case $EXPR in
7198   [\\/]* | ?:[\\/]*)
7199   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7200   ;;
7201   *)
7202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7204 do
7205   IFS=$as_save_IFS
7206   test -z "$as_dir" && as_dir=.
7207     for ac_exec_ext in '' $ac_executable_extensions; do
7208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211     break 2
7212   fi
7213 done
7214   done
7215 IFS=$as_save_IFS
7216 
7217   ;;
7218 esac
7219 fi
7220 EXPR=$ac_cv_path_EXPR
7221 if test -n "$EXPR"; then
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7223 $as_echo "$EXPR" >&6; }
7224 else
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228 
7229 
7230   test -n "$EXPR" && break
7231 done
7232 
7233     else
7234       # If it succeeded, then it was overridden by the user. We will use it
7235       # for the tool.
7236 
7237       # First remove it from the list of overridden variables, so we can test
7238       # for unknown variables in the end.
7239       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7240 
7241       # Check if we try to supply an empty value
7242       if test "x$EXPR" = x; then
7243         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7244 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7246 $as_echo_n "checking for EXPR... " >&6; }
7247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7248 $as_echo "disabled" >&6; }
7249       else
7250         # Check if the provided tool contains a complete path.
7251         tool_specified="$EXPR"
7252         tool_basename="${tool_specified##*/}"
7253         if test "x$tool_basename" = "x$tool_specified"; then
7254           # A command without a complete path is provided, search $PATH.
7255           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7256 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7257           # Extract the first word of "$tool_basename", so it can be a program name with args.
7258 set dummy $tool_basename; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_path_EXPR+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   case $EXPR in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283 
7284   ;;
7285 esac
7286 fi
7287 EXPR=$ac_cv_path_EXPR
7288 if test -n "$EXPR"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7290 $as_echo "$EXPR" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295 
7296 
7297           if test "x$EXPR" = x; then
7298             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7299           fi
7300         else
7301           # Otherwise we believe it is a complete path. Use it as it is.
7302           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7303 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7304           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7305 $as_echo_n "checking for EXPR... " >&6; }
7306           if test ! -x "$tool_specified"; then
7307             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7308 $as_echo "not found" >&6; }
7309             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7310           fi
7311           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7312 $as_echo "$tool_specified" >&6; }
7313         fi
7314       fi
7315     fi
7316 
7317   fi
7318 
7319 
7320 
7321   if test "x$EXPR" = x; then
7322     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7323   fi
7324 
7325 
7326 
7327 
7328 
7329   # Publish this variable in the help.
7330 
7331 
7332   if [ -z "${FILE+x}" ]; then
7333     # The variable is not set by user, try to locate tool using the code snippet
7334     for ac_prog in file
7335 do
7336   # Extract the first word of "$ac_prog", so it can be a program name with args.
7337 set dummy $ac_prog; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_path_FILE+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   case $FILE in
7344   [\\/]* | ?:[\\/]*)
7345   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7346   ;;
7347   *)
7348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362 
7363   ;;
7364 esac
7365 fi
7366 FILE=$ac_cv_path_FILE
7367 if test -n "$FILE"; then
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7369 $as_echo "$FILE" >&6; }
7370 else
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374 
7375 
7376   test -n "$FILE" && break
7377 done
7378 
7379   else
7380     # The variable is set, but is it from the command line or the environment?
7381 
7382     # Try to remove the string !FILE! from our list.
7383     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7384     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7385       # If it failed, the variable was not from the command line. Ignore it,
7386       # but warn the user (except for BASH, which is always set by the calling BASH).
7387       if test "xFILE" != xBASH; then
7388         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7389 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7390       fi
7391       # Try to locate tool using the code snippet
7392       for ac_prog in file
7393 do
7394   # Extract the first word of "$ac_prog", so it can be a program name with args.
7395 set dummy $ac_prog; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_path_FILE+:} false; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   case $FILE in
7402   [\\/]* | ?:[\\/]*)
7403   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7404   ;;
7405   *)
7406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7413     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420 
7421   ;;
7422 esac
7423 fi
7424 FILE=$ac_cv_path_FILE
7425 if test -n "$FILE"; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7427 $as_echo "$FILE" >&6; }
7428 else
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432 
7433 
7434   test -n "$FILE" && break
7435 done
7436 
7437     else
7438       # If it succeeded, then it was overridden by the user. We will use it
7439       # for the tool.
7440 
7441       # First remove it from the list of overridden variables, so we can test
7442       # for unknown variables in the end.
7443       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7444 
7445       # Check if we try to supply an empty value
7446       if test "x$FILE" = x; then
7447         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7448 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7450 $as_echo_n "checking for FILE... " >&6; }
7451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7452 $as_echo "disabled" >&6; }
7453       else
7454         # Check if the provided tool contains a complete path.
7455         tool_specified="$FILE"
7456         tool_basename="${tool_specified##*/}"
7457         if test "x$tool_basename" = "x$tool_specified"; then
7458           # A command without a complete path is provided, search $PATH.
7459           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7460 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7461           # Extract the first word of "$tool_basename", so it can be a program name with args.
7462 set dummy $tool_basename; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_path_FILE+:} false; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   case $FILE in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478     for ac_exec_ext in '' $ac_executable_extensions; do
7479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485   done
7486 IFS=$as_save_IFS
7487 
7488   ;;
7489 esac
7490 fi
7491 FILE=$ac_cv_path_FILE
7492 if test -n "$FILE"; then
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7494 $as_echo "$FILE" >&6; }
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499 
7500 
7501           if test "x$FILE" = x; then
7502             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7503           fi
7504         else
7505           # Otherwise we believe it is a complete path. Use it as it is.
7506           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7507 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7508           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7509 $as_echo_n "checking for FILE... " >&6; }
7510           if test ! -x "$tool_specified"; then
7511             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7512 $as_echo "not found" >&6; }
7513             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7514           fi
7515           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7516 $as_echo "$tool_specified" >&6; }
7517         fi
7518       fi
7519     fi
7520 
7521   fi
7522 
7523 
7524 
7525   if test "x$FILE" = x; then
7526     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7527   fi
7528 
7529 
7530 
7531 
7532 
7533   # Publish this variable in the help.
7534 
7535 
7536   if [ -z "${FIND+x}" ]; then
7537     # The variable is not set by user, try to locate tool using the code snippet
7538     for ac_prog in find
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_path_FIND+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   case $FIND in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566 
7567   ;;
7568 esac
7569 fi
7570 FIND=$ac_cv_path_FIND
7571 if test -n "$FIND"; then
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7573 $as_echo "$FIND" >&6; }
7574 else
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577 fi
7578 
7579 
7580   test -n "$FIND" && break
7581 done
7582 
7583   else
7584     # The variable is set, but is it from the command line or the environment?
7585 
7586     # Try to remove the string !FIND! from our list.
7587     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7588     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7589       # If it failed, the variable was not from the command line. Ignore it,
7590       # but warn the user (except for BASH, which is always set by the calling BASH).
7591       if test "xFIND" != xBASH; then
7592         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7593 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7594       fi
7595       # Try to locate tool using the code snippet
7596       for ac_prog in find
7597 do
7598   # Extract the first word of "$ac_prog", so it can be a program name with args.
7599 set dummy $ac_prog; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_path_FIND+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   case $FIND in
7606   [\\/]* | ?:[\\/]*)
7607   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7608   ;;
7609   *)
7610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613   IFS=$as_save_IFS
7614   test -z "$as_dir" && as_dir=.
7615     for ac_exec_ext in '' $ac_executable_extensions; do
7616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619     break 2
7620   fi
7621 done
7622   done
7623 IFS=$as_save_IFS
7624 
7625   ;;
7626 esac
7627 fi
7628 FIND=$ac_cv_path_FIND
7629 if test -n "$FIND"; then
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7631 $as_echo "$FIND" >&6; }
7632 else
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636 
7637 
7638   test -n "$FIND" && break
7639 done
7640 
7641     else
7642       # If it succeeded, then it was overridden by the user. We will use it
7643       # for the tool.
7644 
7645       # First remove it from the list of overridden variables, so we can test
7646       # for unknown variables in the end.
7647       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7648 
7649       # Check if we try to supply an empty value
7650       if test "x$FIND" = x; then
7651         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7652 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7654 $as_echo_n "checking for FIND... " >&6; }
7655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7656 $as_echo "disabled" >&6; }
7657       else
7658         # Check if the provided tool contains a complete path.
7659         tool_specified="$FIND"
7660         tool_basename="${tool_specified##*/}"
7661         if test "x$tool_basename" = "x$tool_specified"; then
7662           # A command without a complete path is provided, search $PATH.
7663           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7664 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7665           # Extract the first word of "$tool_basename", so it can be a program name with args.
7666 set dummy $tool_basename; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_path_FIND+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   case $FIND in
7673   [\\/]* | ?:[\\/]*)
7674   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7675   ;;
7676   *)
7677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682     for ac_exec_ext in '' $ac_executable_extensions; do
7683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689   done
7690 IFS=$as_save_IFS
7691 
7692   ;;
7693 esac
7694 fi
7695 FIND=$ac_cv_path_FIND
7696 if test -n "$FIND"; then
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7698 $as_echo "$FIND" >&6; }
7699 else
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703 
7704 
7705           if test "x$FIND" = x; then
7706             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7707           fi
7708         else
7709           # Otherwise we believe it is a complete path. Use it as it is.
7710           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7711 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7712           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7713 $as_echo_n "checking for FIND... " >&6; }
7714           if test ! -x "$tool_specified"; then
7715             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7716 $as_echo "not found" >&6; }
7717             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7718           fi
7719           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7720 $as_echo "$tool_specified" >&6; }
7721         fi
7722       fi
7723     fi
7724 
7725   fi
7726 
7727 
7728 
7729   if test "x$FIND" = x; then
7730     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7731   fi
7732 
7733 
7734 
7735 
7736 
7737   # Publish this variable in the help.
7738 
7739 
7740   if [ -z "${HEAD+x}" ]; then
7741     # The variable is not set by user, try to locate tool using the code snippet
7742     for ac_prog in head
7743 do
7744   # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_path_HEAD+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   case $HEAD in
7752   [\\/]* | ?:[\\/]*)
7753   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7754   ;;
7755   *)
7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759   IFS=$as_save_IFS
7760   test -z "$as_dir" && as_dir=.
7761     for ac_exec_ext in '' $ac_executable_extensions; do
7762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765     break 2
7766   fi
7767 done
7768   done
7769 IFS=$as_save_IFS
7770 
7771   ;;
7772 esac
7773 fi
7774 HEAD=$ac_cv_path_HEAD
7775 if test -n "$HEAD"; then
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7777 $as_echo "$HEAD" >&6; }
7778 else
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782 
7783 
7784   test -n "$HEAD" && break
7785 done
7786 
7787   else
7788     # The variable is set, but is it from the command line or the environment?
7789 
7790     # Try to remove the string !HEAD! from our list.
7791     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7792     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7793       # If it failed, the variable was not from the command line. Ignore it,
7794       # but warn the user (except for BASH, which is always set by the calling BASH).
7795       if test "xHEAD" != xBASH; then
7796         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7797 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7798       fi
7799       # Try to locate tool using the code snippet
7800       for ac_prog in head
7801 do
7802   # Extract the first word of "$ac_prog", so it can be a program name with args.
7803 set dummy $ac_prog; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if ${ac_cv_path_HEAD+:} false; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   case $HEAD in
7810   [\\/]* | ?:[\\/]*)
7811   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7812   ;;
7813   *)
7814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817   IFS=$as_save_IFS
7818   test -z "$as_dir" && as_dir=.
7819     for ac_exec_ext in '' $ac_executable_extensions; do
7820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823     break 2
7824   fi
7825 done
7826   done
7827 IFS=$as_save_IFS
7828 
7829   ;;
7830 esac
7831 fi
7832 HEAD=$ac_cv_path_HEAD
7833 if test -n "$HEAD"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7835 $as_echo "$HEAD" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840 
7841 
7842   test -n "$HEAD" && break
7843 done
7844 
7845     else
7846       # If it succeeded, then it was overridden by the user. We will use it
7847       # for the tool.
7848 
7849       # First remove it from the list of overridden variables, so we can test
7850       # for unknown variables in the end.
7851       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7852 
7853       # Check if we try to supply an empty value
7854       if test "x$HEAD" = x; then
7855         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7856 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7857         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7858 $as_echo_n "checking for HEAD... " >&6; }
7859         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7860 $as_echo "disabled" >&6; }
7861       else
7862         # Check if the provided tool contains a complete path.
7863         tool_specified="$HEAD"
7864         tool_basename="${tool_specified##*/}"
7865         if test "x$tool_basename" = "x$tool_specified"; then
7866           # A command without a complete path is provided, search $PATH.
7867           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7868 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7869           # Extract the first word of "$tool_basename", so it can be a program name with args.
7870 set dummy $tool_basename; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_path_HEAD+:} false; then :
7874   $as_echo_n "(cached) " >&6
7875 else
7876   case $HEAD in
7877   [\\/]* | ?:[\\/]*)
7878   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7879   ;;
7880   *)
7881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884   IFS=$as_save_IFS
7885   test -z "$as_dir" && as_dir=.
7886     for ac_exec_ext in '' $ac_executable_extensions; do
7887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890     break 2
7891   fi
7892 done
7893   done
7894 IFS=$as_save_IFS
7895 
7896   ;;
7897 esac
7898 fi
7899 HEAD=$ac_cv_path_HEAD
7900 if test -n "$HEAD"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7902 $as_echo "$HEAD" >&6; }
7903 else
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907 
7908 
7909           if test "x$HEAD" = x; then
7910             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7911           fi
7912         else
7913           # Otherwise we believe it is a complete path. Use it as it is.
7914           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7915 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7916           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7917 $as_echo_n "checking for HEAD... " >&6; }
7918           if test ! -x "$tool_specified"; then
7919             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7920 $as_echo "not found" >&6; }
7921             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7922           fi
7923           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7924 $as_echo "$tool_specified" >&6; }
7925         fi
7926       fi
7927     fi
7928 
7929   fi
7930 
7931 
7932 
7933   if test "x$HEAD" = x; then
7934     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7935   fi
7936 
7937 
7938 
7939 
7940 
7941   # Publish this variable in the help.
7942 
7943 
7944   if [ -z "${LN+x}" ]; then
7945     # The variable is not set by user, try to locate tool using the code snippet
7946     for ac_prog in ln
7947 do
7948   # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_path_LN+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   case $LN in
7956   [\\/]* | ?:[\\/]*)
7957   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7958   ;;
7959   *)
7960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965     for ac_exec_ext in '' $ac_executable_extensions; do
7966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972   done
7973 IFS=$as_save_IFS
7974 
7975   ;;
7976 esac
7977 fi
7978 LN=$ac_cv_path_LN
7979 if test -n "$LN"; then
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7981 $as_echo "$LN" >&6; }
7982 else
7983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986 
7987 
7988   test -n "$LN" && break
7989 done
7990 
7991   else
7992     # The variable is set, but is it from the command line or the environment?
7993 
7994     # Try to remove the string !LN! from our list.
7995     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7996     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7997       # If it failed, the variable was not from the command line. Ignore it,
7998       # but warn the user (except for BASH, which is always set by the calling BASH).
7999       if test "xLN" != xBASH; then
8000         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8001 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8002       fi
8003       # Try to locate tool using the code snippet
8004       for ac_prog in ln
8005 do
8006   # Extract the first word of "$ac_prog", so it can be a program name with args.
8007 set dummy $ac_prog; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_path_LN+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   case $LN in
8014   [\\/]* | ?:[\\/]*)
8015   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8016   ;;
8017   *)
8018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 for as_dir in $PATH
8020 do
8021   IFS=$as_save_IFS
8022   test -z "$as_dir" && as_dir=.
8023     for ac_exec_ext in '' $ac_executable_extensions; do
8024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027     break 2
8028   fi
8029 done
8030   done
8031 IFS=$as_save_IFS
8032 
8033   ;;
8034 esac
8035 fi
8036 LN=$ac_cv_path_LN
8037 if test -n "$LN"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8039 $as_echo "$LN" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044 
8045 
8046   test -n "$LN" && break
8047 done
8048 
8049     else
8050       # If it succeeded, then it was overridden by the user. We will use it
8051       # for the tool.
8052 
8053       # First remove it from the list of overridden variables, so we can test
8054       # for unknown variables in the end.
8055       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8056 
8057       # Check if we try to supply an empty value
8058       if test "x$LN" = x; then
8059         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8060 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8061         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8062 $as_echo_n "checking for LN... " >&6; }
8063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8064 $as_echo "disabled" >&6; }
8065       else
8066         # Check if the provided tool contains a complete path.
8067         tool_specified="$LN"
8068         tool_basename="${tool_specified##*/}"
8069         if test "x$tool_basename" = "x$tool_specified"; then
8070           # A command without a complete path is provided, search $PATH.
8071           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8072 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8073           # Extract the first word of "$tool_basename", so it can be a program name with args.
8074 set dummy $tool_basename; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_path_LN+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   case $LN in
8081   [\\/]* | ?:[\\/]*)
8082   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8083   ;;
8084   *)
8085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088   IFS=$as_save_IFS
8089   test -z "$as_dir" && as_dir=.
8090     for ac_exec_ext in '' $ac_executable_extensions; do
8091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094     break 2
8095   fi
8096 done
8097   done
8098 IFS=$as_save_IFS
8099 
8100   ;;
8101 esac
8102 fi
8103 LN=$ac_cv_path_LN
8104 if test -n "$LN"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8106 $as_echo "$LN" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111 
8112 
8113           if test "x$LN" = x; then
8114             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8115           fi
8116         else
8117           # Otherwise we believe it is a complete path. Use it as it is.
8118           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8119 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8120           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8121 $as_echo_n "checking for LN... " >&6; }
8122           if test ! -x "$tool_specified"; then
8123             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8124 $as_echo "not found" >&6; }
8125             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8126           fi
8127           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8128 $as_echo "$tool_specified" >&6; }
8129         fi
8130       fi
8131     fi
8132 
8133   fi
8134 
8135 
8136 
8137   if test "x$LN" = x; then
8138     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8139   fi
8140 
8141 
8142 
8143 
8144 
8145   # Publish this variable in the help.
8146 
8147 
8148   if [ -z "${LS+x}" ]; then
8149     # The variable is not set by user, try to locate tool using the code snippet
8150     for ac_prog in ls
8151 do
8152   # Extract the first word of "$ac_prog", so it can be a program name with args.
8153 set dummy $ac_prog; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_path_LS+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   case $LS in
8160   [\\/]* | ?:[\\/]*)
8161   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8162   ;;
8163   *)
8164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167   IFS=$as_save_IFS
8168   test -z "$as_dir" && as_dir=.
8169     for ac_exec_ext in '' $ac_executable_extensions; do
8170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173     break 2
8174   fi
8175 done
8176   done
8177 IFS=$as_save_IFS
8178 
8179   ;;
8180 esac
8181 fi
8182 LS=$ac_cv_path_LS
8183 if test -n "$LS"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8185 $as_echo "$LS" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190 
8191 
8192   test -n "$LS" && break
8193 done
8194 
8195   else
8196     # The variable is set, but is it from the command line or the environment?
8197 
8198     # Try to remove the string !LS! from our list.
8199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8201       # If it failed, the variable was not from the command line. Ignore it,
8202       # but warn the user (except for BASH, which is always set by the calling BASH).
8203       if test "xLS" != xBASH; then
8204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8205 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8206       fi
8207       # Try to locate tool using the code snippet
8208       for ac_prog in ls
8209 do
8210   # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_path_LS+:} false; then :
8215   $as_echo_n "(cached) " >&6
8216 else
8217   case $LS in
8218   [\\/]* | ?:[\\/]*)
8219   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8220   ;;
8221   *)
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227     for ac_exec_ext in '' $ac_executable_extensions; do
8228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234   done
8235 IFS=$as_save_IFS
8236 
8237   ;;
8238 esac
8239 fi
8240 LS=$ac_cv_path_LS
8241 if test -n "$LS"; then
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8243 $as_echo "$LS" >&6; }
8244 else
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248 
8249 
8250   test -n "$LS" && break
8251 done
8252 
8253     else
8254       # If it succeeded, then it was overridden by the user. We will use it
8255       # for the tool.
8256 
8257       # First remove it from the list of overridden variables, so we can test
8258       # for unknown variables in the end.
8259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8260 
8261       # Check if we try to supply an empty value
8262       if test "x$LS" = x; then
8263         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8264 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8266 $as_echo_n "checking for LS... " >&6; }
8267         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8268 $as_echo "disabled" >&6; }
8269       else
8270         # Check if the provided tool contains a complete path.
8271         tool_specified="$LS"
8272         tool_basename="${tool_specified##*/}"
8273         if test "x$tool_basename" = "x$tool_specified"; then
8274           # A command without a complete path is provided, search $PATH.
8275           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8276 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8277           # Extract the first word of "$tool_basename", so it can be a program name with args.
8278 set dummy $tool_basename; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_path_LS+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   case $LS in
8285   [\\/]* | ?:[\\/]*)
8286   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8287   ;;
8288   *)
8289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292   IFS=$as_save_IFS
8293   test -z "$as_dir" && as_dir=.
8294     for ac_exec_ext in '' $ac_executable_extensions; do
8295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298     break 2
8299   fi
8300 done
8301   done
8302 IFS=$as_save_IFS
8303 
8304   ;;
8305 esac
8306 fi
8307 LS=$ac_cv_path_LS
8308 if test -n "$LS"; then
8309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8310 $as_echo "$LS" >&6; }
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315 
8316 
8317           if test "x$LS" = x; then
8318             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8319           fi
8320         else
8321           # Otherwise we believe it is a complete path. Use it as it is.
8322           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8323 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8324           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8325 $as_echo_n "checking for LS... " >&6; }
8326           if test ! -x "$tool_specified"; then
8327             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8328 $as_echo "not found" >&6; }
8329             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8330           fi
8331           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8332 $as_echo "$tool_specified" >&6; }
8333         fi
8334       fi
8335     fi
8336 
8337   fi
8338 
8339 
8340 
8341   if test "x$LS" = x; then
8342     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8343   fi
8344 
8345 
8346 
8347 
8348 
8349   # Publish this variable in the help.
8350 
8351 
8352   if [ -z "${MKDIR+x}" ]; then
8353     # The variable is not set by user, try to locate tool using the code snippet
8354     for ac_prog in mkdir
8355 do
8356   # Extract the first word of "$ac_prog", so it can be a program name with args.
8357 set dummy $ac_prog; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_path_MKDIR+:} false; then :
8361   $as_echo_n "(cached) " >&6
8362 else
8363   case $MKDIR in
8364   [\\/]* | ?:[\\/]*)
8365   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8366   ;;
8367   *)
8368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 for as_dir in $PATH
8370 do
8371   IFS=$as_save_IFS
8372   test -z "$as_dir" && as_dir=.
8373     for ac_exec_ext in '' $ac_executable_extensions; do
8374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377     break 2
8378   fi
8379 done
8380   done
8381 IFS=$as_save_IFS
8382 
8383   ;;
8384 esac
8385 fi
8386 MKDIR=$ac_cv_path_MKDIR
8387 if test -n "$MKDIR"; then
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8389 $as_echo "$MKDIR" >&6; }
8390 else
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394 
8395 
8396   test -n "$MKDIR" && break
8397 done
8398 
8399   else
8400     # The variable is set, but is it from the command line or the environment?
8401 
8402     # Try to remove the string !MKDIR! from our list.
8403     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8404     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8405       # If it failed, the variable was not from the command line. Ignore it,
8406       # but warn the user (except for BASH, which is always set by the calling BASH).
8407       if test "xMKDIR" != xBASH; then
8408         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8409 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8410       fi
8411       # Try to locate tool using the code snippet
8412       for ac_prog in mkdir
8413 do
8414   # Extract the first word of "$ac_prog", so it can be a program name with args.
8415 set dummy $ac_prog; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_path_MKDIR+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   case $MKDIR in
8422   [\\/]* | ?:[\\/]*)
8423   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8424   ;;
8425   *)
8426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429   IFS=$as_save_IFS
8430   test -z "$as_dir" && as_dir=.
8431     for ac_exec_ext in '' $ac_executable_extensions; do
8432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8433     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435     break 2
8436   fi
8437 done
8438   done
8439 IFS=$as_save_IFS
8440 
8441   ;;
8442 esac
8443 fi
8444 MKDIR=$ac_cv_path_MKDIR
8445 if test -n "$MKDIR"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8447 $as_echo "$MKDIR" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452 
8453 
8454   test -n "$MKDIR" && break
8455 done
8456 
8457     else
8458       # If it succeeded, then it was overridden by the user. We will use it
8459       # for the tool.
8460 
8461       # First remove it from the list of overridden variables, so we can test
8462       # for unknown variables in the end.
8463       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8464 
8465       # Check if we try to supply an empty value
8466       if test "x$MKDIR" = x; then
8467         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8468 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8469         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8470 $as_echo_n "checking for MKDIR... " >&6; }
8471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8472 $as_echo "disabled" >&6; }
8473       else
8474         # Check if the provided tool contains a complete path.
8475         tool_specified="$MKDIR"
8476         tool_basename="${tool_specified##*/}"
8477         if test "x$tool_basename" = "x$tool_specified"; then
8478           # A command without a complete path is provided, search $PATH.
8479           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8480 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8481           # Extract the first word of "$tool_basename", so it can be a program name with args.
8482 set dummy $tool_basename; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_path_MKDIR+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   case $MKDIR in
8489   [\\/]* | ?:[\\/]*)
8490   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8491   ;;
8492   *)
8493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   test -z "$as_dir" && as_dir=.
8498     for ac_exec_ext in '' $ac_executable_extensions; do
8499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8502     break 2
8503   fi
8504 done
8505   done
8506 IFS=$as_save_IFS
8507 
8508   ;;
8509 esac
8510 fi
8511 MKDIR=$ac_cv_path_MKDIR
8512 if test -n "$MKDIR"; then
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8514 $as_echo "$MKDIR" >&6; }
8515 else
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8518 fi
8519 
8520 
8521           if test "x$MKDIR" = x; then
8522             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8523           fi
8524         else
8525           # Otherwise we believe it is a complete path. Use it as it is.
8526           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8527 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8528           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8529 $as_echo_n "checking for MKDIR... " >&6; }
8530           if test ! -x "$tool_specified"; then
8531             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8532 $as_echo "not found" >&6; }
8533             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8534           fi
8535           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8536 $as_echo "$tool_specified" >&6; }
8537         fi
8538       fi
8539     fi
8540 
8541   fi
8542 
8543 
8544 
8545   if test "x$MKDIR" = x; then
8546     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8547   fi
8548 
8549 
8550 
8551 
8552 
8553   # Publish this variable in the help.
8554 
8555 
8556   if [ -z "${MKTEMP+x}" ]; then
8557     # The variable is not set by user, try to locate tool using the code snippet
8558     for ac_prog in mktemp
8559 do
8560   # Extract the first word of "$ac_prog", so it can be a program name with args.
8561 set dummy $ac_prog; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_path_MKTEMP+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   case $MKTEMP in
8568   [\\/]* | ?:[\\/]*)
8569   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8570   ;;
8571   *)
8572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575   IFS=$as_save_IFS
8576   test -z "$as_dir" && as_dir=.
8577     for ac_exec_ext in '' $ac_executable_extensions; do
8578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581     break 2
8582   fi
8583 done
8584   done
8585 IFS=$as_save_IFS
8586 
8587   ;;
8588 esac
8589 fi
8590 MKTEMP=$ac_cv_path_MKTEMP
8591 if test -n "$MKTEMP"; then
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8593 $as_echo "$MKTEMP" >&6; }
8594 else
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598 
8599 
8600   test -n "$MKTEMP" && break
8601 done
8602 
8603   else
8604     # The variable is set, but is it from the command line or the environment?
8605 
8606     # Try to remove the string !MKTEMP! from our list.
8607     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8608     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8609       # If it failed, the variable was not from the command line. Ignore it,
8610       # but warn the user (except for BASH, which is always set by the calling BASH).
8611       if test "xMKTEMP" != xBASH; then
8612         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8613 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8614       fi
8615       # Try to locate tool using the code snippet
8616       for ac_prog in mktemp
8617 do
8618   # Extract the first word of "$ac_prog", so it can be a program name with args.
8619 set dummy $ac_prog; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_path_MKTEMP+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   case $MKTEMP in
8626   [\\/]* | ?:[\\/]*)
8627   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8628   ;;
8629   *)
8630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644 
8645   ;;
8646 esac
8647 fi
8648 MKTEMP=$ac_cv_path_MKTEMP
8649 if test -n "$MKTEMP"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8651 $as_echo "$MKTEMP" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656 
8657 
8658   test -n "$MKTEMP" && break
8659 done
8660 
8661     else
8662       # If it succeeded, then it was overridden by the user. We will use it
8663       # for the tool.
8664 
8665       # First remove it from the list of overridden variables, so we can test
8666       # for unknown variables in the end.
8667       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8668 
8669       # Check if we try to supply an empty value
8670       if test "x$MKTEMP" = x; then
8671         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8672 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8673         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8674 $as_echo_n "checking for MKTEMP... " >&6; }
8675         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8676 $as_echo "disabled" >&6; }
8677       else
8678         # Check if the provided tool contains a complete path.
8679         tool_specified="$MKTEMP"
8680         tool_basename="${tool_specified##*/}"
8681         if test "x$tool_basename" = "x$tool_specified"; then
8682           # A command without a complete path is provided, search $PATH.
8683           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8684 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8685           # Extract the first word of "$tool_basename", so it can be a program name with args.
8686 set dummy $tool_basename; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if ${ac_cv_path_MKTEMP+:} false; then :
8690   $as_echo_n "(cached) " >&6
8691 else
8692   case $MKTEMP in
8693   [\\/]* | ?:[\\/]*)
8694   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8695   ;;
8696   *)
8697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700   IFS=$as_save_IFS
8701   test -z "$as_dir" && as_dir=.
8702     for ac_exec_ext in '' $ac_executable_extensions; do
8703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706     break 2
8707   fi
8708 done
8709   done
8710 IFS=$as_save_IFS
8711 
8712   ;;
8713 esac
8714 fi
8715 MKTEMP=$ac_cv_path_MKTEMP
8716 if test -n "$MKTEMP"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8718 $as_echo "$MKTEMP" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723 
8724 
8725           if test "x$MKTEMP" = x; then
8726             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8727           fi
8728         else
8729           # Otherwise we believe it is a complete path. Use it as it is.
8730           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8731 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8732           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8733 $as_echo_n "checking for MKTEMP... " >&6; }
8734           if test ! -x "$tool_specified"; then
8735             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8736 $as_echo "not found" >&6; }
8737             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8738           fi
8739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8740 $as_echo "$tool_specified" >&6; }
8741         fi
8742       fi
8743     fi
8744 
8745   fi
8746 
8747 
8748 
8749   if test "x$MKTEMP" = x; then
8750     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8751   fi
8752 
8753 
8754 
8755 
8756 
8757   # Publish this variable in the help.
8758 
8759 
8760   if [ -z "${MV+x}" ]; then
8761     # The variable is not set by user, try to locate tool using the code snippet
8762     for ac_prog in mv
8763 do
8764   # Extract the first word of "$ac_prog", so it can be a program name with args.
8765 set dummy $ac_prog; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_path_MV+:} false; then :
8769   $as_echo_n "(cached) " >&6
8770 else
8771   case $MV in
8772   [\\/]* | ?:[\\/]*)
8773   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8774   ;;
8775   *)
8776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8778 do
8779   IFS=$as_save_IFS
8780   test -z "$as_dir" && as_dir=.
8781     for ac_exec_ext in '' $ac_executable_extensions; do
8782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785     break 2
8786   fi
8787 done
8788   done
8789 IFS=$as_save_IFS
8790 
8791   ;;
8792 esac
8793 fi
8794 MV=$ac_cv_path_MV
8795 if test -n "$MV"; then
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8797 $as_echo "$MV" >&6; }
8798 else
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 fi
8802 
8803 
8804   test -n "$MV" && break
8805 done
8806 
8807   else
8808     # The variable is set, but is it from the command line or the environment?
8809 
8810     # Try to remove the string !MV! from our list.
8811     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8812     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8813       # If it failed, the variable was not from the command line. Ignore it,
8814       # but warn the user (except for BASH, which is always set by the calling BASH).
8815       if test "xMV" != xBASH; then
8816         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8817 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8818       fi
8819       # Try to locate tool using the code snippet
8820       for ac_prog in mv
8821 do
8822   # Extract the first word of "$ac_prog", so it can be a program name with args.
8823 set dummy $ac_prog; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_path_MV+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   case $MV in
8830   [\\/]* | ?:[\\/]*)
8831   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8832   ;;
8833   *)
8834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837   IFS=$as_save_IFS
8838   test -z "$as_dir" && as_dir=.
8839     for ac_exec_ext in '' $ac_executable_extensions; do
8840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843     break 2
8844   fi
8845 done
8846   done
8847 IFS=$as_save_IFS
8848 
8849   ;;
8850 esac
8851 fi
8852 MV=$ac_cv_path_MV
8853 if test -n "$MV"; then
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8855 $as_echo "$MV" >&6; }
8856 else
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8859 fi
8860 
8861 
8862   test -n "$MV" && break
8863 done
8864 
8865     else
8866       # If it succeeded, then it was overridden by the user. We will use it
8867       # for the tool.
8868 
8869       # First remove it from the list of overridden variables, so we can test
8870       # for unknown variables in the end.
8871       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8872 
8873       # Check if we try to supply an empty value
8874       if test "x$MV" = x; then
8875         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8876 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8878 $as_echo_n "checking for MV... " >&6; }
8879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8880 $as_echo "disabled" >&6; }
8881       else
8882         # Check if the provided tool contains a complete path.
8883         tool_specified="$MV"
8884         tool_basename="${tool_specified##*/}"
8885         if test "x$tool_basename" = "x$tool_specified"; then
8886           # A command without a complete path is provided, search $PATH.
8887           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8888 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8889           # Extract the first word of "$tool_basename", so it can be a program name with args.
8890 set dummy $tool_basename; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if ${ac_cv_path_MV+:} false; then :
8894   $as_echo_n "(cached) " >&6
8895 else
8896   case $MV in
8897   [\\/]* | ?:[\\/]*)
8898   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8899   ;;
8900   *)
8901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902 for as_dir in $PATH
8903 do
8904   IFS=$as_save_IFS
8905   test -z "$as_dir" && as_dir=.
8906     for ac_exec_ext in '' $ac_executable_extensions; do
8907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8908     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8910     break 2
8911   fi
8912 done
8913   done
8914 IFS=$as_save_IFS
8915 
8916   ;;
8917 esac
8918 fi
8919 MV=$ac_cv_path_MV
8920 if test -n "$MV"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8922 $as_echo "$MV" >&6; }
8923 else
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 fi
8927 
8928 
8929           if test "x$MV" = x; then
8930             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8931           fi
8932         else
8933           # Otherwise we believe it is a complete path. Use it as it is.
8934           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8935 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8936           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8937 $as_echo_n "checking for MV... " >&6; }
8938           if test ! -x "$tool_specified"; then
8939             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8940 $as_echo "not found" >&6; }
8941             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8942           fi
8943           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8944 $as_echo "$tool_specified" >&6; }
8945         fi
8946       fi
8947     fi
8948 
8949   fi
8950 
8951 
8952 
8953   if test "x$MV" = x; then
8954     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8955   fi
8956 
8957 
8958 
8959 
8960 
8961   # Publish this variable in the help.
8962 
8963 
8964   if [ -z "${NAWK+x}" ]; then
8965     # The variable is not set by user, try to locate tool using the code snippet
8966     for ac_prog in nawk gawk awk
8967 do
8968   # Extract the first word of "$ac_prog", so it can be a program name with args.
8969 set dummy $ac_prog; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if ${ac_cv_path_NAWK+:} false; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   case $NAWK in
8976   [\\/]* | ?:[\\/]*)
8977   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8978   ;;
8979   *)
8980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983   IFS=$as_save_IFS
8984   test -z "$as_dir" && as_dir=.
8985     for ac_exec_ext in '' $ac_executable_extensions; do
8986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989     break 2
8990   fi
8991 done
8992   done
8993 IFS=$as_save_IFS
8994 
8995   ;;
8996 esac
8997 fi
8998 NAWK=$ac_cv_path_NAWK
8999 if test -n "$NAWK"; then
9000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9001 $as_echo "$NAWK" >&6; }
9002 else
9003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9004 $as_echo "no" >&6; }
9005 fi
9006 
9007 
9008   test -n "$NAWK" && break
9009 done
9010 
9011   else
9012     # The variable is set, but is it from the command line or the environment?
9013 
9014     # Try to remove the string !NAWK! from our list.
9015     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9016     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9017       # If it failed, the variable was not from the command line. Ignore it,
9018       # but warn the user (except for BASH, which is always set by the calling BASH).
9019       if test "xNAWK" != xBASH; then
9020         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9021 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9022       fi
9023       # Try to locate tool using the code snippet
9024       for ac_prog in nawk gawk awk
9025 do
9026   # Extract the first word of "$ac_prog", so it can be a program name with args.
9027 set dummy $ac_prog; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if ${ac_cv_path_NAWK+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   case $NAWK in
9034   [\\/]* | ?:[\\/]*)
9035   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9036   ;;
9037   *)
9038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9040 do
9041   IFS=$as_save_IFS
9042   test -z "$as_dir" && as_dir=.
9043     for ac_exec_ext in '' $ac_executable_extensions; do
9044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9045     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047     break 2
9048   fi
9049 done
9050   done
9051 IFS=$as_save_IFS
9052 
9053   ;;
9054 esac
9055 fi
9056 NAWK=$ac_cv_path_NAWK
9057 if test -n "$NAWK"; then
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9059 $as_echo "$NAWK" >&6; }
9060 else
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9063 fi
9064 
9065 
9066   test -n "$NAWK" && break
9067 done
9068 
9069     else
9070       # If it succeeded, then it was overridden by the user. We will use it
9071       # for the tool.
9072 
9073       # First remove it from the list of overridden variables, so we can test
9074       # for unknown variables in the end.
9075       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9076 
9077       # Check if we try to supply an empty value
9078       if test "x$NAWK" = x; then
9079         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9080 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9081         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9082 $as_echo_n "checking for NAWK... " >&6; }
9083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9084 $as_echo "disabled" >&6; }
9085       else
9086         # Check if the provided tool contains a complete path.
9087         tool_specified="$NAWK"
9088         tool_basename="${tool_specified##*/}"
9089         if test "x$tool_basename" = "x$tool_specified"; then
9090           # A command without a complete path is provided, search $PATH.
9091           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9092 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9093           # Extract the first word of "$tool_basename", so it can be a program name with args.
9094 set dummy $tool_basename; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if ${ac_cv_path_NAWK+:} false; then :
9098   $as_echo_n "(cached) " >&6
9099 else
9100   case $NAWK in
9101   [\\/]* | ?:[\\/]*)
9102   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9103   ;;
9104   *)
9105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9107 do
9108   IFS=$as_save_IFS
9109   test -z "$as_dir" && as_dir=.
9110     for ac_exec_ext in '' $ac_executable_extensions; do
9111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114     break 2
9115   fi
9116 done
9117   done
9118 IFS=$as_save_IFS
9119 
9120   ;;
9121 esac
9122 fi
9123 NAWK=$ac_cv_path_NAWK
9124 if test -n "$NAWK"; then
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9126 $as_echo "$NAWK" >&6; }
9127 else
9128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131 
9132 
9133           if test "x$NAWK" = x; then
9134             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9135           fi
9136         else
9137           # Otherwise we believe it is a complete path. Use it as it is.
9138           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9139 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9140           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9141 $as_echo_n "checking for NAWK... " >&6; }
9142           if test ! -x "$tool_specified"; then
9143             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9144 $as_echo "not found" >&6; }
9145             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9146           fi
9147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9148 $as_echo "$tool_specified" >&6; }
9149         fi
9150       fi
9151     fi
9152 
9153   fi
9154 
9155 
9156 
9157   if test "x$NAWK" = x; then
9158     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9159   fi
9160 
9161 
9162 
9163 
9164 
9165   # Publish this variable in the help.
9166 
9167 
9168   if [ -z "${PRINTF+x}" ]; then
9169     # The variable is not set by user, try to locate tool using the code snippet
9170     for ac_prog in printf
9171 do
9172   # Extract the first word of "$ac_prog", so it can be a program name with args.
9173 set dummy $ac_prog; ac_word=$2
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175 $as_echo_n "checking for $ac_word... " >&6; }
9176 if ${ac_cv_path_PRINTF+:} false; then :
9177   $as_echo_n "(cached) " >&6
9178 else
9179   case $PRINTF in
9180   [\\/]* | ?:[\\/]*)
9181   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9182   ;;
9183   *)
9184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185 for as_dir in $PATH
9186 do
9187   IFS=$as_save_IFS
9188   test -z "$as_dir" && as_dir=.
9189     for ac_exec_ext in '' $ac_executable_extensions; do
9190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9191     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193     break 2
9194   fi
9195 done
9196   done
9197 IFS=$as_save_IFS
9198 
9199   ;;
9200 esac
9201 fi
9202 PRINTF=$ac_cv_path_PRINTF
9203 if test -n "$PRINTF"; then
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9205 $as_echo "$PRINTF" >&6; }
9206 else
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9209 fi
9210 
9211 
9212   test -n "$PRINTF" && break
9213 done
9214 
9215   else
9216     # The variable is set, but is it from the command line or the environment?
9217 
9218     # Try to remove the string !PRINTF! from our list.
9219     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9220     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9221       # If it failed, the variable was not from the command line. Ignore it,
9222       # but warn the user (except for BASH, which is always set by the calling BASH).
9223       if test "xPRINTF" != xBASH; then
9224         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9225 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9226       fi
9227       # Try to locate tool using the code snippet
9228       for ac_prog in printf
9229 do
9230   # Extract the first word of "$ac_prog", so it can be a program name with args.
9231 set dummy $ac_prog; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if ${ac_cv_path_PRINTF+:} false; then :
9235   $as_echo_n "(cached) " >&6
9236 else
9237   case $PRINTF in
9238   [\\/]* | ?:[\\/]*)
9239   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9240   ;;
9241   *)
9242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9244 do
9245   IFS=$as_save_IFS
9246   test -z "$as_dir" && as_dir=.
9247     for ac_exec_ext in '' $ac_executable_extensions; do
9248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9249     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251     break 2
9252   fi
9253 done
9254   done
9255 IFS=$as_save_IFS
9256 
9257   ;;
9258 esac
9259 fi
9260 PRINTF=$ac_cv_path_PRINTF
9261 if test -n "$PRINTF"; then
9262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9263 $as_echo "$PRINTF" >&6; }
9264 else
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9267 fi
9268 
9269 
9270   test -n "$PRINTF" && break
9271 done
9272 
9273     else
9274       # If it succeeded, then it was overridden by the user. We will use it
9275       # for the tool.
9276 
9277       # First remove it from the list of overridden variables, so we can test
9278       # for unknown variables in the end.
9279       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9280 
9281       # Check if we try to supply an empty value
9282       if test "x$PRINTF" = x; then
9283         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9284 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9286 $as_echo_n "checking for PRINTF... " >&6; }
9287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9288 $as_echo "disabled" >&6; }
9289       else
9290         # Check if the provided tool contains a complete path.
9291         tool_specified="$PRINTF"
9292         tool_basename="${tool_specified##*/}"
9293         if test "x$tool_basename" = "x$tool_specified"; then
9294           # A command without a complete path is provided, search $PATH.
9295           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9296 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9297           # Extract the first word of "$tool_basename", so it can be a program name with args.
9298 set dummy $tool_basename; ac_word=$2
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9300 $as_echo_n "checking for $ac_word... " >&6; }
9301 if ${ac_cv_path_PRINTF+:} false; then :
9302   $as_echo_n "(cached) " >&6
9303 else
9304   case $PRINTF in
9305   [\\/]* | ?:[\\/]*)
9306   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9307   ;;
9308   *)
9309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9311 do
9312   IFS=$as_save_IFS
9313   test -z "$as_dir" && as_dir=.
9314     for ac_exec_ext in '' $ac_executable_extensions; do
9315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9316     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318     break 2
9319   fi
9320 done
9321   done
9322 IFS=$as_save_IFS
9323 
9324   ;;
9325 esac
9326 fi
9327 PRINTF=$ac_cv_path_PRINTF
9328 if test -n "$PRINTF"; then
9329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9330 $as_echo "$PRINTF" >&6; }
9331 else
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9334 fi
9335 
9336 
9337           if test "x$PRINTF" = x; then
9338             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9339           fi
9340         else
9341           # Otherwise we believe it is a complete path. Use it as it is.
9342           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9343 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9344           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9345 $as_echo_n "checking for PRINTF... " >&6; }
9346           if test ! -x "$tool_specified"; then
9347             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9348 $as_echo "not found" >&6; }
9349             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9350           fi
9351           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9352 $as_echo "$tool_specified" >&6; }
9353         fi
9354       fi
9355     fi
9356 
9357   fi
9358 
9359 
9360 
9361   if test "x$PRINTF" = x; then
9362     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9363   fi
9364 
9365 
9366 
9367 
9368 
9369   # Publish this variable in the help.
9370 
9371 
9372   if [ -z "${RM+x}" ]; then
9373     # The variable is not set by user, try to locate tool using the code snippet
9374     for ac_prog in rm
9375 do
9376   # Extract the first word of "$ac_prog", so it can be a program name with args.
9377 set dummy $ac_prog; ac_word=$2
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9379 $as_echo_n "checking for $ac_word... " >&6; }
9380 if ${ac_cv_path_RM+:} false; then :
9381   $as_echo_n "(cached) " >&6
9382 else
9383   case $RM in
9384   [\\/]* | ?:[\\/]*)
9385   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9386   ;;
9387   *)
9388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391   IFS=$as_save_IFS
9392   test -z "$as_dir" && as_dir=.
9393     for ac_exec_ext in '' $ac_executable_extensions; do
9394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397     break 2
9398   fi
9399 done
9400   done
9401 IFS=$as_save_IFS
9402 
9403   ;;
9404 esac
9405 fi
9406 RM=$ac_cv_path_RM
9407 if test -n "$RM"; then
9408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9409 $as_echo "$RM" >&6; }
9410 else
9411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9413 fi
9414 
9415 
9416   test -n "$RM" && break
9417 done
9418 
9419   else
9420     # The variable is set, but is it from the command line or the environment?
9421 
9422     # Try to remove the string !RM! from our list.
9423     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9424     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9425       # If it failed, the variable was not from the command line. Ignore it,
9426       # but warn the user (except for BASH, which is always set by the calling BASH).
9427       if test "xRM" != xBASH; then
9428         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9429 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9430       fi
9431       # Try to locate tool using the code snippet
9432       for ac_prog in rm
9433 do
9434   # Extract the first word of "$ac_prog", so it can be a program name with args.
9435 set dummy $ac_prog; ac_word=$2
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9437 $as_echo_n "checking for $ac_word... " >&6; }
9438 if ${ac_cv_path_RM+:} false; then :
9439   $as_echo_n "(cached) " >&6
9440 else
9441   case $RM in
9442   [\\/]* | ?:[\\/]*)
9443   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9444   ;;
9445   *)
9446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9447 for as_dir in $PATH
9448 do
9449   IFS=$as_save_IFS
9450   test -z "$as_dir" && as_dir=.
9451     for ac_exec_ext in '' $ac_executable_extensions; do
9452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9453     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9455     break 2
9456   fi
9457 done
9458   done
9459 IFS=$as_save_IFS
9460 
9461   ;;
9462 esac
9463 fi
9464 RM=$ac_cv_path_RM
9465 if test -n "$RM"; then
9466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9467 $as_echo "$RM" >&6; }
9468 else
9469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9471 fi
9472 
9473 
9474   test -n "$RM" && break
9475 done
9476 
9477     else
9478       # If it succeeded, then it was overridden by the user. We will use it
9479       # for the tool.
9480 
9481       # First remove it from the list of overridden variables, so we can test
9482       # for unknown variables in the end.
9483       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9484 
9485       # Check if we try to supply an empty value
9486       if test "x$RM" = x; then
9487         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9488 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9490 $as_echo_n "checking for RM... " >&6; }
9491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9492 $as_echo "disabled" >&6; }
9493       else
9494         # Check if the provided tool contains a complete path.
9495         tool_specified="$RM"
9496         tool_basename="${tool_specified##*/}"
9497         if test "x$tool_basename" = "x$tool_specified"; then
9498           # A command without a complete path is provided, search $PATH.
9499           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9500 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9501           # Extract the first word of "$tool_basename", so it can be a program name with args.
9502 set dummy $tool_basename; ac_word=$2
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504 $as_echo_n "checking for $ac_word... " >&6; }
9505 if ${ac_cv_path_RM+:} false; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   case $RM in
9509   [\\/]* | ?:[\\/]*)
9510   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9511   ;;
9512   *)
9513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9515 do
9516   IFS=$as_save_IFS
9517   test -z "$as_dir" && as_dir=.
9518     for ac_exec_ext in '' $ac_executable_extensions; do
9519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9522     break 2
9523   fi
9524 done
9525   done
9526 IFS=$as_save_IFS
9527 
9528   ;;
9529 esac
9530 fi
9531 RM=$ac_cv_path_RM
9532 if test -n "$RM"; then
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9534 $as_echo "$RM" >&6; }
9535 else
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 $as_echo "no" >&6; }
9538 fi
9539 
9540 
9541           if test "x$RM" = x; then
9542             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9543           fi
9544         else
9545           # Otherwise we believe it is a complete path. Use it as it is.
9546           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9547 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9548           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9549 $as_echo_n "checking for RM... " >&6; }
9550           if test ! -x "$tool_specified"; then
9551             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9552 $as_echo "not found" >&6; }
9553             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9554           fi
9555           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9556 $as_echo "$tool_specified" >&6; }
9557         fi
9558       fi
9559     fi
9560 
9561   fi
9562 
9563 
9564 
9565   if test "x$RM" = x; then
9566     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9567   fi
9568 
9569 
9570 
9571 
9572 
9573   # Publish this variable in the help.
9574 
9575 
9576   if [ -z "${RMDIR+x}" ]; then
9577     # The variable is not set by user, try to locate tool using the code snippet
9578     for ac_prog in rmdir
9579 do
9580   # Extract the first word of "$ac_prog", so it can be a program name with args.
9581 set dummy $ac_prog; ac_word=$2
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if ${ac_cv_path_RMDIR+:} false; then :
9585   $as_echo_n "(cached) " >&6
9586 else
9587   case $RMDIR in
9588   [\\/]* | ?:[\\/]*)
9589   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9590   ;;
9591   *)
9592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9594 do
9595   IFS=$as_save_IFS
9596   test -z "$as_dir" && as_dir=.
9597     for ac_exec_ext in '' $ac_executable_extensions; do
9598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9599     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601     break 2
9602   fi
9603 done
9604   done
9605 IFS=$as_save_IFS
9606 
9607   ;;
9608 esac
9609 fi
9610 RMDIR=$ac_cv_path_RMDIR
9611 if test -n "$RMDIR"; then
9612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9613 $as_echo "$RMDIR" >&6; }
9614 else
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9617 fi
9618 
9619 
9620   test -n "$RMDIR" && break
9621 done
9622 
9623   else
9624     # The variable is set, but is it from the command line or the environment?
9625 
9626     # Try to remove the string !RMDIR! from our list.
9627     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9628     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9629       # If it failed, the variable was not from the command line. Ignore it,
9630       # but warn the user (except for BASH, which is always set by the calling BASH).
9631       if test "xRMDIR" != xBASH; then
9632         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9633 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9634       fi
9635       # Try to locate tool using the code snippet
9636       for ac_prog in rmdir
9637 do
9638   # Extract the first word of "$ac_prog", so it can be a program name with args.
9639 set dummy $ac_prog; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_path_RMDIR+:} false; then :
9643   $as_echo_n "(cached) " >&6
9644 else
9645   case $RMDIR in
9646   [\\/]* | ?:[\\/]*)
9647   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9648   ;;
9649   *)
9650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653   IFS=$as_save_IFS
9654   test -z "$as_dir" && as_dir=.
9655     for ac_exec_ext in '' $ac_executable_extensions; do
9656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659     break 2
9660   fi
9661 done
9662   done
9663 IFS=$as_save_IFS
9664 
9665   ;;
9666 esac
9667 fi
9668 RMDIR=$ac_cv_path_RMDIR
9669 if test -n "$RMDIR"; then
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9671 $as_echo "$RMDIR" >&6; }
9672 else
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676 
9677 
9678   test -n "$RMDIR" && break
9679 done
9680 
9681     else
9682       # If it succeeded, then it was overridden by the user. We will use it
9683       # for the tool.
9684 
9685       # First remove it from the list of overridden variables, so we can test
9686       # for unknown variables in the end.
9687       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9688 
9689       # Check if we try to supply an empty value
9690       if test "x$RMDIR" = x; then
9691         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9692 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9694 $as_echo_n "checking for RMDIR... " >&6; }
9695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9696 $as_echo "disabled" >&6; }
9697       else
9698         # Check if the provided tool contains a complete path.
9699         tool_specified="$RMDIR"
9700         tool_basename="${tool_specified##*/}"
9701         if test "x$tool_basename" = "x$tool_specified"; then
9702           # A command without a complete path is provided, search $PATH.
9703           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9704 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9705           # Extract the first word of "$tool_basename", so it can be a program name with args.
9706 set dummy $tool_basename; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if ${ac_cv_path_RMDIR+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   case $RMDIR in
9713   [\\/]* | ?:[\\/]*)
9714   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9715   ;;
9716   *)
9717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722     for ac_exec_ext in '' $ac_executable_extensions; do
9723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729   done
9730 IFS=$as_save_IFS
9731 
9732   ;;
9733 esac
9734 fi
9735 RMDIR=$ac_cv_path_RMDIR
9736 if test -n "$RMDIR"; then
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9738 $as_echo "$RMDIR" >&6; }
9739 else
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743 
9744 
9745           if test "x$RMDIR" = x; then
9746             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9747           fi
9748         else
9749           # Otherwise we believe it is a complete path. Use it as it is.
9750           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9751 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9752           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9753 $as_echo_n "checking for RMDIR... " >&6; }
9754           if test ! -x "$tool_specified"; then
9755             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9756 $as_echo "not found" >&6; }
9757             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9758           fi
9759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9760 $as_echo "$tool_specified" >&6; }
9761         fi
9762       fi
9763     fi
9764 
9765   fi
9766 
9767 
9768 
9769   if test "x$RMDIR" = x; then
9770     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9771   fi
9772 
9773 
9774 
9775 
9776 
9777   # Publish this variable in the help.
9778 
9779 
9780   if [ -z "${SH+x}" ]; then
9781     # The variable is not set by user, try to locate tool using the code snippet
9782     for ac_prog in sh
9783 do
9784   # Extract the first word of "$ac_prog", so it can be a program name with args.
9785 set dummy $ac_prog; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if ${ac_cv_path_SH+:} false; then :
9789   $as_echo_n "(cached) " >&6
9790 else
9791   case $SH in
9792   [\\/]* | ?:[\\/]*)
9793   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9794   ;;
9795   *)
9796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797 for as_dir in $PATH
9798 do
9799   IFS=$as_save_IFS
9800   test -z "$as_dir" && as_dir=.
9801     for ac_exec_ext in '' $ac_executable_extensions; do
9802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9803     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9805     break 2
9806   fi
9807 done
9808   done
9809 IFS=$as_save_IFS
9810 
9811   ;;
9812 esac
9813 fi
9814 SH=$ac_cv_path_SH
9815 if test -n "$SH"; then
9816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9817 $as_echo "$SH" >&6; }
9818 else
9819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9820 $as_echo "no" >&6; }
9821 fi
9822 
9823 
9824   test -n "$SH" && break
9825 done
9826 
9827   else
9828     # The variable is set, but is it from the command line or the environment?
9829 
9830     # Try to remove the string !SH! from our list.
9831     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9832     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9833       # If it failed, the variable was not from the command line. Ignore it,
9834       # but warn the user (except for BASH, which is always set by the calling BASH).
9835       if test "xSH" != xBASH; then
9836         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9837 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9838       fi
9839       # Try to locate tool using the code snippet
9840       for ac_prog in sh
9841 do
9842   # Extract the first word of "$ac_prog", so it can be a program name with args.
9843 set dummy $ac_prog; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if ${ac_cv_path_SH+:} false; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   case $SH in
9850   [\\/]* | ?:[\\/]*)
9851   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9852   ;;
9853   *)
9854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $PATH
9856 do
9857   IFS=$as_save_IFS
9858   test -z "$as_dir" && as_dir=.
9859     for ac_exec_ext in '' $ac_executable_extensions; do
9860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9863     break 2
9864   fi
9865 done
9866   done
9867 IFS=$as_save_IFS
9868 
9869   ;;
9870 esac
9871 fi
9872 SH=$ac_cv_path_SH
9873 if test -n "$SH"; then
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9875 $as_echo "$SH" >&6; }
9876 else
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880 
9881 
9882   test -n "$SH" && break
9883 done
9884 
9885     else
9886       # If it succeeded, then it was overridden by the user. We will use it
9887       # for the tool.
9888 
9889       # First remove it from the list of overridden variables, so we can test
9890       # for unknown variables in the end.
9891       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9892 
9893       # Check if we try to supply an empty value
9894       if test "x$SH" = x; then
9895         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9896 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9897         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9898 $as_echo_n "checking for SH... " >&6; }
9899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9900 $as_echo "disabled" >&6; }
9901       else
9902         # Check if the provided tool contains a complete path.
9903         tool_specified="$SH"
9904         tool_basename="${tool_specified##*/}"
9905         if test "x$tool_basename" = "x$tool_specified"; then
9906           # A command without a complete path is provided, search $PATH.
9907           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9908 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9909           # Extract the first word of "$tool_basename", so it can be a program name with args.
9910 set dummy $tool_basename; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if ${ac_cv_path_SH+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   case $SH in
9917   [\\/]* | ?:[\\/]*)
9918   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9919   ;;
9920   *)
9921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926     for ac_exec_ext in '' $ac_executable_extensions; do
9927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9928     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930     break 2
9931   fi
9932 done
9933   done
9934 IFS=$as_save_IFS
9935 
9936   ;;
9937 esac
9938 fi
9939 SH=$ac_cv_path_SH
9940 if test -n "$SH"; then
9941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9942 $as_echo "$SH" >&6; }
9943 else
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9946 fi
9947 
9948 
9949           if test "x$SH" = x; then
9950             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9951           fi
9952         else
9953           # Otherwise we believe it is a complete path. Use it as it is.
9954           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9955 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9956           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9957 $as_echo_n "checking for SH... " >&6; }
9958           if test ! -x "$tool_specified"; then
9959             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9960 $as_echo "not found" >&6; }
9961             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9962           fi
9963           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9964 $as_echo "$tool_specified" >&6; }
9965         fi
9966       fi
9967     fi
9968 
9969   fi
9970 
9971 
9972 
9973   if test "x$SH" = x; then
9974     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9975   fi
9976 
9977 
9978 
9979 
9980 
9981   # Publish this variable in the help.
9982 
9983 
9984   if [ -z "${SORT+x}" ]; then
9985     # The variable is not set by user, try to locate tool using the code snippet
9986     for ac_prog in sort
9987 do
9988   # Extract the first word of "$ac_prog", so it can be a program name with args.
9989 set dummy $ac_prog; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_SORT+:} false; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   case $SORT in
9996   [\\/]* | ?:[\\/]*)
9997   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9998   ;;
9999   *)
10000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003   IFS=$as_save_IFS
10004   test -z "$as_dir" && as_dir=.
10005     for ac_exec_ext in '' $ac_executable_extensions; do
10006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10007     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009     break 2
10010   fi
10011 done
10012   done
10013 IFS=$as_save_IFS
10014 
10015   ;;
10016 esac
10017 fi
10018 SORT=$ac_cv_path_SORT
10019 if test -n "$SORT"; then
10020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10021 $as_echo "$SORT" >&6; }
10022 else
10023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026 
10027 
10028   test -n "$SORT" && break
10029 done
10030 
10031   else
10032     # The variable is set, but is it from the command line or the environment?
10033 
10034     # Try to remove the string !SORT! from our list.
10035     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10036     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10037       # If it failed, the variable was not from the command line. Ignore it,
10038       # but warn the user (except for BASH, which is always set by the calling BASH).
10039       if test "xSORT" != xBASH; then
10040         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10041 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10042       fi
10043       # Try to locate tool using the code snippet
10044       for ac_prog in sort
10045 do
10046   # Extract the first word of "$ac_prog", so it can be a program name with args.
10047 set dummy $ac_prog; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_SORT+:} false; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053   case $SORT in
10054   [\\/]* | ?:[\\/]*)
10055   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10056   ;;
10057   *)
10058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072 
10073   ;;
10074 esac
10075 fi
10076 SORT=$ac_cv_path_SORT
10077 if test -n "$SORT"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10079 $as_echo "$SORT" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084 
10085 
10086   test -n "$SORT" && break
10087 done
10088 
10089     else
10090       # If it succeeded, then it was overridden by the user. We will use it
10091       # for the tool.
10092 
10093       # First remove it from the list of overridden variables, so we can test
10094       # for unknown variables in the end.
10095       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10096 
10097       # Check if we try to supply an empty value
10098       if test "x$SORT" = x; then
10099         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10100 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10101         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10102 $as_echo_n "checking for SORT... " >&6; }
10103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10104 $as_echo "disabled" >&6; }
10105       else
10106         # Check if the provided tool contains a complete path.
10107         tool_specified="$SORT"
10108         tool_basename="${tool_specified##*/}"
10109         if test "x$tool_basename" = "x$tool_specified"; then
10110           # A command without a complete path is provided, search $PATH.
10111           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10112 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10113           # Extract the first word of "$tool_basename", so it can be a program name with args.
10114 set dummy $tool_basename; ac_word=$2
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10116 $as_echo_n "checking for $ac_word... " >&6; }
10117 if ${ac_cv_path_SORT+:} false; then :
10118   $as_echo_n "(cached) " >&6
10119 else
10120   case $SORT in
10121   [\\/]* | ?:[\\/]*)
10122   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10123   ;;
10124   *)
10125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10127 do
10128   IFS=$as_save_IFS
10129   test -z "$as_dir" && as_dir=.
10130     for ac_exec_ext in '' $ac_executable_extensions; do
10131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10132     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10134     break 2
10135   fi
10136 done
10137   done
10138 IFS=$as_save_IFS
10139 
10140   ;;
10141 esac
10142 fi
10143 SORT=$ac_cv_path_SORT
10144 if test -n "$SORT"; then
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10146 $as_echo "$SORT" >&6; }
10147 else
10148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151 
10152 
10153           if test "x$SORT" = x; then
10154             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10155           fi
10156         else
10157           # Otherwise we believe it is a complete path. Use it as it is.
10158           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10159 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10160           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10161 $as_echo_n "checking for SORT... " >&6; }
10162           if test ! -x "$tool_specified"; then
10163             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10164 $as_echo "not found" >&6; }
10165             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10166           fi
10167           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10168 $as_echo "$tool_specified" >&6; }
10169         fi
10170       fi
10171     fi
10172 
10173   fi
10174 
10175 
10176 
10177   if test "x$SORT" = x; then
10178     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10179   fi
10180 
10181 
10182 
10183 
10184 
10185   # Publish this variable in the help.
10186 
10187 
10188   if [ -z "${TAIL+x}" ]; then
10189     # The variable is not set by user, try to locate tool using the code snippet
10190     for ac_prog in tail
10191 do
10192   # Extract the first word of "$ac_prog", so it can be a program name with args.
10193 set dummy $ac_prog; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if ${ac_cv_path_TAIL+:} false; then :
10197   $as_echo_n "(cached) " >&6
10198 else
10199   case $TAIL in
10200   [\\/]* | ?:[\\/]*)
10201   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10202   ;;
10203   *)
10204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10206 do
10207   IFS=$as_save_IFS
10208   test -z "$as_dir" && as_dir=.
10209     for ac_exec_ext in '' $ac_executable_extensions; do
10210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10211     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213     break 2
10214   fi
10215 done
10216   done
10217 IFS=$as_save_IFS
10218 
10219   ;;
10220 esac
10221 fi
10222 TAIL=$ac_cv_path_TAIL
10223 if test -n "$TAIL"; then
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10225 $as_echo "$TAIL" >&6; }
10226 else
10227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10229 fi
10230 
10231 
10232   test -n "$TAIL" && break
10233 done
10234 
10235   else
10236     # The variable is set, but is it from the command line or the environment?
10237 
10238     # Try to remove the string !TAIL! from our list.
10239     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10240     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10241       # If it failed, the variable was not from the command line. Ignore it,
10242       # but warn the user (except for BASH, which is always set by the calling BASH).
10243       if test "xTAIL" != xBASH; then
10244         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10245 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10246       fi
10247       # Try to locate tool using the code snippet
10248       for ac_prog in tail
10249 do
10250   # Extract the first word of "$ac_prog", so it can be a program name with args.
10251 set dummy $ac_prog; ac_word=$2
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10253 $as_echo_n "checking for $ac_word... " >&6; }
10254 if ${ac_cv_path_TAIL+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   case $TAIL in
10258   [\\/]* | ?:[\\/]*)
10259   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10260   ;;
10261   *)
10262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10264 do
10265   IFS=$as_save_IFS
10266   test -z "$as_dir" && as_dir=.
10267     for ac_exec_ext in '' $ac_executable_extensions; do
10268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10269     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271     break 2
10272   fi
10273 done
10274   done
10275 IFS=$as_save_IFS
10276 
10277   ;;
10278 esac
10279 fi
10280 TAIL=$ac_cv_path_TAIL
10281 if test -n "$TAIL"; then
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10283 $as_echo "$TAIL" >&6; }
10284 else
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10287 fi
10288 
10289 
10290   test -n "$TAIL" && break
10291 done
10292 
10293     else
10294       # If it succeeded, then it was overridden by the user. We will use it
10295       # for the tool.
10296 
10297       # First remove it from the list of overridden variables, so we can test
10298       # for unknown variables in the end.
10299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10300 
10301       # Check if we try to supply an empty value
10302       if test "x$TAIL" = x; then
10303         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10304 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10306 $as_echo_n "checking for TAIL... " >&6; }
10307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10308 $as_echo "disabled" >&6; }
10309       else
10310         # Check if the provided tool contains a complete path.
10311         tool_specified="$TAIL"
10312         tool_basename="${tool_specified##*/}"
10313         if test "x$tool_basename" = "x$tool_specified"; then
10314           # A command without a complete path is provided, search $PATH.
10315           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10316 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10317           # Extract the first word of "$tool_basename", so it can be a program name with args.
10318 set dummy $tool_basename; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if ${ac_cv_path_TAIL+:} false; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   case $TAIL in
10325   [\\/]* | ?:[\\/]*)
10326   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10327   ;;
10328   *)
10329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332   IFS=$as_save_IFS
10333   test -z "$as_dir" && as_dir=.
10334     for ac_exec_ext in '' $ac_executable_extensions; do
10335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338     break 2
10339   fi
10340 done
10341   done
10342 IFS=$as_save_IFS
10343 
10344   ;;
10345 esac
10346 fi
10347 TAIL=$ac_cv_path_TAIL
10348 if test -n "$TAIL"; then
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10350 $as_echo "$TAIL" >&6; }
10351 else
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 fi
10355 
10356 
10357           if test "x$TAIL" = x; then
10358             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10359           fi
10360         else
10361           # Otherwise we believe it is a complete path. Use it as it is.
10362           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10363 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10364           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10365 $as_echo_n "checking for TAIL... " >&6; }
10366           if test ! -x "$tool_specified"; then
10367             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10368 $as_echo "not found" >&6; }
10369             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10370           fi
10371           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10372 $as_echo "$tool_specified" >&6; }
10373         fi
10374       fi
10375     fi
10376 
10377   fi
10378 
10379 
10380 
10381   if test "x$TAIL" = x; then
10382     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10383   fi
10384 
10385 
10386 
10387 
10388 
10389   # Publish this variable in the help.
10390 
10391 
10392   if [ -z "${TAR+x}" ]; then
10393     # The variable is not set by user, try to locate tool using the code snippet
10394     for ac_prog in tar
10395 do
10396   # Extract the first word of "$ac_prog", so it can be a program name with args.
10397 set dummy $ac_prog; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if ${ac_cv_path_TAR+:} false; then :
10401   $as_echo_n "(cached) " >&6
10402 else
10403   case $TAR in
10404   [\\/]* | ?:[\\/]*)
10405   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10406   ;;
10407   *)
10408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10410 do
10411   IFS=$as_save_IFS
10412   test -z "$as_dir" && as_dir=.
10413     for ac_exec_ext in '' $ac_executable_extensions; do
10414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417     break 2
10418   fi
10419 done
10420   done
10421 IFS=$as_save_IFS
10422 
10423   ;;
10424 esac
10425 fi
10426 TAR=$ac_cv_path_TAR
10427 if test -n "$TAR"; then
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10429 $as_echo "$TAR" >&6; }
10430 else
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10433 fi
10434 
10435 
10436   test -n "$TAR" && break
10437 done
10438 
10439   else
10440     # The variable is set, but is it from the command line or the environment?
10441 
10442     # Try to remove the string !TAR! from our list.
10443     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10444     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10445       # If it failed, the variable was not from the command line. Ignore it,
10446       # but warn the user (except for BASH, which is always set by the calling BASH).
10447       if test "xTAR" != xBASH; then
10448         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10449 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10450       fi
10451       # Try to locate tool using the code snippet
10452       for ac_prog in tar
10453 do
10454   # Extract the first word of "$ac_prog", so it can be a program name with args.
10455 set dummy $ac_prog; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if ${ac_cv_path_TAR+:} false; then :
10459   $as_echo_n "(cached) " >&6
10460 else
10461   case $TAR in
10462   [\\/]* | ?:[\\/]*)
10463   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10464   ;;
10465   *)
10466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469   IFS=$as_save_IFS
10470   test -z "$as_dir" && as_dir=.
10471     for ac_exec_ext in '' $ac_executable_extensions; do
10472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475     break 2
10476   fi
10477 done
10478   done
10479 IFS=$as_save_IFS
10480 
10481   ;;
10482 esac
10483 fi
10484 TAR=$ac_cv_path_TAR
10485 if test -n "$TAR"; then
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10487 $as_echo "$TAR" >&6; }
10488 else
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10491 fi
10492 
10493 
10494   test -n "$TAR" && break
10495 done
10496 
10497     else
10498       # If it succeeded, then it was overridden by the user. We will use it
10499       # for the tool.
10500 
10501       # First remove it from the list of overridden variables, so we can test
10502       # for unknown variables in the end.
10503       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10504 
10505       # Check if we try to supply an empty value
10506       if test "x$TAR" = x; then
10507         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10508 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10510 $as_echo_n "checking for TAR... " >&6; }
10511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10512 $as_echo "disabled" >&6; }
10513       else
10514         # Check if the provided tool contains a complete path.
10515         tool_specified="$TAR"
10516         tool_basename="${tool_specified##*/}"
10517         if test "x$tool_basename" = "x$tool_specified"; then
10518           # A command without a complete path is provided, search $PATH.
10519           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10520 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10521           # Extract the first word of "$tool_basename", so it can be a program name with args.
10522 set dummy $tool_basename; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_path_TAR+:} false; then :
10526   $as_echo_n "(cached) " >&6
10527 else
10528   case $TAR in
10529   [\\/]* | ?:[\\/]*)
10530   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10531   ;;
10532   *)
10533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10535 do
10536   IFS=$as_save_IFS
10537   test -z "$as_dir" && as_dir=.
10538     for ac_exec_ext in '' $ac_executable_extensions; do
10539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542     break 2
10543   fi
10544 done
10545   done
10546 IFS=$as_save_IFS
10547 
10548   ;;
10549 esac
10550 fi
10551 TAR=$ac_cv_path_TAR
10552 if test -n "$TAR"; then
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10554 $as_echo "$TAR" >&6; }
10555 else
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10558 fi
10559 
10560 
10561           if test "x$TAR" = x; then
10562             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10563           fi
10564         else
10565           # Otherwise we believe it is a complete path. Use it as it is.
10566           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10567 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10568           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10569 $as_echo_n "checking for TAR... " >&6; }
10570           if test ! -x "$tool_specified"; then
10571             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10572 $as_echo "not found" >&6; }
10573             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10574           fi
10575           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10576 $as_echo "$tool_specified" >&6; }
10577         fi
10578       fi
10579     fi
10580 
10581   fi
10582 
10583 
10584 
10585   if test "x$TAR" = x; then
10586     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10587   fi
10588 
10589 
10590 
10591 
10592 
10593   # Publish this variable in the help.
10594 
10595 
10596   if [ -z "${TEE+x}" ]; then
10597     # The variable is not set by user, try to locate tool using the code snippet
10598     for ac_prog in tee
10599 do
10600   # Extract the first word of "$ac_prog", so it can be a program name with args.
10601 set dummy $ac_prog; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if ${ac_cv_path_TEE+:} false; then :
10605   $as_echo_n "(cached) " >&6
10606 else
10607   case $TEE in
10608   [\\/]* | ?:[\\/]*)
10609   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10610   ;;
10611   *)
10612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613 for as_dir in $PATH
10614 do
10615   IFS=$as_save_IFS
10616   test -z "$as_dir" && as_dir=.
10617     for ac_exec_ext in '' $ac_executable_extensions; do
10618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10619     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621     break 2
10622   fi
10623 done
10624   done
10625 IFS=$as_save_IFS
10626 
10627   ;;
10628 esac
10629 fi
10630 TEE=$ac_cv_path_TEE
10631 if test -n "$TEE"; then
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10633 $as_echo "$TEE" >&6; }
10634 else
10635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10637 fi
10638 
10639 
10640   test -n "$TEE" && break
10641 done
10642 
10643   else
10644     # The variable is set, but is it from the command line or the environment?
10645 
10646     # Try to remove the string !TEE! from our list.
10647     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10648     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10649       # If it failed, the variable was not from the command line. Ignore it,
10650       # but warn the user (except for BASH, which is always set by the calling BASH).
10651       if test "xTEE" != xBASH; then
10652         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10653 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10654       fi
10655       # Try to locate tool using the code snippet
10656       for ac_prog in tee
10657 do
10658   # Extract the first word of "$ac_prog", so it can be a program name with args.
10659 set dummy $ac_prog; ac_word=$2
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10661 $as_echo_n "checking for $ac_word... " >&6; }
10662 if ${ac_cv_path_TEE+:} false; then :
10663   $as_echo_n "(cached) " >&6
10664 else
10665   case $TEE in
10666   [\\/]* | ?:[\\/]*)
10667   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10668   ;;
10669   *)
10670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673   IFS=$as_save_IFS
10674   test -z "$as_dir" && as_dir=.
10675     for ac_exec_ext in '' $ac_executable_extensions; do
10676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679     break 2
10680   fi
10681 done
10682   done
10683 IFS=$as_save_IFS
10684 
10685   ;;
10686 esac
10687 fi
10688 TEE=$ac_cv_path_TEE
10689 if test -n "$TEE"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10691 $as_echo "$TEE" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696 
10697 
10698   test -n "$TEE" && break
10699 done
10700 
10701     else
10702       # If it succeeded, then it was overridden by the user. We will use it
10703       # for the tool.
10704 
10705       # First remove it from the list of overridden variables, so we can test
10706       # for unknown variables in the end.
10707       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10708 
10709       # Check if we try to supply an empty value
10710       if test "x$TEE" = x; then
10711         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10712 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10713         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10714 $as_echo_n "checking for TEE... " >&6; }
10715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10716 $as_echo "disabled" >&6; }
10717       else
10718         # Check if the provided tool contains a complete path.
10719         tool_specified="$TEE"
10720         tool_basename="${tool_specified##*/}"
10721         if test "x$tool_basename" = "x$tool_specified"; then
10722           # A command without a complete path is provided, search $PATH.
10723           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10724 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10725           # Extract the first word of "$tool_basename", so it can be a program name with args.
10726 set dummy $tool_basename; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_path_TEE+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   case $TEE in
10733   [\\/]* | ?:[\\/]*)
10734   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10735   ;;
10736   *)
10737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740   IFS=$as_save_IFS
10741   test -z "$as_dir" && as_dir=.
10742     for ac_exec_ext in '' $ac_executable_extensions; do
10743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10744     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746     break 2
10747   fi
10748 done
10749   done
10750 IFS=$as_save_IFS
10751 
10752   ;;
10753 esac
10754 fi
10755 TEE=$ac_cv_path_TEE
10756 if test -n "$TEE"; then
10757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10758 $as_echo "$TEE" >&6; }
10759 else
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10762 fi
10763 
10764 
10765           if test "x$TEE" = x; then
10766             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10767           fi
10768         else
10769           # Otherwise we believe it is a complete path. Use it as it is.
10770           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10771 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10772           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10773 $as_echo_n "checking for TEE... " >&6; }
10774           if test ! -x "$tool_specified"; then
10775             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10776 $as_echo "not found" >&6; }
10777             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10778           fi
10779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10780 $as_echo "$tool_specified" >&6; }
10781         fi
10782       fi
10783     fi
10784 
10785   fi
10786 
10787 
10788 
10789   if test "x$TEE" = x; then
10790     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10791   fi
10792 
10793 
10794 
10795 
10796 
10797   # Publish this variable in the help.
10798 
10799 
10800   if [ -z "${TOUCH+x}" ]; then
10801     # The variable is not set by user, try to locate tool using the code snippet
10802     for ac_prog in touch
10803 do
10804   # Extract the first word of "$ac_prog", so it can be a program name with args.
10805 set dummy $ac_prog; ac_word=$2
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10807 $as_echo_n "checking for $ac_word... " >&6; }
10808 if ${ac_cv_path_TOUCH+:} false; then :
10809   $as_echo_n "(cached) " >&6
10810 else
10811   case $TOUCH in
10812   [\\/]* | ?:[\\/]*)
10813   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10814   ;;
10815   *)
10816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819   IFS=$as_save_IFS
10820   test -z "$as_dir" && as_dir=.
10821     for ac_exec_ext in '' $ac_executable_extensions; do
10822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10823     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825     break 2
10826   fi
10827 done
10828   done
10829 IFS=$as_save_IFS
10830 
10831   ;;
10832 esac
10833 fi
10834 TOUCH=$ac_cv_path_TOUCH
10835 if test -n "$TOUCH"; then
10836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10837 $as_echo "$TOUCH" >&6; }
10838 else
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10841 fi
10842 
10843 
10844   test -n "$TOUCH" && break
10845 done
10846 
10847   else
10848     # The variable is set, but is it from the command line or the environment?
10849 
10850     # Try to remove the string !TOUCH! from our list.
10851     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10852     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10853       # If it failed, the variable was not from the command line. Ignore it,
10854       # but warn the user (except for BASH, which is always set by the calling BASH).
10855       if test "xTOUCH" != xBASH; then
10856         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10857 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10858       fi
10859       # Try to locate tool using the code snippet
10860       for ac_prog in touch
10861 do
10862   # Extract the first word of "$ac_prog", so it can be a program name with args.
10863 set dummy $ac_prog; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_path_TOUCH+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   case $TOUCH in
10870   [\\/]* | ?:[\\/]*)
10871   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10872   ;;
10873   *)
10874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877   IFS=$as_save_IFS
10878   test -z "$as_dir" && as_dir=.
10879     for ac_exec_ext in '' $ac_executable_extensions; do
10880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883     break 2
10884   fi
10885 done
10886   done
10887 IFS=$as_save_IFS
10888 
10889   ;;
10890 esac
10891 fi
10892 TOUCH=$ac_cv_path_TOUCH
10893 if test -n "$TOUCH"; then
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10895 $as_echo "$TOUCH" >&6; }
10896 else
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899 fi
10900 
10901 
10902   test -n "$TOUCH" && break
10903 done
10904 
10905     else
10906       # If it succeeded, then it was overridden by the user. We will use it
10907       # for the tool.
10908 
10909       # First remove it from the list of overridden variables, so we can test
10910       # for unknown variables in the end.
10911       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10912 
10913       # Check if we try to supply an empty value
10914       if test "x$TOUCH" = x; then
10915         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10916 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10918 $as_echo_n "checking for TOUCH... " >&6; }
10919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10920 $as_echo "disabled" >&6; }
10921       else
10922         # Check if the provided tool contains a complete path.
10923         tool_specified="$TOUCH"
10924         tool_basename="${tool_specified##*/}"
10925         if test "x$tool_basename" = "x$tool_specified"; then
10926           # A command without a complete path is provided, search $PATH.
10927           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10928 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10929           # Extract the first word of "$tool_basename", so it can be a program name with args.
10930 set dummy $tool_basename; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 $as_echo_n "checking for $ac_word... " >&6; }
10933 if ${ac_cv_path_TOUCH+:} false; then :
10934   $as_echo_n "(cached) " >&6
10935 else
10936   case $TOUCH in
10937   [\\/]* | ?:[\\/]*)
10938   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10939   ;;
10940   *)
10941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10943 do
10944   IFS=$as_save_IFS
10945   test -z "$as_dir" && as_dir=.
10946     for ac_exec_ext in '' $ac_executable_extensions; do
10947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10948     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950     break 2
10951   fi
10952 done
10953   done
10954 IFS=$as_save_IFS
10955 
10956   ;;
10957 esac
10958 fi
10959 TOUCH=$ac_cv_path_TOUCH
10960 if test -n "$TOUCH"; then
10961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10962 $as_echo "$TOUCH" >&6; }
10963 else
10964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 $as_echo "no" >&6; }
10966 fi
10967 
10968 
10969           if test "x$TOUCH" = x; then
10970             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10971           fi
10972         else
10973           # Otherwise we believe it is a complete path. Use it as it is.
10974           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10975 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10976           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10977 $as_echo_n "checking for TOUCH... " >&6; }
10978           if test ! -x "$tool_specified"; then
10979             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10980 $as_echo "not found" >&6; }
10981             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10982           fi
10983           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10984 $as_echo "$tool_specified" >&6; }
10985         fi
10986       fi
10987     fi
10988 
10989   fi
10990 
10991 
10992 
10993   if test "x$TOUCH" = x; then
10994     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10995   fi
10996 
10997 
10998 
10999 
11000 
11001   # Publish this variable in the help.
11002 
11003 
11004   if [ -z "${TR+x}" ]; then
11005     # The variable is not set by user, try to locate tool using the code snippet
11006     for ac_prog in tr
11007 do
11008   # Extract the first word of "$ac_prog", so it can be a program name with args.
11009 set dummy $ac_prog; ac_word=$2
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11011 $as_echo_n "checking for $ac_word... " >&6; }
11012 if ${ac_cv_path_TR+:} false; then :
11013   $as_echo_n "(cached) " >&6
11014 else
11015   case $TR in
11016   [\\/]* | ?:[\\/]*)
11017   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11018   ;;
11019   *)
11020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11022 do
11023   IFS=$as_save_IFS
11024   test -z "$as_dir" && as_dir=.
11025     for ac_exec_ext in '' $ac_executable_extensions; do
11026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11027     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029     break 2
11030   fi
11031 done
11032   done
11033 IFS=$as_save_IFS
11034 
11035   ;;
11036 esac
11037 fi
11038 TR=$ac_cv_path_TR
11039 if test -n "$TR"; then
11040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11041 $as_echo "$TR" >&6; }
11042 else
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11045 fi
11046 
11047 
11048   test -n "$TR" && break
11049 done
11050 
11051   else
11052     # The variable is set, but is it from the command line or the environment?
11053 
11054     # Try to remove the string !TR! from our list.
11055     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11056     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11057       # If it failed, the variable was not from the command line. Ignore it,
11058       # but warn the user (except for BASH, which is always set by the calling BASH).
11059       if test "xTR" != xBASH; then
11060         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11061 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11062       fi
11063       # Try to locate tool using the code snippet
11064       for ac_prog in tr
11065 do
11066   # Extract the first word of "$ac_prog", so it can be a program name with args.
11067 set dummy $ac_prog; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_path_TR+:} false; then :
11071   $as_echo_n "(cached) " >&6
11072 else
11073   case $TR in
11074   [\\/]* | ?:[\\/]*)
11075   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11076   ;;
11077   *)
11078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081   IFS=$as_save_IFS
11082   test -z "$as_dir" && as_dir=.
11083     for ac_exec_ext in '' $ac_executable_extensions; do
11084   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087     break 2
11088   fi
11089 done
11090   done
11091 IFS=$as_save_IFS
11092 
11093   ;;
11094 esac
11095 fi
11096 TR=$ac_cv_path_TR
11097 if test -n "$TR"; then
11098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11099 $as_echo "$TR" >&6; }
11100 else
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 fi
11104 
11105 
11106   test -n "$TR" && break
11107 done
11108 
11109     else
11110       # If it succeeded, then it was overridden by the user. We will use it
11111       # for the tool.
11112 
11113       # First remove it from the list of overridden variables, so we can test
11114       # for unknown variables in the end.
11115       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11116 
11117       # Check if we try to supply an empty value
11118       if test "x$TR" = x; then
11119         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11120 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11122 $as_echo_n "checking for TR... " >&6; }
11123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11124 $as_echo "disabled" >&6; }
11125       else
11126         # Check if the provided tool contains a complete path.
11127         tool_specified="$TR"
11128         tool_basename="${tool_specified##*/}"
11129         if test "x$tool_basename" = "x$tool_specified"; then
11130           # A command without a complete path is provided, search $PATH.
11131           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11132 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11133           # Extract the first word of "$tool_basename", so it can be a program name with args.
11134 set dummy $tool_basename; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_TR+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   case $TR in
11141   [\\/]* | ?:[\\/]*)
11142   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11143   ;;
11144   *)
11145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148   IFS=$as_save_IFS
11149   test -z "$as_dir" && as_dir=.
11150     for ac_exec_ext in '' $ac_executable_extensions; do
11151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154     break 2
11155   fi
11156 done
11157   done
11158 IFS=$as_save_IFS
11159 
11160   ;;
11161 esac
11162 fi
11163 TR=$ac_cv_path_TR
11164 if test -n "$TR"; then
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11166 $as_echo "$TR" >&6; }
11167 else
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171 
11172 
11173           if test "x$TR" = x; then
11174             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11175           fi
11176         else
11177           # Otherwise we believe it is a complete path. Use it as it is.
11178           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11179 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11180           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11181 $as_echo_n "checking for TR... " >&6; }
11182           if test ! -x "$tool_specified"; then
11183             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11184 $as_echo "not found" >&6; }
11185             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11186           fi
11187           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11188 $as_echo "$tool_specified" >&6; }
11189         fi
11190       fi
11191     fi
11192 
11193   fi
11194 
11195 
11196 
11197   if test "x$TR" = x; then
11198     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11199   fi
11200 
11201 
11202 
11203 
11204 
11205   # Publish this variable in the help.
11206 
11207 
11208   if [ -z "${UNAME+x}" ]; then
11209     # The variable is not set by user, try to locate tool using the code snippet
11210     for ac_prog in uname
11211 do
11212   # Extract the first word of "$ac_prog", so it can be a program name with args.
11213 set dummy $ac_prog; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if ${ac_cv_path_UNAME+:} false; then :
11217   $as_echo_n "(cached) " >&6
11218 else
11219   case $UNAME in
11220   [\\/]* | ?:[\\/]*)
11221   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11222   ;;
11223   *)
11224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11226 do
11227   IFS=$as_save_IFS
11228   test -z "$as_dir" && as_dir=.
11229     for ac_exec_ext in '' $ac_executable_extensions; do
11230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233     break 2
11234   fi
11235 done
11236   done
11237 IFS=$as_save_IFS
11238 
11239   ;;
11240 esac
11241 fi
11242 UNAME=$ac_cv_path_UNAME
11243 if test -n "$UNAME"; then
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11245 $as_echo "$UNAME" >&6; }
11246 else
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11249 fi
11250 
11251 
11252   test -n "$UNAME" && break
11253 done
11254 
11255   else
11256     # The variable is set, but is it from the command line or the environment?
11257 
11258     # Try to remove the string !UNAME! from our list.
11259     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11260     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11261       # If it failed, the variable was not from the command line. Ignore it,
11262       # but warn the user (except for BASH, which is always set by the calling BASH).
11263       if test "xUNAME" != xBASH; then
11264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11265 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11266       fi
11267       # Try to locate tool using the code snippet
11268       for ac_prog in uname
11269 do
11270   # Extract the first word of "$ac_prog", so it can be a program name with args.
11271 set dummy $ac_prog; ac_word=$2
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if ${ac_cv_path_UNAME+:} false; then :
11275   $as_echo_n "(cached) " >&6
11276 else
11277   case $UNAME in
11278   [\\/]* | ?:[\\/]*)
11279   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11280   ;;
11281   *)
11282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11284 do
11285   IFS=$as_save_IFS
11286   test -z "$as_dir" && as_dir=.
11287     for ac_exec_ext in '' $ac_executable_extensions; do
11288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291     break 2
11292   fi
11293 done
11294   done
11295 IFS=$as_save_IFS
11296 
11297   ;;
11298 esac
11299 fi
11300 UNAME=$ac_cv_path_UNAME
11301 if test -n "$UNAME"; then
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11303 $as_echo "$UNAME" >&6; }
11304 else
11305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11307 fi
11308 
11309 
11310   test -n "$UNAME" && break
11311 done
11312 
11313     else
11314       # If it succeeded, then it was overridden by the user. We will use it
11315       # for the tool.
11316 
11317       # First remove it from the list of overridden variables, so we can test
11318       # for unknown variables in the end.
11319       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11320 
11321       # Check if we try to supply an empty value
11322       if test "x$UNAME" = x; then
11323         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11324 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11325         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11326 $as_echo_n "checking for UNAME... " >&6; }
11327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11328 $as_echo "disabled" >&6; }
11329       else
11330         # Check if the provided tool contains a complete path.
11331         tool_specified="$UNAME"
11332         tool_basename="${tool_specified##*/}"
11333         if test "x$tool_basename" = "x$tool_specified"; then
11334           # A command without a complete path is provided, search $PATH.
11335           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11336 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11337           # Extract the first word of "$tool_basename", so it can be a program name with args.
11338 set dummy $tool_basename; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if ${ac_cv_path_UNAME+:} false; then :
11342   $as_echo_n "(cached) " >&6
11343 else
11344   case $UNAME in
11345   [\\/]* | ?:[\\/]*)
11346   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11347   ;;
11348   *)
11349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11351 do
11352   IFS=$as_save_IFS
11353   test -z "$as_dir" && as_dir=.
11354     for ac_exec_ext in '' $ac_executable_extensions; do
11355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358     break 2
11359   fi
11360 done
11361   done
11362 IFS=$as_save_IFS
11363 
11364   ;;
11365 esac
11366 fi
11367 UNAME=$ac_cv_path_UNAME
11368 if test -n "$UNAME"; then
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11370 $as_echo "$UNAME" >&6; }
11371 else
11372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 $as_echo "no" >&6; }
11374 fi
11375 
11376 
11377           if test "x$UNAME" = x; then
11378             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11379           fi
11380         else
11381           # Otherwise we believe it is a complete path. Use it as it is.
11382           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11383 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11384           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11385 $as_echo_n "checking for UNAME... " >&6; }
11386           if test ! -x "$tool_specified"; then
11387             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11388 $as_echo "not found" >&6; }
11389             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11390           fi
11391           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11392 $as_echo "$tool_specified" >&6; }
11393         fi
11394       fi
11395     fi
11396 
11397   fi
11398 
11399 
11400 
11401   if test "x$UNAME" = x; then
11402     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11403   fi
11404 
11405 
11406 
11407 
11408 
11409   # Publish this variable in the help.
11410 
11411 
11412   if [ -z "${UNIQ+x}" ]; then
11413     # The variable is not set by user, try to locate tool using the code snippet
11414     for ac_prog in uniq
11415 do
11416   # Extract the first word of "$ac_prog", so it can be a program name with args.
11417 set dummy $ac_prog; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if ${ac_cv_path_UNIQ+:} false; then :
11421   $as_echo_n "(cached) " >&6
11422 else
11423   case $UNIQ in
11424   [\\/]* | ?:[\\/]*)
11425   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11426   ;;
11427   *)
11428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11430 do
11431   IFS=$as_save_IFS
11432   test -z "$as_dir" && as_dir=.
11433     for ac_exec_ext in '' $ac_executable_extensions; do
11434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11435     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437     break 2
11438   fi
11439 done
11440   done
11441 IFS=$as_save_IFS
11442 
11443   ;;
11444 esac
11445 fi
11446 UNIQ=$ac_cv_path_UNIQ
11447 if test -n "$UNIQ"; then
11448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11449 $as_echo "$UNIQ" >&6; }
11450 else
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11453 fi
11454 
11455 
11456   test -n "$UNIQ" && break
11457 done
11458 
11459   else
11460     # The variable is set, but is it from the command line or the environment?
11461 
11462     # Try to remove the string !UNIQ! from our list.
11463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11465       # If it failed, the variable was not from the command line. Ignore it,
11466       # but warn the user (except for BASH, which is always set by the calling BASH).
11467       if test "xUNIQ" != xBASH; then
11468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11469 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11470       fi
11471       # Try to locate tool using the code snippet
11472       for ac_prog in uniq
11473 do
11474   # Extract the first word of "$ac_prog", so it can be a program name with args.
11475 set dummy $ac_prog; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if ${ac_cv_path_UNIQ+:} false; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   case $UNIQ in
11482   [\\/]* | ?:[\\/]*)
11483   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11484   ;;
11485   *)
11486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11488 do
11489   IFS=$as_save_IFS
11490   test -z "$as_dir" && as_dir=.
11491     for ac_exec_ext in '' $ac_executable_extensions; do
11492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11493     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495     break 2
11496   fi
11497 done
11498   done
11499 IFS=$as_save_IFS
11500 
11501   ;;
11502 esac
11503 fi
11504 UNIQ=$ac_cv_path_UNIQ
11505 if test -n "$UNIQ"; then
11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11507 $as_echo "$UNIQ" >&6; }
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 fi
11512 
11513 
11514   test -n "$UNIQ" && break
11515 done
11516 
11517     else
11518       # If it succeeded, then it was overridden by the user. We will use it
11519       # for the tool.
11520 
11521       # First remove it from the list of overridden variables, so we can test
11522       # for unknown variables in the end.
11523       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11524 
11525       # Check if we try to supply an empty value
11526       if test "x$UNIQ" = x; then
11527         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11528 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11530 $as_echo_n "checking for UNIQ... " >&6; }
11531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11532 $as_echo "disabled" >&6; }
11533       else
11534         # Check if the provided tool contains a complete path.
11535         tool_specified="$UNIQ"
11536         tool_basename="${tool_specified##*/}"
11537         if test "x$tool_basename" = "x$tool_specified"; then
11538           # A command without a complete path is provided, search $PATH.
11539           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11540 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11541           # Extract the first word of "$tool_basename", so it can be a program name with args.
11542 set dummy $tool_basename; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if ${ac_cv_path_UNIQ+:} false; then :
11546   $as_echo_n "(cached) " >&6
11547 else
11548   case $UNIQ in
11549   [\\/]* | ?:[\\/]*)
11550   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11551   ;;
11552   *)
11553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $PATH
11555 do
11556   IFS=$as_save_IFS
11557   test -z "$as_dir" && as_dir=.
11558     for ac_exec_ext in '' $ac_executable_extensions; do
11559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562     break 2
11563   fi
11564 done
11565   done
11566 IFS=$as_save_IFS
11567 
11568   ;;
11569 esac
11570 fi
11571 UNIQ=$ac_cv_path_UNIQ
11572 if test -n "$UNIQ"; then
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11574 $as_echo "$UNIQ" >&6; }
11575 else
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11578 fi
11579 
11580 
11581           if test "x$UNIQ" = x; then
11582             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11583           fi
11584         else
11585           # Otherwise we believe it is a complete path. Use it as it is.
11586           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11587 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11588           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11589 $as_echo_n "checking for UNIQ... " >&6; }
11590           if test ! -x "$tool_specified"; then
11591             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11592 $as_echo "not found" >&6; }
11593             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11594           fi
11595           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11596 $as_echo "$tool_specified" >&6; }
11597         fi
11598       fi
11599     fi
11600 
11601   fi
11602 
11603 
11604 
11605   if test "x$UNIQ" = x; then
11606     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11607   fi
11608 
11609 
11610 
11611 
11612 
11613   # Publish this variable in the help.
11614 
11615 
11616   if [ -z "${WC+x}" ]; then
11617     # The variable is not set by user, try to locate tool using the code snippet
11618     for ac_prog in wc
11619 do
11620   # Extract the first word of "$ac_prog", so it can be a program name with args.
11621 set dummy $ac_prog; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_WC+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   case $WC in
11628   [\\/]* | ?:[\\/]*)
11629   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11630   ;;
11631   *)
11632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11634 do
11635   IFS=$as_save_IFS
11636   test -z "$as_dir" && as_dir=.
11637     for ac_exec_ext in '' $ac_executable_extensions; do
11638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11641     break 2
11642   fi
11643 done
11644   done
11645 IFS=$as_save_IFS
11646 
11647   ;;
11648 esac
11649 fi
11650 WC=$ac_cv_path_WC
11651 if test -n "$WC"; then
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11653 $as_echo "$WC" >&6; }
11654 else
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11657 fi
11658 
11659 
11660   test -n "$WC" && break
11661 done
11662 
11663   else
11664     # The variable is set, but is it from the command line or the environment?
11665 
11666     # Try to remove the string !WC! from our list.
11667     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11668     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11669       # If it failed, the variable was not from the command line. Ignore it,
11670       # but warn the user (except for BASH, which is always set by the calling BASH).
11671       if test "xWC" != xBASH; then
11672         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11673 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11674       fi
11675       # Try to locate tool using the code snippet
11676       for ac_prog in wc
11677 do
11678   # Extract the first word of "$ac_prog", so it can be a program name with args.
11679 set dummy $ac_prog; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if ${ac_cv_path_WC+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   case $WC in
11686   [\\/]* | ?:[\\/]*)
11687   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11688   ;;
11689   *)
11690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11692 do
11693   IFS=$as_save_IFS
11694   test -z "$as_dir" && as_dir=.
11695     for ac_exec_ext in '' $ac_executable_extensions; do
11696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699     break 2
11700   fi
11701 done
11702   done
11703 IFS=$as_save_IFS
11704 
11705   ;;
11706 esac
11707 fi
11708 WC=$ac_cv_path_WC
11709 if test -n "$WC"; then
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11711 $as_echo "$WC" >&6; }
11712 else
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716 
11717 
11718   test -n "$WC" && break
11719 done
11720 
11721     else
11722       # If it succeeded, then it was overridden by the user. We will use it
11723       # for the tool.
11724 
11725       # First remove it from the list of overridden variables, so we can test
11726       # for unknown variables in the end.
11727       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11728 
11729       # Check if we try to supply an empty value
11730       if test "x$WC" = x; then
11731         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11732 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11734 $as_echo_n "checking for WC... " >&6; }
11735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11736 $as_echo "disabled" >&6; }
11737       else
11738         # Check if the provided tool contains a complete path.
11739         tool_specified="$WC"
11740         tool_basename="${tool_specified##*/}"
11741         if test "x$tool_basename" = "x$tool_specified"; then
11742           # A command without a complete path is provided, search $PATH.
11743           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11744 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11745           # Extract the first word of "$tool_basename", so it can be a program name with args.
11746 set dummy $tool_basename; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if ${ac_cv_path_WC+:} false; then :
11750   $as_echo_n "(cached) " >&6
11751 else
11752   case $WC in
11753   [\\/]* | ?:[\\/]*)
11754   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11755   ;;
11756   *)
11757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760   IFS=$as_save_IFS
11761   test -z "$as_dir" && as_dir=.
11762     for ac_exec_ext in '' $ac_executable_extensions; do
11763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11766     break 2
11767   fi
11768 done
11769   done
11770 IFS=$as_save_IFS
11771 
11772   ;;
11773 esac
11774 fi
11775 WC=$ac_cv_path_WC
11776 if test -n "$WC"; then
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11778 $as_echo "$WC" >&6; }
11779 else
11780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11782 fi
11783 
11784 
11785           if test "x$WC" = x; then
11786             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11787           fi
11788         else
11789           # Otherwise we believe it is a complete path. Use it as it is.
11790           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11791 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11792           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11793 $as_echo_n "checking for WC... " >&6; }
11794           if test ! -x "$tool_specified"; then
11795             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11796 $as_echo "not found" >&6; }
11797             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11798           fi
11799           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11800 $as_echo "$tool_specified" >&6; }
11801         fi
11802       fi
11803     fi
11804 
11805   fi
11806 
11807 
11808 
11809   if test "x$WC" = x; then
11810     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11811   fi
11812 
11813 
11814 
11815 
11816 
11817   # Publish this variable in the help.
11818 
11819 
11820   if [ -z "${WHICH+x}" ]; then
11821     # The variable is not set by user, try to locate tool using the code snippet
11822     for ac_prog in which
11823 do
11824   # Extract the first word of "$ac_prog", so it can be a program name with args.
11825 set dummy $ac_prog; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if ${ac_cv_path_WHICH+:} false; then :
11829   $as_echo_n "(cached) " >&6
11830 else
11831   case $WHICH in
11832   [\\/]* | ?:[\\/]*)
11833   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11834   ;;
11835   *)
11836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11838 do
11839   IFS=$as_save_IFS
11840   test -z "$as_dir" && as_dir=.
11841     for ac_exec_ext in '' $ac_executable_extensions; do
11842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845     break 2
11846   fi
11847 done
11848   done
11849 IFS=$as_save_IFS
11850 
11851   ;;
11852 esac
11853 fi
11854 WHICH=$ac_cv_path_WHICH
11855 if test -n "$WHICH"; then
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11857 $as_echo "$WHICH" >&6; }
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862 
11863 
11864   test -n "$WHICH" && break
11865 done
11866 
11867   else
11868     # The variable is set, but is it from the command line or the environment?
11869 
11870     # Try to remove the string !WHICH! from our list.
11871     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11872     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11873       # If it failed, the variable was not from the command line. Ignore it,
11874       # but warn the user (except for BASH, which is always set by the calling BASH).
11875       if test "xWHICH" != xBASH; then
11876         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11877 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11878       fi
11879       # Try to locate tool using the code snippet
11880       for ac_prog in which
11881 do
11882   # Extract the first word of "$ac_prog", so it can be a program name with args.
11883 set dummy $ac_prog; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if ${ac_cv_path_WHICH+:} false; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889   case $WHICH in
11890   [\\/]* | ?:[\\/]*)
11891   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11892   ;;
11893   *)
11894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897   IFS=$as_save_IFS
11898   test -z "$as_dir" && as_dir=.
11899     for ac_exec_ext in '' $ac_executable_extensions; do
11900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903     break 2
11904   fi
11905 done
11906   done
11907 IFS=$as_save_IFS
11908 
11909   ;;
11910 esac
11911 fi
11912 WHICH=$ac_cv_path_WHICH
11913 if test -n "$WHICH"; then
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11915 $as_echo "$WHICH" >&6; }
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920 
11921 
11922   test -n "$WHICH" && break
11923 done
11924 
11925     else
11926       # If it succeeded, then it was overridden by the user. We will use it
11927       # for the tool.
11928 
11929       # First remove it from the list of overridden variables, so we can test
11930       # for unknown variables in the end.
11931       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11932 
11933       # Check if we try to supply an empty value
11934       if test "x$WHICH" = x; then
11935         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11936 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11937         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11938 $as_echo_n "checking for WHICH... " >&6; }
11939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11940 $as_echo "disabled" >&6; }
11941       else
11942         # Check if the provided tool contains a complete path.
11943         tool_specified="$WHICH"
11944         tool_basename="${tool_specified##*/}"
11945         if test "x$tool_basename" = "x$tool_specified"; then
11946           # A command without a complete path is provided, search $PATH.
11947           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11948 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11949           # Extract the first word of "$tool_basename", so it can be a program name with args.
11950 set dummy $tool_basename; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_path_WHICH+:} false; then :
11954   $as_echo_n "(cached) " >&6
11955 else
11956   case $WHICH in
11957   [\\/]* | ?:[\\/]*)
11958   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11959   ;;
11960   *)
11961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11963 do
11964   IFS=$as_save_IFS
11965   test -z "$as_dir" && as_dir=.
11966     for ac_exec_ext in '' $ac_executable_extensions; do
11967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11970     break 2
11971   fi
11972 done
11973   done
11974 IFS=$as_save_IFS
11975 
11976   ;;
11977 esac
11978 fi
11979 WHICH=$ac_cv_path_WHICH
11980 if test -n "$WHICH"; then
11981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11982 $as_echo "$WHICH" >&6; }
11983 else
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986 fi
11987 
11988 
11989           if test "x$WHICH" = x; then
11990             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11991           fi
11992         else
11993           # Otherwise we believe it is a complete path. Use it as it is.
11994           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11995 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11996           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11997 $as_echo_n "checking for WHICH... " >&6; }
11998           if test ! -x "$tool_specified"; then
11999             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12000 $as_echo "not found" >&6; }
12001             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12002           fi
12003           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12004 $as_echo "$tool_specified" >&6; }
12005         fi
12006       fi
12007     fi
12008 
12009   fi
12010 
12011 
12012 
12013   if test "x$WHICH" = x; then
12014     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12015   fi
12016 
12017 
12018 
12019 
12020 
12021   # Publish this variable in the help.
12022 
12023 
12024   if [ -z "${XARGS+x}" ]; then
12025     # The variable is not set by user, try to locate tool using the code snippet
12026     for ac_prog in xargs
12027 do
12028   # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_XARGS+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   case $XARGS in
12036   [\\/]* | ?:[\\/]*)
12037   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12038   ;;
12039   *)
12040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052   done
12053 IFS=$as_save_IFS
12054 
12055   ;;
12056 esac
12057 fi
12058 XARGS=$ac_cv_path_XARGS
12059 if test -n "$XARGS"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12061 $as_echo "$XARGS" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066 
12067 
12068   test -n "$XARGS" && break
12069 done
12070 
12071   else
12072     # The variable is set, but is it from the command line or the environment?
12073 
12074     # Try to remove the string !XARGS! from our list.
12075     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12076     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12077       # If it failed, the variable was not from the command line. Ignore it,
12078       # but warn the user (except for BASH, which is always set by the calling BASH).
12079       if test "xXARGS" != xBASH; then
12080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12081 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12082       fi
12083       # Try to locate tool using the code snippet
12084       for ac_prog in xargs
12085 do
12086   # Extract the first word of "$ac_prog", so it can be a program name with args.
12087 set dummy $ac_prog; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if ${ac_cv_path_XARGS+:} false; then :
12091   $as_echo_n "(cached) " >&6
12092 else
12093   case $XARGS in
12094   [\\/]* | ?:[\\/]*)
12095   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12096   ;;
12097   *)
12098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103     for ac_exec_ext in '' $ac_executable_extensions; do
12104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110   done
12111 IFS=$as_save_IFS
12112 
12113   ;;
12114 esac
12115 fi
12116 XARGS=$ac_cv_path_XARGS
12117 if test -n "$XARGS"; then
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12119 $as_echo "$XARGS" >&6; }
12120 else
12121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12123 fi
12124 
12125 
12126   test -n "$XARGS" && break
12127 done
12128 
12129     else
12130       # If it succeeded, then it was overridden by the user. We will use it
12131       # for the tool.
12132 
12133       # First remove it from the list of overridden variables, so we can test
12134       # for unknown variables in the end.
12135       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12136 
12137       # Check if we try to supply an empty value
12138       if test "x$XARGS" = x; then
12139         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12140 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12141         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12142 $as_echo_n "checking for XARGS... " >&6; }
12143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12144 $as_echo "disabled" >&6; }
12145       else
12146         # Check if the provided tool contains a complete path.
12147         tool_specified="$XARGS"
12148         tool_basename="${tool_specified##*/}"
12149         if test "x$tool_basename" = "x$tool_specified"; then
12150           # A command without a complete path is provided, search $PATH.
12151           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12152 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12153           # Extract the first word of "$tool_basename", so it can be a program name with args.
12154 set dummy $tool_basename; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if ${ac_cv_path_XARGS+:} false; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160   case $XARGS in
12161   [\\/]* | ?:[\\/]*)
12162   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12163   ;;
12164   *)
12165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166 for as_dir in $PATH
12167 do
12168   IFS=$as_save_IFS
12169   test -z "$as_dir" && as_dir=.
12170     for ac_exec_ext in '' $ac_executable_extensions; do
12171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12172     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174     break 2
12175   fi
12176 done
12177   done
12178 IFS=$as_save_IFS
12179 
12180   ;;
12181 esac
12182 fi
12183 XARGS=$ac_cv_path_XARGS
12184 if test -n "$XARGS"; then
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12186 $as_echo "$XARGS" >&6; }
12187 else
12188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12190 fi
12191 
12192 
12193           if test "x$XARGS" = x; then
12194             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12195           fi
12196         else
12197           # Otherwise we believe it is a complete path. Use it as it is.
12198           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12199 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12200           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12201 $as_echo_n "checking for XARGS... " >&6; }
12202           if test ! -x "$tool_specified"; then
12203             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12204 $as_echo "not found" >&6; }
12205             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12206           fi
12207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12208 $as_echo "$tool_specified" >&6; }
12209         fi
12210       fi
12211     fi
12212 
12213   fi
12214 
12215 
12216 
12217   if test "x$XARGS" = x; then
12218     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12219   fi
12220 
12221 
12222 
12223   # Then required tools that require some special treatment.
12224 
12225 
12226   # Publish this variable in the help.
12227 
12228 
12229   if [ -z "${AWK+x}" ]; then
12230     # The variable is not set by user, try to locate tool using the code snippet
12231     for ac_prog in gawk mawk nawk awk
12232 do
12233   # Extract the first word of "$ac_prog", so it can be a program name with args.
12234 set dummy $ac_prog; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236 $as_echo_n "checking for $ac_word... " >&6; }
12237 if ${ac_cv_prog_AWK+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   if test -n "$AWK"; then
12241   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12242 else
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12245 do
12246   IFS=$as_save_IFS
12247   test -z "$as_dir" && as_dir=.
12248     for ac_exec_ext in '' $ac_executable_extensions; do
12249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250     ac_cv_prog_AWK="$ac_prog"
12251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252     break 2
12253   fi
12254 done
12255   done
12256 IFS=$as_save_IFS
12257 
12258 fi
12259 fi
12260 AWK=$ac_cv_prog_AWK
12261 if test -n "$AWK"; then
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12263 $as_echo "$AWK" >&6; }
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268 
12269 
12270   test -n "$AWK" && break
12271 done
12272 
12273   else
12274     # The variable is set, but is it from the command line or the environment?
12275 
12276     # Try to remove the string !AWK! from our list.
12277     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12278     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12279       # If it failed, the variable was not from the command line. Ignore it,
12280       # but warn the user (except for BASH, which is always set by the calling BASH).
12281       if test "xAWK" != xBASH; then
12282         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12283 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12284       fi
12285       # Try to locate tool using the code snippet
12286       for ac_prog in gawk mawk nawk awk
12287 do
12288   # Extract the first word of "$ac_prog", so it can be a program name with args.
12289 set dummy $ac_prog; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if ${ac_cv_prog_AWK+:} false; then :
12293   $as_echo_n "(cached) " >&6
12294 else
12295   if test -n "$AWK"; then
12296   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12297 else
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301   IFS=$as_save_IFS
12302   test -z "$as_dir" && as_dir=.
12303     for ac_exec_ext in '' $ac_executable_extensions; do
12304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305     ac_cv_prog_AWK="$ac_prog"
12306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307     break 2
12308   fi
12309 done
12310   done
12311 IFS=$as_save_IFS
12312 
12313 fi
12314 fi
12315 AWK=$ac_cv_prog_AWK
12316 if test -n "$AWK"; then
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12318 $as_echo "$AWK" >&6; }
12319 else
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12322 fi
12323 
12324 
12325   test -n "$AWK" && break
12326 done
12327 
12328     else
12329       # If it succeeded, then it was overridden by the user. We will use it
12330       # for the tool.
12331 
12332       # First remove it from the list of overridden variables, so we can test
12333       # for unknown variables in the end.
12334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12335 
12336       # Check if we try to supply an empty value
12337       if test "x$AWK" = x; then
12338         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12339 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12341 $as_echo_n "checking for AWK... " >&6; }
12342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12343 $as_echo "disabled" >&6; }
12344       else
12345         # Check if the provided tool contains a complete path.
12346         tool_specified="$AWK"
12347         tool_basename="${tool_specified##*/}"
12348         if test "x$tool_basename" = "x$tool_specified"; then
12349           # A command without a complete path is provided, search $PATH.
12350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12351 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12352           # Extract the first word of "$tool_basename", so it can be a program name with args.
12353 set dummy $tool_basename; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_path_AWK+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   case $AWK in
12360   [\\/]* | ?:[\\/]*)
12361   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12362   ;;
12363   *)
12364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12366 do
12367   IFS=$as_save_IFS
12368   test -z "$as_dir" && as_dir=.
12369     for ac_exec_ext in '' $ac_executable_extensions; do
12370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373     break 2
12374   fi
12375 done
12376   done
12377 IFS=$as_save_IFS
12378 
12379   ;;
12380 esac
12381 fi
12382 AWK=$ac_cv_path_AWK
12383 if test -n "$AWK"; then
12384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12385 $as_echo "$AWK" >&6; }
12386 else
12387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 fi
12390 
12391 
12392           if test "x$AWK" = x; then
12393             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12394           fi
12395         else
12396           # Otherwise we believe it is a complete path. Use it as it is.
12397           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12398 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12400 $as_echo_n "checking for AWK... " >&6; }
12401           if test ! -x "$tool_specified"; then
12402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12403 $as_echo "not found" >&6; }
12404             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12405           fi
12406           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12407 $as_echo "$tool_specified" >&6; }
12408         fi
12409       fi
12410     fi
12411 
12412   fi
12413 
12414 
12415   if test "x$AWK" = x; then
12416     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12417   fi
12418 
12419 
12420 
12421 
12422   # Publish this variable in the help.
12423 
12424 
12425   if [ -z "${GREP+x}" ]; then
12426     # The variable is not set by user, try to locate tool using the code snippet
12427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12428 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12429 if ${ac_cv_path_GREP+:} false; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432   if test -z "$GREP"; then
12433   ac_path_GREP_found=false
12434   # Loop through the user's path and test for each of PROGNAME-LIST
12435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12437 do
12438   IFS=$as_save_IFS
12439   test -z "$as_dir" && as_dir=.
12440     for ac_prog in grep ggrep; do
12441     for ac_exec_ext in '' $ac_executable_extensions; do
12442       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12443       as_fn_executable_p "$ac_path_GREP" || continue
12444 # Check for GNU ac_path_GREP and select it if it is found.
12445   # Check for GNU $ac_path_GREP
12446 case `"$ac_path_GREP" --version 2>&1` in
12447 *GNU*)
12448   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12449 *)
12450   ac_count=0
12451   $as_echo_n 0123456789 >"conftest.in"
12452   while :
12453   do
12454     cat "conftest.in" "conftest.in" >"conftest.tmp"
12455     mv "conftest.tmp" "conftest.in"
12456     cp "conftest.in" "conftest.nl"
12457     $as_echo 'GREP' >> "conftest.nl"
12458     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12459     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12460     as_fn_arith $ac_count + 1 && ac_count=$as_val
12461     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12462       # Best one so far, save it but keep looking for a better one
12463       ac_cv_path_GREP="$ac_path_GREP"
12464       ac_path_GREP_max=$ac_count
12465     fi
12466     # 10*(2^10) chars as input seems more than enough
12467     test $ac_count -gt 10 && break
12468   done
12469   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12470 esac
12471 
12472       $ac_path_GREP_found && break 3
12473     done
12474   done
12475   done
12476 IFS=$as_save_IFS
12477   if test -z "$ac_cv_path_GREP"; then
12478     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12479   fi
12480 else
12481   ac_cv_path_GREP=$GREP
12482 fi
12483 
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12486 $as_echo "$ac_cv_path_GREP" >&6; }
12487  GREP="$ac_cv_path_GREP"
12488 
12489 
12490   else
12491     # The variable is set, but is it from the command line or the environment?
12492 
12493     # Try to remove the string !GREP! from our list.
12494     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12495     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12496       # If it failed, the variable was not from the command line. Ignore it,
12497       # but warn the user (except for BASH, which is always set by the calling BASH).
12498       if test "xGREP" != xBASH; then
12499         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12500 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12501       fi
12502       # Try to locate tool using the code snippet
12503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12504 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12505 if ${ac_cv_path_GREP+:} false; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   if test -z "$GREP"; then
12509   ac_path_GREP_found=false
12510   # Loop through the user's path and test for each of PROGNAME-LIST
12511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12513 do
12514   IFS=$as_save_IFS
12515   test -z "$as_dir" && as_dir=.
12516     for ac_prog in grep ggrep; do
12517     for ac_exec_ext in '' $ac_executable_extensions; do
12518       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12519       as_fn_executable_p "$ac_path_GREP" || continue
12520 # Check for GNU ac_path_GREP and select it if it is found.
12521   # Check for GNU $ac_path_GREP
12522 case `"$ac_path_GREP" --version 2>&1` in
12523 *GNU*)
12524   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12525 *)
12526   ac_count=0
12527   $as_echo_n 0123456789 >"conftest.in"
12528   while :
12529   do
12530     cat "conftest.in" "conftest.in" >"conftest.tmp"
12531     mv "conftest.tmp" "conftest.in"
12532     cp "conftest.in" "conftest.nl"
12533     $as_echo 'GREP' >> "conftest.nl"
12534     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12536     as_fn_arith $ac_count + 1 && ac_count=$as_val
12537     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12538       # Best one so far, save it but keep looking for a better one
12539       ac_cv_path_GREP="$ac_path_GREP"
12540       ac_path_GREP_max=$ac_count
12541     fi
12542     # 10*(2^10) chars as input seems more than enough
12543     test $ac_count -gt 10 && break
12544   done
12545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12546 esac
12547 
12548       $ac_path_GREP_found && break 3
12549     done
12550   done
12551   done
12552 IFS=$as_save_IFS
12553   if test -z "$ac_cv_path_GREP"; then
12554     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12555   fi
12556 else
12557   ac_cv_path_GREP=$GREP
12558 fi
12559 
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12562 $as_echo "$ac_cv_path_GREP" >&6; }
12563  GREP="$ac_cv_path_GREP"
12564 
12565 
12566     else
12567       # If it succeeded, then it was overridden by the user. We will use it
12568       # for the tool.
12569 
12570       # First remove it from the list of overridden variables, so we can test
12571       # for unknown variables in the end.
12572       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12573 
12574       # Check if we try to supply an empty value
12575       if test "x$GREP" = x; then
12576         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12577 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12579 $as_echo_n "checking for GREP... " >&6; }
12580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12581 $as_echo "disabled" >&6; }
12582       else
12583         # Check if the provided tool contains a complete path.
12584         tool_specified="$GREP"
12585         tool_basename="${tool_specified##*/}"
12586         if test "x$tool_basename" = "x$tool_specified"; then
12587           # A command without a complete path is provided, search $PATH.
12588           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12589 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12590           # Extract the first word of "$tool_basename", so it can be a program name with args.
12591 set dummy $tool_basename; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if ${ac_cv_path_GREP+:} false; then :
12595   $as_echo_n "(cached) " >&6
12596 else
12597   case $GREP in
12598   [\\/]* | ?:[\\/]*)
12599   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12600   ;;
12601   *)
12602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605   IFS=$as_save_IFS
12606   test -z "$as_dir" && as_dir=.
12607     for ac_exec_ext in '' $ac_executable_extensions; do
12608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612   fi
12613 done
12614   done
12615 IFS=$as_save_IFS
12616 
12617   ;;
12618 esac
12619 fi
12620 GREP=$ac_cv_path_GREP
12621 if test -n "$GREP"; then
12622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12623 $as_echo "$GREP" >&6; }
12624 else
12625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626 $as_echo "no" >&6; }
12627 fi
12628 
12629 
12630           if test "x$GREP" = x; then
12631             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12632           fi
12633         else
12634           # Otherwise we believe it is a complete path. Use it as it is.
12635           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12636 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12638 $as_echo_n "checking for GREP... " >&6; }
12639           if test ! -x "$tool_specified"; then
12640             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12641 $as_echo "not found" >&6; }
12642             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12643           fi
12644           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12645 $as_echo "$tool_specified" >&6; }
12646         fi
12647       fi
12648     fi
12649 
12650   fi
12651 
12652 
12653   if test "x$GREP" = x; then
12654     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12655   fi
12656 
12657 
12658 
12659 
12660   # Publish this variable in the help.
12661 
12662 
12663   if [ -z "${EGREP+x}" ]; then
12664     # The variable is not set by user, try to locate tool using the code snippet
12665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12666 $as_echo_n "checking for egrep... " >&6; }
12667 if ${ac_cv_path_EGREP+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12671    then ac_cv_path_EGREP="$GREP -E"
12672    else
12673      if test -z "$EGREP"; then
12674   ac_path_EGREP_found=false
12675   # Loop through the user's path and test for each of PROGNAME-LIST
12676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12678 do
12679   IFS=$as_save_IFS
12680   test -z "$as_dir" && as_dir=.
12681     for ac_prog in egrep; do
12682     for ac_exec_ext in '' $ac_executable_extensions; do
12683       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12684       as_fn_executable_p "$ac_path_EGREP" || continue
12685 # Check for GNU ac_path_EGREP and select it if it is found.
12686   # Check for GNU $ac_path_EGREP
12687 case `"$ac_path_EGREP" --version 2>&1` in
12688 *GNU*)
12689   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12690 *)
12691   ac_count=0
12692   $as_echo_n 0123456789 >"conftest.in"
12693   while :
12694   do
12695     cat "conftest.in" "conftest.in" >"conftest.tmp"
12696     mv "conftest.tmp" "conftest.in"
12697     cp "conftest.in" "conftest.nl"
12698     $as_echo 'EGREP' >> "conftest.nl"
12699     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12700     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12701     as_fn_arith $ac_count + 1 && ac_count=$as_val
12702     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12703       # Best one so far, save it but keep looking for a better one
12704       ac_cv_path_EGREP="$ac_path_EGREP"
12705       ac_path_EGREP_max=$ac_count
12706     fi
12707     # 10*(2^10) chars as input seems more than enough
12708     test $ac_count -gt 10 && break
12709   done
12710   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12711 esac
12712 
12713       $ac_path_EGREP_found && break 3
12714     done
12715   done
12716   done
12717 IFS=$as_save_IFS
12718   if test -z "$ac_cv_path_EGREP"; then
12719     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12720   fi
12721 else
12722   ac_cv_path_EGREP=$EGREP
12723 fi
12724 
12725    fi
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12728 $as_echo "$ac_cv_path_EGREP" >&6; }
12729  EGREP="$ac_cv_path_EGREP"
12730 
12731 
12732   else
12733     # The variable is set, but is it from the command line or the environment?
12734 
12735     # Try to remove the string !EGREP! from our list.
12736     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12737     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12738       # If it failed, the variable was not from the command line. Ignore it,
12739       # but warn the user (except for BASH, which is always set by the calling BASH).
12740       if test "xEGREP" != xBASH; then
12741         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12742 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12743       fi
12744       # Try to locate tool using the code snippet
12745       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12746 $as_echo_n "checking for egrep... " >&6; }
12747 if ${ac_cv_path_EGREP+:} false; then :
12748   $as_echo_n "(cached) " >&6
12749 else
12750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12751    then ac_cv_path_EGREP="$GREP -E"
12752    else
12753      if test -z "$EGREP"; then
12754   ac_path_EGREP_found=false
12755   # Loop through the user's path and test for each of PROGNAME-LIST
12756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12758 do
12759   IFS=$as_save_IFS
12760   test -z "$as_dir" && as_dir=.
12761     for ac_prog in egrep; do
12762     for ac_exec_ext in '' $ac_executable_extensions; do
12763       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12764       as_fn_executable_p "$ac_path_EGREP" || continue
12765 # Check for GNU ac_path_EGREP and select it if it is found.
12766   # Check for GNU $ac_path_EGREP
12767 case `"$ac_path_EGREP" --version 2>&1` in
12768 *GNU*)
12769   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12770 *)
12771   ac_count=0
12772   $as_echo_n 0123456789 >"conftest.in"
12773   while :
12774   do
12775     cat "conftest.in" "conftest.in" >"conftest.tmp"
12776     mv "conftest.tmp" "conftest.in"
12777     cp "conftest.in" "conftest.nl"
12778     $as_echo 'EGREP' >> "conftest.nl"
12779     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12780     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12781     as_fn_arith $ac_count + 1 && ac_count=$as_val
12782     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12783       # Best one so far, save it but keep looking for a better one
12784       ac_cv_path_EGREP="$ac_path_EGREP"
12785       ac_path_EGREP_max=$ac_count
12786     fi
12787     # 10*(2^10) chars as input seems more than enough
12788     test $ac_count -gt 10 && break
12789   done
12790   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12791 esac
12792 
12793       $ac_path_EGREP_found && break 3
12794     done
12795   done
12796   done
12797 IFS=$as_save_IFS
12798   if test -z "$ac_cv_path_EGREP"; then
12799     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12800   fi
12801 else
12802   ac_cv_path_EGREP=$EGREP
12803 fi
12804 
12805    fi
12806 fi
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12808 $as_echo "$ac_cv_path_EGREP" >&6; }
12809  EGREP="$ac_cv_path_EGREP"
12810 
12811 
12812     else
12813       # If it succeeded, then it was overridden by the user. We will use it
12814       # for the tool.
12815 
12816       # First remove it from the list of overridden variables, so we can test
12817       # for unknown variables in the end.
12818       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12819 
12820       # Check if we try to supply an empty value
12821       if test "x$EGREP" = x; then
12822         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12823 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12825 $as_echo_n "checking for EGREP... " >&6; }
12826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12827 $as_echo "disabled" >&6; }
12828       else
12829         # Check if the provided tool contains a complete path.
12830         tool_specified="$EGREP"
12831         tool_basename="${tool_specified##*/}"
12832         if test "x$tool_basename" = "x$tool_specified"; then
12833           # A command without a complete path is provided, search $PATH.
12834           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12835 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12836           # Extract the first word of "$tool_basename", so it can be a program name with args.
12837 set dummy $tool_basename; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_EGREP+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $EGREP in
12844   [\\/]* | ?:[\\/]*)
12845   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12846   ;;
12847   *)
12848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862 
12863   ;;
12864 esac
12865 fi
12866 EGREP=$ac_cv_path_EGREP
12867 if test -n "$EGREP"; then
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12869 $as_echo "$EGREP" >&6; }
12870 else
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874 
12875 
12876           if test "x$EGREP" = x; then
12877             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12878           fi
12879         else
12880           # Otherwise we believe it is a complete path. Use it as it is.
12881           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12882 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12883           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12884 $as_echo_n "checking for EGREP... " >&6; }
12885           if test ! -x "$tool_specified"; then
12886             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12887 $as_echo "not found" >&6; }
12888             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12889           fi
12890           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12891 $as_echo "$tool_specified" >&6; }
12892         fi
12893       fi
12894     fi
12895 
12896   fi
12897 
12898 
12899   if test "x$EGREP" = x; then
12900     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12901   fi
12902 
12903 
12904 
12905 
12906   # Publish this variable in the help.
12907 
12908 
12909   if [ -z "${FGREP+x}" ]; then
12910     # The variable is not set by user, try to locate tool using the code snippet
12911     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12912 $as_echo_n "checking for fgrep... " >&6; }
12913 if ${ac_cv_path_FGREP+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12917    then ac_cv_path_FGREP="$GREP -F"
12918    else
12919      if test -z "$FGREP"; then
12920   ac_path_FGREP_found=false
12921   # Loop through the user's path and test for each of PROGNAME-LIST
12922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927     for ac_prog in fgrep; do
12928     for ac_exec_ext in '' $ac_executable_extensions; do
12929       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12930       as_fn_executable_p "$ac_path_FGREP" || continue
12931 # Check for GNU ac_path_FGREP and select it if it is found.
12932   # Check for GNU $ac_path_FGREP
12933 case `"$ac_path_FGREP" --version 2>&1` in
12934 *GNU*)
12935   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12936 *)
12937   ac_count=0
12938   $as_echo_n 0123456789 >"conftest.in"
12939   while :
12940   do
12941     cat "conftest.in" "conftest.in" >"conftest.tmp"
12942     mv "conftest.tmp" "conftest.in"
12943     cp "conftest.in" "conftest.nl"
12944     $as_echo 'FGREP' >> "conftest.nl"
12945     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12946     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12947     as_fn_arith $ac_count + 1 && ac_count=$as_val
12948     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12949       # Best one so far, save it but keep looking for a better one
12950       ac_cv_path_FGREP="$ac_path_FGREP"
12951       ac_path_FGREP_max=$ac_count
12952     fi
12953     # 10*(2^10) chars as input seems more than enough
12954     test $ac_count -gt 10 && break
12955   done
12956   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12957 esac
12958 
12959       $ac_path_FGREP_found && break 3
12960     done
12961   done
12962   done
12963 IFS=$as_save_IFS
12964   if test -z "$ac_cv_path_FGREP"; then
12965     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12966   fi
12967 else
12968   ac_cv_path_FGREP=$FGREP
12969 fi
12970 
12971    fi
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12974 $as_echo "$ac_cv_path_FGREP" >&6; }
12975  FGREP="$ac_cv_path_FGREP"
12976 
12977 
12978   else
12979     # The variable is set, but is it from the command line or the environment?
12980 
12981     # Try to remove the string !FGREP! from our list.
12982     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12983     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12984       # If it failed, the variable was not from the command line. Ignore it,
12985       # but warn the user (except for BASH, which is always set by the calling BASH).
12986       if test "xFGREP" != xBASH; then
12987         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12988 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12989       fi
12990       # Try to locate tool using the code snippet
12991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12992 $as_echo_n "checking for fgrep... " >&6; }
12993 if ${ac_cv_path_FGREP+:} false; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12997    then ac_cv_path_FGREP="$GREP -F"
12998    else
12999      if test -z "$FGREP"; then
13000   ac_path_FGREP_found=false
13001   # Loop through the user's path and test for each of PROGNAME-LIST
13002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13004 do
13005   IFS=$as_save_IFS
13006   test -z "$as_dir" && as_dir=.
13007     for ac_prog in fgrep; do
13008     for ac_exec_ext in '' $ac_executable_extensions; do
13009       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13010       as_fn_executable_p "$ac_path_FGREP" || continue
13011 # Check for GNU ac_path_FGREP and select it if it is found.
13012   # Check for GNU $ac_path_FGREP
13013 case `"$ac_path_FGREP" --version 2>&1` in
13014 *GNU*)
13015   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13016 *)
13017   ac_count=0
13018   $as_echo_n 0123456789 >"conftest.in"
13019   while :
13020   do
13021     cat "conftest.in" "conftest.in" >"conftest.tmp"
13022     mv "conftest.tmp" "conftest.in"
13023     cp "conftest.in" "conftest.nl"
13024     $as_echo 'FGREP' >> "conftest.nl"
13025     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13026     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13027     as_fn_arith $ac_count + 1 && ac_count=$as_val
13028     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13029       # Best one so far, save it but keep looking for a better one
13030       ac_cv_path_FGREP="$ac_path_FGREP"
13031       ac_path_FGREP_max=$ac_count
13032     fi
13033     # 10*(2^10) chars as input seems more than enough
13034     test $ac_count -gt 10 && break
13035   done
13036   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13037 esac
13038 
13039       $ac_path_FGREP_found && break 3
13040     done
13041   done
13042   done
13043 IFS=$as_save_IFS
13044   if test -z "$ac_cv_path_FGREP"; then
13045     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13046   fi
13047 else
13048   ac_cv_path_FGREP=$FGREP
13049 fi
13050 
13051    fi
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13054 $as_echo "$ac_cv_path_FGREP" >&6; }
13055  FGREP="$ac_cv_path_FGREP"
13056 
13057 
13058     else
13059       # If it succeeded, then it was overridden by the user. We will use it
13060       # for the tool.
13061 
13062       # First remove it from the list of overridden variables, so we can test
13063       # for unknown variables in the end.
13064       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13065 
13066       # Check if we try to supply an empty value
13067       if test "x$FGREP" = x; then
13068         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13069 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13071 $as_echo_n "checking for FGREP... " >&6; }
13072         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13073 $as_echo "disabled" >&6; }
13074       else
13075         # Check if the provided tool contains a complete path.
13076         tool_specified="$FGREP"
13077         tool_basename="${tool_specified##*/}"
13078         if test "x$tool_basename" = "x$tool_specified"; then
13079           # A command without a complete path is provided, search $PATH.
13080           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13081 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13082           # Extract the first word of "$tool_basename", so it can be a program name with args.
13083 set dummy $tool_basename; ac_word=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085 $as_echo_n "checking for $ac_word... " >&6; }
13086 if ${ac_cv_path_FGREP+:} false; then :
13087   $as_echo_n "(cached) " >&6
13088 else
13089   case $FGREP in
13090   [\\/]* | ?:[\\/]*)
13091   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13092   ;;
13093   *)
13094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097   IFS=$as_save_IFS
13098   test -z "$as_dir" && as_dir=.
13099     for ac_exec_ext in '' $ac_executable_extensions; do
13100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13101     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103     break 2
13104   fi
13105 done
13106   done
13107 IFS=$as_save_IFS
13108 
13109   ;;
13110 esac
13111 fi
13112 FGREP=$ac_cv_path_FGREP
13113 if test -n "$FGREP"; then
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13115 $as_echo "$FGREP" >&6; }
13116 else
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120 
13121 
13122           if test "x$FGREP" = x; then
13123             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13124           fi
13125         else
13126           # Otherwise we believe it is a complete path. Use it as it is.
13127           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13128 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13129           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13130 $as_echo_n "checking for FGREP... " >&6; }
13131           if test ! -x "$tool_specified"; then
13132             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13133 $as_echo "not found" >&6; }
13134             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13135           fi
13136           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13137 $as_echo "$tool_specified" >&6; }
13138         fi
13139       fi
13140     fi
13141 
13142   fi
13143 
13144 
13145   if test "x$FGREP" = x; then
13146     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13147   fi
13148 
13149 
13150 
13151 
13152   # Publish this variable in the help.
13153 
13154 
13155   if [ -z "${SED+x}" ]; then
13156     # The variable is not set by user, try to locate tool using the code snippet
13157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13158 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13159 if ${ac_cv_path_SED+:} false; then :
13160   $as_echo_n "(cached) " >&6
13161 else
13162             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13163      for ac_i in 1 2 3 4 5 6 7; do
13164        ac_script="$ac_script$as_nl$ac_script"
13165      done
13166      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13167      { ac_script=; unset ac_script;}
13168      if test -z "$SED"; then
13169   ac_path_SED_found=false
13170   # Loop through the user's path and test for each of PROGNAME-LIST
13171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174   IFS=$as_save_IFS
13175   test -z "$as_dir" && as_dir=.
13176     for ac_prog in sed gsed; do
13177     for ac_exec_ext in '' $ac_executable_extensions; do
13178       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13179       as_fn_executable_p "$ac_path_SED" || continue
13180 # Check for GNU ac_path_SED and select it if it is found.
13181   # Check for GNU $ac_path_SED
13182 case `"$ac_path_SED" --version 2>&1` in
13183 *GNU*)
13184   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13185 *)
13186   ac_count=0
13187   $as_echo_n 0123456789 >"conftest.in"
13188   while :
13189   do
13190     cat "conftest.in" "conftest.in" >"conftest.tmp"
13191     mv "conftest.tmp" "conftest.in"
13192     cp "conftest.in" "conftest.nl"
13193     $as_echo '' >> "conftest.nl"
13194     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13196     as_fn_arith $ac_count + 1 && ac_count=$as_val
13197     if test $ac_count -gt ${ac_path_SED_max-0}; then
13198       # Best one so far, save it but keep looking for a better one
13199       ac_cv_path_SED="$ac_path_SED"
13200       ac_path_SED_max=$ac_count
13201     fi
13202     # 10*(2^10) chars as input seems more than enough
13203     test $ac_count -gt 10 && break
13204   done
13205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13206 esac
13207 
13208       $ac_path_SED_found && break 3
13209     done
13210   done
13211   done
13212 IFS=$as_save_IFS
13213   if test -z "$ac_cv_path_SED"; then
13214     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13215   fi
13216 else
13217   ac_cv_path_SED=$SED
13218 fi
13219 
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13222 $as_echo "$ac_cv_path_SED" >&6; }
13223  SED="$ac_cv_path_SED"
13224   rm -f conftest.sed
13225 
13226   else
13227     # The variable is set, but is it from the command line or the environment?
13228 
13229     # Try to remove the string !SED! from our list.
13230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13232       # If it failed, the variable was not from the command line. Ignore it,
13233       # but warn the user (except for BASH, which is always set by the calling BASH).
13234       if test "xSED" != xBASH; then
13235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13236 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13237       fi
13238       # Try to locate tool using the code snippet
13239       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13240 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13241 if ${ac_cv_path_SED+:} false; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13245      for ac_i in 1 2 3 4 5 6 7; do
13246        ac_script="$ac_script$as_nl$ac_script"
13247      done
13248      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13249      { ac_script=; unset ac_script;}
13250      if test -z "$SED"; then
13251   ac_path_SED_found=false
13252   # Loop through the user's path and test for each of PROGNAME-LIST
13253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254 for as_dir in $PATH
13255 do
13256   IFS=$as_save_IFS
13257   test -z "$as_dir" && as_dir=.
13258     for ac_prog in sed gsed; do
13259     for ac_exec_ext in '' $ac_executable_extensions; do
13260       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13261       as_fn_executable_p "$ac_path_SED" || continue
13262 # Check for GNU ac_path_SED and select it if it is found.
13263   # Check for GNU $ac_path_SED
13264 case `"$ac_path_SED" --version 2>&1` in
13265 *GNU*)
13266   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13267 *)
13268   ac_count=0
13269   $as_echo_n 0123456789 >"conftest.in"
13270   while :
13271   do
13272     cat "conftest.in" "conftest.in" >"conftest.tmp"
13273     mv "conftest.tmp" "conftest.in"
13274     cp "conftest.in" "conftest.nl"
13275     $as_echo '' >> "conftest.nl"
13276     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13277     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13278     as_fn_arith $ac_count + 1 && ac_count=$as_val
13279     if test $ac_count -gt ${ac_path_SED_max-0}; then
13280       # Best one so far, save it but keep looking for a better one
13281       ac_cv_path_SED="$ac_path_SED"
13282       ac_path_SED_max=$ac_count
13283     fi
13284     # 10*(2^10) chars as input seems more than enough
13285     test $ac_count -gt 10 && break
13286   done
13287   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13288 esac
13289 
13290       $ac_path_SED_found && break 3
13291     done
13292   done
13293   done
13294 IFS=$as_save_IFS
13295   if test -z "$ac_cv_path_SED"; then
13296     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13297   fi
13298 else
13299   ac_cv_path_SED=$SED
13300 fi
13301 
13302 fi
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13304 $as_echo "$ac_cv_path_SED" >&6; }
13305  SED="$ac_cv_path_SED"
13306   rm -f conftest.sed
13307 
13308     else
13309       # If it succeeded, then it was overridden by the user. We will use it
13310       # for the tool.
13311 
13312       # First remove it from the list of overridden variables, so we can test
13313       # for unknown variables in the end.
13314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13315 
13316       # Check if we try to supply an empty value
13317       if test "x$SED" = x; then
13318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13319 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13321 $as_echo_n "checking for SED... " >&6; }
13322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13323 $as_echo "disabled" >&6; }
13324       else
13325         # Check if the provided tool contains a complete path.
13326         tool_specified="$SED"
13327         tool_basename="${tool_specified##*/}"
13328         if test "x$tool_basename" = "x$tool_specified"; then
13329           # A command without a complete path is provided, search $PATH.
13330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13331 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13332           # Extract the first word of "$tool_basename", so it can be a program name with args.
13333 set dummy $tool_basename; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_SED+:} false; then :
13337   $as_echo_n "(cached) " >&6
13338 else
13339   case $SED in
13340   [\\/]* | ?:[\\/]*)
13341   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13342   ;;
13343   *)
13344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347   IFS=$as_save_IFS
13348   test -z "$as_dir" && as_dir=.
13349     for ac_exec_ext in '' $ac_executable_extensions; do
13350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353     break 2
13354   fi
13355 done
13356   done
13357 IFS=$as_save_IFS
13358 
13359   ;;
13360 esac
13361 fi
13362 SED=$ac_cv_path_SED
13363 if test -n "$SED"; then
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13365 $as_echo "$SED" >&6; }
13366 else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370 
13371 
13372           if test "x$SED" = x; then
13373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13374           fi
13375         else
13376           # Otherwise we believe it is a complete path. Use it as it is.
13377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13378 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13380 $as_echo_n "checking for SED... " >&6; }
13381           if test ! -x "$tool_specified"; then
13382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13383 $as_echo "not found" >&6; }
13384             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13385           fi
13386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13387 $as_echo "$tool_specified" >&6; }
13388         fi
13389       fi
13390     fi
13391 
13392   fi
13393 
13394 
13395   if test "x$SED" = x; then
13396     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13397   fi
13398 
13399 
13400 
13401   # Always force rm.
13402   RM="$RM -f"
13403 
13404   # pwd behaves differently on various platforms and some don't support the -L flag.
13405   # Always use the bash builtin pwd to get uniform behavior.
13406   THEPWDCMD=pwd
13407 
13408   # These are not required on all platforms
13409 
13410 
13411   # Publish this variable in the help.
13412 
13413 
13414   if [ -z "${CYGPATH+x}" ]; then
13415     # The variable is not set by user, try to locate tool using the code snippet
13416     for ac_prog in cygpath
13417 do
13418   # Extract the first word of "$ac_prog", so it can be a program name with args.
13419 set dummy $ac_prog; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if ${ac_cv_path_CYGPATH+:} false; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   case $CYGPATH in
13426   [\\/]* | ?:[\\/]*)
13427   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13428   ;;
13429   *)
13430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13432 do
13433   IFS=$as_save_IFS
13434   test -z "$as_dir" && as_dir=.
13435     for ac_exec_ext in '' $ac_executable_extensions; do
13436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13437     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439     break 2
13440   fi
13441 done
13442   done
13443 IFS=$as_save_IFS
13444 
13445   ;;
13446 esac
13447 fi
13448 CYGPATH=$ac_cv_path_CYGPATH
13449 if test -n "$CYGPATH"; then
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13451 $as_echo "$CYGPATH" >&6; }
13452 else
13453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 fi
13456 
13457 
13458   test -n "$CYGPATH" && break
13459 done
13460 
13461   else
13462     # The variable is set, but is it from the command line or the environment?
13463 
13464     # Try to remove the string !CYGPATH! from our list.
13465     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13466     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13467       # If it failed, the variable was not from the command line. Ignore it,
13468       # but warn the user (except for BASH, which is always set by the calling BASH).
13469       if test "xCYGPATH" != xBASH; then
13470         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13471 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13472       fi
13473       # Try to locate tool using the code snippet
13474       for ac_prog in cygpath
13475 do
13476   # Extract the first word of "$ac_prog", so it can be a program name with args.
13477 set dummy $ac_prog; ac_word=$2
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13479 $as_echo_n "checking for $ac_word... " >&6; }
13480 if ${ac_cv_path_CYGPATH+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   case $CYGPATH in
13484   [\\/]* | ?:[\\/]*)
13485   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13486   ;;
13487   *)
13488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13489 for as_dir in $PATH
13490 do
13491   IFS=$as_save_IFS
13492   test -z "$as_dir" && as_dir=.
13493     for ac_exec_ext in '' $ac_executable_extensions; do
13494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13495     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13497     break 2
13498   fi
13499 done
13500   done
13501 IFS=$as_save_IFS
13502 
13503   ;;
13504 esac
13505 fi
13506 CYGPATH=$ac_cv_path_CYGPATH
13507 if test -n "$CYGPATH"; then
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13509 $as_echo "$CYGPATH" >&6; }
13510 else
13511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13513 fi
13514 
13515 
13516   test -n "$CYGPATH" && break
13517 done
13518 
13519     else
13520       # If it succeeded, then it was overridden by the user. We will use it
13521       # for the tool.
13522 
13523       # First remove it from the list of overridden variables, so we can test
13524       # for unknown variables in the end.
13525       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13526 
13527       # Check if we try to supply an empty value
13528       if test "x$CYGPATH" = x; then
13529         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13530 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13531         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13532 $as_echo_n "checking for CYGPATH... " >&6; }
13533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13534 $as_echo "disabled" >&6; }
13535       else
13536         # Check if the provided tool contains a complete path.
13537         tool_specified="$CYGPATH"
13538         tool_basename="${tool_specified##*/}"
13539         if test "x$tool_basename" = "x$tool_specified"; then
13540           # A command without a complete path is provided, search $PATH.
13541           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13542 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13543           # Extract the first word of "$tool_basename", so it can be a program name with args.
13544 set dummy $tool_basename; ac_word=$2
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546 $as_echo_n "checking for $ac_word... " >&6; }
13547 if ${ac_cv_path_CYGPATH+:} false; then :
13548   $as_echo_n "(cached) " >&6
13549 else
13550   case $CYGPATH in
13551   [\\/]* | ?:[\\/]*)
13552   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13553   ;;
13554   *)
13555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13557 do
13558   IFS=$as_save_IFS
13559   test -z "$as_dir" && as_dir=.
13560     for ac_exec_ext in '' $ac_executable_extensions; do
13561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564     break 2
13565   fi
13566 done
13567   done
13568 IFS=$as_save_IFS
13569 
13570   ;;
13571 esac
13572 fi
13573 CYGPATH=$ac_cv_path_CYGPATH
13574 if test -n "$CYGPATH"; then
13575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13576 $as_echo "$CYGPATH" >&6; }
13577 else
13578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579 $as_echo "no" >&6; }
13580 fi
13581 
13582 
13583           if test "x$CYGPATH" = x; then
13584             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13585           fi
13586         else
13587           # Otherwise we believe it is a complete path. Use it as it is.
13588           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13589 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13590           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13591 $as_echo_n "checking for CYGPATH... " >&6; }
13592           if test ! -x "$tool_specified"; then
13593             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13594 $as_echo "not found" >&6; }
13595             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13596           fi
13597           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13598 $as_echo "$tool_specified" >&6; }
13599         fi
13600       fi
13601     fi
13602 
13603   fi
13604 
13605 
13606 
13607 
13608   # Publish this variable in the help.
13609 
13610 
13611   if [ -z "${READLINK+x}" ]; then
13612     # The variable is not set by user, try to locate tool using the code snippet
13613     for ac_prog in greadlink readlink
13614 do
13615   # Extract the first word of "$ac_prog", so it can be a program name with args.
13616 set dummy $ac_prog; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618 $as_echo_n "checking for $ac_word... " >&6; }
13619 if ${ac_cv_path_READLINK+:} false; then :
13620   $as_echo_n "(cached) " >&6
13621 else
13622   case $READLINK in
13623   [\\/]* | ?:[\\/]*)
13624   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13625   ;;
13626   *)
13627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632     for ac_exec_ext in '' $ac_executable_extensions; do
13633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639   done
13640 IFS=$as_save_IFS
13641 
13642   ;;
13643 esac
13644 fi
13645 READLINK=$ac_cv_path_READLINK
13646 if test -n "$READLINK"; then
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13648 $as_echo "$READLINK" >&6; }
13649 else
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651 $as_echo "no" >&6; }
13652 fi
13653 
13654 
13655   test -n "$READLINK" && break
13656 done
13657 
13658   else
13659     # The variable is set, but is it from the command line or the environment?
13660 
13661     # Try to remove the string !READLINK! from our list.
13662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13664       # If it failed, the variable was not from the command line. Ignore it,
13665       # but warn the user (except for BASH, which is always set by the calling BASH).
13666       if test "xREADLINK" != xBASH; then
13667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13668 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13669       fi
13670       # Try to locate tool using the code snippet
13671       for ac_prog in greadlink readlink
13672 do
13673   # Extract the first word of "$ac_prog", so it can be a program name with args.
13674 set dummy $ac_prog; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_path_READLINK+:} false; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   case $READLINK in
13681   [\\/]* | ?:[\\/]*)
13682   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13683   ;;
13684   *)
13685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13687 do
13688   IFS=$as_save_IFS
13689   test -z "$as_dir" && as_dir=.
13690     for ac_exec_ext in '' $ac_executable_extensions; do
13691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13692     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13694     break 2
13695   fi
13696 done
13697   done
13698 IFS=$as_save_IFS
13699 
13700   ;;
13701 esac
13702 fi
13703 READLINK=$ac_cv_path_READLINK
13704 if test -n "$READLINK"; then
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13706 $as_echo "$READLINK" >&6; }
13707 else
13708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13710 fi
13711 
13712 
13713   test -n "$READLINK" && break
13714 done
13715 
13716     else
13717       # If it succeeded, then it was overridden by the user. We will use it
13718       # for the tool.
13719 
13720       # First remove it from the list of overridden variables, so we can test
13721       # for unknown variables in the end.
13722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13723 
13724       # Check if we try to supply an empty value
13725       if test "x$READLINK" = x; then
13726         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13727 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13729 $as_echo_n "checking for READLINK... " >&6; }
13730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13731 $as_echo "disabled" >&6; }
13732       else
13733         # Check if the provided tool contains a complete path.
13734         tool_specified="$READLINK"
13735         tool_basename="${tool_specified##*/}"
13736         if test "x$tool_basename" = "x$tool_specified"; then
13737           # A command without a complete path is provided, search $PATH.
13738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13739 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13740           # Extract the first word of "$tool_basename", so it can be a program name with args.
13741 set dummy $tool_basename; ac_word=$2
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if ${ac_cv_path_READLINK+:} false; then :
13745   $as_echo_n "(cached) " >&6
13746 else
13747   case $READLINK in
13748   [\\/]* | ?:[\\/]*)
13749   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13750   ;;
13751   *)
13752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13753 for as_dir in $PATH
13754 do
13755   IFS=$as_save_IFS
13756   test -z "$as_dir" && as_dir=.
13757     for ac_exec_ext in '' $ac_executable_extensions; do
13758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13759     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761     break 2
13762   fi
13763 done
13764   done
13765 IFS=$as_save_IFS
13766 
13767   ;;
13768 esac
13769 fi
13770 READLINK=$ac_cv_path_READLINK
13771 if test -n "$READLINK"; then
13772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13773 $as_echo "$READLINK" >&6; }
13774 else
13775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13777 fi
13778 
13779 
13780           if test "x$READLINK" = x; then
13781             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13782           fi
13783         else
13784           # Otherwise we believe it is a complete path. Use it as it is.
13785           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13786 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13788 $as_echo_n "checking for READLINK... " >&6; }
13789           if test ! -x "$tool_specified"; then
13790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13791 $as_echo "not found" >&6; }
13792             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13793           fi
13794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13795 $as_echo "$tool_specified" >&6; }
13796         fi
13797       fi
13798     fi
13799 
13800   fi
13801 
13802 
13803 
13804 
13805   # Publish this variable in the help.
13806 
13807 
13808   if [ -z "${DF+x}" ]; then
13809     # The variable is not set by user, try to locate tool using the code snippet
13810     for ac_prog in df
13811 do
13812   # Extract the first word of "$ac_prog", so it can be a program name with args.
13813 set dummy $ac_prog; ac_word=$2
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13815 $as_echo_n "checking for $ac_word... " >&6; }
13816 if ${ac_cv_path_DF+:} false; then :
13817   $as_echo_n "(cached) " >&6
13818 else
13819   case $DF in
13820   [\\/]* | ?:[\\/]*)
13821   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13822   ;;
13823   *)
13824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13826 do
13827   IFS=$as_save_IFS
13828   test -z "$as_dir" && as_dir=.
13829     for ac_exec_ext in '' $ac_executable_extensions; do
13830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833     break 2
13834   fi
13835 done
13836   done
13837 IFS=$as_save_IFS
13838 
13839   ;;
13840 esac
13841 fi
13842 DF=$ac_cv_path_DF
13843 if test -n "$DF"; then
13844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13845 $as_echo "$DF" >&6; }
13846 else
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 $as_echo "no" >&6; }
13849 fi
13850 
13851 
13852   test -n "$DF" && break
13853 done
13854 
13855   else
13856     # The variable is set, but is it from the command line or the environment?
13857 
13858     # Try to remove the string !DF! from our list.
13859     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13860     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13861       # If it failed, the variable was not from the command line. Ignore it,
13862       # but warn the user (except for BASH, which is always set by the calling BASH).
13863       if test "xDF" != xBASH; then
13864         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13865 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13866       fi
13867       # Try to locate tool using the code snippet
13868       for ac_prog in df
13869 do
13870   # Extract the first word of "$ac_prog", so it can be a program name with args.
13871 set dummy $ac_prog; ac_word=$2
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873 $as_echo_n "checking for $ac_word... " >&6; }
13874 if ${ac_cv_path_DF+:} false; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   case $DF in
13878   [\\/]* | ?:[\\/]*)
13879   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13880   ;;
13881   *)
13882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13884 do
13885   IFS=$as_save_IFS
13886   test -z "$as_dir" && as_dir=.
13887     for ac_exec_ext in '' $ac_executable_extensions; do
13888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891     break 2
13892   fi
13893 done
13894   done
13895 IFS=$as_save_IFS
13896 
13897   ;;
13898 esac
13899 fi
13900 DF=$ac_cv_path_DF
13901 if test -n "$DF"; then
13902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13903 $as_echo "$DF" >&6; }
13904 else
13905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13907 fi
13908 
13909 
13910   test -n "$DF" && break
13911 done
13912 
13913     else
13914       # If it succeeded, then it was overridden by the user. We will use it
13915       # for the tool.
13916 
13917       # First remove it from the list of overridden variables, so we can test
13918       # for unknown variables in the end.
13919       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13920 
13921       # Check if we try to supply an empty value
13922       if test "x$DF" = x; then
13923         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13924 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13925         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13926 $as_echo_n "checking for DF... " >&6; }
13927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13928 $as_echo "disabled" >&6; }
13929       else
13930         # Check if the provided tool contains a complete path.
13931         tool_specified="$DF"
13932         tool_basename="${tool_specified##*/}"
13933         if test "x$tool_basename" = "x$tool_specified"; then
13934           # A command without a complete path is provided, search $PATH.
13935           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13936 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13937           # Extract the first word of "$tool_basename", so it can be a program name with args.
13938 set dummy $tool_basename; ac_word=$2
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13940 $as_echo_n "checking for $ac_word... " >&6; }
13941 if ${ac_cv_path_DF+:} false; then :
13942   $as_echo_n "(cached) " >&6
13943 else
13944   case $DF in
13945   [\\/]* | ?:[\\/]*)
13946   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13947   ;;
13948   *)
13949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954     for ac_exec_ext in '' $ac_executable_extensions; do
13955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13958     break 2
13959   fi
13960 done
13961   done
13962 IFS=$as_save_IFS
13963 
13964   ;;
13965 esac
13966 fi
13967 DF=$ac_cv_path_DF
13968 if test -n "$DF"; then
13969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13970 $as_echo "$DF" >&6; }
13971 else
13972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13974 fi
13975 
13976 
13977           if test "x$DF" = x; then
13978             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13979           fi
13980         else
13981           # Otherwise we believe it is a complete path. Use it as it is.
13982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13983 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13984           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13985 $as_echo_n "checking for DF... " >&6; }
13986           if test ! -x "$tool_specified"; then
13987             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13988 $as_echo "not found" >&6; }
13989             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13990           fi
13991           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13992 $as_echo "$tool_specified" >&6; }
13993         fi
13994       fi
13995     fi
13996 
13997   fi
13998 
13999 
14000 
14001 
14002   # Publish this variable in the help.
14003 
14004 
14005   if [ -z "${CPIO+x}" ]; then
14006     # The variable is not set by user, try to locate tool using the code snippet
14007     for ac_prog in cpio bsdcpio
14008 do
14009   # Extract the first word of "$ac_prog", so it can be a program name with args.
14010 set dummy $ac_prog; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14012 $as_echo_n "checking for $ac_word... " >&6; }
14013 if ${ac_cv_path_CPIO+:} false; then :
14014   $as_echo_n "(cached) " >&6
14015 else
14016   case $CPIO in
14017   [\\/]* | ?:[\\/]*)
14018   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14019   ;;
14020   *)
14021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022 for as_dir in $PATH
14023 do
14024   IFS=$as_save_IFS
14025   test -z "$as_dir" && as_dir=.
14026     for ac_exec_ext in '' $ac_executable_extensions; do
14027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14028     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14030     break 2
14031   fi
14032 done
14033   done
14034 IFS=$as_save_IFS
14035 
14036   ;;
14037 esac
14038 fi
14039 CPIO=$ac_cv_path_CPIO
14040 if test -n "$CPIO"; then
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14042 $as_echo "$CPIO" >&6; }
14043 else
14044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045 $as_echo "no" >&6; }
14046 fi
14047 
14048 
14049   test -n "$CPIO" && break
14050 done
14051 
14052   else
14053     # The variable is set, but is it from the command line or the environment?
14054 
14055     # Try to remove the string !CPIO! from our list.
14056     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14057     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14058       # If it failed, the variable was not from the command line. Ignore it,
14059       # but warn the user (except for BASH, which is always set by the calling BASH).
14060       if test "xCPIO" != xBASH; then
14061         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14062 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14063       fi
14064       # Try to locate tool using the code snippet
14065       for ac_prog in cpio bsdcpio
14066 do
14067   # Extract the first word of "$ac_prog", so it can be a program name with args.
14068 set dummy $ac_prog; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070 $as_echo_n "checking for $ac_word... " >&6; }
14071 if ${ac_cv_path_CPIO+:} false; then :
14072   $as_echo_n "(cached) " >&6
14073 else
14074   case $CPIO in
14075   [\\/]* | ?:[\\/]*)
14076   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14077   ;;
14078   *)
14079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080 for as_dir in $PATH
14081 do
14082   IFS=$as_save_IFS
14083   test -z "$as_dir" && as_dir=.
14084     for ac_exec_ext in '' $ac_executable_extensions; do
14085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14086     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14088     break 2
14089   fi
14090 done
14091   done
14092 IFS=$as_save_IFS
14093 
14094   ;;
14095 esac
14096 fi
14097 CPIO=$ac_cv_path_CPIO
14098 if test -n "$CPIO"; then
14099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14100 $as_echo "$CPIO" >&6; }
14101 else
14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14104 fi
14105 
14106 
14107   test -n "$CPIO" && break
14108 done
14109 
14110     else
14111       # If it succeeded, then it was overridden by the user. We will use it
14112       # for the tool.
14113 
14114       # First remove it from the list of overridden variables, so we can test
14115       # for unknown variables in the end.
14116       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14117 
14118       # Check if we try to supply an empty value
14119       if test "x$CPIO" = x; then
14120         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14121 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14123 $as_echo_n "checking for CPIO... " >&6; }
14124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14125 $as_echo "disabled" >&6; }
14126       else
14127         # Check if the provided tool contains a complete path.
14128         tool_specified="$CPIO"
14129         tool_basename="${tool_specified##*/}"
14130         if test "x$tool_basename" = "x$tool_specified"; then
14131           # A command without a complete path is provided, search $PATH.
14132           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14133 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14134           # Extract the first word of "$tool_basename", so it can be a program name with args.
14135 set dummy $tool_basename; ac_word=$2
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14137 $as_echo_n "checking for $ac_word... " >&6; }
14138 if ${ac_cv_path_CPIO+:} false; then :
14139   $as_echo_n "(cached) " >&6
14140 else
14141   case $CPIO in
14142   [\\/]* | ?:[\\/]*)
14143   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14144   ;;
14145   *)
14146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149   IFS=$as_save_IFS
14150   test -z "$as_dir" && as_dir=.
14151     for ac_exec_ext in '' $ac_executable_extensions; do
14152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14153     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155     break 2
14156   fi
14157 done
14158   done
14159 IFS=$as_save_IFS
14160 
14161   ;;
14162 esac
14163 fi
14164 CPIO=$ac_cv_path_CPIO
14165 if test -n "$CPIO"; then
14166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14167 $as_echo "$CPIO" >&6; }
14168 else
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14171 fi
14172 
14173 
14174           if test "x$CPIO" = x; then
14175             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14176           fi
14177         else
14178           # Otherwise we believe it is a complete path. Use it as it is.
14179           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14180 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14181           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14182 $as_echo_n "checking for CPIO... " >&6; }
14183           if test ! -x "$tool_specified"; then
14184             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14185 $as_echo "not found" >&6; }
14186             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14187           fi
14188           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14189 $as_echo "$tool_specified" >&6; }
14190         fi
14191       fi
14192     fi
14193 
14194   fi
14195 
14196 
14197 
14198 
14199   # Publish this variable in the help.
14200 
14201 
14202   if [ -z "${NICE+x}" ]; then
14203     # The variable is not set by user, try to locate tool using the code snippet
14204     for ac_prog in nice
14205 do
14206   # Extract the first word of "$ac_prog", so it can be a program name with args.
14207 set dummy $ac_prog; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if ${ac_cv_path_NICE+:} false; then :
14211   $as_echo_n "(cached) " >&6
14212 else
14213   case $NICE in
14214   [\\/]* | ?:[\\/]*)
14215   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14216   ;;
14217   *)
14218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219 for as_dir in $PATH
14220 do
14221   IFS=$as_save_IFS
14222   test -z "$as_dir" && as_dir=.
14223     for ac_exec_ext in '' $ac_executable_extensions; do
14224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14225     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14227     break 2
14228   fi
14229 done
14230   done
14231 IFS=$as_save_IFS
14232 
14233   ;;
14234 esac
14235 fi
14236 NICE=$ac_cv_path_NICE
14237 if test -n "$NICE"; then
14238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14239 $as_echo "$NICE" >&6; }
14240 else
14241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242 $as_echo "no" >&6; }
14243 fi
14244 
14245 
14246   test -n "$NICE" && break
14247 done
14248 
14249   else
14250     # The variable is set, but is it from the command line or the environment?
14251 
14252     # Try to remove the string !NICE! from our list.
14253     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14254     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14255       # If it failed, the variable was not from the command line. Ignore it,
14256       # but warn the user (except for BASH, which is always set by the calling BASH).
14257       if test "xNICE" != xBASH; then
14258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14259 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14260       fi
14261       # Try to locate tool using the code snippet
14262       for ac_prog in nice
14263 do
14264   # Extract the first word of "$ac_prog", so it can be a program name with args.
14265 set dummy $ac_prog; ac_word=$2
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14267 $as_echo_n "checking for $ac_word... " >&6; }
14268 if ${ac_cv_path_NICE+:} false; then :
14269   $as_echo_n "(cached) " >&6
14270 else
14271   case $NICE in
14272   [\\/]* | ?:[\\/]*)
14273   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14274   ;;
14275   *)
14276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277 for as_dir in $PATH
14278 do
14279   IFS=$as_save_IFS
14280   test -z "$as_dir" && as_dir=.
14281     for ac_exec_ext in '' $ac_executable_extensions; do
14282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14283     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14285     break 2
14286   fi
14287 done
14288   done
14289 IFS=$as_save_IFS
14290 
14291   ;;
14292 esac
14293 fi
14294 NICE=$ac_cv_path_NICE
14295 if test -n "$NICE"; then
14296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14297 $as_echo "$NICE" >&6; }
14298 else
14299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301 fi
14302 
14303 
14304   test -n "$NICE" && break
14305 done
14306 
14307     else
14308       # If it succeeded, then it was overridden by the user. We will use it
14309       # for the tool.
14310 
14311       # First remove it from the list of overridden variables, so we can test
14312       # for unknown variables in the end.
14313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14314 
14315       # Check if we try to supply an empty value
14316       if test "x$NICE" = x; then
14317         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14318 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14320 $as_echo_n "checking for NICE... " >&6; }
14321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14322 $as_echo "disabled" >&6; }
14323       else
14324         # Check if the provided tool contains a complete path.
14325         tool_specified="$NICE"
14326         tool_basename="${tool_specified##*/}"
14327         if test "x$tool_basename" = "x$tool_specified"; then
14328           # A command without a complete path is provided, search $PATH.
14329           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14330 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14331           # Extract the first word of "$tool_basename", so it can be a program name with args.
14332 set dummy $tool_basename; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if ${ac_cv_path_NICE+:} false; then :
14336   $as_echo_n "(cached) " >&6
14337 else
14338   case $NICE in
14339   [\\/]* | ?:[\\/]*)
14340   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14341   ;;
14342   *)
14343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14344 for as_dir in $PATH
14345 do
14346   IFS=$as_save_IFS
14347   test -z "$as_dir" && as_dir=.
14348     for ac_exec_ext in '' $ac_executable_extensions; do
14349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14350     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14352     break 2
14353   fi
14354 done
14355   done
14356 IFS=$as_save_IFS
14357 
14358   ;;
14359 esac
14360 fi
14361 NICE=$ac_cv_path_NICE
14362 if test -n "$NICE"; then
14363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14364 $as_echo "$NICE" >&6; }
14365 else
14366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14367 $as_echo "no" >&6; }
14368 fi
14369 
14370 
14371           if test "x$NICE" = x; then
14372             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14373           fi
14374         else
14375           # Otherwise we believe it is a complete path. Use it as it is.
14376           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14377 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14379 $as_echo_n "checking for NICE... " >&6; }
14380           if test ! -x "$tool_specified"; then
14381             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14382 $as_echo "not found" >&6; }
14383             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14384           fi
14385           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14386 $as_echo "$tool_specified" >&6; }
14387         fi
14388       fi
14389     fi
14390 
14391   fi
14392 
14393 
14394 
14395 
14396 # Now we can determine OpenJDK build and target platforms. This is required to
14397 # have early on.
14398 # Make sure we can run config.sub.
14399 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14400   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14401 
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14403 $as_echo_n "checking build system type... " >&6; }
14404 if ${ac_cv_build+:} false; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   ac_build_alias=$build_alias
14408 test "x$ac_build_alias" = x &&
14409   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14410 test "x$ac_build_alias" = x &&
14411   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14412 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14413   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14414 
14415 fi
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14417 $as_echo "$ac_cv_build" >&6; }
14418 case $ac_cv_build in
14419 *-*-*) ;;
14420 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14421 esac
14422 build=$ac_cv_build
14423 ac_save_IFS=$IFS; IFS='-'
14424 set x $ac_cv_build
14425 shift
14426 build_cpu=$1
14427 build_vendor=$2
14428 shift; shift
14429 # Remember, the first character of IFS is used to create $*,
14430 # except with old shells:
14431 build_os=$*
14432 IFS=$ac_save_IFS
14433 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14434 
14435 
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14437 $as_echo_n "checking host system type... " >&6; }
14438 if ${ac_cv_host+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   if test "x$host_alias" = x; then
14442   ac_cv_host=$ac_cv_build
14443 else
14444   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14445     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14446 fi
14447 
14448 fi
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14450 $as_echo "$ac_cv_host" >&6; }
14451 case $ac_cv_host in
14452 *-*-*) ;;
14453 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14454 esac
14455 host=$ac_cv_host
14456 ac_save_IFS=$IFS; IFS='-'
14457 set x $ac_cv_host
14458 shift
14459 host_cpu=$1
14460 host_vendor=$2
14461 shift; shift
14462 # Remember, the first character of IFS is used to create $*,
14463 # except with old shells:
14464 host_os=$*
14465 IFS=$ac_save_IFS
14466 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14467 
14468 
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14470 $as_echo_n "checking target system type... " >&6; }
14471 if ${ac_cv_target+:} false; then :
14472   $as_echo_n "(cached) " >&6
14473 else
14474   if test "x$target_alias" = x; then
14475   ac_cv_target=$ac_cv_host
14476 else
14477   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14478     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14479 fi
14480 
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14483 $as_echo "$ac_cv_target" >&6; }
14484 case $ac_cv_target in
14485 *-*-*) ;;
14486 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14487 esac
14488 target=$ac_cv_target
14489 ac_save_IFS=$IFS; IFS='-'
14490 set x $ac_cv_target
14491 shift
14492 target_cpu=$1
14493 target_vendor=$2
14494 shift; shift
14495 # Remember, the first character of IFS is used to create $*,
14496 # except with old shells:
14497 target_os=$*
14498 IFS=$ac_save_IFS
14499 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14500 
14501 
14502 # The aliases save the names the user supplied, while $host etc.
14503 # will get canonicalized.
14504 test -n "$target_alias" &&
14505   test "$program_prefix$program_suffix$program_transform_name" = \
14506     NONENONEs,x,x, &&
14507   program_prefix=${target_alias}-
14508 
14509   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14510   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14511   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14512   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14513   # to use the configure naming style.
14514 
14515 
14516 
14517 
14518 
14519   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14520   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14521   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14522   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14523   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14524   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14525 
14526 
14527 
14528   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14529 
14530   case "$build_os" in
14531     *linux*)
14532       VAR_OS=linux
14533       VAR_OS_TYPE=unix
14534       ;;
14535     *solaris*)
14536       VAR_OS=solaris
14537       VAR_OS_TYPE=unix
14538       ;;
14539     *darwin*)
14540       VAR_OS=macosx
14541       VAR_OS_TYPE=unix
14542       ;;
14543     *bsd*)
14544       VAR_OS=bsd
14545       VAR_OS_TYPE=unix
14546       ;;
14547     *cygwin*)
14548       VAR_OS=windows
14549       VAR_OS_ENV=windows.cygwin
14550       ;;
14551     *mingw*)
14552       VAR_OS=windows
14553       VAR_OS_ENV=windows.msys
14554       ;;
14555     *aix*)
14556       VAR_OS=aix
14557       VAR_OS_TYPE=unix
14558       ;;
14559     *)
14560       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14561       ;;
14562   esac
14563 
14564 
14565   # First argument is the cpu name from the trip/quad
14566   case "$build_cpu" in
14567     x86_64)
14568       VAR_CPU=x86_64
14569       VAR_CPU_ARCH=x86
14570       VAR_CPU_BITS=64
14571       VAR_CPU_ENDIAN=little
14572       ;;
14573     i?86)
14574       VAR_CPU=x86
14575       VAR_CPU_ARCH=x86
14576       VAR_CPU_BITS=32
14577       VAR_CPU_ENDIAN=little
14578       ;;
14579     arm*)
14580       VAR_CPU=arm
14581       VAR_CPU_ARCH=arm
14582       VAR_CPU_BITS=32
14583       VAR_CPU_ENDIAN=little
14584       ;;
14585     aarch64)
14586       VAR_CPU=aarch64
14587       VAR_CPU_ARCH=aarch64
14588       VAR_CPU_BITS=64
14589       VAR_CPU_ENDIAN=little
14590       ;;
14591     powerpc)
14592       VAR_CPU=ppc
14593       VAR_CPU_ARCH=ppc
14594       VAR_CPU_BITS=32
14595       VAR_CPU_ENDIAN=big
14596       ;;
14597     powerpc64)
14598       VAR_CPU=ppc64
14599       VAR_CPU_ARCH=ppc
14600       VAR_CPU_BITS=64
14601       VAR_CPU_ENDIAN=big
14602       ;;
14603     powerpc64le)
14604       VAR_CPU=ppc64
14605       VAR_CPU_ARCH=ppc
14606       VAR_CPU_BITS=64
14607       VAR_CPU_ENDIAN=little
14608       ;;
14609     s390)
14610       VAR_CPU=s390
14611       VAR_CPU_ARCH=s390
14612       VAR_CPU_BITS=32
14613       VAR_CPU_ENDIAN=big
14614       ;;
14615     s390x)
14616       VAR_CPU=s390x
14617       VAR_CPU_ARCH=s390
14618       VAR_CPU_BITS=64
14619       VAR_CPU_ENDIAN=big
14620       ;;
14621     sparc)
14622       VAR_CPU=sparc
14623       VAR_CPU_ARCH=sparc
14624       VAR_CPU_BITS=32
14625       VAR_CPU_ENDIAN=big
14626       ;;
14627     sparcv9|sparc64)
14628       VAR_CPU=sparcv9
14629       VAR_CPU_ARCH=sparc
14630       VAR_CPU_BITS=64
14631       VAR_CPU_ENDIAN=big
14632       ;;
14633     *)
14634       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14635       ;;
14636   esac
14637 
14638   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14639   OPENJDK_BUILD_OS="$VAR_OS"
14640   if test "x$VAR_OS_TYPE" != x; then
14641     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14642   else
14643     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14644   fi
14645   if test "x$VAR_OS_ENV" != x; then
14646     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14647   else
14648     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14649   fi
14650   OPENJDK_BUILD_CPU="$VAR_CPU"
14651   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14652   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14653   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14654 
14655 
14656 
14657 
14658 
14659 
14660 
14661 
14662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14663 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14665 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14666 
14667   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14668 
14669   case "$host_os" in
14670     *linux*)
14671       VAR_OS=linux
14672       VAR_OS_TYPE=unix
14673       ;;
14674     *solaris*)
14675       VAR_OS=solaris
14676       VAR_OS_TYPE=unix
14677       ;;
14678     *darwin*)
14679       VAR_OS=macosx
14680       VAR_OS_TYPE=unix
14681       ;;
14682     *bsd*)
14683       VAR_OS=bsd
14684       VAR_OS_TYPE=unix
14685       ;;
14686     *cygwin*)
14687       VAR_OS=windows
14688       VAR_OS_ENV=windows.cygwin
14689       ;;
14690     *mingw*)
14691       VAR_OS=windows
14692       VAR_OS_ENV=windows.msys
14693       ;;
14694     *aix*)
14695       VAR_OS=aix
14696       VAR_OS_TYPE=unix
14697       ;;
14698     *)
14699       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14700       ;;
14701   esac
14702 
14703 
14704   # First argument is the cpu name from the trip/quad
14705   case "$host_cpu" in
14706     x86_64)
14707       VAR_CPU=x86_64
14708       VAR_CPU_ARCH=x86
14709       VAR_CPU_BITS=64
14710       VAR_CPU_ENDIAN=little
14711       ;;
14712     i?86)
14713       VAR_CPU=x86
14714       VAR_CPU_ARCH=x86
14715       VAR_CPU_BITS=32
14716       VAR_CPU_ENDIAN=little
14717       ;;
14718     arm*)
14719       VAR_CPU=arm
14720       VAR_CPU_ARCH=arm
14721       VAR_CPU_BITS=32
14722       VAR_CPU_ENDIAN=little
14723       ;;
14724     aarch64)
14725       VAR_CPU=aarch64
14726       VAR_CPU_ARCH=aarch64
14727       VAR_CPU_BITS=64
14728       VAR_CPU_ENDIAN=little
14729       ;;
14730     powerpc)
14731       VAR_CPU=ppc
14732       VAR_CPU_ARCH=ppc
14733       VAR_CPU_BITS=32
14734       VAR_CPU_ENDIAN=big
14735       ;;
14736     powerpc64)
14737       VAR_CPU=ppc64
14738       VAR_CPU_ARCH=ppc
14739       VAR_CPU_BITS=64
14740       VAR_CPU_ENDIAN=big
14741       ;;
14742     powerpc64le)
14743       VAR_CPU=ppc64
14744       VAR_CPU_ARCH=ppc
14745       VAR_CPU_BITS=64
14746       VAR_CPU_ENDIAN=little
14747       ;;
14748     s390)
14749       VAR_CPU=s390
14750       VAR_CPU_ARCH=s390
14751       VAR_CPU_BITS=32
14752       VAR_CPU_ENDIAN=big
14753       ;;
14754     s390x)
14755       VAR_CPU=s390x
14756       VAR_CPU_ARCH=s390
14757       VAR_CPU_BITS=64
14758       VAR_CPU_ENDIAN=big
14759       ;;
14760     sparc)
14761       VAR_CPU=sparc
14762       VAR_CPU_ARCH=sparc
14763       VAR_CPU_BITS=32
14764       VAR_CPU_ENDIAN=big
14765       ;;
14766     sparcv9|sparc64)
14767       VAR_CPU=sparcv9
14768       VAR_CPU_ARCH=sparc
14769       VAR_CPU_BITS=64
14770       VAR_CPU_ENDIAN=big
14771       ;;
14772     *)
14773       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14774       ;;
14775   esac
14776 
14777   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14778   OPENJDK_TARGET_OS="$VAR_OS"
14779   if test "x$VAR_OS_TYPE" != x; then
14780     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14781   else
14782     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14783   fi
14784   if test "x$VAR_OS_ENV" != x; then
14785     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14786   else
14787     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14788   fi
14789   OPENJDK_TARGET_CPU="$VAR_CPU"
14790   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14791   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14792   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14793 
14794 
14795 
14796 
14797 
14798 
14799 
14800 
14801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14802 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14804 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14805 
14806 
14807 
14808 # Check whether --with-target-bits was given.
14809 if test "${with_target_bits+set}" = set; then :
14810   withval=$with_target_bits;
14811 fi
14812 
14813 
14814   # We have three types of compiles:
14815   # native  == normal compilation, target system == build system
14816   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14817   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14818   #
14819   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14820     # We're doing a proper cross-compilation
14821     COMPILE_TYPE="cross"
14822   else
14823     COMPILE_TYPE="native"
14824   fi
14825 
14826   if test "x$with_target_bits" != x; then
14827     if test "x$COMPILE_TYPE" = "xcross"; then
14828       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14829     fi
14830 
14831     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14832       # A reduced build is requested
14833       COMPILE_TYPE="reduced"
14834       OPENJDK_TARGET_CPU_BITS=32
14835       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14836         OPENJDK_TARGET_CPU=x86
14837       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14838         OPENJDK_TARGET_CPU=sparc
14839       else
14840         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14841       fi
14842     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14843       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
14844     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14845       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14846 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14847     else
14848       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14849     fi
14850   fi
14851 
14852 
14853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14854 $as_echo_n "checking compilation type... " >&6; }
14855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14856 $as_echo "$COMPILE_TYPE" >&6; }
14857 
14858 
14859   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14860     REQUIRED_OS_NAME=SunOS
14861     REQUIRED_OS_VERSION=5.10
14862   fi
14863   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14864     REQUIRED_OS_NAME=Linux
14865     REQUIRED_OS_VERSION=2.6
14866   fi
14867   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14868     REQUIRED_OS_NAME=Windows
14869     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14870       REQUIRED_OS_VERSION=5.2
14871     else
14872       REQUIRED_OS_VERSION=5.1
14873     fi
14874   fi
14875   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14876     REQUIRED_OS_NAME=Darwin
14877     REQUIRED_OS_VERSION=11.2
14878   fi
14879 
14880 
14881 
14882 
14883 
14884   # Also store the legacy naming of the cpu.
14885   # Ie i586 and amd64 instead of x86 and x86_64
14886   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14887   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14888     OPENJDK_TARGET_CPU_LEGACY="i586"
14889   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14890     # On all platforms except MacOSX replace x86_64 with amd64.
14891     OPENJDK_TARGET_CPU_LEGACY="amd64"
14892   fi
14893 
14894 
14895   # And the second legacy naming of the cpu.
14896   # Ie i386 and amd64 instead of x86 and x86_64.
14897   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14898   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14899     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14900   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14901     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14902   fi
14903 
14904 
14905   # This is the name of the cpu (but using i386 and amd64 instead of
14906   # x86 and x86_64, respectively), preceeded by a /, to be used when
14907   # locating libraries. On macosx, it's empty, though.
14908   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14909   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14910     OPENJDK_TARGET_CPU_LIBDIR=""
14911   fi
14912 
14913 
14914   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14915   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14916   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14917   OPENJDK_TARGET_CPU_ISADIR=""
14918   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14919     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14920       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14921     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14922       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14923     fi
14924   fi
14925 
14926 
14927   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14928   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14929   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14930     # On linux only, we replace x86 with i386.
14931     OPENJDK_TARGET_CPU_OSARCH="i386"
14932   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14933     # On all platforms except macosx, we replace x86_64 with amd64.
14934     OPENJDK_TARGET_CPU_OSARCH="amd64"
14935   fi
14936 
14937 
14938   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14939   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14940     OPENJDK_TARGET_CPU_JLI="i386"
14941   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14942     # On all platforms except macosx, we replace x86_64 with amd64.
14943     OPENJDK_TARGET_CPU_JLI="amd64"
14944   fi
14945   # Now setup the -D flags for building libjli.
14946   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14947   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14948     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14949       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14950     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14951       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14952     fi
14953   fi
14954 
14955 
14956   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14957       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14958   else
14959       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14960   fi
14961 
14962 
14963   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14964     A_LP64="LP64:="
14965     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14966     # unpack200.exe
14967     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14968       ADD_LP64="-D_LP64=1"
14969     fi
14970   fi
14971   LP64=$A_LP64
14972 
14973 
14974   if test "x$COMPILE_TYPE" = "xcross"; then
14975     # FIXME: ... or should this include reduced builds..?
14976     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14977   else
14978     DEFINE_CROSS_COMPILE_ARCH=""
14979   fi
14980 
14981 
14982   # ZERO_ARCHDEF is used to enable architecture-specific code
14983   case "${OPENJDK_TARGET_CPU}" in
14984     ppc)     ZERO_ARCHDEF=PPC32 ;;
14985     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14986     s390*)   ZERO_ARCHDEF=S390  ;;
14987     sparc*)  ZERO_ARCHDEF=SPARC ;;
14988     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14989     x86)     ZERO_ARCHDEF=IA32  ;;
14990     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14991   esac
14992 
14993 
14994 
14995 
14996 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14997 
14998   # Save the current directory this script was started from
14999   CURDIR="$PWD"
15000 
15001   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15002   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15003   # was not available at that time.
15004   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15005   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15006     ORIGINAL_PATH="$REWRITTEN_PATH"
15007     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15008 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15009   fi
15010 
15011   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15012     PATH_SEP=";"
15013 
15014   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15015   if test $SRC_ROOT_LENGTH -gt 100; then
15016     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15017   fi
15018 
15019   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15021 $as_echo_n "checking cygwin release... " >&6; }
15022     CYGWIN_VERSION=`$UNAME -r`
15023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15024 $as_echo "$CYGWIN_VERSION" >&6; }
15025     WINDOWS_ENV_VENDOR='cygwin'
15026     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15027 
15028     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15029     if test "x$CYGWIN_VERSION_OLD" != x; then
15030       { $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
15031 $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;}
15032       as_fn_error $? "Cannot continue" "$LINENO" 5
15033     fi
15034     if test "x$CYGPATH" = x; then
15035       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15036     fi
15037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15038 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15039     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15040     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15041     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15042     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15043     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15044 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15045     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15046     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15047     if test "x$test_cygdrive_prefix" = x; then
15048       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15049     fi
15050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15052 $as_echo_n "checking msys release... " >&6; }
15053     MSYS_VERSION=`$UNAME -r`
15054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15055 $as_echo "$MSYS_VERSION" >&6; }
15056 
15057     WINDOWS_ENV_VENDOR='msys'
15058     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15059 
15060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15061 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15062     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15063     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15064 
15065   windows_path="$MSYS_ROOT_PATH"
15066   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15067     unix_path=`$CYGPATH -u "$windows_path"`
15068     MSYS_ROOT_PATH="$unix_path"
15069   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15070     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15071     MSYS_ROOT_PATH="$unix_path"
15072   fi
15073 
15074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15075 $as_echo "$MSYS_ROOT_PATH" >&6; }
15076     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15077   else
15078     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15079   fi
15080 
15081   # Test if windows or unix (cygwin/msys) find is first in path.
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15083 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15084   FIND_BINARY_OUTPUT=`find --version 2>&1`
15085   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15087 $as_echo "unix style" >&6; }
15088   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15090 $as_echo "Windows" >&6; }
15091     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15092 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15093     { $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
15094 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15095     as_fn_error $? "Cannot continue" "$LINENO" 5
15096   else
15097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15098 $as_echo "unknown" >&6; }
15099     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15100 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15101   fi
15102 
15103   else
15104     PATH_SEP=":"
15105   fi
15106 
15107 
15108   # We get the top-level directory from the supporting wrappers.
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15110 $as_echo_n "checking for top-level directory... " >&6; }
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15112 $as_echo "$TOPDIR" >&6; }
15113 
15114 
15115   # Save the original version of TOPDIR for string comparisons
15116   ORIGINAL_TOPDIR="$TOPDIR"
15117 
15118 
15119   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15120 
15121   # Only process if variable expands to non-empty
15122 
15123   if test "x$CURDIR" != x; then
15124     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15125 
15126   # Input might be given as Windows format, start by converting to
15127   # unix format.
15128   path="$CURDIR"
15129   new_path=`$CYGPATH -u "$path"`
15130 
15131   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15132   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15133   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15134   # "foo.exe" is OK but "foo" is an error.
15135   #
15136   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15137   # It is also a way to make sure we got the proper file name for the real test later on.
15138   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15139   if test "x$test_shortpath" = x; then
15140     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15141 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15142     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15143   fi
15144 
15145   # Call helper function which possibly converts this using DOS-style short mode.
15146   # If so, the updated path is stored in $new_path.
15147 
15148   input_path="$new_path"
15149   # Check if we need to convert this using DOS-style short mode. If the path
15150   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15151   # take no chances and rewrite it.
15152   # Note: m4 eats our [], so we need to use [ and ] instead.
15153   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15154   if test "x$has_forbidden_chars" != x; then
15155     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15156     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15157     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15158     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15159       # Going to short mode and back again did indeed matter. Since short mode is
15160       # case insensitive, let's make it lowercase to improve readability.
15161       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15162       # Now convert it back to Unix-style (cygpath)
15163       input_path=`$CYGPATH -u "$shortmode_path"`
15164       new_path="$input_path"
15165     fi
15166   fi
15167 
15168   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15169   if test "x$test_cygdrive_prefix" = x; then
15170     # As a simple fix, exclude /usr/bin since it's not a real path.
15171     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15172       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15173       # a path prefixed by /cygdrive for fixpath to work.
15174       new_path="$CYGWIN_ROOT_PATH$input_path"
15175     fi
15176   fi
15177 
15178 
15179   if test "x$path" != "x$new_path"; then
15180     CURDIR="$new_path"
15181     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15182 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15183   fi
15184 
15185     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15186 
15187   path="$CURDIR"
15188   has_colon=`$ECHO $path | $GREP ^.:`
15189   new_path="$path"
15190   if test "x$has_colon" = x; then
15191     # Not in mixed or Windows style, start by that.
15192     new_path=`cmd //c echo $path`
15193   fi
15194 
15195 
15196   input_path="$new_path"
15197   # Check if we need to convert this using DOS-style short mode. If the path
15198   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15199   # take no chances and rewrite it.
15200   # Note: m4 eats our [], so we need to use [ and ] instead.
15201   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15202   if test "x$has_forbidden_chars" != x; then
15203     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15204     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15205   fi
15206 
15207 
15208   windows_path="$new_path"
15209   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15210     unix_path=`$CYGPATH -u "$windows_path"`
15211     new_path="$unix_path"
15212   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15213     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15214     new_path="$unix_path"
15215   fi
15216 
15217   if test "x$path" != "x$new_path"; then
15218     CURDIR="$new_path"
15219     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15220 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15221   fi
15222 
15223   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15224   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15225 
15226     else
15227       # We're on a unix platform. Hooray! :)
15228       path="$CURDIR"
15229       has_space=`$ECHO "$path" | $GREP " "`
15230       if test "x$has_space" != x; then
15231         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15232 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15233         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15234       fi
15235 
15236       # Use eval to expand a potential ~
15237       eval path="$path"
15238       if test ! -f "$path" && test ! -d "$path"; then
15239         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15240       fi
15241 
15242       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15243     fi
15244   fi
15245 
15246 
15247   # Only process if variable expands to non-empty
15248 
15249   if test "x$TOPDIR" != x; then
15250     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15251 
15252   # Input might be given as Windows format, start by converting to
15253   # unix format.
15254   path="$TOPDIR"
15255   new_path=`$CYGPATH -u "$path"`
15256 
15257   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15258   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15259   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15260   # "foo.exe" is OK but "foo" is an error.
15261   #
15262   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15263   # It is also a way to make sure we got the proper file name for the real test later on.
15264   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15265   if test "x$test_shortpath" = x; then
15266     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15267 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15268     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15269   fi
15270 
15271   # Call helper function which possibly converts this using DOS-style short mode.
15272   # If so, the updated path is stored in $new_path.
15273 
15274   input_path="$new_path"
15275   # Check if we need to convert this using DOS-style short mode. If the path
15276   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15277   # take no chances and rewrite it.
15278   # Note: m4 eats our [], so we need to use [ and ] instead.
15279   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15280   if test "x$has_forbidden_chars" != x; then
15281     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15282     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15283     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15284     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15285       # Going to short mode and back again did indeed matter. Since short mode is
15286       # case insensitive, let's make it lowercase to improve readability.
15287       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15288       # Now convert it back to Unix-style (cygpath)
15289       input_path=`$CYGPATH -u "$shortmode_path"`
15290       new_path="$input_path"
15291     fi
15292   fi
15293 
15294   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15295   if test "x$test_cygdrive_prefix" = x; then
15296     # As a simple fix, exclude /usr/bin since it's not a real path.
15297     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15298       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15299       # a path prefixed by /cygdrive for fixpath to work.
15300       new_path="$CYGWIN_ROOT_PATH$input_path"
15301     fi
15302   fi
15303 
15304 
15305   if test "x$path" != "x$new_path"; then
15306     TOPDIR="$new_path"
15307     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15308 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15309   fi
15310 
15311     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15312 
15313   path="$TOPDIR"
15314   has_colon=`$ECHO $path | $GREP ^.:`
15315   new_path="$path"
15316   if test "x$has_colon" = x; then
15317     # Not in mixed or Windows style, start by that.
15318     new_path=`cmd //c echo $path`
15319   fi
15320 
15321 
15322   input_path="$new_path"
15323   # Check if we need to convert this using DOS-style short mode. If the path
15324   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15325   # take no chances and rewrite it.
15326   # Note: m4 eats our [], so we need to use [ and ] instead.
15327   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15328   if test "x$has_forbidden_chars" != x; then
15329     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15330     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15331   fi
15332 
15333 
15334   windows_path="$new_path"
15335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15336     unix_path=`$CYGPATH -u "$windows_path"`
15337     new_path="$unix_path"
15338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15340     new_path="$unix_path"
15341   fi
15342 
15343   if test "x$path" != "x$new_path"; then
15344     TOPDIR="$new_path"
15345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15346 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15347   fi
15348 
15349   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15350   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15351 
15352     else
15353       # We're on a unix platform. Hooray! :)
15354       path="$TOPDIR"
15355       has_space=`$ECHO "$path" | $GREP " "`
15356       if test "x$has_space" != x; then
15357         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15358 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15359         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15360       fi
15361 
15362       # Use eval to expand a potential ~
15363       eval path="$path"
15364       if test ! -f "$path" && test ! -d "$path"; then
15365         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15366       fi
15367 
15368       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15369     fi
15370   fi
15371 
15372   # SRC_ROOT is a traditional alias for TOPDIR.
15373   SRC_ROOT=$TOPDIR
15374 
15375   # Calculate a canonical version of TOPDIR for string comparisons
15376   CANONICAL_TOPDIR=$TOPDIR
15377 
15378   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15379     # Follow a chain of symbolic links. Use readlink
15380     # where it exists, else fall back to horribly
15381     # complicated shell code.
15382     if test "x$READLINK_TESTED" != yes; then
15383       # On MacOSX there is a readlink tool with a different
15384       # purpose than the GNU readlink tool. Check the found readlink.
15385       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15386       if test "x$ISGNU" = x; then
15387         # A readlink that we do not know how to use.
15388         # Are there other non-GNU readlinks out there?
15389         READLINK_TESTED=yes
15390         READLINK=
15391       fi
15392     fi
15393 
15394     if test "x$READLINK" != x; then
15395       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15396     else
15397       # Save the current directory for restoring afterwards
15398       STARTDIR=$PWD
15399       COUNTER=0
15400       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15401       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15402       cd $sym_link_dir
15403       # Use -P flag to resolve symlinks in directories.
15404       cd `$THEPWDCMD -P`
15405       sym_link_dir=`$THEPWDCMD -P`
15406       # Resolve file symlinks
15407       while test $COUNTER -lt 20; do
15408         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15409         if test "x$ISLINK" == x; then
15410           # This is not a symbolic link! We are done!
15411           break
15412         fi
15413         # Again resolve directory symlinks since the target of the just found
15414         # link could be in a different directory
15415         cd `$DIRNAME $ISLINK`
15416         sym_link_dir=`$THEPWDCMD -P`
15417         sym_link_file=`$BASENAME $ISLINK`
15418         let COUNTER=COUNTER+1
15419       done
15420       cd $STARTDIR
15421       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15422     fi
15423   fi
15424 
15425 
15426 
15427   # Locate the directory of this script.
15428   AUTOCONF_DIR=$TOPDIR/common/autoconf
15429 
15430 
15431 # Check if it's a pure open build or if custom sources are to be used.
15432 
15433   # Check whether --enable-openjdk-only was given.
15434 if test "${enable_openjdk_only+set}" = set; then :
15435   enableval=$enable_openjdk_only;
15436 else
15437   enable_openjdk_only="no"
15438 fi
15439 
15440 
15441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15442 $as_echo_n "checking for presence of closed sources... " >&6; }
15443   if test -d "$SRC_ROOT/jdk/src/closed"; then
15444     CLOSED_SOURCE_PRESENT=yes
15445   else
15446     CLOSED_SOURCE_PRESENT=no
15447   fi
15448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15449 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15450 
15451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15452 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15453   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15455 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15456 
15457   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15458     OPENJDK=true
15459     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15460       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15461 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15462     fi
15463   else
15464     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15465       OPENJDK=true
15466     else
15467       OPENJDK=false
15468     fi
15469   fi
15470 
15471   if test "x$OPENJDK" = "xtrue"; then
15472     SET_OPENJDK="OPENJDK=true"
15473   fi
15474 
15475 
15476 
15477   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15478   # the IncludeCustomExtension macro.
15479 
15480 
15481 # Check whether --with-custom-make-dir was given.
15482 if test "${with_custom_make_dir+set}" = set; then :
15483   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
15484 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15485 fi
15486 
15487 
15488 
15489 
15490 # These are needed to be able to create a configuration name (and thus the output directory)
15491 
15492   ###############################################################################
15493   #
15494   # Check which variant of the JDK that we want to build.
15495   # Currently we have:
15496   #    normal:   standard edition
15497   # but the custom make system may add other variants
15498   #
15499   # Effectively the JDK variant gives a name to a specific set of
15500   # modules to compile into the JDK. In the future, these modules
15501   # might even be Jigsaw modules.
15502   #
15503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15504 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15505 
15506 # Check whether --with-jdk-variant was given.
15507 if test "${with_jdk_variant+set}" = set; then :
15508   withval=$with_jdk_variant;
15509 fi
15510 
15511 
15512   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15513     JDK_VARIANT="normal"
15514   else
15515     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15516   fi
15517 
15518 
15519 
15520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15521 $as_echo "$JDK_VARIANT" >&6; }
15522 
15523 
15524 ###############################################################################
15525 #
15526 # Check which interpreter of the JVM we want to build.
15527 # Currently we have:
15528 #    template: Template interpreter (the default)
15529 #    cpp     : C++ interpreter
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15531 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15532 
15533 # Check whether --with-jvm-interpreter was given.
15534 if test "${with_jvm_interpreter+set}" = set; then :
15535   withval=$with_jvm_interpreter;
15536 fi
15537 
15538 
15539 if test "x$with_jvm_interpreter" = x; then
15540      with_jvm_interpreter="template"
15541 fi
15542 
15543 JVM_INTERPRETER="$with_jvm_interpreter"
15544 
15545 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15546    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15547 fi
15548 
15549 
15550 
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15552 $as_echo "$with_jvm_interpreter" >&6; }
15553 
15554 
15555 
15556   ###############################################################################
15557   #
15558   # Check which variants of the JVM that we want to build.
15559   # Currently we have:
15560   #    server: normal interpreter and a tiered C1/C2 compiler
15561   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15562   #    minimal1: reduced form of client with optional VM services and features stripped out
15563   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15564   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15565   #    zero: no machine code interpreter, no compiler
15566   #    zeroshark: zero interpreter and shark/llvm compiler backend
15567 #    core: interpreter only, no compiler (only works on some platforms)
15568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15569 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15570 
15571 # Check whether --with-jvm-variants was given.
15572 if test "${with_jvm_variants+set}" = set; then :
15573   withval=$with_jvm_variants;
15574 fi
15575 
15576 
15577   if test "x$with_jvm_variants" = x; then
15578     with_jvm_variants="server"
15579   fi
15580 
15581   JVM_VARIANTS=",$with_jvm_variants,"
15582   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,//'`
15583 
15584   if test "x$TEST_VARIANTS" != "x,"; then
15585      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15586   fi
15587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15588 $as_echo "$with_jvm_variants" >&6; }
15589 
15590   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15591   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15592   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15593   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15594   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15595   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15596   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15597 
15598   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15599     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15600       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15601     fi
15602   fi
15603   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15604     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15605       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15606     fi
15607   fi
15608   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15609     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15610       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15611     fi
15612   fi
15613 
15614   # Replace the commas with AND for use in the build directory name.
15615   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15616   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/'`
15617   if test "x$COUNT_VARIANTS" != "x,1"; then
15618     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15619   else
15620     BUILDING_MULTIPLE_JVM_VARIANTS=no
15621   fi
15622 
15623 
15624 
15625 
15626 
15627 
15628 
15629 
15630 
15631 
15632   INCLUDE_SA=true
15633   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15634     INCLUDE_SA=false
15635   fi
15636   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15637     INCLUDE_SA=false
15638   fi
15639   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15640     INCLUDE_SA=false
15641   fi
15642   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15643     INCLUDE_SA=false
15644   fi
15645 
15646 
15647   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15648     MACOSX_UNIVERSAL="true"
15649   fi
15650 
15651 
15652 
15653 
15654   ###############################################################################
15655   #
15656   # Set the debug level
15657   #    release: no debug information, all optimizations, no asserts.
15658   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15659   #    fastdebug: debug information (-g), all optimizations, all asserts
15660   #    slowdebug: debug information (-g), no optimizations, all asserts
15661   #
15662   DEBUG_LEVEL="release"
15663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15664 $as_echo_n "checking which debug level to use... " >&6; }
15665   # Check whether --enable-debug was given.
15666 if test "${enable_debug+set}" = set; then :
15667   enableval=$enable_debug;
15668         ENABLE_DEBUG="${enableval}"
15669         DEBUG_LEVEL="fastdebug"
15670 
15671 else
15672   ENABLE_DEBUG="no"
15673 fi
15674 
15675 
15676 
15677 # Check whether --with-debug-level was given.
15678 if test "${with_debug_level+set}" = set; then :
15679   withval=$with_debug_level;
15680         DEBUG_LEVEL="${withval}"
15681         if test "x$ENABLE_DEBUG" = xyes; then
15682           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15683         fi
15684 
15685 fi
15686 
15687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15688 $as_echo "$DEBUG_LEVEL" >&6; }
15689 
15690   if test "x$DEBUG_LEVEL" != xrelease && \
15691       test "x$DEBUG_LEVEL" != xoptimized && \
15692       test "x$DEBUG_LEVEL" != xfastdebug && \
15693       test "x$DEBUG_LEVEL" != xslowdebug; then
15694     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15695   fi
15696 
15697 
15698   ###############################################################################
15699   #
15700   # Setup legacy vars/targets and new vars to deal with different debug levels.
15701   #
15702 
15703   case $DEBUG_LEVEL in
15704     release )
15705       VARIANT="OPT"
15706       FASTDEBUG="false"
15707       DEBUG_CLASSFILES="false"
15708       BUILD_VARIANT_RELEASE=""
15709       HOTSPOT_DEBUG_LEVEL="product"
15710       HOTSPOT_EXPORT="product"
15711       ;;
15712     fastdebug )
15713       VARIANT="DBG"
15714       FASTDEBUG="true"
15715       DEBUG_CLASSFILES="true"
15716       BUILD_VARIANT_RELEASE="-fastdebug"
15717       HOTSPOT_DEBUG_LEVEL="fastdebug"
15718       HOTSPOT_EXPORT="fastdebug"
15719       ;;
15720     slowdebug )
15721       VARIANT="DBG"
15722       FASTDEBUG="false"
15723       DEBUG_CLASSFILES="true"
15724       BUILD_VARIANT_RELEASE="-debug"
15725       HOTSPOT_DEBUG_LEVEL="debug"
15726       HOTSPOT_EXPORT="debug"
15727       ;;
15728     optimized )
15729       VARIANT="OPT"
15730       FASTDEBUG="false"
15731       DEBUG_CLASSFILES="false"
15732       BUILD_VARIANT_RELEASE="-optimized"
15733       HOTSPOT_DEBUG_LEVEL="optimized"
15734       HOTSPOT_EXPORT="optimized"
15735       ;;
15736   esac
15737 
15738   # The debug level 'optimized' is a little special because it is currently only
15739   # applicable to the HotSpot build where it means to build a completely
15740   # optimized version of the VM without any debugging code (like for the
15741   # 'release' debug level which is called 'product' in the HotSpot build) but
15742   # with the exception that it can contain additional code which is otherwise
15743   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15744   # test new and/or experimental features which are not intended for customer
15745   # shipment. Because these new features need to be tested and benchmarked in
15746   # real world scenarios, we want to build the containing JDK at the 'release'
15747   # debug level.
15748   if test "x$DEBUG_LEVEL" = xoptimized; then
15749     DEBUG_LEVEL="release"
15750   fi
15751 
15752   #####
15753   # Generate the legacy makefile targets for hotspot.
15754   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15755   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15756   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15757   # But until then ...
15758   HOTSPOT_TARGET=""
15759 
15760   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15761     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15762   fi
15763 
15764   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15765     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15766   fi
15767 
15768   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15769     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15770   fi
15771 
15772   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15773     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15774   fi
15775 
15776   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15777     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15778   fi
15779 
15780   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15781     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15782   fi
15783 
15784   if test "x$JVM_VARIANT_CORE" = xtrue; then
15785     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15786   fi
15787 
15788   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15789 
15790   # On Macosx universal binaries are produced, but they only contain
15791   # 64 bit intel. This invalidates control of which jvms are built
15792   # from configure, but only server is valid anyway. Fix this
15793   # when hotspot makefiles are rewritten.
15794   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15795     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15796   fi
15797 
15798   #####
15799 
15800 
15801 
15802 
15803 
15804 
15805 
15806 
15807 # With basic setup done, call the custom early hook.
15808 
15809 
15810 # Check if we have devkits, extra paths or sysroot set.
15811 
15812 
15813 # Check whether --with-devkit was given.
15814 if test "${with_devkit+set}" = set; then :
15815   withval=$with_devkit;
15816 
15817   # Only process if variable expands to non-empty
15818 
15819   if test "x$with_devkit" != x; then
15820     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15821 
15822   # Input might be given as Windows format, start by converting to
15823   # unix format.
15824   path="$with_devkit"
15825   new_path=`$CYGPATH -u "$path"`
15826 
15827   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15828   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15829   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15830   # "foo.exe" is OK but "foo" is an error.
15831   #
15832   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15833   # It is also a way to make sure we got the proper file name for the real test later on.
15834   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15835   if test "x$test_shortpath" = x; then
15836     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15837 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15838     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15839   fi
15840 
15841   # Call helper function which possibly converts this using DOS-style short mode.
15842   # If so, the updated path is stored in $new_path.
15843 
15844   input_path="$new_path"
15845   # Check if we need to convert this using DOS-style short mode. If the path
15846   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15847   # take no chances and rewrite it.
15848   # Note: m4 eats our [], so we need to use [ and ] instead.
15849   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15850   if test "x$has_forbidden_chars" != x; then
15851     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15852     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15853     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15854     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15855       # Going to short mode and back again did indeed matter. Since short mode is
15856       # case insensitive, let's make it lowercase to improve readability.
15857       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15858       # Now convert it back to Unix-style (cygpath)
15859       input_path=`$CYGPATH -u "$shortmode_path"`
15860       new_path="$input_path"
15861     fi
15862   fi
15863 
15864   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15865   if test "x$test_cygdrive_prefix" = x; then
15866     # As a simple fix, exclude /usr/bin since it's not a real path.
15867     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15868       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15869       # a path prefixed by /cygdrive for fixpath to work.
15870       new_path="$CYGWIN_ROOT_PATH$input_path"
15871     fi
15872   fi
15873 
15874 
15875   if test "x$path" != "x$new_path"; then
15876     with_devkit="$new_path"
15877     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15878 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15879   fi
15880 
15881     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15882 
15883   path="$with_devkit"
15884   has_colon=`$ECHO $path | $GREP ^.:`
15885   new_path="$path"
15886   if test "x$has_colon" = x; then
15887     # Not in mixed or Windows style, start by that.
15888     new_path=`cmd //c echo $path`
15889   fi
15890 
15891 
15892   input_path="$new_path"
15893   # Check if we need to convert this using DOS-style short mode. If the path
15894   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15895   # take no chances and rewrite it.
15896   # Note: m4 eats our [], so we need to use [ and ] instead.
15897   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15898   if test "x$has_forbidden_chars" != x; then
15899     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15900     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15901   fi
15902 
15903 
15904   windows_path="$new_path"
15905   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15906     unix_path=`$CYGPATH -u "$windows_path"`
15907     new_path="$unix_path"
15908   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15909     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15910     new_path="$unix_path"
15911   fi
15912 
15913   if test "x$path" != "x$new_path"; then
15914     with_devkit="$new_path"
15915     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15916 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15917   fi
15918 
15919   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15920   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15921 
15922     else
15923       # We're on a unix platform. Hooray! :)
15924       path="$with_devkit"
15925       has_space=`$ECHO "$path" | $GREP " "`
15926       if test "x$has_space" != x; then
15927         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15928 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15929         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15930       fi
15931 
15932       # Use eval to expand a potential ~
15933       eval path="$path"
15934       if test ! -f "$path" && test ! -d "$path"; then
15935         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15936       fi
15937 
15938       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15939     fi
15940   fi
15941 
15942         DEVKIT_ROOT="$with_devkit"
15943         # Check for a meta data info file in the root of the devkit
15944         if test -f "$DEVKIT_ROOT/devkit.info"; then
15945           . $DEVKIT_ROOT/devkit.info
15946           # This potentially sets the following:
15947           # A descriptive name of the devkit
15948 
15949   if test "x$DEVKIT_NAME" = x; then
15950     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15951   fi
15952 
15953           # Corresponds to --with-extra-path
15954 
15955   if test "x$DEVKIT_EXTRA_PATH" = x; then
15956     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15957   fi
15958 
15959           # Corresponds to --with-toolchain-path
15960 
15961   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15962     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15963   fi
15964 
15965           # Corresponds to --with-sysroot
15966 
15967   if test "x$DEVKIT_SYSROOT" = x; then
15968     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
15969   fi
15970 
15971 
15972           # Identifies the Visual Studio version in the devkit
15973 
15974   if test "x$DEVKIT_VS_VERSION" = x; then
15975     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
15976   fi
15977 
15978           # The Visual Studio include environment variable
15979 
15980   if test "x$DEVKIT_VS_INCLUDE" = x; then
15981     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
15982   fi
15983 
15984           # The Visual Studio lib environment variable
15985 
15986   if test "x$DEVKIT_VS_LIB" = x; then
15987     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
15988   fi
15989 
15990           # Corresponds to --with-msvcr-dll
15991 
15992   if test "x$DEVKIT_MSVCR_DLL" = x; then
15993     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
15994   fi
15995 
15996           # Corresponds to --with-msvcp-dll
15997 
15998   if test "x$DEVKIT_MSVCP_DLL" = x; then
15999     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16000   fi
16001 
16002         fi
16003 
16004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16005 $as_echo_n "checking for devkit... " >&6; }
16006         if test "x$DEVKIT_NAME" != x; then
16007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16008 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16009         else
16010           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16011 $as_echo "$DEVKIT_ROOT" >&6; }
16012         fi
16013 
16014 
16015   if test "x$DEVKIT_EXTRA_PATH" != x; then
16016     if test "x$EXTRA_PATH" = x; then
16017       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16018     else
16019       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16020     fi
16021   fi
16022 
16023 
16024         # Fallback default of just /bin if DEVKIT_PATH is not defined
16025         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16026           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16027         fi
16028 
16029   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16030     if test "x$TOOLCHAIN_PATH" = x; then
16031       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16032     else
16033       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16034     fi
16035   fi
16036 
16037 
16038         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16039         # places for backwards compatiblity.
16040         if test "x$DEVKIT_SYSROOT" != x; then
16041           SYSROOT="$DEVKIT_SYSROOT"
16042         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16043           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16044         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16045           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16046         fi
16047 
16048 
16049 fi
16050 
16051 
16052   # You can force the sysroot if the sysroot encoded into the compiler tools
16053   # is not correct.
16054 
16055 # Check whether --with-sys-root was given.
16056 if test "${with_sys_root+set}" = set; then :
16057   withval=$with_sys_root; SYSROOT=$with_sys_root
16058 
16059 fi
16060 
16061 
16062 
16063 # Check whether --with-sysroot was given.
16064 if test "${with_sysroot+set}" = set; then :
16065   withval=$with_sysroot; SYSROOT=$with_sysroot
16066 
16067 fi
16068 
16069 
16070 
16071 # Check whether --with-tools-dir was given.
16072 if test "${with_tools_dir+set}" = set; then :
16073   withval=$with_tools_dir;
16074   if test "x$with_tools_dir" != x; then
16075     if test "x$TOOLCHAIN_PATH" = x; then
16076       TOOLCHAIN_PATH="$with_tools_dir"
16077     else
16078       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16079     fi
16080   fi
16081 
16082 
16083 fi
16084 
16085 
16086 
16087 # Check whether --with-toolchain-path was given.
16088 if test "${with_toolchain_path+set}" = set; then :
16089   withval=$with_toolchain_path;
16090   if test "x$with_toolchain_path" != x; then
16091     if test "x$TOOLCHAIN_PATH" = x; then
16092       TOOLCHAIN_PATH="$with_toolchain_path"
16093     else
16094       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16095     fi
16096   fi
16097 
16098 
16099 fi
16100 
16101 
16102 
16103 # Check whether --with-extra-path was given.
16104 if test "${with_extra_path+set}" = set; then :
16105   withval=$with_extra_path;
16106   if test "x$with_extra_path" != x; then
16107     if test "x$EXTRA_PATH" = x; then
16108       EXTRA_PATH="$with_extra_path"
16109     else
16110       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16111     fi
16112   fi
16113 
16114 
16115 fi
16116 
16117 
16118   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16119     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16120     # If not, detect if Xcode is installed by running xcodebuild -version
16121     # if no Xcode installed, xcodebuild exits with 1
16122     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16123     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16124       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16125       # fall back on the stub binary in /usr/bin/xcodebuild
16126       # Extract the first word of "xcodebuild", so it can be a program name with args.
16127 set dummy xcodebuild; ac_word=$2
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129 $as_echo_n "checking for $ac_word... " >&6; }
16130 if ${ac_cv_path_XCODEBUILD+:} false; then :
16131   $as_echo_n "(cached) " >&6
16132 else
16133   case $XCODEBUILD in
16134   [\\/]* | ?:[\\/]*)
16135   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16136   ;;
16137   *)
16138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16139 for as_dir in $TOOLCHAIN_PATH
16140 do
16141   IFS=$as_save_IFS
16142   test -z "$as_dir" && as_dir=.
16143     for ac_exec_ext in '' $ac_executable_extensions; do
16144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16145     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16147     break 2
16148   fi
16149 done
16150   done
16151 IFS=$as_save_IFS
16152 
16153   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16154   ;;
16155 esac
16156 fi
16157 XCODEBUILD=$ac_cv_path_XCODEBUILD
16158 if test -n "$XCODEBUILD"; then
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16160 $as_echo "$XCODEBUILD" >&6; }
16161 else
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 fi
16165 
16166 
16167     else
16168       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16169       # when only the command line tools are installed there are no SDKs, so headers
16170       # are copied into the system frameworks
16171       XCODEBUILD=
16172 
16173     fi
16174 
16175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16176 $as_echo_n "checking for sdk name... " >&6; }
16177 
16178 # Check whether --with-sdk-name was given.
16179 if test "${with_sdk_name+set}" = set; then :
16180   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16181 
16182 fi
16183 
16184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16185 $as_echo "$SDKNAME" >&6; }
16186 
16187     # if toolchain path is specified then don't rely on system headers, they may not compile
16188     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16189     test -z "$TOOLCHAIN_PATH" && \
16190       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16191 
16192     if test -z "$SYSROOT"; then
16193       if test -n "$XCODEBUILD"; then
16194         # if we don't have system headers, use default SDK name (last resort)
16195         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16196           SDKNAME=${SDKNAME:-macosx}
16197         fi
16198 
16199         if test -n "$SDKNAME"; then
16200           # Call xcodebuild to determine SYSROOT
16201           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16202         fi
16203       else
16204         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16205           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
16206         fi
16207       fi
16208     else
16209       # warn user if --with-sdk-name was also set
16210       if test -n "$with_sdk_name"; then
16211         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16212 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16213       fi
16214     fi
16215 
16216     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16217       # If no system framework headers, then SYSROOT must be set, or we won't build
16218       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
16219     fi
16220 
16221     # Perform a basic sanity test
16222     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16223       if test -z "$SYSROOT"; then
16224         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
16225       else
16226         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16227       fi
16228     fi
16229 
16230     # set SDKROOT too, Xcode tools will pick it up
16231     SDKROOT=$SYSROOT
16232 
16233   fi
16234 
16235   # Prepend the extra path to the global path
16236 
16237   if test "x$EXTRA_PATH" != x; then
16238     if test "x$PATH" = x; then
16239       PATH="$EXTRA_PATH"
16240     else
16241       PATH="$EXTRA_PATH:$PATH"
16242     fi
16243   fi
16244 
16245 
16246   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16247     # Add extra search paths on solaris for utilities like ar and as etc...
16248     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16249   fi
16250 
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16252 $as_echo_n "checking for sysroot... " >&6; }
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16254 $as_echo "$SYSROOT" >&6; }
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16256 $as_echo_n "checking for toolchain path... " >&6; }
16257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16258 $as_echo "$TOOLCHAIN_PATH" >&6; }
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16260 $as_echo_n "checking for extra path... " >&6; }
16261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16262 $as_echo "$EXTRA_PATH" >&6; }
16263 
16264 
16265 # To properly create a configuration name, we need to have the OpenJDK target
16266 # and options (variants and debug level) parsed.
16267 
16268 
16269 
16270 # Check whether --with-conf-name was given.
16271 if test "${with_conf_name+set}" = set; then :
16272   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16273 fi
16274 
16275 
16276   # Test from where we are running configure, in or outside of src root.
16277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16278 $as_echo_n "checking where to store configuration... " >&6; }
16279   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16280       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16281       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16282     # We are running configure from the src root.
16283     # Create a default ./build/target-variant-debuglevel output root.
16284     if test "x${CONF_NAME}" = x; then
16285       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16286 $as_echo "in default location" >&6; }
16287       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16288     else
16289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16290 $as_echo "in build directory with custom name" >&6; }
16291     fi
16292     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16293     $MKDIR -p "$OUTPUT_ROOT"
16294     if test ! -d "$OUTPUT_ROOT"; then
16295       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16296     fi
16297   else
16298     # We are running configure from outside of the src dir.
16299     # Then use the current directory as output dir!
16300     # If configuration is situated in normal build directory, just use the build
16301     # directory name as configuration name, otherwise use the complete path.
16302     if test "x${CONF_NAME}" = x; then
16303       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16304     fi
16305     OUTPUT_ROOT="$CURDIR"
16306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16307 $as_echo "in current directory" >&6; }
16308 
16309     # WARNING: This might be a bad thing to do. You need to be sure you want to
16310     # have a configuration in this directory. Do some sanity checks!
16311 
16312     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16313       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16314       # other files
16315       files_present=`$LS $OUTPUT_ROOT`
16316       # Configure has already touched config.log and confdefs.h in the current dir when this check
16317       # is performed.
16318       filtered_files=`$ECHO "$files_present" \
16319           | $SED -e 's/config.log//g' \
16320               -e 's/configure.log//g' \
16321               -e 's/confdefs.h//g' \
16322               -e 's/ //g' \
16323           | $TR -d '\n'`
16324       if test "x$filtered_files" != x; then
16325         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16326 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16327         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16328 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16329         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16330 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16331         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16332 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16333         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16334 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16335         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16336 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16337         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16338 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16339         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16340       fi
16341     fi
16342   fi
16343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16344 $as_echo_n "checking what configuration name to use... " >&6; }
16345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16346 $as_echo "$CONF_NAME" >&6; }
16347 
16348 
16349   # Only process if variable expands to non-empty
16350 
16351   if test "x$OUTPUT_ROOT" != x; then
16352     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16353 
16354   # Input might be given as Windows format, start by converting to
16355   # unix format.
16356   path="$OUTPUT_ROOT"
16357   new_path=`$CYGPATH -u "$path"`
16358 
16359   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16360   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16361   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16362   # "foo.exe" is OK but "foo" is an error.
16363   #
16364   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16365   # It is also a way to make sure we got the proper file name for the real test later on.
16366   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16367   if test "x$test_shortpath" = x; then
16368     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16369 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16370     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16371   fi
16372 
16373   # Call helper function which possibly converts this using DOS-style short mode.
16374   # If so, the updated path is stored in $new_path.
16375 
16376   input_path="$new_path"
16377   # Check if we need to convert this using DOS-style short mode. If the path
16378   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16379   # take no chances and rewrite it.
16380   # Note: m4 eats our [], so we need to use [ and ] instead.
16381   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16382   if test "x$has_forbidden_chars" != x; then
16383     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16384     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16385     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16386     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16387       # Going to short mode and back again did indeed matter. Since short mode is
16388       # case insensitive, let's make it lowercase to improve readability.
16389       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16390       # Now convert it back to Unix-style (cygpath)
16391       input_path=`$CYGPATH -u "$shortmode_path"`
16392       new_path="$input_path"
16393     fi
16394   fi
16395 
16396   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16397   if test "x$test_cygdrive_prefix" = x; then
16398     # As a simple fix, exclude /usr/bin since it's not a real path.
16399     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16400       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16401       # a path prefixed by /cygdrive for fixpath to work.
16402       new_path="$CYGWIN_ROOT_PATH$input_path"
16403     fi
16404   fi
16405 
16406 
16407   if test "x$path" != "x$new_path"; then
16408     OUTPUT_ROOT="$new_path"
16409     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16410 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16411   fi
16412 
16413     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16414 
16415   path="$OUTPUT_ROOT"
16416   has_colon=`$ECHO $path | $GREP ^.:`
16417   new_path="$path"
16418   if test "x$has_colon" = x; then
16419     # Not in mixed or Windows style, start by that.
16420     new_path=`cmd //c echo $path`
16421   fi
16422 
16423 
16424   input_path="$new_path"
16425   # Check if we need to convert this using DOS-style short mode. If the path
16426   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16427   # take no chances and rewrite it.
16428   # Note: m4 eats our [], so we need to use [ and ] instead.
16429   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16430   if test "x$has_forbidden_chars" != x; then
16431     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16432     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16433   fi
16434 
16435 
16436   windows_path="$new_path"
16437   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16438     unix_path=`$CYGPATH -u "$windows_path"`
16439     new_path="$unix_path"
16440   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16441     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16442     new_path="$unix_path"
16443   fi
16444 
16445   if test "x$path" != "x$new_path"; then
16446     OUTPUT_ROOT="$new_path"
16447     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16448 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16449   fi
16450 
16451   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16452   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16453 
16454     else
16455       # We're on a unix platform. Hooray! :)
16456       path="$OUTPUT_ROOT"
16457       has_space=`$ECHO "$path" | $GREP " "`
16458       if test "x$has_space" != x; then
16459         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16460 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16461         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16462       fi
16463 
16464       # Use eval to expand a potential ~
16465       eval path="$path"
16466       if test ! -f "$path" && test ! -d "$path"; then
16467         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16468       fi
16469 
16470       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16471     fi
16472   fi
16473 
16474 
16475   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16476   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16477 
16478   SPEC=$OUTPUT_ROOT/spec.gmk
16479 
16480   CONF_NAME=$CONF_NAME
16481 
16482   OUTPUT_ROOT=$OUTPUT_ROOT
16483 
16484 
16485 
16486   # The spec.gmk file contains all variables for the make system.
16487   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16488 
16489   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16490   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16491 
16492   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16493   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16494 
16495   # The compare.sh is used to compare the build output to other builds.
16496   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16497 
16498   # The generated Makefile knows where the spec.gmk is and where the source is.
16499   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16500   # which will look for generated configurations
16501   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16502 
16503 
16504 
16505 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16506 
16507   for ac_prog in apt-get yum port pkgutil pkgadd
16508 do
16509   # Extract the first word of "$ac_prog", so it can be a program name with args.
16510 set dummy $ac_prog; ac_word=$2
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512 $as_echo_n "checking for $ac_word... " >&6; }
16513 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16514   $as_echo_n "(cached) " >&6
16515 else
16516   if test -n "$PKGHANDLER"; then
16517   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16518 else
16519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16520 for as_dir in $PATH
16521 do
16522   IFS=$as_save_IFS
16523   test -z "$as_dir" && as_dir=.
16524     for ac_exec_ext in '' $ac_executable_extensions; do
16525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16526     ac_cv_prog_PKGHANDLER="$ac_prog"
16527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16528     break 2
16529   fi
16530 done
16531   done
16532 IFS=$as_save_IFS
16533 
16534 fi
16535 fi
16536 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16537 if test -n "$PKGHANDLER"; then
16538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16539 $as_echo "$PKGHANDLER" >&6; }
16540 else
16541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16543 fi
16544 
16545 
16546   test -n "$PKGHANDLER" && break
16547 done
16548 
16549 
16550 
16551 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16552 
16553 
16554 
16555   # Publish this variable in the help.
16556 
16557 
16558   if [ -z "${MAKE+x}" ]; then
16559     # The variable is not set by user, try to locate tool using the code snippet
16560 
16561     # Try our hardest to locate a correct version of GNU make
16562     for ac_prog in gmake
16563 do
16564   # Extract the first word of "$ac_prog", so it can be a program name with args.
16565 set dummy $ac_prog; ac_word=$2
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16567 $as_echo_n "checking for $ac_word... " >&6; }
16568 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16569   $as_echo_n "(cached) " >&6
16570 else
16571   case $CHECK_GMAKE in
16572   [\\/]* | ?:[\\/]*)
16573   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16574   ;;
16575   *)
16576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16577 for as_dir in $PATH
16578 do
16579   IFS=$as_save_IFS
16580   test -z "$as_dir" && as_dir=.
16581     for ac_exec_ext in '' $ac_executable_extensions; do
16582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16583     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16585     break 2
16586   fi
16587 done
16588   done
16589 IFS=$as_save_IFS
16590 
16591   ;;
16592 esac
16593 fi
16594 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16595 if test -n "$CHECK_GMAKE"; then
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16597 $as_echo "$CHECK_GMAKE" >&6; }
16598 else
16599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16600 $as_echo "no" >&6; }
16601 fi
16602 
16603 
16604   test -n "$CHECK_GMAKE" && break
16605 done
16606 
16607 
16608   MAKE_CANDIDATE=""$CHECK_GMAKE""
16609   DESCRIPTION="gmake in PATH"
16610 
16611   # On Cygwin, we require a newer version of make than on other platforms
16612   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16613     MAKE_VERSION_EXPR="-e 4\."
16614     MAKE_REQUIRED_VERSION="4.0"
16615    else
16616     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16617     MAKE_REQUIRED_VERSION="3.81"
16618   fi
16619 
16620   if test "x$MAKE_CANDIDATE" != x; then
16621     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16622 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16623     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16624     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16625     if test "x$IS_GNU_MAKE" = x; then
16626       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16627 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16628     else
16629       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16630       if test "x$IS_MODERN_MAKE" = x; then
16631         { $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
16632 $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;}
16633       else
16634         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16635           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16636             MAKE_EXPECTED_ENV='cygwin'
16637           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16638             MAKE_EXPECTED_ENV='msys'
16639           else
16640             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16641           fi
16642           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16643           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16644         else
16645           # Not relevant for non-Windows
16646           IS_MAKE_CORRECT_ENV=true
16647         fi
16648         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16649           { $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
16650 $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;}
16651         else
16652           FOUND_MAKE=$MAKE_CANDIDATE
16653 
16654   # Only process if variable expands to non-empty
16655 
16656   if test "x$FOUND_MAKE" != x; then
16657     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16658 
16659   # First separate the path from the arguments. This will split at the first
16660   # space.
16661   complete="$FOUND_MAKE"
16662   path="${complete%% *}"
16663   tmp="$complete EOL"
16664   arguments="${tmp#* }"
16665 
16666   # Input might be given as Windows format, start by converting to
16667   # unix format.
16668   new_path=`$CYGPATH -u "$path"`
16669 
16670   # Now try to locate executable using which
16671   new_path=`$WHICH "$new_path" 2> /dev/null`
16672   # bat and cmd files are not always considered executable in cygwin causing which
16673   # to not find them
16674   if test "x$new_path" = x \
16675       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16676       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16677     new_path=`$CYGPATH -u "$path"`
16678   fi
16679   if test "x$new_path" = x; then
16680     # Oops. Which didn't find the executable.
16681     # The splitting of arguments from the executable at a space might have been incorrect,
16682     # since paths with space are more likely in Windows. Give it another try with the whole
16683     # argument.
16684     path="$complete"
16685     arguments="EOL"
16686     new_path=`$CYGPATH -u "$path"`
16687     new_path=`$WHICH "$new_path" 2> /dev/null`
16688     # bat and cmd files are not always considered executable in cygwin causing which
16689     # to not find them
16690     if test "x$new_path" = x \
16691         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16692         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16693       new_path=`$CYGPATH -u "$path"`
16694     fi
16695     if test "x$new_path" = x; then
16696       # It's still not found. Now this is an unrecoverable error.
16697       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16698 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16699       has_space=`$ECHO "$complete" | $GREP " "`
16700       if test "x$has_space" != x; then
16701         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16702 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16703       fi
16704       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16705     fi
16706   fi
16707 
16708   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16709   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16710   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16711   # "foo.exe" is OK but "foo" is an error.
16712   #
16713   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16714   # It is also a way to make sure we got the proper file name for the real test later on.
16715   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16716   if test "x$test_shortpath" = x; then
16717     # Short path failed, file does not exist as specified.
16718     # Try adding .exe or .cmd
16719     if test -f "${new_path}.exe"; then
16720       input_to_shortpath="${new_path}.exe"
16721     elif test -f "${new_path}.cmd"; then
16722       input_to_shortpath="${new_path}.cmd"
16723     else
16724       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16725 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16726       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16727 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16728       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16729     fi
16730   else
16731     input_to_shortpath="$new_path"
16732   fi
16733 
16734   # Call helper function which possibly converts this using DOS-style short mode.
16735   # If so, the updated path is stored in $new_path.
16736   new_path="$input_to_shortpath"
16737 
16738   input_path="$input_to_shortpath"
16739   # Check if we need to convert this using DOS-style short mode. If the path
16740   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16741   # take no chances and rewrite it.
16742   # Note: m4 eats our [], so we need to use [ and ] instead.
16743   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16744   if test "x$has_forbidden_chars" != x; then
16745     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16746     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16747     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16748     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16749       # Going to short mode and back again did indeed matter. Since short mode is
16750       # case insensitive, let's make it lowercase to improve readability.
16751       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16752       # Now convert it back to Unix-style (cygpath)
16753       input_path=`$CYGPATH -u "$shortmode_path"`
16754       new_path="$input_path"
16755     fi
16756   fi
16757 
16758   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16759   if test "x$test_cygdrive_prefix" = x; then
16760     # As a simple fix, exclude /usr/bin since it's not a real path.
16761     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16762       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16763       # a path prefixed by /cygdrive for fixpath to work.
16764       new_path="$CYGWIN_ROOT_PATH$input_path"
16765     fi
16766   fi
16767 
16768   # remove trailing .exe if any
16769   new_path="${new_path/%.exe/}"
16770 
16771     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16772 
16773   # First separate the path from the arguments. This will split at the first
16774   # space.
16775   complete="$FOUND_MAKE"
16776   path="${complete%% *}"
16777   tmp="$complete EOL"
16778   arguments="${tmp#* }"
16779 
16780   # Input might be given as Windows format, start by converting to
16781   # unix format.
16782   new_path="$path"
16783 
16784   windows_path="$new_path"
16785   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16786     unix_path=`$CYGPATH -u "$windows_path"`
16787     new_path="$unix_path"
16788   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16789     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16790     new_path="$unix_path"
16791   fi
16792 
16793 
16794   # Now try to locate executable using which
16795   new_path=`$WHICH "$new_path" 2> /dev/null`
16796 
16797   if test "x$new_path" = x; then
16798     # Oops. Which didn't find the executable.
16799     # The splitting of arguments from the executable at a space might have been incorrect,
16800     # since paths with space are more likely in Windows. Give it another try with the whole
16801     # argument.
16802     path="$complete"
16803     arguments="EOL"
16804     new_path="$path"
16805 
16806   windows_path="$new_path"
16807   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16808     unix_path=`$CYGPATH -u "$windows_path"`
16809     new_path="$unix_path"
16810   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16811     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16812     new_path="$unix_path"
16813   fi
16814 
16815 
16816     new_path=`$WHICH "$new_path" 2> /dev/null`
16817     # bat and cmd files are not always considered executable in MSYS causing which
16818     # to not find them
16819     if test "x$new_path" = x \
16820         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16821         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16822       new_path="$path"
16823 
16824   windows_path="$new_path"
16825   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16826     unix_path=`$CYGPATH -u "$windows_path"`
16827     new_path="$unix_path"
16828   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16829     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16830     new_path="$unix_path"
16831   fi
16832 
16833     fi
16834 
16835     if test "x$new_path" = x; then
16836       # It's still not found. Now this is an unrecoverable error.
16837       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16838 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16839       has_space=`$ECHO "$complete" | $GREP " "`
16840       if test "x$has_space" != x; then
16841         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16842 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16843       fi
16844       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16845     fi
16846   fi
16847 
16848   # Now new_path has a complete unix path to the binary
16849   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16850     # Keep paths in /bin as-is, but remove trailing .exe if any
16851     new_path="${new_path/%.exe/}"
16852     # Do not save /bin paths to all_fixpath_prefixes!
16853   else
16854     # Not in mixed or Windows style, start by that.
16855     new_path=`cmd //c echo $new_path`
16856 
16857   input_path="$new_path"
16858   # Check if we need to convert this using DOS-style short mode. If the path
16859   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16860   # take no chances and rewrite it.
16861   # Note: m4 eats our [], so we need to use [ and ] instead.
16862   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16863   if test "x$has_forbidden_chars" != x; then
16864     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16865     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16866   fi
16867 
16868     # Output is in $new_path
16869 
16870   windows_path="$new_path"
16871   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16872     unix_path=`$CYGPATH -u "$windows_path"`
16873     new_path="$unix_path"
16874   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16875     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16876     new_path="$unix_path"
16877   fi
16878 
16879     # remove trailing .exe if any
16880     new_path="${new_path/%.exe/}"
16881 
16882     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16883     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16884   fi
16885 
16886     else
16887       # We're on a unix platform. Hooray! :)
16888       # First separate the path from the arguments. This will split at the first
16889       # space.
16890       complete="$FOUND_MAKE"
16891       path="${complete%% *}"
16892       tmp="$complete EOL"
16893       arguments="${tmp#* }"
16894 
16895       # Cannot rely on the command "which" here since it doesn't always work.
16896       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16897       if test -z "$is_absolute_path"; then
16898         # Path to executable is not absolute. Find it.
16899         IFS_save="$IFS"
16900         IFS=:
16901         for p in $PATH; do
16902           if test -f "$p/$path" && test -x "$p/$path"; then
16903             new_path="$p/$path"
16904             break
16905           fi
16906         done
16907         IFS="$IFS_save"
16908       else
16909         # This is an absolute path, we can use it without further modifications.
16910         new_path="$path"
16911       fi
16912 
16913       if test "x$new_path" = x; then
16914         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16915 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16916         has_space=`$ECHO "$complete" | $GREP " "`
16917         if test "x$has_space" != x; then
16918           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16919 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16920         fi
16921         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16922       fi
16923     fi
16924 
16925     # Now join together the path and the arguments once again
16926     if test "x$arguments" != xEOL; then
16927       new_complete="$new_path ${arguments% *}"
16928     else
16929       new_complete="$new_path"
16930     fi
16931 
16932     if test "x$complete" != "x$new_complete"; then
16933       FOUND_MAKE="$new_complete"
16934       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16935 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16936     fi
16937   fi
16938 
16939         fi
16940       fi
16941     fi
16942   fi
16943 
16944 
16945     if test "x$FOUND_MAKE" = x; then
16946       for ac_prog in make
16947 do
16948   # Extract the first word of "$ac_prog", so it can be a program name with args.
16949 set dummy $ac_prog; ac_word=$2
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16951 $as_echo_n "checking for $ac_word... " >&6; }
16952 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16953   $as_echo_n "(cached) " >&6
16954 else
16955   case $CHECK_MAKE in
16956   [\\/]* | ?:[\\/]*)
16957   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16958   ;;
16959   *)
16960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16961 for as_dir in $PATH
16962 do
16963   IFS=$as_save_IFS
16964   test -z "$as_dir" && as_dir=.
16965     for ac_exec_ext in '' $ac_executable_extensions; do
16966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16967     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16969     break 2
16970   fi
16971 done
16972   done
16973 IFS=$as_save_IFS
16974 
16975   ;;
16976 esac
16977 fi
16978 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16979 if test -n "$CHECK_MAKE"; then
16980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16981 $as_echo "$CHECK_MAKE" >&6; }
16982 else
16983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984 $as_echo "no" >&6; }
16985 fi
16986 
16987 
16988   test -n "$CHECK_MAKE" && break
16989 done
16990 
16991 
16992   MAKE_CANDIDATE=""$CHECK_MAKE""
16993   DESCRIPTION="make in PATH"
16994 
16995   # On Cygwin, we require a newer version of make than on other platforms
16996   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16997     MAKE_VERSION_EXPR="-e 4\."
16998     MAKE_REQUIRED_VERSION="4.0"
16999    else
17000     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17001     MAKE_REQUIRED_VERSION="3.81"
17002   fi
17003 
17004   if test "x$MAKE_CANDIDATE" != x; then
17005     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17006 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17007     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17008     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17009     if test "x$IS_GNU_MAKE" = x; then
17010       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17011 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17012     else
17013       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17014       if test "x$IS_MODERN_MAKE" = x; then
17015         { $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
17016 $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;}
17017       else
17018         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17019           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17020             MAKE_EXPECTED_ENV='cygwin'
17021           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17022             MAKE_EXPECTED_ENV='msys'
17023           else
17024             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17025           fi
17026           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17027           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17028         else
17029           # Not relevant for non-Windows
17030           IS_MAKE_CORRECT_ENV=true
17031         fi
17032         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17033           { $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
17034 $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;}
17035         else
17036           FOUND_MAKE=$MAKE_CANDIDATE
17037 
17038   # Only process if variable expands to non-empty
17039 
17040   if test "x$FOUND_MAKE" != x; then
17041     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17042 
17043   # First separate the path from the arguments. This will split at the first
17044   # space.
17045   complete="$FOUND_MAKE"
17046   path="${complete%% *}"
17047   tmp="$complete EOL"
17048   arguments="${tmp#* }"
17049 
17050   # Input might be given as Windows format, start by converting to
17051   # unix format.
17052   new_path=`$CYGPATH -u "$path"`
17053 
17054   # Now try to locate executable using which
17055   new_path=`$WHICH "$new_path" 2> /dev/null`
17056   # bat and cmd files are not always considered executable in cygwin causing which
17057   # to not find them
17058   if test "x$new_path" = x \
17059       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17060       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17061     new_path=`$CYGPATH -u "$path"`
17062   fi
17063   if test "x$new_path" = x; then
17064     # Oops. Which didn't find the executable.
17065     # The splitting of arguments from the executable at a space might have been incorrect,
17066     # since paths with space are more likely in Windows. Give it another try with the whole
17067     # argument.
17068     path="$complete"
17069     arguments="EOL"
17070     new_path=`$CYGPATH -u "$path"`
17071     new_path=`$WHICH "$new_path" 2> /dev/null`
17072     # bat and cmd files are not always considered executable in cygwin causing which
17073     # to not find them
17074     if test "x$new_path" = x \
17075         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17076         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17077       new_path=`$CYGPATH -u "$path"`
17078     fi
17079     if test "x$new_path" = x; then
17080       # It's still not found. Now this is an unrecoverable error.
17081       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17082 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17083       has_space=`$ECHO "$complete" | $GREP " "`
17084       if test "x$has_space" != x; then
17085         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17086 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17087       fi
17088       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17089     fi
17090   fi
17091 
17092   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17093   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17094   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17095   # "foo.exe" is OK but "foo" is an error.
17096   #
17097   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17098   # It is also a way to make sure we got the proper file name for the real test later on.
17099   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17100   if test "x$test_shortpath" = x; then
17101     # Short path failed, file does not exist as specified.
17102     # Try adding .exe or .cmd
17103     if test -f "${new_path}.exe"; then
17104       input_to_shortpath="${new_path}.exe"
17105     elif test -f "${new_path}.cmd"; then
17106       input_to_shortpath="${new_path}.cmd"
17107     else
17108       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17109 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17110       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17111 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17112       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17113     fi
17114   else
17115     input_to_shortpath="$new_path"
17116   fi
17117 
17118   # Call helper function which possibly converts this using DOS-style short mode.
17119   # If so, the updated path is stored in $new_path.
17120   new_path="$input_to_shortpath"
17121 
17122   input_path="$input_to_shortpath"
17123   # Check if we need to convert this using DOS-style short mode. If the path
17124   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17125   # take no chances and rewrite it.
17126   # Note: m4 eats our [], so we need to use [ and ] instead.
17127   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17128   if test "x$has_forbidden_chars" != x; then
17129     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17130     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17131     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17132     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17133       # Going to short mode and back again did indeed matter. Since short mode is
17134       # case insensitive, let's make it lowercase to improve readability.
17135       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17136       # Now convert it back to Unix-style (cygpath)
17137       input_path=`$CYGPATH -u "$shortmode_path"`
17138       new_path="$input_path"
17139     fi
17140   fi
17141 
17142   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17143   if test "x$test_cygdrive_prefix" = x; then
17144     # As a simple fix, exclude /usr/bin since it's not a real path.
17145     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17146       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17147       # a path prefixed by /cygdrive for fixpath to work.
17148       new_path="$CYGWIN_ROOT_PATH$input_path"
17149     fi
17150   fi
17151 
17152   # remove trailing .exe if any
17153   new_path="${new_path/%.exe/}"
17154 
17155     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17156 
17157   # First separate the path from the arguments. This will split at the first
17158   # space.
17159   complete="$FOUND_MAKE"
17160   path="${complete%% *}"
17161   tmp="$complete EOL"
17162   arguments="${tmp#* }"
17163 
17164   # Input might be given as Windows format, start by converting to
17165   # unix format.
17166   new_path="$path"
17167 
17168   windows_path="$new_path"
17169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17170     unix_path=`$CYGPATH -u "$windows_path"`
17171     new_path="$unix_path"
17172   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17173     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17174     new_path="$unix_path"
17175   fi
17176 
17177 
17178   # Now try to locate executable using which
17179   new_path=`$WHICH "$new_path" 2> /dev/null`
17180 
17181   if test "x$new_path" = x; then
17182     # Oops. Which didn't find the executable.
17183     # The splitting of arguments from the executable at a space might have been incorrect,
17184     # since paths with space are more likely in Windows. Give it another try with the whole
17185     # argument.
17186     path="$complete"
17187     arguments="EOL"
17188     new_path="$path"
17189 
17190   windows_path="$new_path"
17191   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17192     unix_path=`$CYGPATH -u "$windows_path"`
17193     new_path="$unix_path"
17194   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17195     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17196     new_path="$unix_path"
17197   fi
17198 
17199 
17200     new_path=`$WHICH "$new_path" 2> /dev/null`
17201     # bat and cmd files are not always considered executable in MSYS causing which
17202     # to not find them
17203     if test "x$new_path" = x \
17204         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17205         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17206       new_path="$path"
17207 
17208   windows_path="$new_path"
17209   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17210     unix_path=`$CYGPATH -u "$windows_path"`
17211     new_path="$unix_path"
17212   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17213     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17214     new_path="$unix_path"
17215   fi
17216 
17217     fi
17218 
17219     if test "x$new_path" = x; then
17220       # It's still not found. Now this is an unrecoverable error.
17221       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17222 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17223       has_space=`$ECHO "$complete" | $GREP " "`
17224       if test "x$has_space" != x; then
17225         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17226 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17227       fi
17228       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17229     fi
17230   fi
17231 
17232   # Now new_path has a complete unix path to the binary
17233   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17234     # Keep paths in /bin as-is, but remove trailing .exe if any
17235     new_path="${new_path/%.exe/}"
17236     # Do not save /bin paths to all_fixpath_prefixes!
17237   else
17238     # Not in mixed or Windows style, start by that.
17239     new_path=`cmd //c echo $new_path`
17240 
17241   input_path="$new_path"
17242   # Check if we need to convert this using DOS-style short mode. If the path
17243   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17244   # take no chances and rewrite it.
17245   # Note: m4 eats our [], so we need to use [ and ] instead.
17246   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17247   if test "x$has_forbidden_chars" != x; then
17248     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17249     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17250   fi
17251 
17252     # Output is in $new_path
17253 
17254   windows_path="$new_path"
17255   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17256     unix_path=`$CYGPATH -u "$windows_path"`
17257     new_path="$unix_path"
17258   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17259     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17260     new_path="$unix_path"
17261   fi
17262 
17263     # remove trailing .exe if any
17264     new_path="${new_path/%.exe/}"
17265 
17266     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17267     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17268   fi
17269 
17270     else
17271       # We're on a unix platform. Hooray! :)
17272       # First separate the path from the arguments. This will split at the first
17273       # space.
17274       complete="$FOUND_MAKE"
17275       path="${complete%% *}"
17276       tmp="$complete EOL"
17277       arguments="${tmp#* }"
17278 
17279       # Cannot rely on the command "which" here since it doesn't always work.
17280       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17281       if test -z "$is_absolute_path"; then
17282         # Path to executable is not absolute. Find it.
17283         IFS_save="$IFS"
17284         IFS=:
17285         for p in $PATH; do
17286           if test -f "$p/$path" && test -x "$p/$path"; then
17287             new_path="$p/$path"
17288             break
17289           fi
17290         done
17291         IFS="$IFS_save"
17292       else
17293         # This is an absolute path, we can use it without further modifications.
17294         new_path="$path"
17295       fi
17296 
17297       if test "x$new_path" = x; then
17298         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17299 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17300         has_space=`$ECHO "$complete" | $GREP " "`
17301         if test "x$has_space" != x; then
17302           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17303 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17304         fi
17305         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17306       fi
17307     fi
17308 
17309     # Now join together the path and the arguments once again
17310     if test "x$arguments" != xEOL; then
17311       new_complete="$new_path ${arguments% *}"
17312     else
17313       new_complete="$new_path"
17314     fi
17315 
17316     if test "x$complete" != "x$new_complete"; then
17317       FOUND_MAKE="$new_complete"
17318       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17319 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17320     fi
17321   fi
17322 
17323         fi
17324       fi
17325     fi
17326   fi
17327 
17328     fi
17329 
17330     if test "x$FOUND_MAKE" = x; then
17331       if test "x$TOOLCHAIN_PATH" != x; then
17332         # We have a toolchain path, check that as well before giving up.
17333         OLD_PATH=$PATH
17334         PATH=$TOOLCHAIN_PATH:$PATH
17335         for ac_prog in gmake
17336 do
17337   # Extract the first word of "$ac_prog", so it can be a program name with args.
17338 set dummy $ac_prog; ac_word=$2
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17340 $as_echo_n "checking for $ac_word... " >&6; }
17341 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17342   $as_echo_n "(cached) " >&6
17343 else
17344   case $CHECK_TOOLSDIR_GMAKE in
17345   [\\/]* | ?:[\\/]*)
17346   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17347   ;;
17348   *)
17349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17351 do
17352   IFS=$as_save_IFS
17353   test -z "$as_dir" && as_dir=.
17354     for ac_exec_ext in '' $ac_executable_extensions; do
17355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17358     break 2
17359   fi
17360 done
17361   done
17362 IFS=$as_save_IFS
17363 
17364   ;;
17365 esac
17366 fi
17367 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17368 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17370 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17371 else
17372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17373 $as_echo "no" >&6; }
17374 fi
17375 
17376 
17377   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17378 done
17379 
17380 
17381   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17382   DESCRIPTION="gmake in tools-dir"
17383 
17384   # On Cygwin, we require a newer version of make than on other platforms
17385   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17386     MAKE_VERSION_EXPR="-e 4\."
17387     MAKE_REQUIRED_VERSION="4.0"
17388    else
17389     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17390     MAKE_REQUIRED_VERSION="3.81"
17391   fi
17392 
17393   if test "x$MAKE_CANDIDATE" != x; then
17394     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17395 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17396     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17397     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17398     if test "x$IS_GNU_MAKE" = x; then
17399       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17400 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17401     else
17402       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17403       if test "x$IS_MODERN_MAKE" = x; then
17404         { $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
17405 $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;}
17406       else
17407         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17408           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17409             MAKE_EXPECTED_ENV='cygwin'
17410           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17411             MAKE_EXPECTED_ENV='msys'
17412           else
17413             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17414           fi
17415           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17416           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17417         else
17418           # Not relevant for non-Windows
17419           IS_MAKE_CORRECT_ENV=true
17420         fi
17421         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17422           { $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
17423 $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;}
17424         else
17425           FOUND_MAKE=$MAKE_CANDIDATE
17426 
17427   # Only process if variable expands to non-empty
17428 
17429   if test "x$FOUND_MAKE" != x; then
17430     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17431 
17432   # First separate the path from the arguments. This will split at the first
17433   # space.
17434   complete="$FOUND_MAKE"
17435   path="${complete%% *}"
17436   tmp="$complete EOL"
17437   arguments="${tmp#* }"
17438 
17439   # Input might be given as Windows format, start by converting to
17440   # unix format.
17441   new_path=`$CYGPATH -u "$path"`
17442 
17443   # Now try to locate executable using which
17444   new_path=`$WHICH "$new_path" 2> /dev/null`
17445   # bat and cmd files are not always considered executable in cygwin causing which
17446   # to not find them
17447   if test "x$new_path" = x \
17448       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17449       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17450     new_path=`$CYGPATH -u "$path"`
17451   fi
17452   if test "x$new_path" = x; then
17453     # Oops. Which didn't find the executable.
17454     # The splitting of arguments from the executable at a space might have been incorrect,
17455     # since paths with space are more likely in Windows. Give it another try with the whole
17456     # argument.
17457     path="$complete"
17458     arguments="EOL"
17459     new_path=`$CYGPATH -u "$path"`
17460     new_path=`$WHICH "$new_path" 2> /dev/null`
17461     # bat and cmd files are not always considered executable in cygwin causing which
17462     # to not find them
17463     if test "x$new_path" = x \
17464         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17465         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17466       new_path=`$CYGPATH -u "$path"`
17467     fi
17468     if test "x$new_path" = x; then
17469       # It's still not found. Now this is an unrecoverable error.
17470       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17471 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17472       has_space=`$ECHO "$complete" | $GREP " "`
17473       if test "x$has_space" != x; then
17474         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17475 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17476       fi
17477       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17478     fi
17479   fi
17480 
17481   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17482   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17483   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17484   # "foo.exe" is OK but "foo" is an error.
17485   #
17486   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17487   # It is also a way to make sure we got the proper file name for the real test later on.
17488   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17489   if test "x$test_shortpath" = x; then
17490     # Short path failed, file does not exist as specified.
17491     # Try adding .exe or .cmd
17492     if test -f "${new_path}.exe"; then
17493       input_to_shortpath="${new_path}.exe"
17494     elif test -f "${new_path}.cmd"; then
17495       input_to_shortpath="${new_path}.cmd"
17496     else
17497       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17498 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17499       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17500 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17501       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17502     fi
17503   else
17504     input_to_shortpath="$new_path"
17505   fi
17506 
17507   # Call helper function which possibly converts this using DOS-style short mode.
17508   # If so, the updated path is stored in $new_path.
17509   new_path="$input_to_shortpath"
17510 
17511   input_path="$input_to_shortpath"
17512   # Check if we need to convert this using DOS-style short mode. If the path
17513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17514   # take no chances and rewrite it.
17515   # Note: m4 eats our [], so we need to use [ and ] instead.
17516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17517   if test "x$has_forbidden_chars" != x; then
17518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17519     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17520     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17521     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17522       # Going to short mode and back again did indeed matter. Since short mode is
17523       # case insensitive, let's make it lowercase to improve readability.
17524       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17525       # Now convert it back to Unix-style (cygpath)
17526       input_path=`$CYGPATH -u "$shortmode_path"`
17527       new_path="$input_path"
17528     fi
17529   fi
17530 
17531   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17532   if test "x$test_cygdrive_prefix" = x; then
17533     # As a simple fix, exclude /usr/bin since it's not a real path.
17534     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17535       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17536       # a path prefixed by /cygdrive for fixpath to work.
17537       new_path="$CYGWIN_ROOT_PATH$input_path"
17538     fi
17539   fi
17540 
17541   # remove trailing .exe if any
17542   new_path="${new_path/%.exe/}"
17543 
17544     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17545 
17546   # First separate the path from the arguments. This will split at the first
17547   # space.
17548   complete="$FOUND_MAKE"
17549   path="${complete%% *}"
17550   tmp="$complete EOL"
17551   arguments="${tmp#* }"
17552 
17553   # Input might be given as Windows format, start by converting to
17554   # unix format.
17555   new_path="$path"
17556 
17557   windows_path="$new_path"
17558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17559     unix_path=`$CYGPATH -u "$windows_path"`
17560     new_path="$unix_path"
17561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17562     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17563     new_path="$unix_path"
17564   fi
17565 
17566 
17567   # Now try to locate executable using which
17568   new_path=`$WHICH "$new_path" 2> /dev/null`
17569 
17570   if test "x$new_path" = x; then
17571     # Oops. Which didn't find the executable.
17572     # The splitting of arguments from the executable at a space might have been incorrect,
17573     # since paths with space are more likely in Windows. Give it another try with the whole
17574     # argument.
17575     path="$complete"
17576     arguments="EOL"
17577     new_path="$path"
17578 
17579   windows_path="$new_path"
17580   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17581     unix_path=`$CYGPATH -u "$windows_path"`
17582     new_path="$unix_path"
17583   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17584     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17585     new_path="$unix_path"
17586   fi
17587 
17588 
17589     new_path=`$WHICH "$new_path" 2> /dev/null`
17590     # bat and cmd files are not always considered executable in MSYS causing which
17591     # to not find them
17592     if test "x$new_path" = x \
17593         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17594         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17595       new_path="$path"
17596 
17597   windows_path="$new_path"
17598   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17599     unix_path=`$CYGPATH -u "$windows_path"`
17600     new_path="$unix_path"
17601   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17602     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17603     new_path="$unix_path"
17604   fi
17605 
17606     fi
17607 
17608     if test "x$new_path" = x; then
17609       # It's still not found. Now this is an unrecoverable error.
17610       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17611 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17612       has_space=`$ECHO "$complete" | $GREP " "`
17613       if test "x$has_space" != x; then
17614         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17616       fi
17617       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17618     fi
17619   fi
17620 
17621   # Now new_path has a complete unix path to the binary
17622   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17623     # Keep paths in /bin as-is, but remove trailing .exe if any
17624     new_path="${new_path/%.exe/}"
17625     # Do not save /bin paths to all_fixpath_prefixes!
17626   else
17627     # Not in mixed or Windows style, start by that.
17628     new_path=`cmd //c echo $new_path`
17629 
17630   input_path="$new_path"
17631   # Check if we need to convert this using DOS-style short mode. If the path
17632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17633   # take no chances and rewrite it.
17634   # Note: m4 eats our [], so we need to use [ and ] instead.
17635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17636   if test "x$has_forbidden_chars" != x; then
17637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17638     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17639   fi
17640 
17641     # Output is in $new_path
17642 
17643   windows_path="$new_path"
17644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17645     unix_path=`$CYGPATH -u "$windows_path"`
17646     new_path="$unix_path"
17647   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17648     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17649     new_path="$unix_path"
17650   fi
17651 
17652     # remove trailing .exe if any
17653     new_path="${new_path/%.exe/}"
17654 
17655     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17656     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17657   fi
17658 
17659     else
17660       # We're on a unix platform. Hooray! :)
17661       # First separate the path from the arguments. This will split at the first
17662       # space.
17663       complete="$FOUND_MAKE"
17664       path="${complete%% *}"
17665       tmp="$complete EOL"
17666       arguments="${tmp#* }"
17667 
17668       # Cannot rely on the command "which" here since it doesn't always work.
17669       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17670       if test -z "$is_absolute_path"; then
17671         # Path to executable is not absolute. Find it.
17672         IFS_save="$IFS"
17673         IFS=:
17674         for p in $PATH; do
17675           if test -f "$p/$path" && test -x "$p/$path"; then
17676             new_path="$p/$path"
17677             break
17678           fi
17679         done
17680         IFS="$IFS_save"
17681       else
17682         # This is an absolute path, we can use it without further modifications.
17683         new_path="$path"
17684       fi
17685 
17686       if test "x$new_path" = x; then
17687         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17688 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17689         has_space=`$ECHO "$complete" | $GREP " "`
17690         if test "x$has_space" != x; then
17691           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17692 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17693         fi
17694         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17695       fi
17696     fi
17697 
17698     # Now join together the path and the arguments once again
17699     if test "x$arguments" != xEOL; then
17700       new_complete="$new_path ${arguments% *}"
17701     else
17702       new_complete="$new_path"
17703     fi
17704 
17705     if test "x$complete" != "x$new_complete"; then
17706       FOUND_MAKE="$new_complete"
17707       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17708 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17709     fi
17710   fi
17711 
17712         fi
17713       fi
17714     fi
17715   fi
17716 
17717         if test "x$FOUND_MAKE" = x; then
17718           for ac_prog in make
17719 do
17720   # Extract the first word of "$ac_prog", so it can be a program name with args.
17721 set dummy $ac_prog; ac_word=$2
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17723 $as_echo_n "checking for $ac_word... " >&6; }
17724 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17725   $as_echo_n "(cached) " >&6
17726 else
17727   case $CHECK_TOOLSDIR_MAKE in
17728   [\\/]* | ?:[\\/]*)
17729   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17730   ;;
17731   *)
17732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733 for as_dir in $PATH
17734 do
17735   IFS=$as_save_IFS
17736   test -z "$as_dir" && as_dir=.
17737     for ac_exec_ext in '' $ac_executable_extensions; do
17738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741     break 2
17742   fi
17743 done
17744   done
17745 IFS=$as_save_IFS
17746 
17747   ;;
17748 esac
17749 fi
17750 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17751 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17753 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17754 else
17755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756 $as_echo "no" >&6; }
17757 fi
17758 
17759 
17760   test -n "$CHECK_TOOLSDIR_MAKE" && break
17761 done
17762 
17763 
17764   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17765   DESCRIPTION="make in tools-dir"
17766 
17767   # On Cygwin, we require a newer version of make than on other platforms
17768   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17769     MAKE_VERSION_EXPR="-e 4\."
17770     MAKE_REQUIRED_VERSION="4.0"
17771    else
17772     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17773     MAKE_REQUIRED_VERSION="3.81"
17774   fi
17775 
17776   if test "x$MAKE_CANDIDATE" != x; then
17777     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17778 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17779     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17780     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17781     if test "x$IS_GNU_MAKE" = x; then
17782       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17783 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17784     else
17785       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17786       if test "x$IS_MODERN_MAKE" = x; then
17787         { $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
17788 $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;}
17789       else
17790         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17791           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17792             MAKE_EXPECTED_ENV='cygwin'
17793           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17794             MAKE_EXPECTED_ENV='msys'
17795           else
17796             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17797           fi
17798           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17799           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17800         else
17801           # Not relevant for non-Windows
17802           IS_MAKE_CORRECT_ENV=true
17803         fi
17804         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17805           { $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
17806 $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;}
17807         else
17808           FOUND_MAKE=$MAKE_CANDIDATE
17809 
17810   # Only process if variable expands to non-empty
17811 
17812   if test "x$FOUND_MAKE" != x; then
17813     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17814 
17815   # First separate the path from the arguments. This will split at the first
17816   # space.
17817   complete="$FOUND_MAKE"
17818   path="${complete%% *}"
17819   tmp="$complete EOL"
17820   arguments="${tmp#* }"
17821 
17822   # Input might be given as Windows format, start by converting to
17823   # unix format.
17824   new_path=`$CYGPATH -u "$path"`
17825 
17826   # Now try to locate executable using which
17827   new_path=`$WHICH "$new_path" 2> /dev/null`
17828   # bat and cmd files are not always considered executable in cygwin causing which
17829   # to not find them
17830   if test "x$new_path" = x \
17831       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17832       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17833     new_path=`$CYGPATH -u "$path"`
17834   fi
17835   if test "x$new_path" = x; then
17836     # Oops. Which didn't find the executable.
17837     # The splitting of arguments from the executable at a space might have been incorrect,
17838     # since paths with space are more likely in Windows. Give it another try with the whole
17839     # argument.
17840     path="$complete"
17841     arguments="EOL"
17842     new_path=`$CYGPATH -u "$path"`
17843     new_path=`$WHICH "$new_path" 2> /dev/null`
17844     # bat and cmd files are not always considered executable in cygwin causing which
17845     # to not find them
17846     if test "x$new_path" = x \
17847         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17848         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17849       new_path=`$CYGPATH -u "$path"`
17850     fi
17851     if test "x$new_path" = x; then
17852       # It's still not found. Now this is an unrecoverable error.
17853       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17854 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17855       has_space=`$ECHO "$complete" | $GREP " "`
17856       if test "x$has_space" != x; then
17857         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17858 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17859       fi
17860       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17861     fi
17862   fi
17863 
17864   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17865   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17866   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17867   # "foo.exe" is OK but "foo" is an error.
17868   #
17869   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17870   # It is also a way to make sure we got the proper file name for the real test later on.
17871   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17872   if test "x$test_shortpath" = x; then
17873     # Short path failed, file does not exist as specified.
17874     # Try adding .exe or .cmd
17875     if test -f "${new_path}.exe"; then
17876       input_to_shortpath="${new_path}.exe"
17877     elif test -f "${new_path}.cmd"; then
17878       input_to_shortpath="${new_path}.cmd"
17879     else
17880       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17881 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17882       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17883 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17884       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17885     fi
17886   else
17887     input_to_shortpath="$new_path"
17888   fi
17889 
17890   # Call helper function which possibly converts this using DOS-style short mode.
17891   # If so, the updated path is stored in $new_path.
17892   new_path="$input_to_shortpath"
17893 
17894   input_path="$input_to_shortpath"
17895   # Check if we need to convert this using DOS-style short mode. If the path
17896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17897   # take no chances and rewrite it.
17898   # Note: m4 eats our [], so we need to use [ and ] instead.
17899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17900   if test "x$has_forbidden_chars" != x; then
17901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17902     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17903     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17904     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17905       # Going to short mode and back again did indeed matter. Since short mode is
17906       # case insensitive, let's make it lowercase to improve readability.
17907       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17908       # Now convert it back to Unix-style (cygpath)
17909       input_path=`$CYGPATH -u "$shortmode_path"`
17910       new_path="$input_path"
17911     fi
17912   fi
17913 
17914   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17915   if test "x$test_cygdrive_prefix" = x; then
17916     # As a simple fix, exclude /usr/bin since it's not a real path.
17917     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17918       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17919       # a path prefixed by /cygdrive for fixpath to work.
17920       new_path="$CYGWIN_ROOT_PATH$input_path"
17921     fi
17922   fi
17923 
17924   # remove trailing .exe if any
17925   new_path="${new_path/%.exe/}"
17926 
17927     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17928 
17929   # First separate the path from the arguments. This will split at the first
17930   # space.
17931   complete="$FOUND_MAKE"
17932   path="${complete%% *}"
17933   tmp="$complete EOL"
17934   arguments="${tmp#* }"
17935 
17936   # Input might be given as Windows format, start by converting to
17937   # unix format.
17938   new_path="$path"
17939 
17940   windows_path="$new_path"
17941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17942     unix_path=`$CYGPATH -u "$windows_path"`
17943     new_path="$unix_path"
17944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17946     new_path="$unix_path"
17947   fi
17948 
17949 
17950   # Now try to locate executable using which
17951   new_path=`$WHICH "$new_path" 2> /dev/null`
17952 
17953   if test "x$new_path" = x; then
17954     # Oops. Which didn't find the executable.
17955     # The splitting of arguments from the executable at a space might have been incorrect,
17956     # since paths with space are more likely in Windows. Give it another try with the whole
17957     # argument.
17958     path="$complete"
17959     arguments="EOL"
17960     new_path="$path"
17961 
17962   windows_path="$new_path"
17963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17964     unix_path=`$CYGPATH -u "$windows_path"`
17965     new_path="$unix_path"
17966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17968     new_path="$unix_path"
17969   fi
17970 
17971 
17972     new_path=`$WHICH "$new_path" 2> /dev/null`
17973     # bat and cmd files are not always considered executable in MSYS causing which
17974     # to not find them
17975     if test "x$new_path" = x \
17976         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17977         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17978       new_path="$path"
17979 
17980   windows_path="$new_path"
17981   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17982     unix_path=`$CYGPATH -u "$windows_path"`
17983     new_path="$unix_path"
17984   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17985     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17986     new_path="$unix_path"
17987   fi
17988 
17989     fi
17990 
17991     if test "x$new_path" = x; then
17992       # It's still not found. Now this is an unrecoverable error.
17993       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17994 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17995       has_space=`$ECHO "$complete" | $GREP " "`
17996       if test "x$has_space" != x; then
17997         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17999       fi
18000       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18001     fi
18002   fi
18003 
18004   # Now new_path has a complete unix path to the binary
18005   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18006     # Keep paths in /bin as-is, but remove trailing .exe if any
18007     new_path="${new_path/%.exe/}"
18008     # Do not save /bin paths to all_fixpath_prefixes!
18009   else
18010     # Not in mixed or Windows style, start by that.
18011     new_path=`cmd //c echo $new_path`
18012 
18013   input_path="$new_path"
18014   # Check if we need to convert this using DOS-style short mode. If the path
18015   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18016   # take no chances and rewrite it.
18017   # Note: m4 eats our [], so we need to use [ and ] instead.
18018   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18019   if test "x$has_forbidden_chars" != x; then
18020     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18021     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18022   fi
18023 
18024     # Output is in $new_path
18025 
18026   windows_path="$new_path"
18027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18028     unix_path=`$CYGPATH -u "$windows_path"`
18029     new_path="$unix_path"
18030   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18031     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18032     new_path="$unix_path"
18033   fi
18034 
18035     # remove trailing .exe if any
18036     new_path="${new_path/%.exe/}"
18037 
18038     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18039     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18040   fi
18041 
18042     else
18043       # We're on a unix platform. Hooray! :)
18044       # First separate the path from the arguments. This will split at the first
18045       # space.
18046       complete="$FOUND_MAKE"
18047       path="${complete%% *}"
18048       tmp="$complete EOL"
18049       arguments="${tmp#* }"
18050 
18051       # Cannot rely on the command "which" here since it doesn't always work.
18052       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18053       if test -z "$is_absolute_path"; then
18054         # Path to executable is not absolute. Find it.
18055         IFS_save="$IFS"
18056         IFS=:
18057         for p in $PATH; do
18058           if test -f "$p/$path" && test -x "$p/$path"; then
18059             new_path="$p/$path"
18060             break
18061           fi
18062         done
18063         IFS="$IFS_save"
18064       else
18065         # This is an absolute path, we can use it without further modifications.
18066         new_path="$path"
18067       fi
18068 
18069       if test "x$new_path" = x; then
18070         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18071 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18072         has_space=`$ECHO "$complete" | $GREP " "`
18073         if test "x$has_space" != x; then
18074           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18075 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18076         fi
18077         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18078       fi
18079     fi
18080 
18081     # Now join together the path and the arguments once again
18082     if test "x$arguments" != xEOL; then
18083       new_complete="$new_path ${arguments% *}"
18084     else
18085       new_complete="$new_path"
18086     fi
18087 
18088     if test "x$complete" != "x$new_complete"; then
18089       FOUND_MAKE="$new_complete"
18090       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18091 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18092     fi
18093   fi
18094 
18095         fi
18096       fi
18097     fi
18098   fi
18099 
18100         fi
18101         PATH=$OLD_PATH
18102       fi
18103     fi
18104 
18105     if test "x$FOUND_MAKE" = x; then
18106       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
18107     fi
18108 
18109   else
18110     # The variable is set, but is it from the command line or the environment?
18111 
18112     # Try to remove the string !MAKE! from our list.
18113     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18114     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18115       # If it failed, the variable was not from the command line. Ignore it,
18116       # but warn the user (except for BASH, which is always set by the calling BASH).
18117       if test "xMAKE" != xBASH; then
18118         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18119 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18120       fi
18121       # Try to locate tool using the code snippet
18122 
18123     # Try our hardest to locate a correct version of GNU make
18124     for ac_prog in gmake
18125 do
18126   # Extract the first word of "$ac_prog", so it can be a program name with args.
18127 set dummy $ac_prog; ac_word=$2
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18129 $as_echo_n "checking for $ac_word... " >&6; }
18130 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18131   $as_echo_n "(cached) " >&6
18132 else
18133   case $CHECK_GMAKE in
18134   [\\/]* | ?:[\\/]*)
18135   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18136   ;;
18137   *)
18138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18139 for as_dir in $PATH
18140 do
18141   IFS=$as_save_IFS
18142   test -z "$as_dir" && as_dir=.
18143     for ac_exec_ext in '' $ac_executable_extensions; do
18144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18145     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18147     break 2
18148   fi
18149 done
18150   done
18151 IFS=$as_save_IFS
18152 
18153   ;;
18154 esac
18155 fi
18156 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18157 if test -n "$CHECK_GMAKE"; then
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18159 $as_echo "$CHECK_GMAKE" >&6; }
18160 else
18161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18162 $as_echo "no" >&6; }
18163 fi
18164 
18165 
18166   test -n "$CHECK_GMAKE" && break
18167 done
18168 
18169 
18170   MAKE_CANDIDATE=""$CHECK_GMAKE""
18171   DESCRIPTION="gmake in PATH"
18172 
18173   # On Cygwin, we require a newer version of make than on other platforms
18174   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18175     MAKE_VERSION_EXPR="-e 4\."
18176     MAKE_REQUIRED_VERSION="4.0"
18177    else
18178     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18179     MAKE_REQUIRED_VERSION="3.81"
18180   fi
18181 
18182   if test "x$MAKE_CANDIDATE" != x; then
18183     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18184 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18185     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18186     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18187     if test "x$IS_GNU_MAKE" = x; then
18188       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18189 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18190     else
18191       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18192       if test "x$IS_MODERN_MAKE" = x; then
18193         { $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
18194 $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;}
18195       else
18196         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18197           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18198             MAKE_EXPECTED_ENV='cygwin'
18199           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18200             MAKE_EXPECTED_ENV='msys'
18201           else
18202             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18203           fi
18204           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18205           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18206         else
18207           # Not relevant for non-Windows
18208           IS_MAKE_CORRECT_ENV=true
18209         fi
18210         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18211           { $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
18212 $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;}
18213         else
18214           FOUND_MAKE=$MAKE_CANDIDATE
18215 
18216   # Only process if variable expands to non-empty
18217 
18218   if test "x$FOUND_MAKE" != x; then
18219     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18220 
18221   # First separate the path from the arguments. This will split at the first
18222   # space.
18223   complete="$FOUND_MAKE"
18224   path="${complete%% *}"
18225   tmp="$complete EOL"
18226   arguments="${tmp#* }"
18227 
18228   # Input might be given as Windows format, start by converting to
18229   # unix format.
18230   new_path=`$CYGPATH -u "$path"`
18231 
18232   # Now try to locate executable using which
18233   new_path=`$WHICH "$new_path" 2> /dev/null`
18234   # bat and cmd files are not always considered executable in cygwin causing which
18235   # to not find them
18236   if test "x$new_path" = x \
18237       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18238       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18239     new_path=`$CYGPATH -u "$path"`
18240   fi
18241   if test "x$new_path" = x; then
18242     # Oops. Which didn't find the executable.
18243     # The splitting of arguments from the executable at a space might have been incorrect,
18244     # since paths with space are more likely in Windows. Give it another try with the whole
18245     # argument.
18246     path="$complete"
18247     arguments="EOL"
18248     new_path=`$CYGPATH -u "$path"`
18249     new_path=`$WHICH "$new_path" 2> /dev/null`
18250     # bat and cmd files are not always considered executable in cygwin causing which
18251     # to not find them
18252     if test "x$new_path" = x \
18253         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18254         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18255       new_path=`$CYGPATH -u "$path"`
18256     fi
18257     if test "x$new_path" = x; then
18258       # It's still not found. Now this is an unrecoverable error.
18259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18261       has_space=`$ECHO "$complete" | $GREP " "`
18262       if test "x$has_space" != x; then
18263         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18265       fi
18266       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18267     fi
18268   fi
18269 
18270   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18271   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18272   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18273   # "foo.exe" is OK but "foo" is an error.
18274   #
18275   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18276   # It is also a way to make sure we got the proper file name for the real test later on.
18277   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18278   if test "x$test_shortpath" = x; then
18279     # Short path failed, file does not exist as specified.
18280     # Try adding .exe or .cmd
18281     if test -f "${new_path}.exe"; then
18282       input_to_shortpath="${new_path}.exe"
18283     elif test -f "${new_path}.cmd"; then
18284       input_to_shortpath="${new_path}.cmd"
18285     else
18286       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18287 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18288       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18289 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18290       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18291     fi
18292   else
18293     input_to_shortpath="$new_path"
18294   fi
18295 
18296   # Call helper function which possibly converts this using DOS-style short mode.
18297   # If so, the updated path is stored in $new_path.
18298   new_path="$input_to_shortpath"
18299 
18300   input_path="$input_to_shortpath"
18301   # Check if we need to convert this using DOS-style short mode. If the path
18302   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18303   # take no chances and rewrite it.
18304   # Note: m4 eats our [], so we need to use [ and ] instead.
18305   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18306   if test "x$has_forbidden_chars" != x; then
18307     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18308     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18309     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18310     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18311       # Going to short mode and back again did indeed matter. Since short mode is
18312       # case insensitive, let's make it lowercase to improve readability.
18313       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18314       # Now convert it back to Unix-style (cygpath)
18315       input_path=`$CYGPATH -u "$shortmode_path"`
18316       new_path="$input_path"
18317     fi
18318   fi
18319 
18320   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18321   if test "x$test_cygdrive_prefix" = x; then
18322     # As a simple fix, exclude /usr/bin since it's not a real path.
18323     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18324       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18325       # a path prefixed by /cygdrive for fixpath to work.
18326       new_path="$CYGWIN_ROOT_PATH$input_path"
18327     fi
18328   fi
18329 
18330   # remove trailing .exe if any
18331   new_path="${new_path/%.exe/}"
18332 
18333     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18334 
18335   # First separate the path from the arguments. This will split at the first
18336   # space.
18337   complete="$FOUND_MAKE"
18338   path="${complete%% *}"
18339   tmp="$complete EOL"
18340   arguments="${tmp#* }"
18341 
18342   # Input might be given as Windows format, start by converting to
18343   # unix format.
18344   new_path="$path"
18345 
18346   windows_path="$new_path"
18347   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18348     unix_path=`$CYGPATH -u "$windows_path"`
18349     new_path="$unix_path"
18350   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18351     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18352     new_path="$unix_path"
18353   fi
18354 
18355 
18356   # Now try to locate executable using which
18357   new_path=`$WHICH "$new_path" 2> /dev/null`
18358 
18359   if test "x$new_path" = x; then
18360     # Oops. Which didn't find the executable.
18361     # The splitting of arguments from the executable at a space might have been incorrect,
18362     # since paths with space are more likely in Windows. Give it another try with the whole
18363     # argument.
18364     path="$complete"
18365     arguments="EOL"
18366     new_path="$path"
18367 
18368   windows_path="$new_path"
18369   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18370     unix_path=`$CYGPATH -u "$windows_path"`
18371     new_path="$unix_path"
18372   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18373     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18374     new_path="$unix_path"
18375   fi
18376 
18377 
18378     new_path=`$WHICH "$new_path" 2> /dev/null`
18379     # bat and cmd files are not always considered executable in MSYS causing which
18380     # to not find them
18381     if test "x$new_path" = x \
18382         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18383         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18384       new_path="$path"
18385 
18386   windows_path="$new_path"
18387   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18388     unix_path=`$CYGPATH -u "$windows_path"`
18389     new_path="$unix_path"
18390   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18391     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18392     new_path="$unix_path"
18393   fi
18394 
18395     fi
18396 
18397     if test "x$new_path" = x; then
18398       # It's still not found. Now this is an unrecoverable error.
18399       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18400 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18401       has_space=`$ECHO "$complete" | $GREP " "`
18402       if test "x$has_space" != x; then
18403         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18404 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18405       fi
18406       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18407     fi
18408   fi
18409 
18410   # Now new_path has a complete unix path to the binary
18411   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18412     # Keep paths in /bin as-is, but remove trailing .exe if any
18413     new_path="${new_path/%.exe/}"
18414     # Do not save /bin paths to all_fixpath_prefixes!
18415   else
18416     # Not in mixed or Windows style, start by that.
18417     new_path=`cmd //c echo $new_path`
18418 
18419   input_path="$new_path"
18420   # Check if we need to convert this using DOS-style short mode. If the path
18421   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18422   # take no chances and rewrite it.
18423   # Note: m4 eats our [], so we need to use [ and ] instead.
18424   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18425   if test "x$has_forbidden_chars" != x; then
18426     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18427     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18428   fi
18429 
18430     # Output is in $new_path
18431 
18432   windows_path="$new_path"
18433   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18434     unix_path=`$CYGPATH -u "$windows_path"`
18435     new_path="$unix_path"
18436   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18437     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18438     new_path="$unix_path"
18439   fi
18440 
18441     # remove trailing .exe if any
18442     new_path="${new_path/%.exe/}"
18443 
18444     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18445     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18446   fi
18447 
18448     else
18449       # We're on a unix platform. Hooray! :)
18450       # First separate the path from the arguments. This will split at the first
18451       # space.
18452       complete="$FOUND_MAKE"
18453       path="${complete%% *}"
18454       tmp="$complete EOL"
18455       arguments="${tmp#* }"
18456 
18457       # Cannot rely on the command "which" here since it doesn't always work.
18458       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18459       if test -z "$is_absolute_path"; then
18460         # Path to executable is not absolute. Find it.
18461         IFS_save="$IFS"
18462         IFS=:
18463         for p in $PATH; do
18464           if test -f "$p/$path" && test -x "$p/$path"; then
18465             new_path="$p/$path"
18466             break
18467           fi
18468         done
18469         IFS="$IFS_save"
18470       else
18471         # This is an absolute path, we can use it without further modifications.
18472         new_path="$path"
18473       fi
18474 
18475       if test "x$new_path" = x; then
18476         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18477 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18478         has_space=`$ECHO "$complete" | $GREP " "`
18479         if test "x$has_space" != x; then
18480           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18481 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18482         fi
18483         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18484       fi
18485     fi
18486 
18487     # Now join together the path and the arguments once again
18488     if test "x$arguments" != xEOL; then
18489       new_complete="$new_path ${arguments% *}"
18490     else
18491       new_complete="$new_path"
18492     fi
18493 
18494     if test "x$complete" != "x$new_complete"; then
18495       FOUND_MAKE="$new_complete"
18496       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18497 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18498     fi
18499   fi
18500 
18501         fi
18502       fi
18503     fi
18504   fi
18505 
18506 
18507     if test "x$FOUND_MAKE" = x; then
18508       for ac_prog in make
18509 do
18510   # Extract the first word of "$ac_prog", so it can be a program name with args.
18511 set dummy $ac_prog; ac_word=$2
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18513 $as_echo_n "checking for $ac_word... " >&6; }
18514 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18515   $as_echo_n "(cached) " >&6
18516 else
18517   case $CHECK_MAKE in
18518   [\\/]* | ?:[\\/]*)
18519   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18520   ;;
18521   *)
18522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18523 for as_dir in $PATH
18524 do
18525   IFS=$as_save_IFS
18526   test -z "$as_dir" && as_dir=.
18527     for ac_exec_ext in '' $ac_executable_extensions; do
18528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18529     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18531     break 2
18532   fi
18533 done
18534   done
18535 IFS=$as_save_IFS
18536 
18537   ;;
18538 esac
18539 fi
18540 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18541 if test -n "$CHECK_MAKE"; then
18542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18543 $as_echo "$CHECK_MAKE" >&6; }
18544 else
18545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18546 $as_echo "no" >&6; }
18547 fi
18548 
18549 
18550   test -n "$CHECK_MAKE" && break
18551 done
18552 
18553 
18554   MAKE_CANDIDATE=""$CHECK_MAKE""
18555   DESCRIPTION="make in PATH"
18556 
18557   # On Cygwin, we require a newer version of make than on other platforms
18558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18559     MAKE_VERSION_EXPR="-e 4\."
18560     MAKE_REQUIRED_VERSION="4.0"
18561    else
18562     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18563     MAKE_REQUIRED_VERSION="3.81"
18564   fi
18565 
18566   if test "x$MAKE_CANDIDATE" != x; then
18567     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18568 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18569     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18570     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18571     if test "x$IS_GNU_MAKE" = x; then
18572       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18573 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18574     else
18575       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18576       if test "x$IS_MODERN_MAKE" = x; then
18577         { $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
18578 $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;}
18579       else
18580         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18581           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18582             MAKE_EXPECTED_ENV='cygwin'
18583           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18584             MAKE_EXPECTED_ENV='msys'
18585           else
18586             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18587           fi
18588           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18589           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18590         else
18591           # Not relevant for non-Windows
18592           IS_MAKE_CORRECT_ENV=true
18593         fi
18594         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18595           { $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
18596 $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;}
18597         else
18598           FOUND_MAKE=$MAKE_CANDIDATE
18599 
18600   # Only process if variable expands to non-empty
18601 
18602   if test "x$FOUND_MAKE" != x; then
18603     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18604 
18605   # First separate the path from the arguments. This will split at the first
18606   # space.
18607   complete="$FOUND_MAKE"
18608   path="${complete%% *}"
18609   tmp="$complete EOL"
18610   arguments="${tmp#* }"
18611 
18612   # Input might be given as Windows format, start by converting to
18613   # unix format.
18614   new_path=`$CYGPATH -u "$path"`
18615 
18616   # Now try to locate executable using which
18617   new_path=`$WHICH "$new_path" 2> /dev/null`
18618   # bat and cmd files are not always considered executable in cygwin causing which
18619   # to not find them
18620   if test "x$new_path" = x \
18621       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18622       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18623     new_path=`$CYGPATH -u "$path"`
18624   fi
18625   if test "x$new_path" = x; then
18626     # Oops. Which didn't find the executable.
18627     # The splitting of arguments from the executable at a space might have been incorrect,
18628     # since paths with space are more likely in Windows. Give it another try with the whole
18629     # argument.
18630     path="$complete"
18631     arguments="EOL"
18632     new_path=`$CYGPATH -u "$path"`
18633     new_path=`$WHICH "$new_path" 2> /dev/null`
18634     # bat and cmd files are not always considered executable in cygwin causing which
18635     # to not find them
18636     if test "x$new_path" = x \
18637         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18638         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18639       new_path=`$CYGPATH -u "$path"`
18640     fi
18641     if test "x$new_path" = x; then
18642       # It's still not found. Now this is an unrecoverable error.
18643       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18644 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18645       has_space=`$ECHO "$complete" | $GREP " "`
18646       if test "x$has_space" != x; then
18647         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18648 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18649       fi
18650       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18651     fi
18652   fi
18653 
18654   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18655   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18656   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18657   # "foo.exe" is OK but "foo" is an error.
18658   #
18659   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18660   # It is also a way to make sure we got the proper file name for the real test later on.
18661   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18662   if test "x$test_shortpath" = x; then
18663     # Short path failed, file does not exist as specified.
18664     # Try adding .exe or .cmd
18665     if test -f "${new_path}.exe"; then
18666       input_to_shortpath="${new_path}.exe"
18667     elif test -f "${new_path}.cmd"; then
18668       input_to_shortpath="${new_path}.cmd"
18669     else
18670       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18671 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18672       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18673 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18674       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18675     fi
18676   else
18677     input_to_shortpath="$new_path"
18678   fi
18679 
18680   # Call helper function which possibly converts this using DOS-style short mode.
18681   # If so, the updated path is stored in $new_path.
18682   new_path="$input_to_shortpath"
18683 
18684   input_path="$input_to_shortpath"
18685   # Check if we need to convert this using DOS-style short mode. If the path
18686   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18687   # take no chances and rewrite it.
18688   # Note: m4 eats our [], so we need to use [ and ] instead.
18689   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18690   if test "x$has_forbidden_chars" != x; then
18691     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18692     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18693     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18694     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18695       # Going to short mode and back again did indeed matter. Since short mode is
18696       # case insensitive, let's make it lowercase to improve readability.
18697       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18698       # Now convert it back to Unix-style (cygpath)
18699       input_path=`$CYGPATH -u "$shortmode_path"`
18700       new_path="$input_path"
18701     fi
18702   fi
18703 
18704   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18705   if test "x$test_cygdrive_prefix" = x; then
18706     # As a simple fix, exclude /usr/bin since it's not a real path.
18707     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18708       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18709       # a path prefixed by /cygdrive for fixpath to work.
18710       new_path="$CYGWIN_ROOT_PATH$input_path"
18711     fi
18712   fi
18713 
18714   # remove trailing .exe if any
18715   new_path="${new_path/%.exe/}"
18716 
18717     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18718 
18719   # First separate the path from the arguments. This will split at the first
18720   # space.
18721   complete="$FOUND_MAKE"
18722   path="${complete%% *}"
18723   tmp="$complete EOL"
18724   arguments="${tmp#* }"
18725 
18726   # Input might be given as Windows format, start by converting to
18727   # unix format.
18728   new_path="$path"
18729 
18730   windows_path="$new_path"
18731   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18732     unix_path=`$CYGPATH -u "$windows_path"`
18733     new_path="$unix_path"
18734   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18735     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18736     new_path="$unix_path"
18737   fi
18738 
18739 
18740   # Now try to locate executable using which
18741   new_path=`$WHICH "$new_path" 2> /dev/null`
18742 
18743   if test "x$new_path" = x; then
18744     # Oops. Which didn't find the executable.
18745     # The splitting of arguments from the executable at a space might have been incorrect,
18746     # since paths with space are more likely in Windows. Give it another try with the whole
18747     # argument.
18748     path="$complete"
18749     arguments="EOL"
18750     new_path="$path"
18751 
18752   windows_path="$new_path"
18753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18754     unix_path=`$CYGPATH -u "$windows_path"`
18755     new_path="$unix_path"
18756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18757     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18758     new_path="$unix_path"
18759   fi
18760 
18761 
18762     new_path=`$WHICH "$new_path" 2> /dev/null`
18763     # bat and cmd files are not always considered executable in MSYS causing which
18764     # to not find them
18765     if test "x$new_path" = x \
18766         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18767         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18768       new_path="$path"
18769 
18770   windows_path="$new_path"
18771   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18772     unix_path=`$CYGPATH -u "$windows_path"`
18773     new_path="$unix_path"
18774   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18775     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18776     new_path="$unix_path"
18777   fi
18778 
18779     fi
18780 
18781     if test "x$new_path" = x; then
18782       # It's still not found. Now this is an unrecoverable error.
18783       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18784 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18785       has_space=`$ECHO "$complete" | $GREP " "`
18786       if test "x$has_space" != x; then
18787         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18788 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18789       fi
18790       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18791     fi
18792   fi
18793 
18794   # Now new_path has a complete unix path to the binary
18795   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18796     # Keep paths in /bin as-is, but remove trailing .exe if any
18797     new_path="${new_path/%.exe/}"
18798     # Do not save /bin paths to all_fixpath_prefixes!
18799   else
18800     # Not in mixed or Windows style, start by that.
18801     new_path=`cmd //c echo $new_path`
18802 
18803   input_path="$new_path"
18804   # Check if we need to convert this using DOS-style short mode. If the path
18805   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18806   # take no chances and rewrite it.
18807   # Note: m4 eats our [], so we need to use [ and ] instead.
18808   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18809   if test "x$has_forbidden_chars" != x; then
18810     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18811     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18812   fi
18813 
18814     # Output is in $new_path
18815 
18816   windows_path="$new_path"
18817   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18818     unix_path=`$CYGPATH -u "$windows_path"`
18819     new_path="$unix_path"
18820   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18821     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18822     new_path="$unix_path"
18823   fi
18824 
18825     # remove trailing .exe if any
18826     new_path="${new_path/%.exe/}"
18827 
18828     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18829     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18830   fi
18831 
18832     else
18833       # We're on a unix platform. Hooray! :)
18834       # First separate the path from the arguments. This will split at the first
18835       # space.
18836       complete="$FOUND_MAKE"
18837       path="${complete%% *}"
18838       tmp="$complete EOL"
18839       arguments="${tmp#* }"
18840 
18841       # Cannot rely on the command "which" here since it doesn't always work.
18842       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18843       if test -z "$is_absolute_path"; then
18844         # Path to executable is not absolute. Find it.
18845         IFS_save="$IFS"
18846         IFS=:
18847         for p in $PATH; do
18848           if test -f "$p/$path" && test -x "$p/$path"; then
18849             new_path="$p/$path"
18850             break
18851           fi
18852         done
18853         IFS="$IFS_save"
18854       else
18855         # This is an absolute path, we can use it without further modifications.
18856         new_path="$path"
18857       fi
18858 
18859       if test "x$new_path" = x; then
18860         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18861 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18862         has_space=`$ECHO "$complete" | $GREP " "`
18863         if test "x$has_space" != x; then
18864           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18865 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18866         fi
18867         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18868       fi
18869     fi
18870 
18871     # Now join together the path and the arguments once again
18872     if test "x$arguments" != xEOL; then
18873       new_complete="$new_path ${arguments% *}"
18874     else
18875       new_complete="$new_path"
18876     fi
18877 
18878     if test "x$complete" != "x$new_complete"; then
18879       FOUND_MAKE="$new_complete"
18880       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18881 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18882     fi
18883   fi
18884 
18885         fi
18886       fi
18887     fi
18888   fi
18889 
18890     fi
18891 
18892     if test "x$FOUND_MAKE" = x; then
18893       if test "x$TOOLCHAIN_PATH" != x; then
18894         # We have a toolchain path, check that as well before giving up.
18895         OLD_PATH=$PATH
18896         PATH=$TOOLCHAIN_PATH:$PATH
18897         for ac_prog in gmake
18898 do
18899   # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy $ac_prog; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   case $CHECK_TOOLSDIR_GMAKE in
18907   [\\/]* | ?:[\\/]*)
18908   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18909   ;;
18910   *)
18911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914   IFS=$as_save_IFS
18915   test -z "$as_dir" && as_dir=.
18916     for ac_exec_ext in '' $ac_executable_extensions; do
18917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920     break 2
18921   fi
18922 done
18923   done
18924 IFS=$as_save_IFS
18925 
18926   ;;
18927 esac
18928 fi
18929 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18930 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18932 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18933 else
18934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935 $as_echo "no" >&6; }
18936 fi
18937 
18938 
18939   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18940 done
18941 
18942 
18943   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18944   DESCRIPTION="gmake in tools-dir"
18945 
18946   # On Cygwin, we require a newer version of make than on other platforms
18947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18948     MAKE_VERSION_EXPR="-e 4\."
18949     MAKE_REQUIRED_VERSION="4.0"
18950    else
18951     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18952     MAKE_REQUIRED_VERSION="3.81"
18953   fi
18954 
18955   if test "x$MAKE_CANDIDATE" != x; then
18956     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18957 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18958     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18959     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18960     if test "x$IS_GNU_MAKE" = x; then
18961       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18962 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18963     else
18964       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18965       if test "x$IS_MODERN_MAKE" = x; then
18966         { $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
18967 $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;}
18968       else
18969         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18970           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18971             MAKE_EXPECTED_ENV='cygwin'
18972           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18973             MAKE_EXPECTED_ENV='msys'
18974           else
18975             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18976           fi
18977           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18978           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18979         else
18980           # Not relevant for non-Windows
18981           IS_MAKE_CORRECT_ENV=true
18982         fi
18983         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18984           { $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
18985 $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;}
18986         else
18987           FOUND_MAKE=$MAKE_CANDIDATE
18988 
18989   # Only process if variable expands to non-empty
18990 
18991   if test "x$FOUND_MAKE" != x; then
18992     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18993 
18994   # First separate the path from the arguments. This will split at the first
18995   # space.
18996   complete="$FOUND_MAKE"
18997   path="${complete%% *}"
18998   tmp="$complete EOL"
18999   arguments="${tmp#* }"
19000 
19001   # Input might be given as Windows format, start by converting to
19002   # unix format.
19003   new_path=`$CYGPATH -u "$path"`
19004 
19005   # Now try to locate executable using which
19006   new_path=`$WHICH "$new_path" 2> /dev/null`
19007   # bat and cmd files are not always considered executable in cygwin causing which
19008   # to not find them
19009   if test "x$new_path" = x \
19010       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19011       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19012     new_path=`$CYGPATH -u "$path"`
19013   fi
19014   if test "x$new_path" = x; then
19015     # Oops. Which didn't find the executable.
19016     # The splitting of arguments from the executable at a space might have been incorrect,
19017     # since paths with space are more likely in Windows. Give it another try with the whole
19018     # argument.
19019     path="$complete"
19020     arguments="EOL"
19021     new_path=`$CYGPATH -u "$path"`
19022     new_path=`$WHICH "$new_path" 2> /dev/null`
19023     # bat and cmd files are not always considered executable in cygwin causing which
19024     # to not find them
19025     if test "x$new_path" = x \
19026         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19027         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19028       new_path=`$CYGPATH -u "$path"`
19029     fi
19030     if test "x$new_path" = x; then
19031       # It's still not found. Now this is an unrecoverable error.
19032       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19033 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19034       has_space=`$ECHO "$complete" | $GREP " "`
19035       if test "x$has_space" != x; then
19036         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19038       fi
19039       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19040     fi
19041   fi
19042 
19043   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19044   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19045   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19046   # "foo.exe" is OK but "foo" is an error.
19047   #
19048   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19049   # It is also a way to make sure we got the proper file name for the real test later on.
19050   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19051   if test "x$test_shortpath" = x; then
19052     # Short path failed, file does not exist as specified.
19053     # Try adding .exe or .cmd
19054     if test -f "${new_path}.exe"; then
19055       input_to_shortpath="${new_path}.exe"
19056     elif test -f "${new_path}.cmd"; then
19057       input_to_shortpath="${new_path}.cmd"
19058     else
19059       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19060 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19061       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19062 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19063       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19064     fi
19065   else
19066     input_to_shortpath="$new_path"
19067   fi
19068 
19069   # Call helper function which possibly converts this using DOS-style short mode.
19070   # If so, the updated path is stored in $new_path.
19071   new_path="$input_to_shortpath"
19072 
19073   input_path="$input_to_shortpath"
19074   # Check if we need to convert this using DOS-style short mode. If the path
19075   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19076   # take no chances and rewrite it.
19077   # Note: m4 eats our [], so we need to use [ and ] instead.
19078   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19079   if test "x$has_forbidden_chars" != x; then
19080     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19081     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19082     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19083     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19084       # Going to short mode and back again did indeed matter. Since short mode is
19085       # case insensitive, let's make it lowercase to improve readability.
19086       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19087       # Now convert it back to Unix-style (cygpath)
19088       input_path=`$CYGPATH -u "$shortmode_path"`
19089       new_path="$input_path"
19090     fi
19091   fi
19092 
19093   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19094   if test "x$test_cygdrive_prefix" = x; then
19095     # As a simple fix, exclude /usr/bin since it's not a real path.
19096     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19097       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19098       # a path prefixed by /cygdrive for fixpath to work.
19099       new_path="$CYGWIN_ROOT_PATH$input_path"
19100     fi
19101   fi
19102 
19103   # remove trailing .exe if any
19104   new_path="${new_path/%.exe/}"
19105 
19106     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19107 
19108   # First separate the path from the arguments. This will split at the first
19109   # space.
19110   complete="$FOUND_MAKE"
19111   path="${complete%% *}"
19112   tmp="$complete EOL"
19113   arguments="${tmp#* }"
19114 
19115   # Input might be given as Windows format, start by converting to
19116   # unix format.
19117   new_path="$path"
19118 
19119   windows_path="$new_path"
19120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19121     unix_path=`$CYGPATH -u "$windows_path"`
19122     new_path="$unix_path"
19123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19124     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19125     new_path="$unix_path"
19126   fi
19127 
19128 
19129   # Now try to locate executable using which
19130   new_path=`$WHICH "$new_path" 2> /dev/null`
19131 
19132   if test "x$new_path" = x; then
19133     # Oops. Which didn't find the executable.
19134     # The splitting of arguments from the executable at a space might have been incorrect,
19135     # since paths with space are more likely in Windows. Give it another try with the whole
19136     # argument.
19137     path="$complete"
19138     arguments="EOL"
19139     new_path="$path"
19140 
19141   windows_path="$new_path"
19142   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19143     unix_path=`$CYGPATH -u "$windows_path"`
19144     new_path="$unix_path"
19145   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19146     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19147     new_path="$unix_path"
19148   fi
19149 
19150 
19151     new_path=`$WHICH "$new_path" 2> /dev/null`
19152     # bat and cmd files are not always considered executable in MSYS causing which
19153     # to not find them
19154     if test "x$new_path" = x \
19155         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19156         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19157       new_path="$path"
19158 
19159   windows_path="$new_path"
19160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19161     unix_path=`$CYGPATH -u "$windows_path"`
19162     new_path="$unix_path"
19163   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19164     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19165     new_path="$unix_path"
19166   fi
19167 
19168     fi
19169 
19170     if test "x$new_path" = x; then
19171       # It's still not found. Now this is an unrecoverable error.
19172       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19173 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19174       has_space=`$ECHO "$complete" | $GREP " "`
19175       if test "x$has_space" != x; then
19176         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19177 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19178       fi
19179       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19180     fi
19181   fi
19182 
19183   # Now new_path has a complete unix path to the binary
19184   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19185     # Keep paths in /bin as-is, but remove trailing .exe if any
19186     new_path="${new_path/%.exe/}"
19187     # Do not save /bin paths to all_fixpath_prefixes!
19188   else
19189     # Not in mixed or Windows style, start by that.
19190     new_path=`cmd //c echo $new_path`
19191 
19192   input_path="$new_path"
19193   # Check if we need to convert this using DOS-style short mode. If the path
19194   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19195   # take no chances and rewrite it.
19196   # Note: m4 eats our [], so we need to use [ and ] instead.
19197   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19198   if test "x$has_forbidden_chars" != x; then
19199     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19200     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19201   fi
19202 
19203     # Output is in $new_path
19204 
19205   windows_path="$new_path"
19206   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19207     unix_path=`$CYGPATH -u "$windows_path"`
19208     new_path="$unix_path"
19209   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19210     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19211     new_path="$unix_path"
19212   fi
19213 
19214     # remove trailing .exe if any
19215     new_path="${new_path/%.exe/}"
19216 
19217     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19218     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19219   fi
19220 
19221     else
19222       # We're on a unix platform. Hooray! :)
19223       # First separate the path from the arguments. This will split at the first
19224       # space.
19225       complete="$FOUND_MAKE"
19226       path="${complete%% *}"
19227       tmp="$complete EOL"
19228       arguments="${tmp#* }"
19229 
19230       # Cannot rely on the command "which" here since it doesn't always work.
19231       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19232       if test -z "$is_absolute_path"; then
19233         # Path to executable is not absolute. Find it.
19234         IFS_save="$IFS"
19235         IFS=:
19236         for p in $PATH; do
19237           if test -f "$p/$path" && test -x "$p/$path"; then
19238             new_path="$p/$path"
19239             break
19240           fi
19241         done
19242         IFS="$IFS_save"
19243       else
19244         # This is an absolute path, we can use it without further modifications.
19245         new_path="$path"
19246       fi
19247 
19248       if test "x$new_path" = x; then
19249         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19250 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19251         has_space=`$ECHO "$complete" | $GREP " "`
19252         if test "x$has_space" != x; then
19253           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19254 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19255         fi
19256         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19257       fi
19258     fi
19259 
19260     # Now join together the path and the arguments once again
19261     if test "x$arguments" != xEOL; then
19262       new_complete="$new_path ${arguments% *}"
19263     else
19264       new_complete="$new_path"
19265     fi
19266 
19267     if test "x$complete" != "x$new_complete"; then
19268       FOUND_MAKE="$new_complete"
19269       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19270 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19271     fi
19272   fi
19273 
19274         fi
19275       fi
19276     fi
19277   fi
19278 
19279         if test "x$FOUND_MAKE" = x; then
19280           for ac_prog in make
19281 do
19282   # Extract the first word of "$ac_prog", so it can be a program name with args.
19283 set dummy $ac_prog; ac_word=$2
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19285 $as_echo_n "checking for $ac_word... " >&6; }
19286 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19287   $as_echo_n "(cached) " >&6
19288 else
19289   case $CHECK_TOOLSDIR_MAKE in
19290   [\\/]* | ?:[\\/]*)
19291   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19292   ;;
19293   *)
19294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19296 do
19297   IFS=$as_save_IFS
19298   test -z "$as_dir" && as_dir=.
19299     for ac_exec_ext in '' $ac_executable_extensions; do
19300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19301     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19303     break 2
19304   fi
19305 done
19306   done
19307 IFS=$as_save_IFS
19308 
19309   ;;
19310 esac
19311 fi
19312 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19313 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19315 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19316 else
19317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19319 fi
19320 
19321 
19322   test -n "$CHECK_TOOLSDIR_MAKE" && break
19323 done
19324 
19325 
19326   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19327   DESCRIPTION="make in tools-dir"
19328 
19329   # On Cygwin, we require a newer version of make than on other platforms
19330   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19331     MAKE_VERSION_EXPR="-e 4\."
19332     MAKE_REQUIRED_VERSION="4.0"
19333    else
19334     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19335     MAKE_REQUIRED_VERSION="3.81"
19336   fi
19337 
19338   if test "x$MAKE_CANDIDATE" != x; then
19339     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19340 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19341     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19342     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19343     if test "x$IS_GNU_MAKE" = x; then
19344       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19345 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19346     else
19347       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19348       if test "x$IS_MODERN_MAKE" = x; then
19349         { $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
19350 $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;}
19351       else
19352         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19353           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19354             MAKE_EXPECTED_ENV='cygwin'
19355           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19356             MAKE_EXPECTED_ENV='msys'
19357           else
19358             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19359           fi
19360           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19361           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19362         else
19363           # Not relevant for non-Windows
19364           IS_MAKE_CORRECT_ENV=true
19365         fi
19366         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19367           { $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
19368 $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;}
19369         else
19370           FOUND_MAKE=$MAKE_CANDIDATE
19371 
19372   # Only process if variable expands to non-empty
19373 
19374   if test "x$FOUND_MAKE" != x; then
19375     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19376 
19377   # First separate the path from the arguments. This will split at the first
19378   # space.
19379   complete="$FOUND_MAKE"
19380   path="${complete%% *}"
19381   tmp="$complete EOL"
19382   arguments="${tmp#* }"
19383 
19384   # Input might be given as Windows format, start by converting to
19385   # unix format.
19386   new_path=`$CYGPATH -u "$path"`
19387 
19388   # Now try to locate executable using which
19389   new_path=`$WHICH "$new_path" 2> /dev/null`
19390   # bat and cmd files are not always considered executable in cygwin causing which
19391   # to not find them
19392   if test "x$new_path" = x \
19393       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19394       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19395     new_path=`$CYGPATH -u "$path"`
19396   fi
19397   if test "x$new_path" = x; then
19398     # Oops. Which didn't find the executable.
19399     # The splitting of arguments from the executable at a space might have been incorrect,
19400     # since paths with space are more likely in Windows. Give it another try with the whole
19401     # argument.
19402     path="$complete"
19403     arguments="EOL"
19404     new_path=`$CYGPATH -u "$path"`
19405     new_path=`$WHICH "$new_path" 2> /dev/null`
19406     # bat and cmd files are not always considered executable in cygwin causing which
19407     # to not find them
19408     if test "x$new_path" = x \
19409         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19410         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19411       new_path=`$CYGPATH -u "$path"`
19412     fi
19413     if test "x$new_path" = x; then
19414       # It's still not found. Now this is an unrecoverable error.
19415       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19416 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19417       has_space=`$ECHO "$complete" | $GREP " "`
19418       if test "x$has_space" != x; then
19419         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19421       fi
19422       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19423     fi
19424   fi
19425 
19426   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19427   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19428   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19429   # "foo.exe" is OK but "foo" is an error.
19430   #
19431   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19432   # It is also a way to make sure we got the proper file name for the real test later on.
19433   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19434   if test "x$test_shortpath" = x; then
19435     # Short path failed, file does not exist as specified.
19436     # Try adding .exe or .cmd
19437     if test -f "${new_path}.exe"; then
19438       input_to_shortpath="${new_path}.exe"
19439     elif test -f "${new_path}.cmd"; then
19440       input_to_shortpath="${new_path}.cmd"
19441     else
19442       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19443 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19444       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19445 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19446       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19447     fi
19448   else
19449     input_to_shortpath="$new_path"
19450   fi
19451 
19452   # Call helper function which possibly converts this using DOS-style short mode.
19453   # If so, the updated path is stored in $new_path.
19454   new_path="$input_to_shortpath"
19455 
19456   input_path="$input_to_shortpath"
19457   # Check if we need to convert this using DOS-style short mode. If the path
19458   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19459   # take no chances and rewrite it.
19460   # Note: m4 eats our [], so we need to use [ and ] instead.
19461   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19462   if test "x$has_forbidden_chars" != x; then
19463     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19464     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19465     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19466     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19467       # Going to short mode and back again did indeed matter. Since short mode is
19468       # case insensitive, let's make it lowercase to improve readability.
19469       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19470       # Now convert it back to Unix-style (cygpath)
19471       input_path=`$CYGPATH -u "$shortmode_path"`
19472       new_path="$input_path"
19473     fi
19474   fi
19475 
19476   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19477   if test "x$test_cygdrive_prefix" = x; then
19478     # As a simple fix, exclude /usr/bin since it's not a real path.
19479     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19480       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19481       # a path prefixed by /cygdrive for fixpath to work.
19482       new_path="$CYGWIN_ROOT_PATH$input_path"
19483     fi
19484   fi
19485 
19486   # remove trailing .exe if any
19487   new_path="${new_path/%.exe/}"
19488 
19489     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19490 
19491   # First separate the path from the arguments. This will split at the first
19492   # space.
19493   complete="$FOUND_MAKE"
19494   path="${complete%% *}"
19495   tmp="$complete EOL"
19496   arguments="${tmp#* }"
19497 
19498   # Input might be given as Windows format, start by converting to
19499   # unix format.
19500   new_path="$path"
19501 
19502   windows_path="$new_path"
19503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19504     unix_path=`$CYGPATH -u "$windows_path"`
19505     new_path="$unix_path"
19506   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19507     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19508     new_path="$unix_path"
19509   fi
19510 
19511 
19512   # Now try to locate executable using which
19513   new_path=`$WHICH "$new_path" 2> /dev/null`
19514 
19515   if test "x$new_path" = x; then
19516     # Oops. Which didn't find the executable.
19517     # The splitting of arguments from the executable at a space might have been incorrect,
19518     # since paths with space are more likely in Windows. Give it another try with the whole
19519     # argument.
19520     path="$complete"
19521     arguments="EOL"
19522     new_path="$path"
19523 
19524   windows_path="$new_path"
19525   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19526     unix_path=`$CYGPATH -u "$windows_path"`
19527     new_path="$unix_path"
19528   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19529     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19530     new_path="$unix_path"
19531   fi
19532 
19533 
19534     new_path=`$WHICH "$new_path" 2> /dev/null`
19535     # bat and cmd files are not always considered executable in MSYS causing which
19536     # to not find them
19537     if test "x$new_path" = x \
19538         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19539         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19540       new_path="$path"
19541 
19542   windows_path="$new_path"
19543   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19544     unix_path=`$CYGPATH -u "$windows_path"`
19545     new_path="$unix_path"
19546   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19547     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19548     new_path="$unix_path"
19549   fi
19550 
19551     fi
19552 
19553     if test "x$new_path" = x; then
19554       # It's still not found. Now this is an unrecoverable error.
19555       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19556 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19557       has_space=`$ECHO "$complete" | $GREP " "`
19558       if test "x$has_space" != x; then
19559         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19560 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19561       fi
19562       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19563     fi
19564   fi
19565 
19566   # Now new_path has a complete unix path to the binary
19567   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19568     # Keep paths in /bin as-is, but remove trailing .exe if any
19569     new_path="${new_path/%.exe/}"
19570     # Do not save /bin paths to all_fixpath_prefixes!
19571   else
19572     # Not in mixed or Windows style, start by that.
19573     new_path=`cmd //c echo $new_path`
19574 
19575   input_path="$new_path"
19576   # Check if we need to convert this using DOS-style short mode. If the path
19577   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19578   # take no chances and rewrite it.
19579   # Note: m4 eats our [], so we need to use [ and ] instead.
19580   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19581   if test "x$has_forbidden_chars" != x; then
19582     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19583     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19584   fi
19585 
19586     # Output is in $new_path
19587 
19588   windows_path="$new_path"
19589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19590     unix_path=`$CYGPATH -u "$windows_path"`
19591     new_path="$unix_path"
19592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19594     new_path="$unix_path"
19595   fi
19596 
19597     # remove trailing .exe if any
19598     new_path="${new_path/%.exe/}"
19599 
19600     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19601     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19602   fi
19603 
19604     else
19605       # We're on a unix platform. Hooray! :)
19606       # First separate the path from the arguments. This will split at the first
19607       # space.
19608       complete="$FOUND_MAKE"
19609       path="${complete%% *}"
19610       tmp="$complete EOL"
19611       arguments="${tmp#* }"
19612 
19613       # Cannot rely on the command "which" here since it doesn't always work.
19614       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19615       if test -z "$is_absolute_path"; then
19616         # Path to executable is not absolute. Find it.
19617         IFS_save="$IFS"
19618         IFS=:
19619         for p in $PATH; do
19620           if test -f "$p/$path" && test -x "$p/$path"; then
19621             new_path="$p/$path"
19622             break
19623           fi
19624         done
19625         IFS="$IFS_save"
19626       else
19627         # This is an absolute path, we can use it without further modifications.
19628         new_path="$path"
19629       fi
19630 
19631       if test "x$new_path" = x; then
19632         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19633 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19634         has_space=`$ECHO "$complete" | $GREP " "`
19635         if test "x$has_space" != x; then
19636           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19637 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19638         fi
19639         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19640       fi
19641     fi
19642 
19643     # Now join together the path and the arguments once again
19644     if test "x$arguments" != xEOL; then
19645       new_complete="$new_path ${arguments% *}"
19646     else
19647       new_complete="$new_path"
19648     fi
19649 
19650     if test "x$complete" != "x$new_complete"; then
19651       FOUND_MAKE="$new_complete"
19652       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19653 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19654     fi
19655   fi
19656 
19657         fi
19658       fi
19659     fi
19660   fi
19661 
19662         fi
19663         PATH=$OLD_PATH
19664       fi
19665     fi
19666 
19667     if test "x$FOUND_MAKE" = x; then
19668       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
19669     fi
19670 
19671     else
19672       # If it succeeded, then it was overridden by the user. We will use it
19673       # for the tool.
19674 
19675       # First remove it from the list of overridden variables, so we can test
19676       # for unknown variables in the end.
19677       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19678 
19679       # Check if we try to supply an empty value
19680       if test "x$MAKE" = x; then
19681         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19682 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19684 $as_echo_n "checking for MAKE... " >&6; }
19685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19686 $as_echo "disabled" >&6; }
19687       else
19688         # Check if the provided tool contains a complete path.
19689         tool_specified="$MAKE"
19690         tool_basename="${tool_specified##*/}"
19691         if test "x$tool_basename" = "x$tool_specified"; then
19692           # A command without a complete path is provided, search $PATH.
19693           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19694 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19695           # Extract the first word of "$tool_basename", so it can be a program name with args.
19696 set dummy $tool_basename; ac_word=$2
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19698 $as_echo_n "checking for $ac_word... " >&6; }
19699 if ${ac_cv_path_MAKE+:} false; then :
19700   $as_echo_n "(cached) " >&6
19701 else
19702   case $MAKE in
19703   [\\/]* | ?:[\\/]*)
19704   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19705   ;;
19706   *)
19707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708 for as_dir in $PATH
19709 do
19710   IFS=$as_save_IFS
19711   test -z "$as_dir" && as_dir=.
19712     for ac_exec_ext in '' $ac_executable_extensions; do
19713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19716     break 2
19717   fi
19718 done
19719   done
19720 IFS=$as_save_IFS
19721 
19722   ;;
19723 esac
19724 fi
19725 MAKE=$ac_cv_path_MAKE
19726 if test -n "$MAKE"; then
19727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19728 $as_echo "$MAKE" >&6; }
19729 else
19730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19731 $as_echo "no" >&6; }
19732 fi
19733 
19734 
19735           if test "x$MAKE" = x; then
19736             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19737           fi
19738         else
19739           # Otherwise we believe it is a complete path. Use it as it is.
19740           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19741 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19742           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19743 $as_echo_n "checking for MAKE... " >&6; }
19744           if test ! -x "$tool_specified"; then
19745             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19746 $as_echo "not found" >&6; }
19747             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19748           fi
19749           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19750 $as_echo "$tool_specified" >&6; }
19751         fi
19752       fi
19753     fi
19754 
19755     # If MAKE was set by user, verify the version
19756 
19757   MAKE_CANDIDATE=""$MAKE""
19758   DESCRIPTION="user supplied MAKE=$MAKE"
19759 
19760   # On Cygwin, we require a newer version of make than on other platforms
19761   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19762     MAKE_VERSION_EXPR="-e 4\."
19763     MAKE_REQUIRED_VERSION="4.0"
19764    else
19765     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19766     MAKE_REQUIRED_VERSION="3.81"
19767   fi
19768 
19769   if test "x$MAKE_CANDIDATE" != x; then
19770     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19771 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19772     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19773     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19774     if test "x$IS_GNU_MAKE" = x; then
19775       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19776 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19777     else
19778       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19779       if test "x$IS_MODERN_MAKE" = x; then
19780         { $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
19781 $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;}
19782       else
19783         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19784           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19785             MAKE_EXPECTED_ENV='cygwin'
19786           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19787             MAKE_EXPECTED_ENV='msys'
19788           else
19789             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19790           fi
19791           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19792           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19793         else
19794           # Not relevant for non-Windows
19795           IS_MAKE_CORRECT_ENV=true
19796         fi
19797         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19798           { $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
19799 $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;}
19800         else
19801           FOUND_MAKE=$MAKE_CANDIDATE
19802 
19803   # Only process if variable expands to non-empty
19804 
19805   if test "x$FOUND_MAKE" != x; then
19806     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19807 
19808   # First separate the path from the arguments. This will split at the first
19809   # space.
19810   complete="$FOUND_MAKE"
19811   path="${complete%% *}"
19812   tmp="$complete EOL"
19813   arguments="${tmp#* }"
19814 
19815   # Input might be given as Windows format, start by converting to
19816   # unix format.
19817   new_path=`$CYGPATH -u "$path"`
19818 
19819   # Now try to locate executable using which
19820   new_path=`$WHICH "$new_path" 2> /dev/null`
19821   # bat and cmd files are not always considered executable in cygwin causing which
19822   # to not find them
19823   if test "x$new_path" = x \
19824       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19825       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19826     new_path=`$CYGPATH -u "$path"`
19827   fi
19828   if test "x$new_path" = x; then
19829     # Oops. Which didn't find the executable.
19830     # The splitting of arguments from the executable at a space might have been incorrect,
19831     # since paths with space are more likely in Windows. Give it another try with the whole
19832     # argument.
19833     path="$complete"
19834     arguments="EOL"
19835     new_path=`$CYGPATH -u "$path"`
19836     new_path=`$WHICH "$new_path" 2> /dev/null`
19837     # bat and cmd files are not always considered executable in cygwin causing which
19838     # to not find them
19839     if test "x$new_path" = x \
19840         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19841         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19842       new_path=`$CYGPATH -u "$path"`
19843     fi
19844     if test "x$new_path" = x; then
19845       # It's still not found. Now this is an unrecoverable error.
19846       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19847 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19848       has_space=`$ECHO "$complete" | $GREP " "`
19849       if test "x$has_space" != x; then
19850         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19852       fi
19853       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19854     fi
19855   fi
19856 
19857   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19858   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19859   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19860   # "foo.exe" is OK but "foo" is an error.
19861   #
19862   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19863   # It is also a way to make sure we got the proper file name for the real test later on.
19864   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19865   if test "x$test_shortpath" = x; then
19866     # Short path failed, file does not exist as specified.
19867     # Try adding .exe or .cmd
19868     if test -f "${new_path}.exe"; then
19869       input_to_shortpath="${new_path}.exe"
19870     elif test -f "${new_path}.cmd"; then
19871       input_to_shortpath="${new_path}.cmd"
19872     else
19873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19875       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19876 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19877       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19878     fi
19879   else
19880     input_to_shortpath="$new_path"
19881   fi
19882 
19883   # Call helper function which possibly converts this using DOS-style short mode.
19884   # If so, the updated path is stored in $new_path.
19885   new_path="$input_to_shortpath"
19886 
19887   input_path="$input_to_shortpath"
19888   # Check if we need to convert this using DOS-style short mode. If the path
19889   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19890   # take no chances and rewrite it.
19891   # Note: m4 eats our [], so we need to use [ and ] instead.
19892   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19893   if test "x$has_forbidden_chars" != x; then
19894     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19895     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19896     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19897     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19898       # Going to short mode and back again did indeed matter. Since short mode is
19899       # case insensitive, let's make it lowercase to improve readability.
19900       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19901       # Now convert it back to Unix-style (cygpath)
19902       input_path=`$CYGPATH -u "$shortmode_path"`
19903       new_path="$input_path"
19904     fi
19905   fi
19906 
19907   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19908   if test "x$test_cygdrive_prefix" = x; then
19909     # As a simple fix, exclude /usr/bin since it's not a real path.
19910     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19911       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19912       # a path prefixed by /cygdrive for fixpath to work.
19913       new_path="$CYGWIN_ROOT_PATH$input_path"
19914     fi
19915   fi
19916 
19917   # remove trailing .exe if any
19918   new_path="${new_path/%.exe/}"
19919 
19920     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19921 
19922   # First separate the path from the arguments. This will split at the first
19923   # space.
19924   complete="$FOUND_MAKE"
19925   path="${complete%% *}"
19926   tmp="$complete EOL"
19927   arguments="${tmp#* }"
19928 
19929   # Input might be given as Windows format, start by converting to
19930   # unix format.
19931   new_path="$path"
19932 
19933   windows_path="$new_path"
19934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19935     unix_path=`$CYGPATH -u "$windows_path"`
19936     new_path="$unix_path"
19937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19939     new_path="$unix_path"
19940   fi
19941 
19942 
19943   # Now try to locate executable using which
19944   new_path=`$WHICH "$new_path" 2> /dev/null`
19945 
19946   if test "x$new_path" = x; then
19947     # Oops. Which didn't find the executable.
19948     # The splitting of arguments from the executable at a space might have been incorrect,
19949     # since paths with space are more likely in Windows. Give it another try with the whole
19950     # argument.
19951     path="$complete"
19952     arguments="EOL"
19953     new_path="$path"
19954 
19955   windows_path="$new_path"
19956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19957     unix_path=`$CYGPATH -u "$windows_path"`
19958     new_path="$unix_path"
19959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19960     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19961     new_path="$unix_path"
19962   fi
19963 
19964 
19965     new_path=`$WHICH "$new_path" 2> /dev/null`
19966     # bat and cmd files are not always considered executable in MSYS causing which
19967     # to not find them
19968     if test "x$new_path" = x \
19969         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19970         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19971       new_path="$path"
19972 
19973   windows_path="$new_path"
19974   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19975     unix_path=`$CYGPATH -u "$windows_path"`
19976     new_path="$unix_path"
19977   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19978     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19979     new_path="$unix_path"
19980   fi
19981 
19982     fi
19983 
19984     if test "x$new_path" = x; then
19985       # It's still not found. Now this is an unrecoverable error.
19986       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19988       has_space=`$ECHO "$complete" | $GREP " "`
19989       if test "x$has_space" != x; then
19990         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19992       fi
19993       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19994     fi
19995   fi
19996 
19997   # Now new_path has a complete unix path to the binary
19998   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19999     # Keep paths in /bin as-is, but remove trailing .exe if any
20000     new_path="${new_path/%.exe/}"
20001     # Do not save /bin paths to all_fixpath_prefixes!
20002   else
20003     # Not in mixed or Windows style, start by that.
20004     new_path=`cmd //c echo $new_path`
20005 
20006   input_path="$new_path"
20007   # Check if we need to convert this using DOS-style short mode. If the path
20008   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20009   # take no chances and rewrite it.
20010   # Note: m4 eats our [], so we need to use [ and ] instead.
20011   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20012   if test "x$has_forbidden_chars" != x; then
20013     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20014     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20015   fi
20016 
20017     # Output is in $new_path
20018 
20019   windows_path="$new_path"
20020   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20021     unix_path=`$CYGPATH -u "$windows_path"`
20022     new_path="$unix_path"
20023   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20024     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20025     new_path="$unix_path"
20026   fi
20027 
20028     # remove trailing .exe if any
20029     new_path="${new_path/%.exe/}"
20030 
20031     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20032     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20033   fi
20034 
20035     else
20036       # We're on a unix platform. Hooray! :)
20037       # First separate the path from the arguments. This will split at the first
20038       # space.
20039       complete="$FOUND_MAKE"
20040       path="${complete%% *}"
20041       tmp="$complete EOL"
20042       arguments="${tmp#* }"
20043 
20044       # Cannot rely on the command "which" here since it doesn't always work.
20045       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20046       if test -z "$is_absolute_path"; then
20047         # Path to executable is not absolute. Find it.
20048         IFS_save="$IFS"
20049         IFS=:
20050         for p in $PATH; do
20051           if test -f "$p/$path" && test -x "$p/$path"; then
20052             new_path="$p/$path"
20053             break
20054           fi
20055         done
20056         IFS="$IFS_save"
20057       else
20058         # This is an absolute path, we can use it without further modifications.
20059         new_path="$path"
20060       fi
20061 
20062       if test "x$new_path" = x; then
20063         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20064 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20065         has_space=`$ECHO "$complete" | $GREP " "`
20066         if test "x$has_space" != x; then
20067           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20068 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20069         fi
20070         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20071       fi
20072     fi
20073 
20074     # Now join together the path and the arguments once again
20075     if test "x$arguments" != xEOL; then
20076       new_complete="$new_path ${arguments% *}"
20077     else
20078       new_complete="$new_path"
20079     fi
20080 
20081     if test "x$complete" != "x$new_complete"; then
20082       FOUND_MAKE="$new_complete"
20083       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20084 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20085     fi
20086   fi
20087 
20088         fi
20089       fi
20090     fi
20091   fi
20092 
20093     if test "x$FOUND_MAKE" = x; then
20094       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20095     fi
20096 
20097   fi
20098 
20099 
20100   MAKE=$FOUND_MAKE
20101 
20102   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20103 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20104 
20105 
20106   # Check if make supports the output sync option and if so, setup using it.
20107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20108 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20109   if $MAKE --version -O > /dev/null 2>&1; then
20110     OUTPUT_SYNC_SUPPORTED=true
20111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20112 $as_echo "yes" >&6; }
20113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20114 $as_echo_n "checking for output-sync value... " >&6; }
20115 
20116 # Check whether --with-output-sync was given.
20117 if test "${with_output_sync+set}" = set; then :
20118   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20119 fi
20120 
20121     if test "x$OUTPUT_SYNC" = "x"; then
20122       OUTPUT_SYNC=none
20123     fi
20124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20125 $as_echo "$OUTPUT_SYNC" >&6; }
20126     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20127       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20128     fi
20129   else
20130     OUTPUT_SYNC_SUPPORTED=false
20131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132 $as_echo "no" >&6; }
20133   fi
20134 
20135 
20136 
20137 
20138 
20139 
20140   # Test if find supports -delete
20141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20142 $as_echo_n "checking if find supports -delete... " >&6; }
20143   FIND_DELETE="-delete"
20144 
20145   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20146 
20147   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20148 
20149   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20150   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20151     # No, it does not.
20152     rm $DELETEDIR/TestIfFindSupportsDelete
20153     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20154       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20155       FIND_DELETE="-print | xargs rm"
20156     else
20157       FIND_DELETE="-exec rm \{\} \+"
20158     fi
20159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160 $as_echo "no" >&6; }
20161   else
20162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20163 $as_echo "yes" >&6; }
20164   fi
20165   rmdir $DELETEDIR
20166 
20167 
20168 
20169   # These tools might not be installed by default,
20170   # need hint on how to install them.
20171 
20172 
20173 
20174   # Publish this variable in the help.
20175 
20176 
20177   if [ -z "${UNZIP+x}" ]; then
20178     # The variable is not set by user, try to locate tool using the code snippet
20179     for ac_prog in unzip
20180 do
20181   # Extract the first word of "$ac_prog", so it can be a program name with args.
20182 set dummy $ac_prog; ac_word=$2
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20184 $as_echo_n "checking for $ac_word... " >&6; }
20185 if ${ac_cv_path_UNZIP+:} false; then :
20186   $as_echo_n "(cached) " >&6
20187 else
20188   case $UNZIP in
20189   [\\/]* | ?:[\\/]*)
20190   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20191   ;;
20192   *)
20193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20194 for as_dir in $PATH
20195 do
20196   IFS=$as_save_IFS
20197   test -z "$as_dir" && as_dir=.
20198     for ac_exec_ext in '' $ac_executable_extensions; do
20199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20200     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20202     break 2
20203   fi
20204 done
20205   done
20206 IFS=$as_save_IFS
20207 
20208   ;;
20209 esac
20210 fi
20211 UNZIP=$ac_cv_path_UNZIP
20212 if test -n "$UNZIP"; then
20213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20214 $as_echo "$UNZIP" >&6; }
20215 else
20216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20217 $as_echo "no" >&6; }
20218 fi
20219 
20220 
20221   test -n "$UNZIP" && break
20222 done
20223 
20224   else
20225     # The variable is set, but is it from the command line or the environment?
20226 
20227     # Try to remove the string !UNZIP! from our list.
20228     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20229     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20230       # If it failed, the variable was not from the command line. Ignore it,
20231       # but warn the user (except for BASH, which is always set by the calling BASH).
20232       if test "xUNZIP" != xBASH; then
20233         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20234 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20235       fi
20236       # Try to locate tool using the code snippet
20237       for ac_prog in unzip
20238 do
20239   # Extract the first word of "$ac_prog", so it can be a program name with args.
20240 set dummy $ac_prog; ac_word=$2
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20242 $as_echo_n "checking for $ac_word... " >&6; }
20243 if ${ac_cv_path_UNZIP+:} false; then :
20244   $as_echo_n "(cached) " >&6
20245 else
20246   case $UNZIP in
20247   [\\/]* | ?:[\\/]*)
20248   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20249   ;;
20250   *)
20251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20252 for as_dir in $PATH
20253 do
20254   IFS=$as_save_IFS
20255   test -z "$as_dir" && as_dir=.
20256     for ac_exec_ext in '' $ac_executable_extensions; do
20257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20258     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20260     break 2
20261   fi
20262 done
20263   done
20264 IFS=$as_save_IFS
20265 
20266   ;;
20267 esac
20268 fi
20269 UNZIP=$ac_cv_path_UNZIP
20270 if test -n "$UNZIP"; then
20271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20272 $as_echo "$UNZIP" >&6; }
20273 else
20274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20275 $as_echo "no" >&6; }
20276 fi
20277 
20278 
20279   test -n "$UNZIP" && break
20280 done
20281 
20282     else
20283       # If it succeeded, then it was overridden by the user. We will use it
20284       # for the tool.
20285 
20286       # First remove it from the list of overridden variables, so we can test
20287       # for unknown variables in the end.
20288       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20289 
20290       # Check if we try to supply an empty value
20291       if test "x$UNZIP" = x; then
20292         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20293 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20294         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20295 $as_echo_n "checking for UNZIP... " >&6; }
20296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20297 $as_echo "disabled" >&6; }
20298       else
20299         # Check if the provided tool contains a complete path.
20300         tool_specified="$UNZIP"
20301         tool_basename="${tool_specified##*/}"
20302         if test "x$tool_basename" = "x$tool_specified"; then
20303           # A command without a complete path is provided, search $PATH.
20304           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20305 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20306           # Extract the first word of "$tool_basename", so it can be a program name with args.
20307 set dummy $tool_basename; ac_word=$2
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20309 $as_echo_n "checking for $ac_word... " >&6; }
20310 if ${ac_cv_path_UNZIP+:} false; then :
20311   $as_echo_n "(cached) " >&6
20312 else
20313   case $UNZIP in
20314   [\\/]* | ?:[\\/]*)
20315   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20316   ;;
20317   *)
20318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319 for as_dir in $PATH
20320 do
20321   IFS=$as_save_IFS
20322   test -z "$as_dir" && as_dir=.
20323     for ac_exec_ext in '' $ac_executable_extensions; do
20324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20325     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20327     break 2
20328   fi
20329 done
20330   done
20331 IFS=$as_save_IFS
20332 
20333   ;;
20334 esac
20335 fi
20336 UNZIP=$ac_cv_path_UNZIP
20337 if test -n "$UNZIP"; then
20338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20339 $as_echo "$UNZIP" >&6; }
20340 else
20341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20342 $as_echo "no" >&6; }
20343 fi
20344 
20345 
20346           if test "x$UNZIP" = x; then
20347             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20348           fi
20349         else
20350           # Otherwise we believe it is a complete path. Use it as it is.
20351           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20352 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20353           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20354 $as_echo_n "checking for UNZIP... " >&6; }
20355           if test ! -x "$tool_specified"; then
20356             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20357 $as_echo "not found" >&6; }
20358             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20359           fi
20360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20361 $as_echo "$tool_specified" >&6; }
20362         fi
20363       fi
20364     fi
20365 
20366   fi
20367 
20368 
20369 
20370   if test "x$UNZIP" = x; then
20371     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20372   fi
20373 
20374 
20375 
20376 
20377 
20378   # Publish this variable in the help.
20379 
20380 
20381   if [ -z "${ZIP+x}" ]; then
20382     # The variable is not set by user, try to locate tool using the code snippet
20383     for ac_prog in zip
20384 do
20385   # Extract the first word of "$ac_prog", so it can be a program name with args.
20386 set dummy $ac_prog; ac_word=$2
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20388 $as_echo_n "checking for $ac_word... " >&6; }
20389 if ${ac_cv_path_ZIP+:} false; then :
20390   $as_echo_n "(cached) " >&6
20391 else
20392   case $ZIP in
20393   [\\/]* | ?:[\\/]*)
20394   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20395   ;;
20396   *)
20397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20398 for as_dir in $PATH
20399 do
20400   IFS=$as_save_IFS
20401   test -z "$as_dir" && as_dir=.
20402     for ac_exec_ext in '' $ac_executable_extensions; do
20403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20404     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20406     break 2
20407   fi
20408 done
20409   done
20410 IFS=$as_save_IFS
20411 
20412   ;;
20413 esac
20414 fi
20415 ZIP=$ac_cv_path_ZIP
20416 if test -n "$ZIP"; then
20417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20418 $as_echo "$ZIP" >&6; }
20419 else
20420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20421 $as_echo "no" >&6; }
20422 fi
20423 
20424 
20425   test -n "$ZIP" && break
20426 done
20427 
20428   else
20429     # The variable is set, but is it from the command line or the environment?
20430 
20431     # Try to remove the string !ZIP! from our list.
20432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20434       # If it failed, the variable was not from the command line. Ignore it,
20435       # but warn the user (except for BASH, which is always set by the calling BASH).
20436       if test "xZIP" != xBASH; then
20437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20438 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20439       fi
20440       # Try to locate tool using the code snippet
20441       for ac_prog in zip
20442 do
20443   # Extract the first word of "$ac_prog", so it can be a program name with args.
20444 set dummy $ac_prog; ac_word=$2
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20446 $as_echo_n "checking for $ac_word... " >&6; }
20447 if ${ac_cv_path_ZIP+:} false; then :
20448   $as_echo_n "(cached) " >&6
20449 else
20450   case $ZIP in
20451   [\\/]* | ?:[\\/]*)
20452   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20453   ;;
20454   *)
20455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20456 for as_dir in $PATH
20457 do
20458   IFS=$as_save_IFS
20459   test -z "$as_dir" && as_dir=.
20460     for ac_exec_ext in '' $ac_executable_extensions; do
20461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20462     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20464     break 2
20465   fi
20466 done
20467   done
20468 IFS=$as_save_IFS
20469 
20470   ;;
20471 esac
20472 fi
20473 ZIP=$ac_cv_path_ZIP
20474 if test -n "$ZIP"; then
20475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20476 $as_echo "$ZIP" >&6; }
20477 else
20478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479 $as_echo "no" >&6; }
20480 fi
20481 
20482 
20483   test -n "$ZIP" && break
20484 done
20485 
20486     else
20487       # If it succeeded, then it was overridden by the user. We will use it
20488       # for the tool.
20489 
20490       # First remove it from the list of overridden variables, so we can test
20491       # for unknown variables in the end.
20492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20493 
20494       # Check if we try to supply an empty value
20495       if test "x$ZIP" = x; then
20496         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20497 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20499 $as_echo_n "checking for ZIP... " >&6; }
20500         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20501 $as_echo "disabled" >&6; }
20502       else
20503         # Check if the provided tool contains a complete path.
20504         tool_specified="$ZIP"
20505         tool_basename="${tool_specified##*/}"
20506         if test "x$tool_basename" = "x$tool_specified"; then
20507           # A command without a complete path is provided, search $PATH.
20508           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20509 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20510           # Extract the first word of "$tool_basename", so it can be a program name with args.
20511 set dummy $tool_basename; ac_word=$2
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20513 $as_echo_n "checking for $ac_word... " >&6; }
20514 if ${ac_cv_path_ZIP+:} false; then :
20515   $as_echo_n "(cached) " >&6
20516 else
20517   case $ZIP in
20518   [\\/]* | ?:[\\/]*)
20519   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20520   ;;
20521   *)
20522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20523 for as_dir in $PATH
20524 do
20525   IFS=$as_save_IFS
20526   test -z "$as_dir" && as_dir=.
20527     for ac_exec_ext in '' $ac_executable_extensions; do
20528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20529     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20531     break 2
20532   fi
20533 done
20534   done
20535 IFS=$as_save_IFS
20536 
20537   ;;
20538 esac
20539 fi
20540 ZIP=$ac_cv_path_ZIP
20541 if test -n "$ZIP"; then
20542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20543 $as_echo "$ZIP" >&6; }
20544 else
20545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20546 $as_echo "no" >&6; }
20547 fi
20548 
20549 
20550           if test "x$ZIP" = x; then
20551             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20552           fi
20553         else
20554           # Otherwise we believe it is a complete path. Use it as it is.
20555           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20556 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20557           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20558 $as_echo_n "checking for ZIP... " >&6; }
20559           if test ! -x "$tool_specified"; then
20560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20561 $as_echo "not found" >&6; }
20562             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20563           fi
20564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20565 $as_echo "$tool_specified" >&6; }
20566         fi
20567       fi
20568     fi
20569 
20570   fi
20571 
20572 
20573 
20574   if test "x$ZIP" = x; then
20575     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20576   fi
20577 
20578 
20579 
20580   # Non-required basic tools
20581 
20582 
20583 
20584   # Publish this variable in the help.
20585 
20586 
20587   if [ -z "${LDD+x}" ]; then
20588     # The variable is not set by user, try to locate tool using the code snippet
20589     for ac_prog in ldd
20590 do
20591   # Extract the first word of "$ac_prog", so it can be a program name with args.
20592 set dummy $ac_prog; ac_word=$2
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20594 $as_echo_n "checking for $ac_word... " >&6; }
20595 if ${ac_cv_path_LDD+:} false; then :
20596   $as_echo_n "(cached) " >&6
20597 else
20598   case $LDD in
20599   [\\/]* | ?:[\\/]*)
20600   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20601   ;;
20602   *)
20603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20604 for as_dir in $PATH
20605 do
20606   IFS=$as_save_IFS
20607   test -z "$as_dir" && as_dir=.
20608     for ac_exec_ext in '' $ac_executable_extensions; do
20609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20610     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20612     break 2
20613   fi
20614 done
20615   done
20616 IFS=$as_save_IFS
20617 
20618   ;;
20619 esac
20620 fi
20621 LDD=$ac_cv_path_LDD
20622 if test -n "$LDD"; then
20623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20624 $as_echo "$LDD" >&6; }
20625 else
20626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20627 $as_echo "no" >&6; }
20628 fi
20629 
20630 
20631   test -n "$LDD" && break
20632 done
20633 
20634   else
20635     # The variable is set, but is it from the command line or the environment?
20636 
20637     # Try to remove the string !LDD! from our list.
20638     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20639     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20640       # If it failed, the variable was not from the command line. Ignore it,
20641       # but warn the user (except for BASH, which is always set by the calling BASH).
20642       if test "xLDD" != xBASH; then
20643         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20644 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20645       fi
20646       # Try to locate tool using the code snippet
20647       for ac_prog in ldd
20648 do
20649   # Extract the first word of "$ac_prog", so it can be a program name with args.
20650 set dummy $ac_prog; ac_word=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if ${ac_cv_path_LDD+:} false; then :
20654   $as_echo_n "(cached) " >&6
20655 else
20656   case $LDD in
20657   [\\/]* | ?:[\\/]*)
20658   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20659   ;;
20660   *)
20661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20662 for as_dir in $PATH
20663 do
20664   IFS=$as_save_IFS
20665   test -z "$as_dir" && as_dir=.
20666     for ac_exec_ext in '' $ac_executable_extensions; do
20667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20668     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20670     break 2
20671   fi
20672 done
20673   done
20674 IFS=$as_save_IFS
20675 
20676   ;;
20677 esac
20678 fi
20679 LDD=$ac_cv_path_LDD
20680 if test -n "$LDD"; then
20681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20682 $as_echo "$LDD" >&6; }
20683 else
20684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20686 fi
20687 
20688 
20689   test -n "$LDD" && break
20690 done
20691 
20692     else
20693       # If it succeeded, then it was overridden by the user. We will use it
20694       # for the tool.
20695 
20696       # First remove it from the list of overridden variables, so we can test
20697       # for unknown variables in the end.
20698       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20699 
20700       # Check if we try to supply an empty value
20701       if test "x$LDD" = x; then
20702         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20703 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20704         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20705 $as_echo_n "checking for LDD... " >&6; }
20706         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20707 $as_echo "disabled" >&6; }
20708       else
20709         # Check if the provided tool contains a complete path.
20710         tool_specified="$LDD"
20711         tool_basename="${tool_specified##*/}"
20712         if test "x$tool_basename" = "x$tool_specified"; then
20713           # A command without a complete path is provided, search $PATH.
20714           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20715 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20716           # Extract the first word of "$tool_basename", so it can be a program name with args.
20717 set dummy $tool_basename; ac_word=$2
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20719 $as_echo_n "checking for $ac_word... " >&6; }
20720 if ${ac_cv_path_LDD+:} false; then :
20721   $as_echo_n "(cached) " >&6
20722 else
20723   case $LDD in
20724   [\\/]* | ?:[\\/]*)
20725   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20726   ;;
20727   *)
20728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729 for as_dir in $PATH
20730 do
20731   IFS=$as_save_IFS
20732   test -z "$as_dir" && as_dir=.
20733     for ac_exec_ext in '' $ac_executable_extensions; do
20734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20735     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20737     break 2
20738   fi
20739 done
20740   done
20741 IFS=$as_save_IFS
20742 
20743   ;;
20744 esac
20745 fi
20746 LDD=$ac_cv_path_LDD
20747 if test -n "$LDD"; then
20748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20749 $as_echo "$LDD" >&6; }
20750 else
20751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20752 $as_echo "no" >&6; }
20753 fi
20754 
20755 
20756           if test "x$LDD" = x; then
20757             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20758           fi
20759         else
20760           # Otherwise we believe it is a complete path. Use it as it is.
20761           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20762 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20764 $as_echo_n "checking for LDD... " >&6; }
20765           if test ! -x "$tool_specified"; then
20766             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20767 $as_echo "not found" >&6; }
20768             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20769           fi
20770           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20771 $as_echo "$tool_specified" >&6; }
20772         fi
20773       fi
20774     fi
20775 
20776   fi
20777 
20778 
20779   if test "x$LDD" = "x"; then
20780     # List shared lib dependencies is used for
20781     # debug output and checking for forbidden dependencies.
20782     # We can build without it.
20783     LDD="true"
20784   fi
20785 
20786 
20787   # Publish this variable in the help.
20788 
20789 
20790   if [ -z "${OTOOL+x}" ]; then
20791     # The variable is not set by user, try to locate tool using the code snippet
20792     for ac_prog in otool
20793 do
20794   # Extract the first word of "$ac_prog", so it can be a program name with args.
20795 set dummy $ac_prog; ac_word=$2
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20797 $as_echo_n "checking for $ac_word... " >&6; }
20798 if ${ac_cv_path_OTOOL+:} false; then :
20799   $as_echo_n "(cached) " >&6
20800 else
20801   case $OTOOL in
20802   [\\/]* | ?:[\\/]*)
20803   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20804   ;;
20805   *)
20806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20807 for as_dir in $PATH
20808 do
20809   IFS=$as_save_IFS
20810   test -z "$as_dir" && as_dir=.
20811     for ac_exec_ext in '' $ac_executable_extensions; do
20812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20813     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20815     break 2
20816   fi
20817 done
20818   done
20819 IFS=$as_save_IFS
20820 
20821   ;;
20822 esac
20823 fi
20824 OTOOL=$ac_cv_path_OTOOL
20825 if test -n "$OTOOL"; then
20826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20827 $as_echo "$OTOOL" >&6; }
20828 else
20829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20830 $as_echo "no" >&6; }
20831 fi
20832 
20833 
20834   test -n "$OTOOL" && break
20835 done
20836 
20837   else
20838     # The variable is set, but is it from the command line or the environment?
20839 
20840     # Try to remove the string !OTOOL! from our list.
20841     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20842     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20843       # If it failed, the variable was not from the command line. Ignore it,
20844       # but warn the user (except for BASH, which is always set by the calling BASH).
20845       if test "xOTOOL" != xBASH; then
20846         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20847 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20848       fi
20849       # Try to locate tool using the code snippet
20850       for ac_prog in otool
20851 do
20852   # Extract the first word of "$ac_prog", so it can be a program name with args.
20853 set dummy $ac_prog; ac_word=$2
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20855 $as_echo_n "checking for $ac_word... " >&6; }
20856 if ${ac_cv_path_OTOOL+:} false; then :
20857   $as_echo_n "(cached) " >&6
20858 else
20859   case $OTOOL in
20860   [\\/]* | ?:[\\/]*)
20861   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20862   ;;
20863   *)
20864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20865 for as_dir in $PATH
20866 do
20867   IFS=$as_save_IFS
20868   test -z "$as_dir" && as_dir=.
20869     for ac_exec_ext in '' $ac_executable_extensions; do
20870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20871     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20873     break 2
20874   fi
20875 done
20876   done
20877 IFS=$as_save_IFS
20878 
20879   ;;
20880 esac
20881 fi
20882 OTOOL=$ac_cv_path_OTOOL
20883 if test -n "$OTOOL"; then
20884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20885 $as_echo "$OTOOL" >&6; }
20886 else
20887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20888 $as_echo "no" >&6; }
20889 fi
20890 
20891 
20892   test -n "$OTOOL" && break
20893 done
20894 
20895     else
20896       # If it succeeded, then it was overridden by the user. We will use it
20897       # for the tool.
20898 
20899       # First remove it from the list of overridden variables, so we can test
20900       # for unknown variables in the end.
20901       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20902 
20903       # Check if we try to supply an empty value
20904       if test "x$OTOOL" = x; then
20905         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20906 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20907         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20908 $as_echo_n "checking for OTOOL... " >&6; }
20909         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20910 $as_echo "disabled" >&6; }
20911       else
20912         # Check if the provided tool contains a complete path.
20913         tool_specified="$OTOOL"
20914         tool_basename="${tool_specified##*/}"
20915         if test "x$tool_basename" = "x$tool_specified"; then
20916           # A command without a complete path is provided, search $PATH.
20917           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20918 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20919           # Extract the first word of "$tool_basename", so it can be a program name with args.
20920 set dummy $tool_basename; ac_word=$2
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20922 $as_echo_n "checking for $ac_word... " >&6; }
20923 if ${ac_cv_path_OTOOL+:} false; then :
20924   $as_echo_n "(cached) " >&6
20925 else
20926   case $OTOOL in
20927   [\\/]* | ?:[\\/]*)
20928   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20929   ;;
20930   *)
20931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20932 for as_dir in $PATH
20933 do
20934   IFS=$as_save_IFS
20935   test -z "$as_dir" && as_dir=.
20936     for ac_exec_ext in '' $ac_executable_extensions; do
20937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20938     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20940     break 2
20941   fi
20942 done
20943   done
20944 IFS=$as_save_IFS
20945 
20946   ;;
20947 esac
20948 fi
20949 OTOOL=$ac_cv_path_OTOOL
20950 if test -n "$OTOOL"; then
20951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20952 $as_echo "$OTOOL" >&6; }
20953 else
20954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20955 $as_echo "no" >&6; }
20956 fi
20957 
20958 
20959           if test "x$OTOOL" = x; then
20960             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20961           fi
20962         else
20963           # Otherwise we believe it is a complete path. Use it as it is.
20964           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20965 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20966           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20967 $as_echo_n "checking for OTOOL... " >&6; }
20968           if test ! -x "$tool_specified"; then
20969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20970 $as_echo "not found" >&6; }
20971             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
20972           fi
20973           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20974 $as_echo "$tool_specified" >&6; }
20975         fi
20976       fi
20977     fi
20978 
20979   fi
20980 
20981 
20982   if test "x$OTOOL" = "x"; then
20983     OTOOL="true"
20984   fi
20985 
20986 
20987   # Publish this variable in the help.
20988 
20989 
20990   if [ -z "${READELF+x}" ]; then
20991     # The variable is not set by user, try to locate tool using the code snippet
20992     for ac_prog in greadelf readelf
20993 do
20994   # Extract the first word of "$ac_prog", so it can be a program name with args.
20995 set dummy $ac_prog; ac_word=$2
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20997 $as_echo_n "checking for $ac_word... " >&6; }
20998 if ${ac_cv_path_READELF+:} false; then :
20999   $as_echo_n "(cached) " >&6
21000 else
21001   case $READELF in
21002   [\\/]* | ?:[\\/]*)
21003   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21004   ;;
21005   *)
21006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21007 for as_dir in $PATH
21008 do
21009   IFS=$as_save_IFS
21010   test -z "$as_dir" && as_dir=.
21011     for ac_exec_ext in '' $ac_executable_extensions; do
21012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21013     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21015     break 2
21016   fi
21017 done
21018   done
21019 IFS=$as_save_IFS
21020 
21021   ;;
21022 esac
21023 fi
21024 READELF=$ac_cv_path_READELF
21025 if test -n "$READELF"; then
21026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21027 $as_echo "$READELF" >&6; }
21028 else
21029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030 $as_echo "no" >&6; }
21031 fi
21032 
21033 
21034   test -n "$READELF" && break
21035 done
21036 
21037   else
21038     # The variable is set, but is it from the command line or the environment?
21039 
21040     # Try to remove the string !READELF! from our list.
21041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21043       # If it failed, the variable was not from the command line. Ignore it,
21044       # but warn the user (except for BASH, which is always set by the calling BASH).
21045       if test "xREADELF" != xBASH; then
21046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21047 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21048       fi
21049       # Try to locate tool using the code snippet
21050       for ac_prog in greadelf readelf
21051 do
21052   # Extract the first word of "$ac_prog", so it can be a program name with args.
21053 set dummy $ac_prog; ac_word=$2
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21055 $as_echo_n "checking for $ac_word... " >&6; }
21056 if ${ac_cv_path_READELF+:} false; then :
21057   $as_echo_n "(cached) " >&6
21058 else
21059   case $READELF in
21060   [\\/]* | ?:[\\/]*)
21061   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21062   ;;
21063   *)
21064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21065 for as_dir in $PATH
21066 do
21067   IFS=$as_save_IFS
21068   test -z "$as_dir" && as_dir=.
21069     for ac_exec_ext in '' $ac_executable_extensions; do
21070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21071     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21073     break 2
21074   fi
21075 done
21076   done
21077 IFS=$as_save_IFS
21078 
21079   ;;
21080 esac
21081 fi
21082 READELF=$ac_cv_path_READELF
21083 if test -n "$READELF"; then
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21085 $as_echo "$READELF" >&6; }
21086 else
21087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21088 $as_echo "no" >&6; }
21089 fi
21090 
21091 
21092   test -n "$READELF" && break
21093 done
21094 
21095     else
21096       # If it succeeded, then it was overridden by the user. We will use it
21097       # for the tool.
21098 
21099       # First remove it from the list of overridden variables, so we can test
21100       # for unknown variables in the end.
21101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21102 
21103       # Check if we try to supply an empty value
21104       if test "x$READELF" = x; then
21105         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21106 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21108 $as_echo_n "checking for READELF... " >&6; }
21109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21110 $as_echo "disabled" >&6; }
21111       else
21112         # Check if the provided tool contains a complete path.
21113         tool_specified="$READELF"
21114         tool_basename="${tool_specified##*/}"
21115         if test "x$tool_basename" = "x$tool_specified"; then
21116           # A command without a complete path is provided, search $PATH.
21117           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21118 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21119           # Extract the first word of "$tool_basename", so it can be a program name with args.
21120 set dummy $tool_basename; ac_word=$2
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21122 $as_echo_n "checking for $ac_word... " >&6; }
21123 if ${ac_cv_path_READELF+:} false; then :
21124   $as_echo_n "(cached) " >&6
21125 else
21126   case $READELF in
21127   [\\/]* | ?:[\\/]*)
21128   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21129   ;;
21130   *)
21131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21132 for as_dir in $PATH
21133 do
21134   IFS=$as_save_IFS
21135   test -z "$as_dir" && as_dir=.
21136     for ac_exec_ext in '' $ac_executable_extensions; do
21137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21138     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21140     break 2
21141   fi
21142 done
21143   done
21144 IFS=$as_save_IFS
21145 
21146   ;;
21147 esac
21148 fi
21149 READELF=$ac_cv_path_READELF
21150 if test -n "$READELF"; then
21151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21152 $as_echo "$READELF" >&6; }
21153 else
21154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21155 $as_echo "no" >&6; }
21156 fi
21157 
21158 
21159           if test "x$READELF" = x; then
21160             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21161           fi
21162         else
21163           # Otherwise we believe it is a complete path. Use it as it is.
21164           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21165 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21166           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21167 $as_echo_n "checking for READELF... " >&6; }
21168           if test ! -x "$tool_specified"; then
21169             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21170 $as_echo "not found" >&6; }
21171             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21172           fi
21173           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21174 $as_echo "$tool_specified" >&6; }
21175         fi
21176       fi
21177     fi
21178 
21179   fi
21180 
21181 
21182 
21183 
21184   # Publish this variable in the help.
21185 
21186 
21187   if [ -z "${HG+x}" ]; then
21188     # The variable is not set by user, try to locate tool using the code snippet
21189     for ac_prog in hg
21190 do
21191   # Extract the first word of "$ac_prog", so it can be a program name with args.
21192 set dummy $ac_prog; ac_word=$2
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21194 $as_echo_n "checking for $ac_word... " >&6; }
21195 if ${ac_cv_path_HG+:} false; then :
21196   $as_echo_n "(cached) " >&6
21197 else
21198   case $HG in
21199   [\\/]* | ?:[\\/]*)
21200   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21201   ;;
21202   *)
21203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21204 for as_dir in $PATH
21205 do
21206   IFS=$as_save_IFS
21207   test -z "$as_dir" && as_dir=.
21208     for ac_exec_ext in '' $ac_executable_extensions; do
21209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21210     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21212     break 2
21213   fi
21214 done
21215   done
21216 IFS=$as_save_IFS
21217 
21218   ;;
21219 esac
21220 fi
21221 HG=$ac_cv_path_HG
21222 if test -n "$HG"; then
21223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21224 $as_echo "$HG" >&6; }
21225 else
21226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21227 $as_echo "no" >&6; }
21228 fi
21229 
21230 
21231   test -n "$HG" && break
21232 done
21233 
21234   else
21235     # The variable is set, but is it from the command line or the environment?
21236 
21237     # Try to remove the string !HG! from our list.
21238     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21239     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21240       # If it failed, the variable was not from the command line. Ignore it,
21241       # but warn the user (except for BASH, which is always set by the calling BASH).
21242       if test "xHG" != xBASH; then
21243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21244 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21245       fi
21246       # Try to locate tool using the code snippet
21247       for ac_prog in hg
21248 do
21249   # Extract the first word of "$ac_prog", so it can be a program name with args.
21250 set dummy $ac_prog; ac_word=$2
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21252 $as_echo_n "checking for $ac_word... " >&6; }
21253 if ${ac_cv_path_HG+:} false; then :
21254   $as_echo_n "(cached) " >&6
21255 else
21256   case $HG in
21257   [\\/]* | ?:[\\/]*)
21258   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21259   ;;
21260   *)
21261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21262 for as_dir in $PATH
21263 do
21264   IFS=$as_save_IFS
21265   test -z "$as_dir" && as_dir=.
21266     for ac_exec_ext in '' $ac_executable_extensions; do
21267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21268     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21270     break 2
21271   fi
21272 done
21273   done
21274 IFS=$as_save_IFS
21275 
21276   ;;
21277 esac
21278 fi
21279 HG=$ac_cv_path_HG
21280 if test -n "$HG"; then
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21282 $as_echo "$HG" >&6; }
21283 else
21284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21285 $as_echo "no" >&6; }
21286 fi
21287 
21288 
21289   test -n "$HG" && break
21290 done
21291 
21292     else
21293       # If it succeeded, then it was overridden by the user. We will use it
21294       # for the tool.
21295 
21296       # First remove it from the list of overridden variables, so we can test
21297       # for unknown variables in the end.
21298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21299 
21300       # Check if we try to supply an empty value
21301       if test "x$HG" = x; then
21302         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21303 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21304         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21305 $as_echo_n "checking for HG... " >&6; }
21306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21307 $as_echo "disabled" >&6; }
21308       else
21309         # Check if the provided tool contains a complete path.
21310         tool_specified="$HG"
21311         tool_basename="${tool_specified##*/}"
21312         if test "x$tool_basename" = "x$tool_specified"; then
21313           # A command without a complete path is provided, search $PATH.
21314           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21315 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21316           # Extract the first word of "$tool_basename", so it can be a program name with args.
21317 set dummy $tool_basename; ac_word=$2
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21319 $as_echo_n "checking for $ac_word... " >&6; }
21320 if ${ac_cv_path_HG+:} false; then :
21321   $as_echo_n "(cached) " >&6
21322 else
21323   case $HG in
21324   [\\/]* | ?:[\\/]*)
21325   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21326   ;;
21327   *)
21328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21330 do
21331   IFS=$as_save_IFS
21332   test -z "$as_dir" && as_dir=.
21333     for ac_exec_ext in '' $ac_executable_extensions; do
21334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21335     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21337     break 2
21338   fi
21339 done
21340   done
21341 IFS=$as_save_IFS
21342 
21343   ;;
21344 esac
21345 fi
21346 HG=$ac_cv_path_HG
21347 if test -n "$HG"; then
21348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21349 $as_echo "$HG" >&6; }
21350 else
21351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21352 $as_echo "no" >&6; }
21353 fi
21354 
21355 
21356           if test "x$HG" = x; then
21357             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21358           fi
21359         else
21360           # Otherwise we believe it is a complete path. Use it as it is.
21361           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21362 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21363           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21364 $as_echo_n "checking for HG... " >&6; }
21365           if test ! -x "$tool_specified"; then
21366             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21367 $as_echo "not found" >&6; }
21368             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21369           fi
21370           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21371 $as_echo "$tool_specified" >&6; }
21372         fi
21373       fi
21374     fi
21375 
21376   fi
21377 
21378 
21379 
21380 
21381   # Publish this variable in the help.
21382 
21383 
21384   if [ -z "${STAT+x}" ]; then
21385     # The variable is not set by user, try to locate tool using the code snippet
21386     for ac_prog in stat
21387 do
21388   # Extract the first word of "$ac_prog", so it can be a program name with args.
21389 set dummy $ac_prog; ac_word=$2
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21391 $as_echo_n "checking for $ac_word... " >&6; }
21392 if ${ac_cv_path_STAT+:} false; then :
21393   $as_echo_n "(cached) " >&6
21394 else
21395   case $STAT in
21396   [\\/]* | ?:[\\/]*)
21397   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21398   ;;
21399   *)
21400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21401 for as_dir in $PATH
21402 do
21403   IFS=$as_save_IFS
21404   test -z "$as_dir" && as_dir=.
21405     for ac_exec_ext in '' $ac_executable_extensions; do
21406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21407     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21409     break 2
21410   fi
21411 done
21412   done
21413 IFS=$as_save_IFS
21414 
21415   ;;
21416 esac
21417 fi
21418 STAT=$ac_cv_path_STAT
21419 if test -n "$STAT"; then
21420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21421 $as_echo "$STAT" >&6; }
21422 else
21423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425 fi
21426 
21427 
21428   test -n "$STAT" && break
21429 done
21430 
21431   else
21432     # The variable is set, but is it from the command line or the environment?
21433 
21434     # Try to remove the string !STAT! from our list.
21435     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21436     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21437       # If it failed, the variable was not from the command line. Ignore it,
21438       # but warn the user (except for BASH, which is always set by the calling BASH).
21439       if test "xSTAT" != xBASH; then
21440         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21441 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21442       fi
21443       # Try to locate tool using the code snippet
21444       for ac_prog in stat
21445 do
21446   # Extract the first word of "$ac_prog", so it can be a program name with args.
21447 set dummy $ac_prog; ac_word=$2
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21449 $as_echo_n "checking for $ac_word... " >&6; }
21450 if ${ac_cv_path_STAT+:} false; then :
21451   $as_echo_n "(cached) " >&6
21452 else
21453   case $STAT in
21454   [\\/]* | ?:[\\/]*)
21455   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21456   ;;
21457   *)
21458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21459 for as_dir in $PATH
21460 do
21461   IFS=$as_save_IFS
21462   test -z "$as_dir" && as_dir=.
21463     for ac_exec_ext in '' $ac_executable_extensions; do
21464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21465     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21467     break 2
21468   fi
21469 done
21470   done
21471 IFS=$as_save_IFS
21472 
21473   ;;
21474 esac
21475 fi
21476 STAT=$ac_cv_path_STAT
21477 if test -n "$STAT"; then
21478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21479 $as_echo "$STAT" >&6; }
21480 else
21481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482 $as_echo "no" >&6; }
21483 fi
21484 
21485 
21486   test -n "$STAT" && break
21487 done
21488 
21489     else
21490       # If it succeeded, then it was overridden by the user. We will use it
21491       # for the tool.
21492 
21493       # First remove it from the list of overridden variables, so we can test
21494       # for unknown variables in the end.
21495       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21496 
21497       # Check if we try to supply an empty value
21498       if test "x$STAT" = x; then
21499         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21500 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21502 $as_echo_n "checking for STAT... " >&6; }
21503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21504 $as_echo "disabled" >&6; }
21505       else
21506         # Check if the provided tool contains a complete path.
21507         tool_specified="$STAT"
21508         tool_basename="${tool_specified##*/}"
21509         if test "x$tool_basename" = "x$tool_specified"; then
21510           # A command without a complete path is provided, search $PATH.
21511           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21512 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21513           # Extract the first word of "$tool_basename", so it can be a program name with args.
21514 set dummy $tool_basename; ac_word=$2
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21516 $as_echo_n "checking for $ac_word... " >&6; }
21517 if ${ac_cv_path_STAT+:} false; then :
21518   $as_echo_n "(cached) " >&6
21519 else
21520   case $STAT in
21521   [\\/]* | ?:[\\/]*)
21522   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21523   ;;
21524   *)
21525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526 for as_dir in $PATH
21527 do
21528   IFS=$as_save_IFS
21529   test -z "$as_dir" && as_dir=.
21530     for ac_exec_ext in '' $ac_executable_extensions; do
21531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21532     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21534     break 2
21535   fi
21536 done
21537   done
21538 IFS=$as_save_IFS
21539 
21540   ;;
21541 esac
21542 fi
21543 STAT=$ac_cv_path_STAT
21544 if test -n "$STAT"; then
21545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21546 $as_echo "$STAT" >&6; }
21547 else
21548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21549 $as_echo "no" >&6; }
21550 fi
21551 
21552 
21553           if test "x$STAT" = x; then
21554             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21555           fi
21556         else
21557           # Otherwise we believe it is a complete path. Use it as it is.
21558           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21559 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21560           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21561 $as_echo_n "checking for STAT... " >&6; }
21562           if test ! -x "$tool_specified"; then
21563             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21564 $as_echo "not found" >&6; }
21565             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21566           fi
21567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21568 $as_echo "$tool_specified" >&6; }
21569         fi
21570       fi
21571     fi
21572 
21573   fi
21574 
21575 
21576 
21577 
21578   # Publish this variable in the help.
21579 
21580 
21581   if [ -z "${TIME+x}" ]; then
21582     # The variable is not set by user, try to locate tool using the code snippet
21583     for ac_prog in time
21584 do
21585   # Extract the first word of "$ac_prog", so it can be a program name with args.
21586 set dummy $ac_prog; ac_word=$2
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21588 $as_echo_n "checking for $ac_word... " >&6; }
21589 if ${ac_cv_path_TIME+:} false; then :
21590   $as_echo_n "(cached) " >&6
21591 else
21592   case $TIME in
21593   [\\/]* | ?:[\\/]*)
21594   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21595   ;;
21596   *)
21597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21598 for as_dir in $PATH
21599 do
21600   IFS=$as_save_IFS
21601   test -z "$as_dir" && as_dir=.
21602     for ac_exec_ext in '' $ac_executable_extensions; do
21603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21604     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21606     break 2
21607   fi
21608 done
21609   done
21610 IFS=$as_save_IFS
21611 
21612   ;;
21613 esac
21614 fi
21615 TIME=$ac_cv_path_TIME
21616 if test -n "$TIME"; then
21617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21618 $as_echo "$TIME" >&6; }
21619 else
21620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21621 $as_echo "no" >&6; }
21622 fi
21623 
21624 
21625   test -n "$TIME" && break
21626 done
21627 
21628   else
21629     # The variable is set, but is it from the command line or the environment?
21630 
21631     # Try to remove the string !TIME! from our list.
21632     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21633     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21634       # If it failed, the variable was not from the command line. Ignore it,
21635       # but warn the user (except for BASH, which is always set by the calling BASH).
21636       if test "xTIME" != xBASH; then
21637         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21638 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21639       fi
21640       # Try to locate tool using the code snippet
21641       for ac_prog in time
21642 do
21643   # Extract the first word of "$ac_prog", so it can be a program name with args.
21644 set dummy $ac_prog; ac_word=$2
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21646 $as_echo_n "checking for $ac_word... " >&6; }
21647 if ${ac_cv_path_TIME+:} false; then :
21648   $as_echo_n "(cached) " >&6
21649 else
21650   case $TIME in
21651   [\\/]* | ?:[\\/]*)
21652   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21653   ;;
21654   *)
21655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in $PATH
21657 do
21658   IFS=$as_save_IFS
21659   test -z "$as_dir" && as_dir=.
21660     for ac_exec_ext in '' $ac_executable_extensions; do
21661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21662     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21664     break 2
21665   fi
21666 done
21667   done
21668 IFS=$as_save_IFS
21669 
21670   ;;
21671 esac
21672 fi
21673 TIME=$ac_cv_path_TIME
21674 if test -n "$TIME"; then
21675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21676 $as_echo "$TIME" >&6; }
21677 else
21678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21680 fi
21681 
21682 
21683   test -n "$TIME" && break
21684 done
21685 
21686     else
21687       # If it succeeded, then it was overridden by the user. We will use it
21688       # for the tool.
21689 
21690       # First remove it from the list of overridden variables, so we can test
21691       # for unknown variables in the end.
21692       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21693 
21694       # Check if we try to supply an empty value
21695       if test "x$TIME" = x; then
21696         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21697 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21699 $as_echo_n "checking for TIME... " >&6; }
21700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21701 $as_echo "disabled" >&6; }
21702       else
21703         # Check if the provided tool contains a complete path.
21704         tool_specified="$TIME"
21705         tool_basename="${tool_specified##*/}"
21706         if test "x$tool_basename" = "x$tool_specified"; then
21707           # A command without a complete path is provided, search $PATH.
21708           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21709 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21710           # Extract the first word of "$tool_basename", so it can be a program name with args.
21711 set dummy $tool_basename; ac_word=$2
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21713 $as_echo_n "checking for $ac_word... " >&6; }
21714 if ${ac_cv_path_TIME+:} false; then :
21715   $as_echo_n "(cached) " >&6
21716 else
21717   case $TIME in
21718   [\\/]* | ?:[\\/]*)
21719   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21720   ;;
21721   *)
21722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21723 for as_dir in $PATH
21724 do
21725   IFS=$as_save_IFS
21726   test -z "$as_dir" && as_dir=.
21727     for ac_exec_ext in '' $ac_executable_extensions; do
21728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21729     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21731     break 2
21732   fi
21733 done
21734   done
21735 IFS=$as_save_IFS
21736 
21737   ;;
21738 esac
21739 fi
21740 TIME=$ac_cv_path_TIME
21741 if test -n "$TIME"; then
21742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21743 $as_echo "$TIME" >&6; }
21744 else
21745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21746 $as_echo "no" >&6; }
21747 fi
21748 
21749 
21750           if test "x$TIME" = x; then
21751             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21752           fi
21753         else
21754           # Otherwise we believe it is a complete path. Use it as it is.
21755           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21756 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21757           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21758 $as_echo_n "checking for TIME... " >&6; }
21759           if test ! -x "$tool_specified"; then
21760             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21761 $as_echo "not found" >&6; }
21762             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21763           fi
21764           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21765 $as_echo "$tool_specified" >&6; }
21766         fi
21767       fi
21768     fi
21769 
21770   fi
21771 
21772 
21773 
21774 
21775   # Publish this variable in the help.
21776 
21777 
21778   if [ -z "${PATCH+x}" ]; then
21779     # The variable is not set by user, try to locate tool using the code snippet
21780     for ac_prog in gpatch patch
21781 do
21782   # Extract the first word of "$ac_prog", so it can be a program name with args.
21783 set dummy $ac_prog; ac_word=$2
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21785 $as_echo_n "checking for $ac_word... " >&6; }
21786 if ${ac_cv_path_PATCH+:} false; then :
21787   $as_echo_n "(cached) " >&6
21788 else
21789   case $PATCH in
21790   [\\/]* | ?:[\\/]*)
21791   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21792   ;;
21793   *)
21794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21795 for as_dir in $PATH
21796 do
21797   IFS=$as_save_IFS
21798   test -z "$as_dir" && as_dir=.
21799     for ac_exec_ext in '' $ac_executable_extensions; do
21800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21801     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21803     break 2
21804   fi
21805 done
21806   done
21807 IFS=$as_save_IFS
21808 
21809   ;;
21810 esac
21811 fi
21812 PATCH=$ac_cv_path_PATCH
21813 if test -n "$PATCH"; then
21814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21815 $as_echo "$PATCH" >&6; }
21816 else
21817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818 $as_echo "no" >&6; }
21819 fi
21820 
21821 
21822   test -n "$PATCH" && break
21823 done
21824 
21825   else
21826     # The variable is set, but is it from the command line or the environment?
21827 
21828     # Try to remove the string !PATCH! from our list.
21829     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21830     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21831       # If it failed, the variable was not from the command line. Ignore it,
21832       # but warn the user (except for BASH, which is always set by the calling BASH).
21833       if test "xPATCH" != xBASH; then
21834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21835 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21836       fi
21837       # Try to locate tool using the code snippet
21838       for ac_prog in gpatch patch
21839 do
21840   # Extract the first word of "$ac_prog", so it can be a program name with args.
21841 set dummy $ac_prog; ac_word=$2
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21843 $as_echo_n "checking for $ac_word... " >&6; }
21844 if ${ac_cv_path_PATCH+:} false; then :
21845   $as_echo_n "(cached) " >&6
21846 else
21847   case $PATCH in
21848   [\\/]* | ?:[\\/]*)
21849   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21850   ;;
21851   *)
21852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21854 do
21855   IFS=$as_save_IFS
21856   test -z "$as_dir" && as_dir=.
21857     for ac_exec_ext in '' $ac_executable_extensions; do
21858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21859     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21861     break 2
21862   fi
21863 done
21864   done
21865 IFS=$as_save_IFS
21866 
21867   ;;
21868 esac
21869 fi
21870 PATCH=$ac_cv_path_PATCH
21871 if test -n "$PATCH"; then
21872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21873 $as_echo "$PATCH" >&6; }
21874 else
21875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21876 $as_echo "no" >&6; }
21877 fi
21878 
21879 
21880   test -n "$PATCH" && break
21881 done
21882 
21883     else
21884       # If it succeeded, then it was overridden by the user. We will use it
21885       # for the tool.
21886 
21887       # First remove it from the list of overridden variables, so we can test
21888       # for unknown variables in the end.
21889       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21890 
21891       # Check if we try to supply an empty value
21892       if test "x$PATCH" = x; then
21893         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21894 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21896 $as_echo_n "checking for PATCH... " >&6; }
21897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21898 $as_echo "disabled" >&6; }
21899       else
21900         # Check if the provided tool contains a complete path.
21901         tool_specified="$PATCH"
21902         tool_basename="${tool_specified##*/}"
21903         if test "x$tool_basename" = "x$tool_specified"; then
21904           # A command without a complete path is provided, search $PATH.
21905           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21906 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21907           # Extract the first word of "$tool_basename", so it can be a program name with args.
21908 set dummy $tool_basename; ac_word=$2
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21910 $as_echo_n "checking for $ac_word... " >&6; }
21911 if ${ac_cv_path_PATCH+:} false; then :
21912   $as_echo_n "(cached) " >&6
21913 else
21914   case $PATCH in
21915   [\\/]* | ?:[\\/]*)
21916   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21917   ;;
21918   *)
21919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21920 for as_dir in $PATH
21921 do
21922   IFS=$as_save_IFS
21923   test -z "$as_dir" && as_dir=.
21924     for ac_exec_ext in '' $ac_executable_extensions; do
21925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21926     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21928     break 2
21929   fi
21930 done
21931   done
21932 IFS=$as_save_IFS
21933 
21934   ;;
21935 esac
21936 fi
21937 PATCH=$ac_cv_path_PATCH
21938 if test -n "$PATCH"; then
21939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21940 $as_echo "$PATCH" >&6; }
21941 else
21942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21943 $as_echo "no" >&6; }
21944 fi
21945 
21946 
21947           if test "x$PATCH" = x; then
21948             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21949           fi
21950         else
21951           # Otherwise we believe it is a complete path. Use it as it is.
21952           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21953 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21954           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21955 $as_echo_n "checking for PATCH... " >&6; }
21956           if test ! -x "$tool_specified"; then
21957             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21958 $as_echo "not found" >&6; }
21959             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21960           fi
21961           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21962 $as_echo "$tool_specified" >&6; }
21963         fi
21964       fi
21965     fi
21966 
21967   fi
21968 
21969 
21970   # Check if it's GNU time
21971   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
21972   if test "x$IS_GNU_TIME" != x; then
21973     IS_GNU_TIME=yes
21974   else
21975     IS_GNU_TIME=no
21976   fi
21977 
21978 
21979   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
21980 
21981 
21982 
21983   # Publish this variable in the help.
21984 
21985 
21986   if [ -z "${DSYMUTIL+x}" ]; then
21987     # The variable is not set by user, try to locate tool using the code snippet
21988     for ac_prog in dsymutil
21989 do
21990   # Extract the first word of "$ac_prog", so it can be a program name with args.
21991 set dummy $ac_prog; ac_word=$2
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21993 $as_echo_n "checking for $ac_word... " >&6; }
21994 if ${ac_cv_path_DSYMUTIL+:} false; then :
21995   $as_echo_n "(cached) " >&6
21996 else
21997   case $DSYMUTIL in
21998   [\\/]* | ?:[\\/]*)
21999   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22000   ;;
22001   *)
22002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22003 for as_dir in $PATH
22004 do
22005   IFS=$as_save_IFS
22006   test -z "$as_dir" && as_dir=.
22007     for ac_exec_ext in '' $ac_executable_extensions; do
22008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22009     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22011     break 2
22012   fi
22013 done
22014   done
22015 IFS=$as_save_IFS
22016 
22017   ;;
22018 esac
22019 fi
22020 DSYMUTIL=$ac_cv_path_DSYMUTIL
22021 if test -n "$DSYMUTIL"; then
22022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22023 $as_echo "$DSYMUTIL" >&6; }
22024 else
22025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22026 $as_echo "no" >&6; }
22027 fi
22028 
22029 
22030   test -n "$DSYMUTIL" && break
22031 done
22032 
22033   else
22034     # The variable is set, but is it from the command line or the environment?
22035 
22036     # Try to remove the string !DSYMUTIL! from our list.
22037     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22038     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22039       # If it failed, the variable was not from the command line. Ignore it,
22040       # but warn the user (except for BASH, which is always set by the calling BASH).
22041       if test "xDSYMUTIL" != xBASH; then
22042         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22043 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22044       fi
22045       # Try to locate tool using the code snippet
22046       for ac_prog in dsymutil
22047 do
22048   # Extract the first word of "$ac_prog", so it can be a program name with args.
22049 set dummy $ac_prog; ac_word=$2
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22051 $as_echo_n "checking for $ac_word... " >&6; }
22052 if ${ac_cv_path_DSYMUTIL+:} false; then :
22053   $as_echo_n "(cached) " >&6
22054 else
22055   case $DSYMUTIL in
22056   [\\/]* | ?:[\\/]*)
22057   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22058   ;;
22059   *)
22060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22061 for as_dir in $PATH
22062 do
22063   IFS=$as_save_IFS
22064   test -z "$as_dir" && as_dir=.
22065     for ac_exec_ext in '' $ac_executable_extensions; do
22066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22067     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22069     break 2
22070   fi
22071 done
22072   done
22073 IFS=$as_save_IFS
22074 
22075   ;;
22076 esac
22077 fi
22078 DSYMUTIL=$ac_cv_path_DSYMUTIL
22079 if test -n "$DSYMUTIL"; then
22080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22081 $as_echo "$DSYMUTIL" >&6; }
22082 else
22083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22084 $as_echo "no" >&6; }
22085 fi
22086 
22087 
22088   test -n "$DSYMUTIL" && break
22089 done
22090 
22091     else
22092       # If it succeeded, then it was overridden by the user. We will use it
22093       # for the tool.
22094 
22095       # First remove it from the list of overridden variables, so we can test
22096       # for unknown variables in the end.
22097       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22098 
22099       # Check if we try to supply an empty value
22100       if test "x$DSYMUTIL" = x; then
22101         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22102 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22104 $as_echo_n "checking for DSYMUTIL... " >&6; }
22105         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22106 $as_echo "disabled" >&6; }
22107       else
22108         # Check if the provided tool contains a complete path.
22109         tool_specified="$DSYMUTIL"
22110         tool_basename="${tool_specified##*/}"
22111         if test "x$tool_basename" = "x$tool_specified"; then
22112           # A command without a complete path is provided, search $PATH.
22113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22114 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22115           # Extract the first word of "$tool_basename", so it can be a program name with args.
22116 set dummy $tool_basename; ac_word=$2
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22118 $as_echo_n "checking for $ac_word... " >&6; }
22119 if ${ac_cv_path_DSYMUTIL+:} false; then :
22120   $as_echo_n "(cached) " >&6
22121 else
22122   case $DSYMUTIL in
22123   [\\/]* | ?:[\\/]*)
22124   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22125   ;;
22126   *)
22127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22128 for as_dir in $PATH
22129 do
22130   IFS=$as_save_IFS
22131   test -z "$as_dir" && as_dir=.
22132     for ac_exec_ext in '' $ac_executable_extensions; do
22133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22134     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22136     break 2
22137   fi
22138 done
22139   done
22140 IFS=$as_save_IFS
22141 
22142   ;;
22143 esac
22144 fi
22145 DSYMUTIL=$ac_cv_path_DSYMUTIL
22146 if test -n "$DSYMUTIL"; then
22147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22148 $as_echo "$DSYMUTIL" >&6; }
22149 else
22150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22151 $as_echo "no" >&6; }
22152 fi
22153 
22154 
22155           if test "x$DSYMUTIL" = x; then
22156             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22157           fi
22158         else
22159           # Otherwise we believe it is a complete path. Use it as it is.
22160           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22161 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22162           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22163 $as_echo_n "checking for DSYMUTIL... " >&6; }
22164           if test ! -x "$tool_specified"; then
22165             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22166 $as_echo "not found" >&6; }
22167             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22168           fi
22169           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22170 $as_echo "$tool_specified" >&6; }
22171         fi
22172       fi
22173     fi
22174 
22175   fi
22176 
22177 
22178 
22179   if test "x$DSYMUTIL" = x; then
22180     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22181   fi
22182 
22183 
22184 
22185 
22186 
22187   # Publish this variable in the help.
22188 
22189 
22190   if [ -z "${XATTR+x}" ]; then
22191     # The variable is not set by user, try to locate tool using the code snippet
22192     for ac_prog in xattr
22193 do
22194   # Extract the first word of "$ac_prog", so it can be a program name with args.
22195 set dummy $ac_prog; ac_word=$2
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22197 $as_echo_n "checking for $ac_word... " >&6; }
22198 if ${ac_cv_path_XATTR+:} false; then :
22199   $as_echo_n "(cached) " >&6
22200 else
22201   case $XATTR in
22202   [\\/]* | ?:[\\/]*)
22203   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22204   ;;
22205   *)
22206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22207 for as_dir in $PATH
22208 do
22209   IFS=$as_save_IFS
22210   test -z "$as_dir" && as_dir=.
22211     for ac_exec_ext in '' $ac_executable_extensions; do
22212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22213     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22215     break 2
22216   fi
22217 done
22218   done
22219 IFS=$as_save_IFS
22220 
22221   ;;
22222 esac
22223 fi
22224 XATTR=$ac_cv_path_XATTR
22225 if test -n "$XATTR"; then
22226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22227 $as_echo "$XATTR" >&6; }
22228 else
22229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22230 $as_echo "no" >&6; }
22231 fi
22232 
22233 
22234   test -n "$XATTR" && break
22235 done
22236 
22237   else
22238     # The variable is set, but is it from the command line or the environment?
22239 
22240     # Try to remove the string !XATTR! from our list.
22241     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22242     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22243       # If it failed, the variable was not from the command line. Ignore it,
22244       # but warn the user (except for BASH, which is always set by the calling BASH).
22245       if test "xXATTR" != xBASH; then
22246         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22247 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22248       fi
22249       # Try to locate tool using the code snippet
22250       for ac_prog in xattr
22251 do
22252   # Extract the first word of "$ac_prog", so it can be a program name with args.
22253 set dummy $ac_prog; ac_word=$2
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22255 $as_echo_n "checking for $ac_word... " >&6; }
22256 if ${ac_cv_path_XATTR+:} false; then :
22257   $as_echo_n "(cached) " >&6
22258 else
22259   case $XATTR in
22260   [\\/]* | ?:[\\/]*)
22261   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22262   ;;
22263   *)
22264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22265 for as_dir in $PATH
22266 do
22267   IFS=$as_save_IFS
22268   test -z "$as_dir" && as_dir=.
22269     for ac_exec_ext in '' $ac_executable_extensions; do
22270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22271     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22273     break 2
22274   fi
22275 done
22276   done
22277 IFS=$as_save_IFS
22278 
22279   ;;
22280 esac
22281 fi
22282 XATTR=$ac_cv_path_XATTR
22283 if test -n "$XATTR"; then
22284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22285 $as_echo "$XATTR" >&6; }
22286 else
22287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22288 $as_echo "no" >&6; }
22289 fi
22290 
22291 
22292   test -n "$XATTR" && break
22293 done
22294 
22295     else
22296       # If it succeeded, then it was overridden by the user. We will use it
22297       # for the tool.
22298 
22299       # First remove it from the list of overridden variables, so we can test
22300       # for unknown variables in the end.
22301       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22302 
22303       # Check if we try to supply an empty value
22304       if test "x$XATTR" = x; then
22305         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22306 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22308 $as_echo_n "checking for XATTR... " >&6; }
22309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22310 $as_echo "disabled" >&6; }
22311       else
22312         # Check if the provided tool contains a complete path.
22313         tool_specified="$XATTR"
22314         tool_basename="${tool_specified##*/}"
22315         if test "x$tool_basename" = "x$tool_specified"; then
22316           # A command without a complete path is provided, search $PATH.
22317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22318 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22319           # Extract the first word of "$tool_basename", so it can be a program name with args.
22320 set dummy $tool_basename; ac_word=$2
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22322 $as_echo_n "checking for $ac_word... " >&6; }
22323 if ${ac_cv_path_XATTR+:} false; then :
22324   $as_echo_n "(cached) " >&6
22325 else
22326   case $XATTR in
22327   [\\/]* | ?:[\\/]*)
22328   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22329   ;;
22330   *)
22331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22332 for as_dir in $PATH
22333 do
22334   IFS=$as_save_IFS
22335   test -z "$as_dir" && as_dir=.
22336     for ac_exec_ext in '' $ac_executable_extensions; do
22337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22338     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22340     break 2
22341   fi
22342 done
22343   done
22344 IFS=$as_save_IFS
22345 
22346   ;;
22347 esac
22348 fi
22349 XATTR=$ac_cv_path_XATTR
22350 if test -n "$XATTR"; then
22351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22352 $as_echo "$XATTR" >&6; }
22353 else
22354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22355 $as_echo "no" >&6; }
22356 fi
22357 
22358 
22359           if test "x$XATTR" = x; then
22360             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22361           fi
22362         else
22363           # Otherwise we believe it is a complete path. Use it as it is.
22364           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22365 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22366           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22367 $as_echo_n "checking for XATTR... " >&6; }
22368           if test ! -x "$tool_specified"; then
22369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22370 $as_echo "not found" >&6; }
22371             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22372           fi
22373           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22374 $as_echo "$tool_specified" >&6; }
22375         fi
22376       fi
22377     fi
22378 
22379   fi
22380 
22381 
22382 
22383   if test "x$XATTR" = x; then
22384     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22385   fi
22386 
22387 
22388 
22389 
22390   # Publish this variable in the help.
22391 
22392 
22393   if [ -z "${CODESIGN+x}" ]; then
22394     # The variable is not set by user, try to locate tool using the code snippet
22395     for ac_prog in codesign
22396 do
22397   # Extract the first word of "$ac_prog", so it can be a program name with args.
22398 set dummy $ac_prog; ac_word=$2
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22400 $as_echo_n "checking for $ac_word... " >&6; }
22401 if ${ac_cv_path_CODESIGN+:} false; then :
22402   $as_echo_n "(cached) " >&6
22403 else
22404   case $CODESIGN in
22405   [\\/]* | ?:[\\/]*)
22406   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22407   ;;
22408   *)
22409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22410 for as_dir in $PATH
22411 do
22412   IFS=$as_save_IFS
22413   test -z "$as_dir" && as_dir=.
22414     for ac_exec_ext in '' $ac_executable_extensions; do
22415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22416     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22418     break 2
22419   fi
22420 done
22421   done
22422 IFS=$as_save_IFS
22423 
22424   ;;
22425 esac
22426 fi
22427 CODESIGN=$ac_cv_path_CODESIGN
22428 if test -n "$CODESIGN"; then
22429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22430 $as_echo "$CODESIGN" >&6; }
22431 else
22432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22433 $as_echo "no" >&6; }
22434 fi
22435 
22436 
22437   test -n "$CODESIGN" && break
22438 done
22439 
22440   else
22441     # The variable is set, but is it from the command line or the environment?
22442 
22443     # Try to remove the string !CODESIGN! from our list.
22444     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22445     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22446       # If it failed, the variable was not from the command line. Ignore it,
22447       # but warn the user (except for BASH, which is always set by the calling BASH).
22448       if test "xCODESIGN" != xBASH; then
22449         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22450 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22451       fi
22452       # Try to locate tool using the code snippet
22453       for ac_prog in codesign
22454 do
22455   # Extract the first word of "$ac_prog", so it can be a program name with args.
22456 set dummy $ac_prog; ac_word=$2
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22458 $as_echo_n "checking for $ac_word... " >&6; }
22459 if ${ac_cv_path_CODESIGN+:} false; then :
22460   $as_echo_n "(cached) " >&6
22461 else
22462   case $CODESIGN in
22463   [\\/]* | ?:[\\/]*)
22464   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22465   ;;
22466   *)
22467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22468 for as_dir in $PATH
22469 do
22470   IFS=$as_save_IFS
22471   test -z "$as_dir" && as_dir=.
22472     for ac_exec_ext in '' $ac_executable_extensions; do
22473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22474     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22476     break 2
22477   fi
22478 done
22479   done
22480 IFS=$as_save_IFS
22481 
22482   ;;
22483 esac
22484 fi
22485 CODESIGN=$ac_cv_path_CODESIGN
22486 if test -n "$CODESIGN"; then
22487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22488 $as_echo "$CODESIGN" >&6; }
22489 else
22490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22491 $as_echo "no" >&6; }
22492 fi
22493 
22494 
22495   test -n "$CODESIGN" && break
22496 done
22497 
22498     else
22499       # If it succeeded, then it was overridden by the user. We will use it
22500       # for the tool.
22501 
22502       # First remove it from the list of overridden variables, so we can test
22503       # for unknown variables in the end.
22504       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22505 
22506       # Check if we try to supply an empty value
22507       if test "x$CODESIGN" = x; then
22508         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22509 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22511 $as_echo_n "checking for CODESIGN... " >&6; }
22512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22513 $as_echo "disabled" >&6; }
22514       else
22515         # Check if the provided tool contains a complete path.
22516         tool_specified="$CODESIGN"
22517         tool_basename="${tool_specified##*/}"
22518         if test "x$tool_basename" = "x$tool_specified"; then
22519           # A command without a complete path is provided, search $PATH.
22520           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22521 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22522           # Extract the first word of "$tool_basename", so it can be a program name with args.
22523 set dummy $tool_basename; ac_word=$2
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22525 $as_echo_n "checking for $ac_word... " >&6; }
22526 if ${ac_cv_path_CODESIGN+:} false; then :
22527   $as_echo_n "(cached) " >&6
22528 else
22529   case $CODESIGN in
22530   [\\/]* | ?:[\\/]*)
22531   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22532   ;;
22533   *)
22534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 for as_dir in $PATH
22536 do
22537   IFS=$as_save_IFS
22538   test -z "$as_dir" && as_dir=.
22539     for ac_exec_ext in '' $ac_executable_extensions; do
22540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22541     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543     break 2
22544   fi
22545 done
22546   done
22547 IFS=$as_save_IFS
22548 
22549   ;;
22550 esac
22551 fi
22552 CODESIGN=$ac_cv_path_CODESIGN
22553 if test -n "$CODESIGN"; then
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22555 $as_echo "$CODESIGN" >&6; }
22556 else
22557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22558 $as_echo "no" >&6; }
22559 fi
22560 
22561 
22562           if test "x$CODESIGN" = x; then
22563             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22564           fi
22565         else
22566           # Otherwise we believe it is a complete path. Use it as it is.
22567           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22568 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22569           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22570 $as_echo_n "checking for CODESIGN... " >&6; }
22571           if test ! -x "$tool_specified"; then
22572             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22573 $as_echo "not found" >&6; }
22574             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22575           fi
22576           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22577 $as_echo "$tool_specified" >&6; }
22578         fi
22579       fi
22580     fi
22581 
22582   fi
22583 
22584 
22585     if test "x$CODESIGN" != "x"; then
22586       # Verify that the openjdk_codesign certificate is present
22587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22588 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22589       rm -f codesign-testfile
22590       touch codesign-testfile
22591       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22592       rm -f codesign-testfile
22593       if test "x$CODESIGN" = x; then
22594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22595 $as_echo "no" >&6; }
22596       else
22597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22598 $as_echo "yes" >&6; }
22599       fi
22600     fi
22601 
22602 
22603 
22604   # Publish this variable in the help.
22605 
22606 
22607   if [ -z "${SETFILE+x}" ]; then
22608     # The variable is not set by user, try to locate tool using the code snippet
22609     for ac_prog in SetFile
22610 do
22611   # Extract the first word of "$ac_prog", so it can be a program name with args.
22612 set dummy $ac_prog; ac_word=$2
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22614 $as_echo_n "checking for $ac_word... " >&6; }
22615 if ${ac_cv_path_SETFILE+:} false; then :
22616   $as_echo_n "(cached) " >&6
22617 else
22618   case $SETFILE in
22619   [\\/]* | ?:[\\/]*)
22620   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22621   ;;
22622   *)
22623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22624 for as_dir in $PATH
22625 do
22626   IFS=$as_save_IFS
22627   test -z "$as_dir" && as_dir=.
22628     for ac_exec_ext in '' $ac_executable_extensions; do
22629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22630     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22632     break 2
22633   fi
22634 done
22635   done
22636 IFS=$as_save_IFS
22637 
22638   ;;
22639 esac
22640 fi
22641 SETFILE=$ac_cv_path_SETFILE
22642 if test -n "$SETFILE"; then
22643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22644 $as_echo "$SETFILE" >&6; }
22645 else
22646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22647 $as_echo "no" >&6; }
22648 fi
22649 
22650 
22651   test -n "$SETFILE" && break
22652 done
22653 
22654   else
22655     # The variable is set, but is it from the command line or the environment?
22656 
22657     # Try to remove the string !SETFILE! from our list.
22658     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22659     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22660       # If it failed, the variable was not from the command line. Ignore it,
22661       # but warn the user (except for BASH, which is always set by the calling BASH).
22662       if test "xSETFILE" != xBASH; then
22663         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22664 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22665       fi
22666       # Try to locate tool using the code snippet
22667       for ac_prog in SetFile
22668 do
22669   # Extract the first word of "$ac_prog", so it can be a program name with args.
22670 set dummy $ac_prog; ac_word=$2
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22672 $as_echo_n "checking for $ac_word... " >&6; }
22673 if ${ac_cv_path_SETFILE+:} false; then :
22674   $as_echo_n "(cached) " >&6
22675 else
22676   case $SETFILE in
22677   [\\/]* | ?:[\\/]*)
22678   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22679   ;;
22680   *)
22681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22682 for as_dir in $PATH
22683 do
22684   IFS=$as_save_IFS
22685   test -z "$as_dir" && as_dir=.
22686     for ac_exec_ext in '' $ac_executable_extensions; do
22687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22688     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22690     break 2
22691   fi
22692 done
22693   done
22694 IFS=$as_save_IFS
22695 
22696   ;;
22697 esac
22698 fi
22699 SETFILE=$ac_cv_path_SETFILE
22700 if test -n "$SETFILE"; then
22701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22702 $as_echo "$SETFILE" >&6; }
22703 else
22704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22705 $as_echo "no" >&6; }
22706 fi
22707 
22708 
22709   test -n "$SETFILE" && break
22710 done
22711 
22712     else
22713       # If it succeeded, then it was overridden by the user. We will use it
22714       # for the tool.
22715 
22716       # First remove it from the list of overridden variables, so we can test
22717       # for unknown variables in the end.
22718       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22719 
22720       # Check if we try to supply an empty value
22721       if test "x$SETFILE" = x; then
22722         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22723 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22724         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22725 $as_echo_n "checking for SETFILE... " >&6; }
22726         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22727 $as_echo "disabled" >&6; }
22728       else
22729         # Check if the provided tool contains a complete path.
22730         tool_specified="$SETFILE"
22731         tool_basename="${tool_specified##*/}"
22732         if test "x$tool_basename" = "x$tool_specified"; then
22733           # A command without a complete path is provided, search $PATH.
22734           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22735 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22736           # Extract the first word of "$tool_basename", so it can be a program name with args.
22737 set dummy $tool_basename; ac_word=$2
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22739 $as_echo_n "checking for $ac_word... " >&6; }
22740 if ${ac_cv_path_SETFILE+:} false; then :
22741   $as_echo_n "(cached) " >&6
22742 else
22743   case $SETFILE in
22744   [\\/]* | ?:[\\/]*)
22745   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22746   ;;
22747   *)
22748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22749 for as_dir in $PATH
22750 do
22751   IFS=$as_save_IFS
22752   test -z "$as_dir" && as_dir=.
22753     for ac_exec_ext in '' $ac_executable_extensions; do
22754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22755     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22757     break 2
22758   fi
22759 done
22760   done
22761 IFS=$as_save_IFS
22762 
22763   ;;
22764 esac
22765 fi
22766 SETFILE=$ac_cv_path_SETFILE
22767 if test -n "$SETFILE"; then
22768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22769 $as_echo "$SETFILE" >&6; }
22770 else
22771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772 $as_echo "no" >&6; }
22773 fi
22774 
22775 
22776           if test "x$SETFILE" = x; then
22777             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22778           fi
22779         else
22780           # Otherwise we believe it is a complete path. Use it as it is.
22781           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22782 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22783           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22784 $as_echo_n "checking for SETFILE... " >&6; }
22785           if test ! -x "$tool_specified"; then
22786             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22787 $as_echo "not found" >&6; }
22788             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22789           fi
22790           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22791 $as_echo "$tool_specified" >&6; }
22792         fi
22793       fi
22794     fi
22795 
22796   fi
22797 
22798 
22799 
22800   if test "x$SETFILE" = x; then
22801     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22802   fi
22803 
22804 
22805   fi
22806 
22807 
22808   # Test if bash supports pipefail.
22809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22810 $as_echo_n "checking if bash supports pipefail... " >&6; }
22811   if ${BASH} -c 'set -o pipefail'; then
22812     BASH_ARGS="$BASH_ARGS -o pipefail"
22813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814 $as_echo "yes" >&6; }
22815   else
22816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22817 $as_echo "no" >&6; }
22818   fi
22819 
22820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22821 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22822   if ${BASH} -e -c 'true'; then
22823     BASH_ARGS="$BASH_ARGS -e"
22824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22825 $as_echo "yes" >&6; }
22826   else
22827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828 $as_echo "no" >&6; }
22829   fi
22830 
22831 
22832 
22833 
22834 # Check if pkg-config is available.
22835 
22836 
22837 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22838         if test -n "$ac_tool_prefix"; then
22839   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22840 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22842 $as_echo_n "checking for $ac_word... " >&6; }
22843 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22844   $as_echo_n "(cached) " >&6
22845 else
22846   case $PKG_CONFIG in
22847   [\\/]* | ?:[\\/]*)
22848   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22849   ;;
22850   *)
22851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22852 for as_dir in $PATH
22853 do
22854   IFS=$as_save_IFS
22855   test -z "$as_dir" && as_dir=.
22856     for ac_exec_ext in '' $ac_executable_extensions; do
22857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22858     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22860     break 2
22861   fi
22862 done
22863   done
22864 IFS=$as_save_IFS
22865 
22866   ;;
22867 esac
22868 fi
22869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22870 if test -n "$PKG_CONFIG"; then
22871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22872 $as_echo "$PKG_CONFIG" >&6; }
22873 else
22874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875 $as_echo "no" >&6; }
22876 fi
22877 
22878 
22879 fi
22880 if test -z "$ac_cv_path_PKG_CONFIG"; then
22881   ac_pt_PKG_CONFIG=$PKG_CONFIG
22882   # Extract the first word of "pkg-config", so it can be a program name with args.
22883 set dummy pkg-config; ac_word=$2
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22885 $as_echo_n "checking for $ac_word... " >&6; }
22886 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22887   $as_echo_n "(cached) " >&6
22888 else
22889   case $ac_pt_PKG_CONFIG in
22890   [\\/]* | ?:[\\/]*)
22891   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22892   ;;
22893   *)
22894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22895 for as_dir in $PATH
22896 do
22897   IFS=$as_save_IFS
22898   test -z "$as_dir" && as_dir=.
22899     for ac_exec_ext in '' $ac_executable_extensions; do
22900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22901     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22903     break 2
22904   fi
22905 done
22906   done
22907 IFS=$as_save_IFS
22908 
22909   ;;
22910 esac
22911 fi
22912 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22913 if test -n "$ac_pt_PKG_CONFIG"; then
22914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22915 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22916 else
22917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22918 $as_echo "no" >&6; }
22919 fi
22920 
22921   if test "x$ac_pt_PKG_CONFIG" = x; then
22922     PKG_CONFIG=""
22923   else
22924     case $cross_compiling:$ac_tool_warned in
22925 yes:)
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22928 ac_tool_warned=yes ;;
22929 esac
22930     PKG_CONFIG=$ac_pt_PKG_CONFIG
22931   fi
22932 else
22933   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22934 fi
22935 
22936 fi
22937 if test -n "$PKG_CONFIG"; then
22938         _pkg_min_version=0.9.0
22939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22940 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22941         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22942                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943 $as_echo "yes" >&6; }
22944         else
22945                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22946 $as_echo "no" >&6; }
22947                 PKG_CONFIG=""
22948         fi
22949 
22950 fi
22951 
22952 # After basic tools have been setup, we can check build os specific details.
22953 
22954   ###############################################################################
22955 
22956   # Note that this is the build platform OS version!
22957 
22958   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22959   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22960   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22961   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22962 
22963 
22964 
22965 
22966 
22967 ###############################################################################
22968 #
22969 # Determine OpenJDK variants, options and version numbers.
22970 #
22971 ###############################################################################
22972 
22973 # We need build & target for this.
22974 
22975 
22976   ###############################################################################
22977   #
22978   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
22979   # We always build headless support.
22980   #
22981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
22982 $as_echo_n "checking headful support... " >&6; }
22983   # Check whether --enable-headful was given.
22984 if test "${enable_headful+set}" = set; then :
22985   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
22986 else
22987   SUPPORT_HEADFUL=yes
22988 fi
22989 
22990 
22991   SUPPORT_HEADLESS=yes
22992   BUILD_HEADLESS="BUILD_HEADLESS:=true"
22993 
22994   if test "x$SUPPORT_HEADFUL" = xyes; then
22995     # We are building both headful and headless.
22996     headful_msg="include support for both headful and headless"
22997   fi
22998 
22999   if test "x$SUPPORT_HEADFUL" = xno; then
23000     # Thus we are building headless only.
23001     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23002     headful_msg="headless only"
23003   fi
23004 
23005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23006 $as_echo "$headful_msg" >&6; }
23007 
23008 
23009 
23010 
23011 
23012   # Control wether Hotspot runs Queens test after build.
23013   # Check whether --enable-hotspot-test-in-build was given.
23014 if test "${enable_hotspot_test_in_build+set}" = set; then :
23015   enableval=$enable_hotspot_test_in_build;
23016 else
23017   enable_hotspot_test_in_build=no
23018 fi
23019 
23020   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23021     TEST_IN_BUILD=true
23022   else
23023     TEST_IN_BUILD=false
23024   fi
23025 
23026 
23027   ###############################################################################
23028   #
23029   # Choose cacerts source file
23030   #
23031 
23032 # Check whether --with-cacerts-file was given.
23033 if test "${with_cacerts_file+set}" = set; then :
23034   withval=$with_cacerts_file;
23035 fi
23036 
23037   if test "x$with_cacerts_file" != x; then
23038     CACERTS_FILE=$with_cacerts_file
23039   fi
23040 
23041 
23042   ###############################################################################
23043   #
23044   # Enable or disable unlimited crypto
23045   #
23046   # Check whether --enable-unlimited-crypto was given.
23047 if test "${enable_unlimited_crypto+set}" = set; then :
23048   enableval=$enable_unlimited_crypto;
23049 else
23050   enable_unlimited_crypto=no
23051 fi
23052 
23053   if test "x$enable_unlimited_crypto" = "xyes"; then
23054     UNLIMITED_CRYPTO=true
23055   else
23056     UNLIMITED_CRYPTO=false
23057   fi
23058 
23059 
23060   ###############################################################################
23061   #
23062   # Enable or disable the elliptic curve crypto implementation
23063   #
23064 
23065 
23066   ###############################################################################
23067   #
23068   # Compress jars
23069   #
23070   COMPRESS_JARS=false
23071 
23072 
23073 
23074 
23075   # Source the version numbers
23076   . $AUTOCONF_DIR/version-numbers
23077 
23078   # Get the settings from parameters
23079 
23080 # Check whether --with-milestone was given.
23081 if test "${with_milestone+set}" = set; then :
23082   withval=$with_milestone;
23083 fi
23084 
23085   if test "x$with_milestone" = xyes; then
23086     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23087   elif test "x$with_milestone" != x; then
23088     MILESTONE="$with_milestone"
23089   fi
23090   if test "x$MILESTONE" = x; then
23091     MILESTONE=internal
23092   fi
23093 
23094 
23095 # Check whether --with-update-version was given.
23096 if test "${with_update_version+set}" = set; then :
23097   withval=$with_update_version;
23098 fi
23099 
23100   if test "x$with_update_version" = xyes; then
23101     as_fn_error $? "Update version must have a value" "$LINENO" 5
23102   elif test "x$with_update_version" != x; then
23103     JDK_UPDATE_VERSION="$with_update_version"
23104     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23105     # to a bug in expr (which reduces it to just X). To work around this, we
23106     # always add a 0 to one digit update versions.
23107     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23108       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23109     fi
23110   fi
23111 
23112 
23113 # Check whether --with-user-release-suffix was given.
23114 if test "${with_user_release_suffix+set}" = set; then :
23115   withval=$with_user_release_suffix;
23116 fi
23117 
23118   if test "x$with_user_release_suffix" = xyes; then
23119     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23120   elif test "x$with_user_release_suffix" != x; then
23121     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23122   fi
23123 
23124 
23125 # Check whether --with-build-number was given.
23126 if test "${with_build_number+set}" = set; then :
23127   withval=$with_build_number;
23128 fi
23129 
23130   if test "x$with_build_number" = xyes; then
23131     as_fn_error $? "Build number must have a value" "$LINENO" 5
23132   elif test "x$with_build_number" != x; then
23133     JDK_BUILD_NUMBER="$with_build_number"
23134   fi
23135   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23136   if test "x$JDK_BUILD_NUMBER" = x; then
23137     JDK_BUILD_NUMBER=b00
23138     if test "x$USER_RELEASE_SUFFIX" = x; then
23139       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23140       # Avoid [:alnum:] since it depends on the locale.
23141       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23142       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23143     fi
23144   fi
23145 
23146   # Now set the JDK version, milestone, build number etc.
23147 
23148 
23149 
23150 
23151 
23152 
23153 
23154 
23155 
23156 
23157 
23158 
23159 
23160 
23161 
23162 
23163 # Check whether --with-copyright-year was given.
23164 if test "${with_copyright_year+set}" = set; then :
23165   withval=$with_copyright_year;
23166 fi
23167 
23168   if test "x$with_copyright_year" = xyes; then
23169     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23170   elif test "x$with_copyright_year" != x; then
23171     COPYRIGHT_YEAR="$with_copyright_year"
23172   else
23173     COPYRIGHT_YEAR=`date +'%Y'`
23174   fi
23175 
23176 
23177   if test "x$JDK_UPDATE_VERSION" != x; then
23178     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23179   else
23180     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23181   fi
23182 
23183 
23184   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23185 
23186 
23187 
23188 ###############################################################################
23189 #
23190 # Setup BootJDK, used to bootstrap the build.
23191 #
23192 ###############################################################################
23193 
23194 
23195   BOOT_JDK_FOUND=no
23196 
23197 # Check whether --with-boot-jdk was given.
23198 if test "${with_boot_jdk+set}" = set; then :
23199   withval=$with_boot_jdk;
23200 fi
23201 
23202 
23203   # We look for the Boot JDK through various means, going from more certain to
23204   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23205   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23206   # must check if this is indeed valid; otherwise we'll continue looking.
23207 
23208   # Test: Is bootjdk explicitely set by command line arguments?
23209 
23210   if test "x$BOOT_JDK_FOUND" = xno; then
23211     # Now execute the test
23212 
23213   if test "x$with_boot_jdk" != x; then
23214     BOOT_JDK=$with_boot_jdk
23215     BOOT_JDK_FOUND=maybe
23216     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23217 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23218   fi
23219 
23220 
23221     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23222     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23223       # Do we have a bin/java?
23224       if test ! -x "$BOOT_JDK/bin/java"; then
23225         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23226 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23227         BOOT_JDK_FOUND=no
23228       else
23229         # Do we have a bin/javac?
23230         if test ! -x "$BOOT_JDK/bin/javac"; then
23231           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23233           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23234 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23235           BOOT_JDK_FOUND=no
23236         else
23237           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23238           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23239 
23240           # Extra M4 quote needed to protect [] in grep expression.
23241           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23242           if test "x$FOUND_CORRECT_VERSION" = x; then
23243             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23244 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23245             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23246 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23247             BOOT_JDK_FOUND=no
23248           else
23249             # We're done! :-)
23250             BOOT_JDK_FOUND=yes
23251 
23252   # Only process if variable expands to non-empty
23253 
23254   if test "x$BOOT_JDK" != x; then
23255     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23256 
23257   # Input might be given as Windows format, start by converting to
23258   # unix format.
23259   path="$BOOT_JDK"
23260   new_path=`$CYGPATH -u "$path"`
23261 
23262   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23263   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23264   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23265   # "foo.exe" is OK but "foo" is an error.
23266   #
23267   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23268   # It is also a way to make sure we got the proper file name for the real test later on.
23269   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23270   if test "x$test_shortpath" = x; then
23271     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23272 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23273     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23274   fi
23275 
23276   # Call helper function which possibly converts this using DOS-style short mode.
23277   # If so, the updated path is stored in $new_path.
23278 
23279   input_path="$new_path"
23280   # Check if we need to convert this using DOS-style short mode. If the path
23281   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23282   # take no chances and rewrite it.
23283   # Note: m4 eats our [], so we need to use [ and ] instead.
23284   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23285   if test "x$has_forbidden_chars" != x; then
23286     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23287     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23288     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23289     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23290       # Going to short mode and back again did indeed matter. Since short mode is
23291       # case insensitive, let's make it lowercase to improve readability.
23292       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23293       # Now convert it back to Unix-style (cygpath)
23294       input_path=`$CYGPATH -u "$shortmode_path"`
23295       new_path="$input_path"
23296     fi
23297   fi
23298 
23299   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23300   if test "x$test_cygdrive_prefix" = x; then
23301     # As a simple fix, exclude /usr/bin since it's not a real path.
23302     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23303       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23304       # a path prefixed by /cygdrive for fixpath to work.
23305       new_path="$CYGWIN_ROOT_PATH$input_path"
23306     fi
23307   fi
23308 
23309 
23310   if test "x$path" != "x$new_path"; then
23311     BOOT_JDK="$new_path"
23312     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23313 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23314   fi
23315 
23316     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23317 
23318   path="$BOOT_JDK"
23319   has_colon=`$ECHO $path | $GREP ^.:`
23320   new_path="$path"
23321   if test "x$has_colon" = x; then
23322     # Not in mixed or Windows style, start by that.
23323     new_path=`cmd //c echo $path`
23324   fi
23325 
23326 
23327   input_path="$new_path"
23328   # Check if we need to convert this using DOS-style short mode. If the path
23329   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23330   # take no chances and rewrite it.
23331   # Note: m4 eats our [], so we need to use [ and ] instead.
23332   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23333   if test "x$has_forbidden_chars" != x; then
23334     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23335     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23336   fi
23337 
23338 
23339   windows_path="$new_path"
23340   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23341     unix_path=`$CYGPATH -u "$windows_path"`
23342     new_path="$unix_path"
23343   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23344     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23345     new_path="$unix_path"
23346   fi
23347 
23348   if test "x$path" != "x$new_path"; then
23349     BOOT_JDK="$new_path"
23350     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23351 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23352   fi
23353 
23354   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23355   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23356 
23357     else
23358       # We're on a unix platform. Hooray! :)
23359       path="$BOOT_JDK"
23360       has_space=`$ECHO "$path" | $GREP " "`
23361       if test "x$has_space" != x; then
23362         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23363 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23364         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23365       fi
23366 
23367       # Use eval to expand a potential ~
23368       eval path="$path"
23369       if test ! -f "$path" && test ! -d "$path"; then
23370         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23371       fi
23372 
23373       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23374     fi
23375   fi
23376 
23377             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23378 $as_echo_n "checking for Boot JDK... " >&6; }
23379             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23380 $as_echo "$BOOT_JDK" >&6; }
23381             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23382 $as_echo_n "checking Boot JDK version... " >&6; }
23383             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23385 $as_echo "$BOOT_JDK_VERSION" >&6; }
23386           fi # end check jdk version
23387         fi # end check javac
23388       fi # end check java
23389     fi # end check boot jdk found
23390   fi
23391 
23392   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23393     # Having specified an argument which is incorrect will produce an instant failure;
23394     # we should not go on looking
23395     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23396   fi
23397 
23398   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23399 
23400   if test "x$BOOT_JDK_FOUND" = xno; then
23401     # Now execute the test
23402 
23403   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23404     # First check at user selected default
23405 
23406   if test "x$BOOT_JDK_FOUND" = xno; then
23407     # Now execute the test
23408 
23409   if test -x /usr/libexec/java_home; then
23410     BOOT_JDK=`/usr/libexec/java_home `
23411     BOOT_JDK_FOUND=maybe
23412     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23413 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23414   fi
23415 
23416 
23417     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23418     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23419       # Do we have a bin/java?
23420       if test ! -x "$BOOT_JDK/bin/java"; then
23421         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23423         BOOT_JDK_FOUND=no
23424       else
23425         # Do we have a bin/javac?
23426         if test ! -x "$BOOT_JDK/bin/javac"; then
23427           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23429           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23430 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23431           BOOT_JDK_FOUND=no
23432         else
23433           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23434           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23435 
23436           # Extra M4 quote needed to protect [] in grep expression.
23437           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23438           if test "x$FOUND_CORRECT_VERSION" = x; then
23439             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23441             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23442 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23443             BOOT_JDK_FOUND=no
23444           else
23445             # We're done! :-)
23446             BOOT_JDK_FOUND=yes
23447 
23448   # Only process if variable expands to non-empty
23449 
23450   if test "x$BOOT_JDK" != x; then
23451     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23452 
23453   # Input might be given as Windows format, start by converting to
23454   # unix format.
23455   path="$BOOT_JDK"
23456   new_path=`$CYGPATH -u "$path"`
23457 
23458   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23459   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23460   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23461   # "foo.exe" is OK but "foo" is an error.
23462   #
23463   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23464   # It is also a way to make sure we got the proper file name for the real test later on.
23465   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23466   if test "x$test_shortpath" = x; then
23467     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23469     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23470   fi
23471 
23472   # Call helper function which possibly converts this using DOS-style short mode.
23473   # If so, the updated path is stored in $new_path.
23474 
23475   input_path="$new_path"
23476   # Check if we need to convert this using DOS-style short mode. If the path
23477   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23478   # take no chances and rewrite it.
23479   # Note: m4 eats our [], so we need to use [ and ] instead.
23480   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23481   if test "x$has_forbidden_chars" != x; then
23482     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23483     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23484     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23485     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23486       # Going to short mode and back again did indeed matter. Since short mode is
23487       # case insensitive, let's make it lowercase to improve readability.
23488       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23489       # Now convert it back to Unix-style (cygpath)
23490       input_path=`$CYGPATH -u "$shortmode_path"`
23491       new_path="$input_path"
23492     fi
23493   fi
23494 
23495   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23496   if test "x$test_cygdrive_prefix" = x; then
23497     # As a simple fix, exclude /usr/bin since it's not a real path.
23498     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23499       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23500       # a path prefixed by /cygdrive for fixpath to work.
23501       new_path="$CYGWIN_ROOT_PATH$input_path"
23502     fi
23503   fi
23504 
23505 
23506   if test "x$path" != "x$new_path"; then
23507     BOOT_JDK="$new_path"
23508     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23510   fi
23511 
23512     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23513 
23514   path="$BOOT_JDK"
23515   has_colon=`$ECHO $path | $GREP ^.:`
23516   new_path="$path"
23517   if test "x$has_colon" = x; then
23518     # Not in mixed or Windows style, start by that.
23519     new_path=`cmd //c echo $path`
23520   fi
23521 
23522 
23523   input_path="$new_path"
23524   # Check if we need to convert this using DOS-style short mode. If the path
23525   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23526   # take no chances and rewrite it.
23527   # Note: m4 eats our [], so we need to use [ and ] instead.
23528   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23529   if test "x$has_forbidden_chars" != x; then
23530     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23531     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23532   fi
23533 
23534 
23535   windows_path="$new_path"
23536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23537     unix_path=`$CYGPATH -u "$windows_path"`
23538     new_path="$unix_path"
23539   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23540     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23541     new_path="$unix_path"
23542   fi
23543 
23544   if test "x$path" != "x$new_path"; then
23545     BOOT_JDK="$new_path"
23546     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23548   fi
23549 
23550   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23551   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23552 
23553     else
23554       # We're on a unix platform. Hooray! :)
23555       path="$BOOT_JDK"
23556       has_space=`$ECHO "$path" | $GREP " "`
23557       if test "x$has_space" != x; then
23558         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23560         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23561       fi
23562 
23563       # Use eval to expand a potential ~
23564       eval path="$path"
23565       if test ! -f "$path" && test ! -d "$path"; then
23566         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23567       fi
23568 
23569       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23570     fi
23571   fi
23572 
23573             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23574 $as_echo_n "checking for Boot JDK... " >&6; }
23575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23576 $as_echo "$BOOT_JDK" >&6; }
23577             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23578 $as_echo_n "checking Boot JDK version... " >&6; }
23579             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23580             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23581 $as_echo "$BOOT_JDK_VERSION" >&6; }
23582           fi # end check jdk version
23583         fi # end check javac
23584       fi # end check java
23585     fi # end check boot jdk found
23586   fi
23587 
23588     # If that did not work out (e.g. too old), try explicit versions instead
23589 
23590   if test "x$BOOT_JDK_FOUND" = xno; then
23591     # Now execute the test
23592 
23593   if test -x /usr/libexec/java_home; then
23594     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23595     BOOT_JDK_FOUND=maybe
23596     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23597 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23598   fi
23599 
23600 
23601     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23602     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23603       # Do we have a bin/java?
23604       if test ! -x "$BOOT_JDK/bin/java"; then
23605         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23607         BOOT_JDK_FOUND=no
23608       else
23609         # Do we have a bin/javac?
23610         if test ! -x "$BOOT_JDK/bin/javac"; then
23611           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23613           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23614 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23615           BOOT_JDK_FOUND=no
23616         else
23617           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23618           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23619 
23620           # Extra M4 quote needed to protect [] in grep expression.
23621           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23622           if test "x$FOUND_CORRECT_VERSION" = x; then
23623             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23625             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23626 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23627             BOOT_JDK_FOUND=no
23628           else
23629             # We're done! :-)
23630             BOOT_JDK_FOUND=yes
23631 
23632   # Only process if variable expands to non-empty
23633 
23634   if test "x$BOOT_JDK" != x; then
23635     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23636 
23637   # Input might be given as Windows format, start by converting to
23638   # unix format.
23639   path="$BOOT_JDK"
23640   new_path=`$CYGPATH -u "$path"`
23641 
23642   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23643   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23644   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23645   # "foo.exe" is OK but "foo" is an error.
23646   #
23647   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23648   # It is also a way to make sure we got the proper file name for the real test later on.
23649   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23650   if test "x$test_shortpath" = x; then
23651     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23652 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23653     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23654   fi
23655 
23656   # Call helper function which possibly converts this using DOS-style short mode.
23657   # If so, the updated path is stored in $new_path.
23658 
23659   input_path="$new_path"
23660   # Check if we need to convert this using DOS-style short mode. If the path
23661   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23662   # take no chances and rewrite it.
23663   # Note: m4 eats our [], so we need to use [ and ] instead.
23664   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23665   if test "x$has_forbidden_chars" != x; then
23666     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23667     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23668     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23669     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23670       # Going to short mode and back again did indeed matter. Since short mode is
23671       # case insensitive, let's make it lowercase to improve readability.
23672       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23673       # Now convert it back to Unix-style (cygpath)
23674       input_path=`$CYGPATH -u "$shortmode_path"`
23675       new_path="$input_path"
23676     fi
23677   fi
23678 
23679   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23680   if test "x$test_cygdrive_prefix" = x; then
23681     # As a simple fix, exclude /usr/bin since it's not a real path.
23682     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23683       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23684       # a path prefixed by /cygdrive for fixpath to work.
23685       new_path="$CYGWIN_ROOT_PATH$input_path"
23686     fi
23687   fi
23688 
23689 
23690   if test "x$path" != "x$new_path"; then
23691     BOOT_JDK="$new_path"
23692     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23693 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23694   fi
23695 
23696     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23697 
23698   path="$BOOT_JDK"
23699   has_colon=`$ECHO $path | $GREP ^.:`
23700   new_path="$path"
23701   if test "x$has_colon" = x; then
23702     # Not in mixed or Windows style, start by that.
23703     new_path=`cmd //c echo $path`
23704   fi
23705 
23706 
23707   input_path="$new_path"
23708   # Check if we need to convert this using DOS-style short mode. If the path
23709   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23710   # take no chances and rewrite it.
23711   # Note: m4 eats our [], so we need to use [ and ] instead.
23712   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23713   if test "x$has_forbidden_chars" != x; then
23714     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23715     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23716   fi
23717 
23718 
23719   windows_path="$new_path"
23720   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23721     unix_path=`$CYGPATH -u "$windows_path"`
23722     new_path="$unix_path"
23723   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23724     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23725     new_path="$unix_path"
23726   fi
23727 
23728   if test "x$path" != "x$new_path"; then
23729     BOOT_JDK="$new_path"
23730     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23731 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23732   fi
23733 
23734   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23735   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23736 
23737     else
23738       # We're on a unix platform. Hooray! :)
23739       path="$BOOT_JDK"
23740       has_space=`$ECHO "$path" | $GREP " "`
23741       if test "x$has_space" != x; then
23742         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23743 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23744         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23745       fi
23746 
23747       # Use eval to expand a potential ~
23748       eval path="$path"
23749       if test ! -f "$path" && test ! -d "$path"; then
23750         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23751       fi
23752 
23753       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23754     fi
23755   fi
23756 
23757             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23758 $as_echo_n "checking for Boot JDK... " >&6; }
23759             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23760 $as_echo "$BOOT_JDK" >&6; }
23761             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23762 $as_echo_n "checking Boot JDK version... " >&6; }
23763             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23764             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23765 $as_echo "$BOOT_JDK_VERSION" >&6; }
23766           fi # end check jdk version
23767         fi # end check javac
23768       fi # end check java
23769     fi # end check boot jdk found
23770   fi
23771 
23772 
23773   if test "x$BOOT_JDK_FOUND" = xno; then
23774     # Now execute the test
23775 
23776   if test -x /usr/libexec/java_home; then
23777     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23778     BOOT_JDK_FOUND=maybe
23779     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23780 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23781   fi
23782 
23783 
23784     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23785     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23786       # Do we have a bin/java?
23787       if test ! -x "$BOOT_JDK/bin/java"; then
23788         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23790         BOOT_JDK_FOUND=no
23791       else
23792         # Do we have a bin/javac?
23793         if test ! -x "$BOOT_JDK/bin/javac"; then
23794           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23796           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23797 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23798           BOOT_JDK_FOUND=no
23799         else
23800           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23801           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23802 
23803           # Extra M4 quote needed to protect [] in grep expression.
23804           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23805           if test "x$FOUND_CORRECT_VERSION" = x; then
23806             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23807 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23808             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23809 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23810             BOOT_JDK_FOUND=no
23811           else
23812             # We're done! :-)
23813             BOOT_JDK_FOUND=yes
23814 
23815   # Only process if variable expands to non-empty
23816 
23817   if test "x$BOOT_JDK" != x; then
23818     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23819 
23820   # Input might be given as Windows format, start by converting to
23821   # unix format.
23822   path="$BOOT_JDK"
23823   new_path=`$CYGPATH -u "$path"`
23824 
23825   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23826   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23827   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23828   # "foo.exe" is OK but "foo" is an error.
23829   #
23830   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23831   # It is also a way to make sure we got the proper file name for the real test later on.
23832   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23833   if test "x$test_shortpath" = x; then
23834     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23835 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23836     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23837   fi
23838 
23839   # Call helper function which possibly converts this using DOS-style short mode.
23840   # If so, the updated path is stored in $new_path.
23841 
23842   input_path="$new_path"
23843   # Check if we need to convert this using DOS-style short mode. If the path
23844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23845   # take no chances and rewrite it.
23846   # Note: m4 eats our [], so we need to use [ and ] instead.
23847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23848   if test "x$has_forbidden_chars" != x; then
23849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23850     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23851     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23852     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23853       # Going to short mode and back again did indeed matter. Since short mode is
23854       # case insensitive, let's make it lowercase to improve readability.
23855       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23856       # Now convert it back to Unix-style (cygpath)
23857       input_path=`$CYGPATH -u "$shortmode_path"`
23858       new_path="$input_path"
23859     fi
23860   fi
23861 
23862   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23863   if test "x$test_cygdrive_prefix" = x; then
23864     # As a simple fix, exclude /usr/bin since it's not a real path.
23865     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23866       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23867       # a path prefixed by /cygdrive for fixpath to work.
23868       new_path="$CYGWIN_ROOT_PATH$input_path"
23869     fi
23870   fi
23871 
23872 
23873   if test "x$path" != "x$new_path"; then
23874     BOOT_JDK="$new_path"
23875     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23876 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23877   fi
23878 
23879     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23880 
23881   path="$BOOT_JDK"
23882   has_colon=`$ECHO $path | $GREP ^.:`
23883   new_path="$path"
23884   if test "x$has_colon" = x; then
23885     # Not in mixed or Windows style, start by that.
23886     new_path=`cmd //c echo $path`
23887   fi
23888 
23889 
23890   input_path="$new_path"
23891   # Check if we need to convert this using DOS-style short mode. If the path
23892   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23893   # take no chances and rewrite it.
23894   # Note: m4 eats our [], so we need to use [ and ] instead.
23895   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23896   if test "x$has_forbidden_chars" != x; then
23897     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23898     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23899   fi
23900 
23901 
23902   windows_path="$new_path"
23903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23904     unix_path=`$CYGPATH -u "$windows_path"`
23905     new_path="$unix_path"
23906   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23907     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23908     new_path="$unix_path"
23909   fi
23910 
23911   if test "x$path" != "x$new_path"; then
23912     BOOT_JDK="$new_path"
23913     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23914 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23915   fi
23916 
23917   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23918   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23919 
23920     else
23921       # We're on a unix platform. Hooray! :)
23922       path="$BOOT_JDK"
23923       has_space=`$ECHO "$path" | $GREP " "`
23924       if test "x$has_space" != x; then
23925         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23926 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23927         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23928       fi
23929 
23930       # Use eval to expand a potential ~
23931       eval path="$path"
23932       if test ! -f "$path" && test ! -d "$path"; then
23933         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23934       fi
23935 
23936       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23937     fi
23938   fi
23939 
23940             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23941 $as_echo_n "checking for Boot JDK... " >&6; }
23942             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23943 $as_echo "$BOOT_JDK" >&6; }
23944             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23945 $as_echo_n "checking Boot JDK version... " >&6; }
23946             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23947             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23948 $as_echo "$BOOT_JDK_VERSION" >&6; }
23949           fi # end check jdk version
23950         fi # end check javac
23951       fi # end check java
23952     fi # end check boot jdk found
23953   fi
23954 
23955 
23956   if test "x$BOOT_JDK_FOUND" = xno; then
23957     # Now execute the test
23958 
23959   if test -x /usr/libexec/java_home; then
23960     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23961     BOOT_JDK_FOUND=maybe
23962     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23963 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23964   fi
23965 
23966 
23967     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23968     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23969       # Do we have a bin/java?
23970       if test ! -x "$BOOT_JDK/bin/java"; then
23971         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23972 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23973         BOOT_JDK_FOUND=no
23974       else
23975         # Do we have a bin/javac?
23976         if test ! -x "$BOOT_JDK/bin/javac"; then
23977           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23979           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23980 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23981           BOOT_JDK_FOUND=no
23982         else
23983           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23984           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23985 
23986           # Extra M4 quote needed to protect [] in grep expression.
23987           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23988           if test "x$FOUND_CORRECT_VERSION" = x; then
23989             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23991             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23992 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23993             BOOT_JDK_FOUND=no
23994           else
23995             # We're done! :-)
23996             BOOT_JDK_FOUND=yes
23997 
23998   # Only process if variable expands to non-empty
23999 
24000   if test "x$BOOT_JDK" != x; then
24001     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24002 
24003   # Input might be given as Windows format, start by converting to
24004   # unix format.
24005   path="$BOOT_JDK"
24006   new_path=`$CYGPATH -u "$path"`
24007 
24008   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24009   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24010   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24011   # "foo.exe" is OK but "foo" is an error.
24012   #
24013   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24014   # It is also a way to make sure we got the proper file name for the real test later on.
24015   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24016   if test "x$test_shortpath" = x; then
24017     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24018 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24019     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24020   fi
24021 
24022   # Call helper function which possibly converts this using DOS-style short mode.
24023   # If so, the updated path is stored in $new_path.
24024 
24025   input_path="$new_path"
24026   # Check if we need to convert this using DOS-style short mode. If the path
24027   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24028   # take no chances and rewrite it.
24029   # Note: m4 eats our [], so we need to use [ and ] instead.
24030   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24031   if test "x$has_forbidden_chars" != x; then
24032     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24033     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24034     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24035     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24036       # Going to short mode and back again did indeed matter. Since short mode is
24037       # case insensitive, let's make it lowercase to improve readability.
24038       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24039       # Now convert it back to Unix-style (cygpath)
24040       input_path=`$CYGPATH -u "$shortmode_path"`
24041       new_path="$input_path"
24042     fi
24043   fi
24044 
24045   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24046   if test "x$test_cygdrive_prefix" = x; then
24047     # As a simple fix, exclude /usr/bin since it's not a real path.
24048     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24049       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24050       # a path prefixed by /cygdrive for fixpath to work.
24051       new_path="$CYGWIN_ROOT_PATH$input_path"
24052     fi
24053   fi
24054 
24055 
24056   if test "x$path" != "x$new_path"; then
24057     BOOT_JDK="$new_path"
24058     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24059 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24060   fi
24061 
24062     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24063 
24064   path="$BOOT_JDK"
24065   has_colon=`$ECHO $path | $GREP ^.:`
24066   new_path="$path"
24067   if test "x$has_colon" = x; then
24068     # Not in mixed or Windows style, start by that.
24069     new_path=`cmd //c echo $path`
24070   fi
24071 
24072 
24073   input_path="$new_path"
24074   # Check if we need to convert this using DOS-style short mode. If the path
24075   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24076   # take no chances and rewrite it.
24077   # Note: m4 eats our [], so we need to use [ and ] instead.
24078   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24079   if test "x$has_forbidden_chars" != x; then
24080     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24081     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24082   fi
24083 
24084 
24085   windows_path="$new_path"
24086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24087     unix_path=`$CYGPATH -u "$windows_path"`
24088     new_path="$unix_path"
24089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24090     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24091     new_path="$unix_path"
24092   fi
24093 
24094   if test "x$path" != "x$new_path"; then
24095     BOOT_JDK="$new_path"
24096     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24097 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24098   fi
24099 
24100   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24101   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24102 
24103     else
24104       # We're on a unix platform. Hooray! :)
24105       path="$BOOT_JDK"
24106       has_space=`$ECHO "$path" | $GREP " "`
24107       if test "x$has_space" != x; then
24108         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24109 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24110         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24111       fi
24112 
24113       # Use eval to expand a potential ~
24114       eval path="$path"
24115       if test ! -f "$path" && test ! -d "$path"; then
24116         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24117       fi
24118 
24119       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24120     fi
24121   fi
24122 
24123             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24124 $as_echo_n "checking for Boot JDK... " >&6; }
24125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24126 $as_echo "$BOOT_JDK" >&6; }
24127             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24128 $as_echo_n "checking Boot JDK version... " >&6; }
24129             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24130             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24131 $as_echo "$BOOT_JDK_VERSION" >&6; }
24132           fi # end check jdk version
24133         fi # end check javac
24134       fi # end check java
24135     fi # end check boot jdk found
24136   fi
24137 
24138   fi
24139 
24140 
24141     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24142     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24143       # Do we have a bin/java?
24144       if test ! -x "$BOOT_JDK/bin/java"; then
24145         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24147         BOOT_JDK_FOUND=no
24148       else
24149         # Do we have a bin/javac?
24150         if test ! -x "$BOOT_JDK/bin/javac"; then
24151           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24153           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24154 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24155           BOOT_JDK_FOUND=no
24156         else
24157           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24158           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24159 
24160           # Extra M4 quote needed to protect [] in grep expression.
24161           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24162           if test "x$FOUND_CORRECT_VERSION" = x; then
24163             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24165             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24166 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24167             BOOT_JDK_FOUND=no
24168           else
24169             # We're done! :-)
24170             BOOT_JDK_FOUND=yes
24171 
24172   # Only process if variable expands to non-empty
24173 
24174   if test "x$BOOT_JDK" != x; then
24175     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24176 
24177   # Input might be given as Windows format, start by converting to
24178   # unix format.
24179   path="$BOOT_JDK"
24180   new_path=`$CYGPATH -u "$path"`
24181 
24182   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24183   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24184   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24185   # "foo.exe" is OK but "foo" is an error.
24186   #
24187   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24188   # It is also a way to make sure we got the proper file name for the real test later on.
24189   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24190   if test "x$test_shortpath" = x; then
24191     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24192 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24193     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24194   fi
24195 
24196   # Call helper function which possibly converts this using DOS-style short mode.
24197   # If so, the updated path is stored in $new_path.
24198 
24199   input_path="$new_path"
24200   # Check if we need to convert this using DOS-style short mode. If the path
24201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24202   # take no chances and rewrite it.
24203   # Note: m4 eats our [], so we need to use [ and ] instead.
24204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24205   if test "x$has_forbidden_chars" != x; then
24206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24207     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24208     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24209     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24210       # Going to short mode and back again did indeed matter. Since short mode is
24211       # case insensitive, let's make it lowercase to improve readability.
24212       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24213       # Now convert it back to Unix-style (cygpath)
24214       input_path=`$CYGPATH -u "$shortmode_path"`
24215       new_path="$input_path"
24216     fi
24217   fi
24218 
24219   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24220   if test "x$test_cygdrive_prefix" = x; then
24221     # As a simple fix, exclude /usr/bin since it's not a real path.
24222     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24223       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24224       # a path prefixed by /cygdrive for fixpath to work.
24225       new_path="$CYGWIN_ROOT_PATH$input_path"
24226     fi
24227   fi
24228 
24229 
24230   if test "x$path" != "x$new_path"; then
24231     BOOT_JDK="$new_path"
24232     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24233 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24234   fi
24235 
24236     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24237 
24238   path="$BOOT_JDK"
24239   has_colon=`$ECHO $path | $GREP ^.:`
24240   new_path="$path"
24241   if test "x$has_colon" = x; then
24242     # Not in mixed or Windows style, start by that.
24243     new_path=`cmd //c echo $path`
24244   fi
24245 
24246 
24247   input_path="$new_path"
24248   # Check if we need to convert this using DOS-style short mode. If the path
24249   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24250   # take no chances and rewrite it.
24251   # Note: m4 eats our [], so we need to use [ and ] instead.
24252   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24253   if test "x$has_forbidden_chars" != x; then
24254     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24255     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24256   fi
24257 
24258 
24259   windows_path="$new_path"
24260   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24261     unix_path=`$CYGPATH -u "$windows_path"`
24262     new_path="$unix_path"
24263   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24264     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24265     new_path="$unix_path"
24266   fi
24267 
24268   if test "x$path" != "x$new_path"; then
24269     BOOT_JDK="$new_path"
24270     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24271 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24272   fi
24273 
24274   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24275   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24276 
24277     else
24278       # We're on a unix platform. Hooray! :)
24279       path="$BOOT_JDK"
24280       has_space=`$ECHO "$path" | $GREP " "`
24281       if test "x$has_space" != x; then
24282         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24283 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24284         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24285       fi
24286 
24287       # Use eval to expand a potential ~
24288       eval path="$path"
24289       if test ! -f "$path" && test ! -d "$path"; then
24290         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24291       fi
24292 
24293       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24294     fi
24295   fi
24296 
24297             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24298 $as_echo_n "checking for Boot JDK... " >&6; }
24299             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24300 $as_echo "$BOOT_JDK" >&6; }
24301             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24302 $as_echo_n "checking Boot JDK version... " >&6; }
24303             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24304             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24305 $as_echo "$BOOT_JDK_VERSION" >&6; }
24306           fi # end check jdk version
24307         fi # end check javac
24308       fi # end check java
24309     fi # end check boot jdk found
24310   fi
24311 
24312 
24313   # Test: Is $JAVA_HOME set?
24314 
24315   if test "x$BOOT_JDK_FOUND" = xno; then
24316     # Now execute the test
24317 
24318   if test "x$JAVA_HOME" != x; then
24319     JAVA_HOME_PROCESSED="$JAVA_HOME"
24320 
24321   # Only process if variable expands to non-empty
24322 
24323   if test "x$JAVA_HOME_PROCESSED" != x; then
24324     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24325 
24326   # Input might be given as Windows format, start by converting to
24327   # unix format.
24328   path="$JAVA_HOME_PROCESSED"
24329   new_path=`$CYGPATH -u "$path"`
24330 
24331   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24332   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24333   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24334   # "foo.exe" is OK but "foo" is an error.
24335   #
24336   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24337   # It is also a way to make sure we got the proper file name for the real test later on.
24338   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24339   if test "x$test_shortpath" = x; then
24340     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24341 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24342     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24343   fi
24344 
24345   # Call helper function which possibly converts this using DOS-style short mode.
24346   # If so, the updated path is stored in $new_path.
24347 
24348   input_path="$new_path"
24349   # Check if we need to convert this using DOS-style short mode. If the path
24350   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24351   # take no chances and rewrite it.
24352   # Note: m4 eats our [], so we need to use [ and ] instead.
24353   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24354   if test "x$has_forbidden_chars" != x; then
24355     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24356     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24357     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24358     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24359       # Going to short mode and back again did indeed matter. Since short mode is
24360       # case insensitive, let's make it lowercase to improve readability.
24361       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24362       # Now convert it back to Unix-style (cygpath)
24363       input_path=`$CYGPATH -u "$shortmode_path"`
24364       new_path="$input_path"
24365     fi
24366   fi
24367 
24368   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24369   if test "x$test_cygdrive_prefix" = x; then
24370     # As a simple fix, exclude /usr/bin since it's not a real path.
24371     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24372       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24373       # a path prefixed by /cygdrive for fixpath to work.
24374       new_path="$CYGWIN_ROOT_PATH$input_path"
24375     fi
24376   fi
24377 
24378 
24379   if test "x$path" != "x$new_path"; then
24380     JAVA_HOME_PROCESSED="$new_path"
24381     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24382 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24383   fi
24384 
24385     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24386 
24387   path="$JAVA_HOME_PROCESSED"
24388   has_colon=`$ECHO $path | $GREP ^.:`
24389   new_path="$path"
24390   if test "x$has_colon" = x; then
24391     # Not in mixed or Windows style, start by that.
24392     new_path=`cmd //c echo $path`
24393   fi
24394 
24395 
24396   input_path="$new_path"
24397   # Check if we need to convert this using DOS-style short mode. If the path
24398   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24399   # take no chances and rewrite it.
24400   # Note: m4 eats our [], so we need to use [ and ] instead.
24401   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24402   if test "x$has_forbidden_chars" != x; then
24403     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24404     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24405   fi
24406 
24407 
24408   windows_path="$new_path"
24409   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24410     unix_path=`$CYGPATH -u "$windows_path"`
24411     new_path="$unix_path"
24412   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24413     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24414     new_path="$unix_path"
24415   fi
24416 
24417   if test "x$path" != "x$new_path"; then
24418     JAVA_HOME_PROCESSED="$new_path"
24419     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24420 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24421   fi
24422 
24423   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24424   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24425 
24426     else
24427       # We're on a unix platform. Hooray! :)
24428       path="$JAVA_HOME_PROCESSED"
24429       has_space=`$ECHO "$path" | $GREP " "`
24430       if test "x$has_space" != x; then
24431         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24432 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24433         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24434       fi
24435 
24436       # Use eval to expand a potential ~
24437       eval path="$path"
24438       if test ! -f "$path" && test ! -d "$path"; then
24439         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24440       fi
24441 
24442       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24443     fi
24444   fi
24445 
24446     if test ! -d "$JAVA_HOME_PROCESSED"; then
24447       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24448 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24449     else
24450       # Aha, the user has set a JAVA_HOME
24451       # let us use that as the Boot JDK.
24452       BOOT_JDK="$JAVA_HOME_PROCESSED"
24453       BOOT_JDK_FOUND=maybe
24454       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24455 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24456     fi
24457   fi
24458 
24459 
24460     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24461     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24462       # Do we have a bin/java?
24463       if test ! -x "$BOOT_JDK/bin/java"; then
24464         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24466         BOOT_JDK_FOUND=no
24467       else
24468         # Do we have a bin/javac?
24469         if test ! -x "$BOOT_JDK/bin/javac"; then
24470           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24472           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24473 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24474           BOOT_JDK_FOUND=no
24475         else
24476           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24477           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24478 
24479           # Extra M4 quote needed to protect [] in grep expression.
24480           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24481           if test "x$FOUND_CORRECT_VERSION" = x; then
24482             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24483 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24484             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24485 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24486             BOOT_JDK_FOUND=no
24487           else
24488             # We're done! :-)
24489             BOOT_JDK_FOUND=yes
24490 
24491   # Only process if variable expands to non-empty
24492 
24493   if test "x$BOOT_JDK" != x; then
24494     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24495 
24496   # Input might be given as Windows format, start by converting to
24497   # unix format.
24498   path="$BOOT_JDK"
24499   new_path=`$CYGPATH -u "$path"`
24500 
24501   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24502   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24503   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24504   # "foo.exe" is OK but "foo" is an error.
24505   #
24506   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24507   # It is also a way to make sure we got the proper file name for the real test later on.
24508   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24509   if test "x$test_shortpath" = x; then
24510     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24511 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24512     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24513   fi
24514 
24515   # Call helper function which possibly converts this using DOS-style short mode.
24516   # If so, the updated path is stored in $new_path.
24517 
24518   input_path="$new_path"
24519   # Check if we need to convert this using DOS-style short mode. If the path
24520   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24521   # take no chances and rewrite it.
24522   # Note: m4 eats our [], so we need to use [ and ] instead.
24523   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24524   if test "x$has_forbidden_chars" != x; then
24525     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24526     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24527     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24528     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24529       # Going to short mode and back again did indeed matter. Since short mode is
24530       # case insensitive, let's make it lowercase to improve readability.
24531       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24532       # Now convert it back to Unix-style (cygpath)
24533       input_path=`$CYGPATH -u "$shortmode_path"`
24534       new_path="$input_path"
24535     fi
24536   fi
24537 
24538   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24539   if test "x$test_cygdrive_prefix" = x; then
24540     # As a simple fix, exclude /usr/bin since it's not a real path.
24541     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24542       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24543       # a path prefixed by /cygdrive for fixpath to work.
24544       new_path="$CYGWIN_ROOT_PATH$input_path"
24545     fi
24546   fi
24547 
24548 
24549   if test "x$path" != "x$new_path"; then
24550     BOOT_JDK="$new_path"
24551     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24553   fi
24554 
24555     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24556 
24557   path="$BOOT_JDK"
24558   has_colon=`$ECHO $path | $GREP ^.:`
24559   new_path="$path"
24560   if test "x$has_colon" = x; then
24561     # Not in mixed or Windows style, start by that.
24562     new_path=`cmd //c echo $path`
24563   fi
24564 
24565 
24566   input_path="$new_path"
24567   # Check if we need to convert this using DOS-style short mode. If the path
24568   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24569   # take no chances and rewrite it.
24570   # Note: m4 eats our [], so we need to use [ and ] instead.
24571   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24572   if test "x$has_forbidden_chars" != x; then
24573     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24574     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24575   fi
24576 
24577 
24578   windows_path="$new_path"
24579   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24580     unix_path=`$CYGPATH -u "$windows_path"`
24581     new_path="$unix_path"
24582   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24583     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24584     new_path="$unix_path"
24585   fi
24586 
24587   if test "x$path" != "x$new_path"; then
24588     BOOT_JDK="$new_path"
24589     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24591   fi
24592 
24593   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24594   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24595 
24596     else
24597       # We're on a unix platform. Hooray! :)
24598       path="$BOOT_JDK"
24599       has_space=`$ECHO "$path" | $GREP " "`
24600       if test "x$has_space" != x; then
24601         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24602 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24603         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24604       fi
24605 
24606       # Use eval to expand a potential ~
24607       eval path="$path"
24608       if test ! -f "$path" && test ! -d "$path"; then
24609         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24610       fi
24611 
24612       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24613     fi
24614   fi
24615 
24616             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24617 $as_echo_n "checking for Boot JDK... " >&6; }
24618             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24619 $as_echo "$BOOT_JDK" >&6; }
24620             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24621 $as_echo_n "checking Boot JDK version... " >&6; }
24622             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24623             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24624 $as_echo "$BOOT_JDK_VERSION" >&6; }
24625           fi # end check jdk version
24626         fi # end check javac
24627       fi # end check java
24628     fi # end check boot jdk found
24629   fi
24630 
24631 
24632   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24633 
24634   if test "x$BOOT_JDK_FOUND" = xno; then
24635     # Now execute the test
24636 
24637   # Extract the first word of "javac", so it can be a program name with args.
24638 set dummy javac; ac_word=$2
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24640 $as_echo_n "checking for $ac_word... " >&6; }
24641 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24642   $as_echo_n "(cached) " >&6
24643 else
24644   case $JAVAC_CHECK in
24645   [\\/]* | ?:[\\/]*)
24646   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24647   ;;
24648   *)
24649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24650 for as_dir in $PATH
24651 do
24652   IFS=$as_save_IFS
24653   test -z "$as_dir" && as_dir=.
24654     for ac_exec_ext in '' $ac_executable_extensions; do
24655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24656     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24658     break 2
24659   fi
24660 done
24661   done
24662 IFS=$as_save_IFS
24663 
24664   ;;
24665 esac
24666 fi
24667 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24668 if test -n "$JAVAC_CHECK"; then
24669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24670 $as_echo "$JAVAC_CHECK" >&6; }
24671 else
24672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24674 fi
24675 
24676 
24677   # Extract the first word of "java", so it can be a program name with args.
24678 set dummy java; ac_word=$2
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24680 $as_echo_n "checking for $ac_word... " >&6; }
24681 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24682   $as_echo_n "(cached) " >&6
24683 else
24684   case $JAVA_CHECK in
24685   [\\/]* | ?:[\\/]*)
24686   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24687   ;;
24688   *)
24689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24690 for as_dir in $PATH
24691 do
24692   IFS=$as_save_IFS
24693   test -z "$as_dir" && as_dir=.
24694     for ac_exec_ext in '' $ac_executable_extensions; do
24695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24696     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24698     break 2
24699   fi
24700 done
24701   done
24702 IFS=$as_save_IFS
24703 
24704   ;;
24705 esac
24706 fi
24707 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24708 if test -n "$JAVA_CHECK"; then
24709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24710 $as_echo "$JAVA_CHECK" >&6; }
24711 else
24712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24713 $as_echo "no" >&6; }
24714 fi
24715 
24716 
24717   BINARY="$JAVAC_CHECK"
24718   if test "x$JAVAC_CHECK" = x; then
24719     BINARY="$JAVA_CHECK"
24720   fi
24721   if test "x$BINARY" != x; then
24722     # So there is a java(c) binary, it might be part of a JDK.
24723     # Lets find the JDK/JRE directory by following symbolic links.
24724     # Linux/GNU systems often have links from /usr/bin/java to
24725     # /etc/alternatives/java to the real JDK binary.
24726 
24727   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24728     # Follow a chain of symbolic links. Use readlink
24729     # where it exists, else fall back to horribly
24730     # complicated shell code.
24731     if test "x$READLINK_TESTED" != yes; then
24732       # On MacOSX there is a readlink tool with a different
24733       # purpose than the GNU readlink tool. Check the found readlink.
24734       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24735       if test "x$ISGNU" = x; then
24736         # A readlink that we do not know how to use.
24737         # Are there other non-GNU readlinks out there?
24738         READLINK_TESTED=yes
24739         READLINK=
24740       fi
24741     fi
24742 
24743     if test "x$READLINK" != x; then
24744       BINARY=`$READLINK -f $BINARY`
24745     else
24746       # Save the current directory for restoring afterwards
24747       STARTDIR=$PWD
24748       COUNTER=0
24749       sym_link_dir=`$DIRNAME $BINARY`
24750       sym_link_file=`$BASENAME $BINARY`
24751       cd $sym_link_dir
24752       # Use -P flag to resolve symlinks in directories.
24753       cd `$THEPWDCMD -P`
24754       sym_link_dir=`$THEPWDCMD -P`
24755       # Resolve file symlinks
24756       while test $COUNTER -lt 20; do
24757         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24758         if test "x$ISLINK" == x; then
24759           # This is not a symbolic link! We are done!
24760           break
24761         fi
24762         # Again resolve directory symlinks since the target of the just found
24763         # link could be in a different directory
24764         cd `$DIRNAME $ISLINK`
24765         sym_link_dir=`$THEPWDCMD -P`
24766         sym_link_file=`$BASENAME $ISLINK`
24767         let COUNTER=COUNTER+1
24768       done
24769       cd $STARTDIR
24770       BINARY=$sym_link_dir/$sym_link_file
24771     fi
24772   fi
24773 
24774     BOOT_JDK=`dirname "$BINARY"`
24775     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24776     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24777       # Looks like we found ourselves an JDK
24778       BOOT_JDK_FOUND=maybe
24779       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24780 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24781     fi
24782   fi
24783 
24784 
24785     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24786     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24787       # Do we have a bin/java?
24788       if test ! -x "$BOOT_JDK/bin/java"; then
24789         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24791         BOOT_JDK_FOUND=no
24792       else
24793         # Do we have a bin/javac?
24794         if test ! -x "$BOOT_JDK/bin/javac"; then
24795           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24797           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24798 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24799           BOOT_JDK_FOUND=no
24800         else
24801           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24802           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24803 
24804           # Extra M4 quote needed to protect [] in grep expression.
24805           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24806           if test "x$FOUND_CORRECT_VERSION" = x; then
24807             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24809             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24810 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24811             BOOT_JDK_FOUND=no
24812           else
24813             # We're done! :-)
24814             BOOT_JDK_FOUND=yes
24815 
24816   # Only process if variable expands to non-empty
24817 
24818   if test "x$BOOT_JDK" != x; then
24819     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24820 
24821   # Input might be given as Windows format, start by converting to
24822   # unix format.
24823   path="$BOOT_JDK"
24824   new_path=`$CYGPATH -u "$path"`
24825 
24826   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24827   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24828   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24829   # "foo.exe" is OK but "foo" is an error.
24830   #
24831   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24832   # It is also a way to make sure we got the proper file name for the real test later on.
24833   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24834   if test "x$test_shortpath" = x; then
24835     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24836 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24837     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24838   fi
24839 
24840   # Call helper function which possibly converts this using DOS-style short mode.
24841   # If so, the updated path is stored in $new_path.
24842 
24843   input_path="$new_path"
24844   # Check if we need to convert this using DOS-style short mode. If the path
24845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24846   # take no chances and rewrite it.
24847   # Note: m4 eats our [], so we need to use [ and ] instead.
24848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24849   if test "x$has_forbidden_chars" != x; then
24850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24851     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24852     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24853     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24854       # Going to short mode and back again did indeed matter. Since short mode is
24855       # case insensitive, let's make it lowercase to improve readability.
24856       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24857       # Now convert it back to Unix-style (cygpath)
24858       input_path=`$CYGPATH -u "$shortmode_path"`
24859       new_path="$input_path"
24860     fi
24861   fi
24862 
24863   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24864   if test "x$test_cygdrive_prefix" = x; then
24865     # As a simple fix, exclude /usr/bin since it's not a real path.
24866     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24867       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24868       # a path prefixed by /cygdrive for fixpath to work.
24869       new_path="$CYGWIN_ROOT_PATH$input_path"
24870     fi
24871   fi
24872 
24873 
24874   if test "x$path" != "x$new_path"; then
24875     BOOT_JDK="$new_path"
24876     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24877 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24878   fi
24879 
24880     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24881 
24882   path="$BOOT_JDK"
24883   has_colon=`$ECHO $path | $GREP ^.:`
24884   new_path="$path"
24885   if test "x$has_colon" = x; then
24886     # Not in mixed or Windows style, start by that.
24887     new_path=`cmd //c echo $path`
24888   fi
24889 
24890 
24891   input_path="$new_path"
24892   # Check if we need to convert this using DOS-style short mode. If the path
24893   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24894   # take no chances and rewrite it.
24895   # Note: m4 eats our [], so we need to use [ and ] instead.
24896   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24897   if test "x$has_forbidden_chars" != x; then
24898     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24899     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24900   fi
24901 
24902 
24903   windows_path="$new_path"
24904   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24905     unix_path=`$CYGPATH -u "$windows_path"`
24906     new_path="$unix_path"
24907   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24908     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24909     new_path="$unix_path"
24910   fi
24911 
24912   if test "x$path" != "x$new_path"; then
24913     BOOT_JDK="$new_path"
24914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24915 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24916   fi
24917 
24918   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24919   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24920 
24921     else
24922       # We're on a unix platform. Hooray! :)
24923       path="$BOOT_JDK"
24924       has_space=`$ECHO "$path" | $GREP " "`
24925       if test "x$has_space" != x; then
24926         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24927 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24928         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24929       fi
24930 
24931       # Use eval to expand a potential ~
24932       eval path="$path"
24933       if test ! -f "$path" && test ! -d "$path"; then
24934         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24935       fi
24936 
24937       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24938     fi
24939   fi
24940 
24941             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24942 $as_echo_n "checking for Boot JDK... " >&6; }
24943             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24944 $as_echo "$BOOT_JDK" >&6; }
24945             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24946 $as_echo_n "checking Boot JDK version... " >&6; }
24947             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24948             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24949 $as_echo "$BOOT_JDK_VERSION" >&6; }
24950           fi # end check jdk version
24951         fi # end check javac
24952       fi # end check java
24953     fi # end check boot jdk found
24954   fi
24955 
24956 
24957   # Test: Is there a JDK installed in default, well-known locations?
24958 
24959   if test "x$BOOT_JDK_FOUND" = xno; then
24960     # Now execute the test
24961 
24962   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24963 
24964   if test "x$BOOT_JDK_FOUND" = xno; then
24965     # Now execute the test
24966 
24967   if test "x$ProgramW6432" != x; then
24968     VIRTUAL_DIR="$ProgramW6432/Java"
24969 
24970   windows_path="$VIRTUAL_DIR"
24971   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24972     unix_path=`$CYGPATH -u "$windows_path"`
24973     VIRTUAL_DIR="$unix_path"
24974   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24975     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24976     VIRTUAL_DIR="$unix_path"
24977   fi
24978 
24979 
24980   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24981   BOOT_JDK_SUFFIX=""
24982   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24983   if test "x$ALL_JDKS_FOUND" != x; then
24984     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24985 
24986   if test "x$BOOT_JDK_FOUND" = xno; then
24987     # Now execute the test
24988 
24989         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24990         if test -d "$BOOT_JDK"; then
24991           BOOT_JDK_FOUND=maybe
24992           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24993 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24994         fi
24995 
24996 
24997     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24998     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24999       # Do we have a bin/java?
25000       if test ! -x "$BOOT_JDK/bin/java"; then
25001         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25002 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25003         BOOT_JDK_FOUND=no
25004       else
25005         # Do we have a bin/javac?
25006         if test ! -x "$BOOT_JDK/bin/javac"; then
25007           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25009           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25010 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25011           BOOT_JDK_FOUND=no
25012         else
25013           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25014           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25015 
25016           # Extra M4 quote needed to protect [] in grep expression.
25017           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25018           if test "x$FOUND_CORRECT_VERSION" = x; then
25019             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25021             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25022 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25023             BOOT_JDK_FOUND=no
25024           else
25025             # We're done! :-)
25026             BOOT_JDK_FOUND=yes
25027 
25028   # Only process if variable expands to non-empty
25029 
25030   if test "x$BOOT_JDK" != x; then
25031     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25032 
25033   # Input might be given as Windows format, start by converting to
25034   # unix format.
25035   path="$BOOT_JDK"
25036   new_path=`$CYGPATH -u "$path"`
25037 
25038   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25039   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25040   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25041   # "foo.exe" is OK but "foo" is an error.
25042   #
25043   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25044   # It is also a way to make sure we got the proper file name for the real test later on.
25045   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25046   if test "x$test_shortpath" = x; then
25047     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25049     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25050   fi
25051 
25052   # Call helper function which possibly converts this using DOS-style short mode.
25053   # If so, the updated path is stored in $new_path.
25054 
25055   input_path="$new_path"
25056   # Check if we need to convert this using DOS-style short mode. If the path
25057   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25058   # take no chances and rewrite it.
25059   # Note: m4 eats our [], so we need to use [ and ] instead.
25060   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25061   if test "x$has_forbidden_chars" != x; then
25062     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25063     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25064     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25065     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25066       # Going to short mode and back again did indeed matter. Since short mode is
25067       # case insensitive, let's make it lowercase to improve readability.
25068       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25069       # Now convert it back to Unix-style (cygpath)
25070       input_path=`$CYGPATH -u "$shortmode_path"`
25071       new_path="$input_path"
25072     fi
25073   fi
25074 
25075   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25076   if test "x$test_cygdrive_prefix" = x; then
25077     # As a simple fix, exclude /usr/bin since it's not a real path.
25078     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25079       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25080       # a path prefixed by /cygdrive for fixpath to work.
25081       new_path="$CYGWIN_ROOT_PATH$input_path"
25082     fi
25083   fi
25084 
25085 
25086   if test "x$path" != "x$new_path"; then
25087     BOOT_JDK="$new_path"
25088     { $as_echo "$as_me:$