1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 BUILD_ICECC
 636 ICECC
 637 ICECC_WRAPPER
 638 ICECC_CREATE_ENV
 639 ICECC_CMD
 640 ENABLE_JAVAC_SERVER
 641 ENABLE_SJAVAC
 642 SJAVAC_SERVER_JAVA_FLAGS
 643 SJAVAC_SERVER_JAVA
 644 JAVA_TOOL_FLAGS_SMALL
 645 JAVA_FLAGS_SMALL
 646 JAVA_FLAGS_JAVAC
 647 JAVA_FLAGS_BIG
 648 JAVA_FLAGS
 649 TEST_JOBS
 650 JOBS
 651 MEMORY_SIZE
 652 NUM_CORES
 653 BUILD_FAILURE_HANDLER
 654 ENABLE_INTREE_EC
 655 JVM_VARIANT_CORE
 656 JVM_VARIANT_ZEROSHARK
 657 JVM_VARIANT_ZERO
 658 JVM_VARIANT_HOTSPOT
 659 JVM_VARIANT_MINIMAL1
 660 JVM_VARIANT_CLIENT
 661 JVM_VARIANT_SERVER
 662 JVM_VARIANTS_COMMA
 663 TEST_IN_BUILD
 664 HOTSPOT_MAKE_ARGS
 665 MACOSX_UNIVERSAL
 666 DEBUG_CLASSFILES
 667 FASTDEBUG
 668 VARIANT
 669 USE_NEW_HOTSPOT_BUILD
 670 STLPORT_LIB
 671 LIBZIP_CAN_USE_MMAP
 672 LIBDL
 673 LIBM
 674 USE_EXTERNAL_LCMS
 675 LCMS_LIBS
 676 LCMS_CFLAGS
 677 USE_EXTERNAL_LIBZ
 678 USE_EXTERNAL_LIBPNG
 679 PNG_LIBS
 680 PNG_CFLAGS
 681 USE_EXTERNAL_LIBGIF
 682 USE_EXTERNAL_LIBJPEG
 683 LLVM_LIBS
 684 LLVM_LDFLAGS
 685 LLVM_CFLAGS
 686 LLVM_CONFIG
 687 LIBFFI_LIBS
 688 LIBFFI_CFLAGS
 689 ALSA_LIBS
 690 ALSA_CFLAGS
 691 FREETYPE_BUNDLE_LIB_PATH
 692 FREETYPE_LIBS
 693 FREETYPE_CFLAGS
 694 CUPS_CFLAGS
 695 X_EXTRA_LIBS
 696 X_LIBS
 697 X_PRE_LIBS
 698 X_CFLAGS
 699 XMKMF
 700 MSVCP_DLL
 701 MSVCR_DLL
 702 LIBCXX
 703 STATIC_CXX_SETTING
 704 FIXPATH_DETACH_FLAG
 705 FIXPATH
 706 VALID_JVM_FEATURES
 707 JVM_FEATURES_custom
 708 JVM_FEATURES_zeroshark
 709 JVM_FEATURES_zero
 710 JVM_FEATURES_minimal
 711 JVM_FEATURES_core
 712 JVM_FEATURES_client
 713 JVM_FEATURES_server
 714 INCLUDE_DTRACE
 715 GCOV_ENABLED
 716 STRIP_POLICY
 717 DEBUG_BINARIES
 718 ZIP_EXTERNAL_DEBUG_SYMBOLS
 719 COPY_DEBUG_SYMBOLS
 720 COMPILE_WITH_DEBUG_SYMBOLS
 721 CFLAGS_WARNINGS_ARE_ERRORS
 722 BUILD_CC_DISABLE_WARNING_PREFIX
 723 DISABLE_WARNING_PREFIX
 724 HOTSPOT_SET_WARNINGS_AS_ERRORS
 725 WARNINGS_AS_ERRORS
 726 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 727 ZERO_ARCHFLAG
 728 LDFLAGS_TESTEXE
 729 LDFLAGS_TESTLIB
 730 CXXFLAGS_TESTEXE
 731 CXXFLAGS_TESTLIB
 732 CFLAGS_TESTEXE
 733 CFLAGS_TESTLIB
 734 OPENJDK_BUILD_JVM_LIBS
 735 OPENJDK_BUILD_JVM_ASFLAGS
 736 OPENJDK_BUILD_JVM_LDFLAGS
 737 OPENJDK_BUILD_JVM_CFLAGS
 738 OPENJDK_BUILD_LDFLAGS_HASH_STYLE
 739 OPENJDK_BUILD_LDFLAGS_CXX_JDK
 740 OPENJDK_BUILD_JDKEXE_LIBS
 741 OPENJDK_BUILD_JDKLIB_LIBS
 742 OPENJDK_BUILD_LDFLAGS_JDKEXE
 743 OPENJDK_BUILD_LDFLAGS_JDKLIB
 744 OPENJDK_BUILD_CXXFLAGS_JDKEXE
 745 OPENJDK_BUILD_CXXFLAGS_JDKLIB
 746 OPENJDK_BUILD_CFLAGS_JDKEXE
 747 OPENJDK_BUILD_CFLAGS_JDKLIB
 748 OPENJDK_BUILD_CXXSTD_CXXFLAG
 749 JVM_LIBS
 750 JVM_ASFLAGS
 751 JVM_LDFLAGS
 752 JVM_CFLAGS
 753 LDFLAGS_HASH_STYLE
 754 LDFLAGS_CXX_JDK
 755 JDKEXE_LIBS
 756 JDKLIB_LIBS
 757 LDFLAGS_JDKEXE
 758 LDFLAGS_JDKLIB
 759 CXXFLAGS_JDKEXE
 760 CXXFLAGS_JDKLIB
 761 CFLAGS_JDKEXE
 762 CFLAGS_JDKLIB
 763 MACOSX_VERSION_MIN
 764 NO_LIFETIME_DSE_CFLAG
 765 NO_NULL_POINTER_CHECK_CFLAG
 766 CXXSTD_CXXFLAG
 767 CXX_O_FLAG_SIZE
 768 CXX_O_FLAG_NONE
 769 CXX_O_FLAG_DEBUG
 770 CXX_O_FLAG_NORM
 771 CXX_O_FLAG_HI
 772 CXX_O_FLAG_HIGHEST
 773 CXX_O_FLAG_HIGHEST_JVM
 774 C_O_FLAG_SIZE
 775 C_O_FLAG_NONE
 776 C_O_FLAG_DEBUG
 777 C_O_FLAG_NORM
 778 C_O_FLAG_HI
 779 C_O_FLAG_HIGHEST
 780 C_O_FLAG_HIGHEST_JVM
 781 JVM_CFLAGS_SYMBOLS
 782 CXXFLAGS_DEBUG_SYMBOLS
 783 CFLAGS_DEBUG_SYMBOLS
 784 CXX_FLAG_DEPS
 785 C_FLAG_DEPS
 786 SHARED_LIBRARY_FLAGS
 787 SET_SHARED_LIBRARY_MAPFILE
 788 SET_SHARED_LIBRARY_NAME
 789 SET_SHARED_LIBRARY_ORIGIN
 790 SET_EXECUTABLE_ORIGIN
 791 CXX_FLAG_REORDER
 792 C_FLAG_REORDER
 793 JVM_RCFLAGS
 794 RC_FLAGS
 795 AR_OUT_OPTION
 796 LD_OUT_OPTION
 797 EXE_OUT_OPTION
 798 CC_OUT_OPTION
 799 STRIPFLAGS
 800 ARFLAGS
 801 COMPILER_BINDCMD_FILE_FLAG
 802 COMPILER_COMMAND_FILE_FLAG
 803 COMPILER_TARGET_BITS_FLAG
 804 JT_HOME
 805 JTREGEXE
 806 HOTSPOT_TOOLCHAIN_TYPE
 807 USING_BROKEN_SUSE_LD
 808 PACKAGE_PATH
 809 USE_CLANG
 810 HOTSPOT_LD
 811 HOTSPOT_CXX
 812 HOTSPOT_RC
 813 HOTSPOT_MT
 814 BUILD_AS
 815 BUILD_LDCXX
 816 BUILD_LD
 817 BUILD_STRIP
 818 BUILD_OBJCOPY
 819 BUILD_AR
 820 BUILD_NM
 821 BUILD_CXX
 822 BUILD_CC
 823 BUILD_SYSROOT_LDFLAGS
 824 BUILD_SYSROOT_CFLAGS
 825 ac_ct_OBJDUMP
 826 OBJDUMP
 827 ac_ct_OBJCOPY
 828 OBJCOPY
 829 ac_ct_NM
 830 ac_ct_STRIP
 831 GNM
 832 NM
 833 STRIP
 834 MSBUILD
 835 DUMPBIN
 836 RC
 837 MT
 838 LIPO
 839 ac_ct_AR
 840 AR
 841 AS
 842 LDCXX
 843 LD
 844 CXXCPP
 845 CPP
 846 CXX_VERSION_NUMBER
 847 CC_VERSION_NUMBER
 848 ac_ct_CXX
 849 CXXFLAGS
 850 CXX
 851 TOOLCHAIN_PATH_CXX
 852 POTENTIAL_CXX
 853 OBJEXT
 854 EXEEXT
 855 ac_ct_CC
 856 CPPFLAGS
 857 LDFLAGS
 858 CFLAGS
 859 CC
 860 TOOLCHAIN_PATH_CC
 861 POTENTIAL_CC
 862 TOOLCHAIN_VERSION
 863 VS_LIB
 864 VS_INCLUDE
 865 VS_PATH
 866 CYGWIN_LINK
 867 SYSROOT_LDFLAGS
 868 SYSROOT_CFLAGS
 869 EXTRA_LDFLAGS
 870 EXTRA_CXXFLAGS
 871 EXTRA_CFLAGS
 872 LEGACY_EXTRA_LDFLAGS
 873 LEGACY_EXTRA_CXXFLAGS
 874 LEGACY_EXTRA_CFLAGS
 875 EXE_SUFFIX
 876 OBJ_SUFFIX
 877 STATIC_LIBRARY
 878 SHARED_LIBRARY
 879 STATIC_LIBRARY_SUFFIX
 880 SHARED_LIBRARY_SUFFIX
 881 LIBRARY_PREFIX
 882 TOOLCHAIN_TYPE
 883 STATIC_BUILD
 884 IMPORT_MODULES_MAKE
 885 IMPORT_MODULES_SRC
 886 IMPORT_MODULES_CONF
 887 IMPORT_MODULES_LIBS
 888 IMPORT_MODULES_CMDS
 889 IMPORT_MODULES_CLASSES
 890 BUILD_HOTSPOT
 891 HOTSPOT_DIST
 892 BUILD_OUTPUT
 893 JDK_TOPDIR
 894 NASHORN_TOPDIR
 895 HOTSPOT_TOPDIR
 896 JAXWS_TOPDIR
 897 JAXP_TOPDIR
 898 CORBA_TOPDIR
 899 LANGTOOLS_TOPDIR
 900 BUILD_JDK
 901 CREATE_BUILDJDK
 902 BOOT_JDK_BITS
 903 JAVAC_FLAGS
 904 BOOT_JDK_MODULAR
 905 BOOT_JDK_SOURCETARGET
 906 JARSIGNER
 907 JAR
 908 JAVAH
 909 JAVAC
 910 JAVA
 911 BOOT_JDK
 912 JAVA_CHECK
 913 JAVAC_CHECK
 914 VERSION_IS_GA
 915 VERSION_SHORT
 916 VERSION_STRING
 917 VERSION_NUMBER_FOUR_POSITIONS
 918 VERSION_NUMBER
 919 VERSION_OPT
 920 VERSION_BUILD
 921 VERSION_PRE
 922 VERSION_PATCH
 923 VERSION_SECURITY
 924 VERSION_MINOR
 925 VERSION_MAJOR
 926 MACOSX_BUNDLE_ID_BASE
 927 MACOSX_BUNDLE_NAME_BASE
 928 HOTSPOT_VM_DISTRO
 929 COMPANY_NAME
 930 JDK_RC_PLATFORM_NAME
 931 PRODUCT_SUFFIX
 932 PRODUCT_NAME
 933 LAUNCHER_NAME
 934 JLINK_KEEP_PACKAGED_MODULES
 935 COPYRIGHT_YEAR
 936 COMPRESS_JARS
 937 INCLUDE_SA
 938 UNLIMITED_CRYPTO
 939 CACERTS_FILE
 940 BUILD_HEADLESS
 941 SUPPORT_HEADFUL
 942 SUPPORT_HEADLESS
 943 DEFAULT_MAKE_TARGET
 944 OS_VERSION_MICRO
 945 OS_VERSION_MINOR
 946 OS_VERSION_MAJOR
 947 PKG_CONFIG
 948 BASH_ARGS
 949 SETFILE
 950 CODESIGN
 951 XATTR
 952 DSYMUTIL
 953 IS_GNU_TIME
 954 PATCH
 955 DTRACE
 956 TIME
 957 STAT
 958 HG
 959 READELF
 960 OTOOL
 961 LDD
 962 ZIP
 963 UNZIP
 964 FIND_DELETE
 965 OUTPUT_SYNC
 966 OUTPUT_SYNC_SUPPORTED
 967 CHECK_TOOLSDIR_MAKE
 968 CHECK_TOOLSDIR_GMAKE
 969 CHECK_MAKE
 970 CHECK_GMAKE
 971 MAKE
 972 PKGHANDLER
 973 CONFIGURESUPPORT_OUTPUTDIR
 974 OUTPUT_ROOT
 975 CONF_NAME
 976 SPEC
 977 SDKROOT
 978 XCODEBUILD
 979 VALID_JVM_VARIANTS
 980 JVM_VARIANTS
 981 DEBUG_LEVEL
 982 HOTSPOT_DEBUG_LEVEL
 983 JDK_VARIANT
 984 SET_OPENJDK
 985 USERNAME
 986 CANONICAL_TOPDIR
 987 ORIGINAL_TOPDIR
 988 TOPDIR
 989 PATH_SEP
 990 ZERO_ARCHDEF
 991 HOTSPOT_BUILD_CPU_DEFINE
 992 HOTSPOT_BUILD_CPU_ARCH
 993 HOTSPOT_BUILD_CPU
 994 HOTSPOT_BUILD_OS_TYPE
 995 HOTSPOT_BUILD_OS
 996 OPENJDK_BUILD_OS_EXPORT_DIR
 997 OPENJDK_BUILD_CPU_JLI_CFLAGS
 998 OPENJDK_BUILD_CPU_OSARCH
 999 OPENJDK_BUILD_CPU_ISADIR
1000 OPENJDK_BUILD_CPU_LIBDIR
1001 OPENJDK_BUILD_CPU_LEGACY_LIB
1002 OPENJDK_BUILD_CPU_LEGACY
1003 HOTSPOT_TARGET_CPU_DEFINE
1004 HOTSPOT_TARGET_CPU_ARCH
1005 HOTSPOT_TARGET_CPU
1006 HOTSPOT_TARGET_OS_TYPE
1007 HOTSPOT_TARGET_OS
1008 DEFINE_CROSS_COMPILE_ARCH
1009 LP64
1010 OPENJDK_TARGET_OS_EXPORT_DIR
1011 OPENJDK_TARGET_CPU_JLI_CFLAGS
1012 OPENJDK_TARGET_CPU_OSARCH
1013 OPENJDK_TARGET_CPU_ISADIR
1014 OPENJDK_TARGET_CPU_LIBDIR
1015 OPENJDK_TARGET_CPU_LEGACY_LIB
1016 OPENJDK_TARGET_CPU_LEGACY
1017 REQUIRED_OS_VERSION
1018 REQUIRED_OS_NAME
1019 COMPILE_TYPE
1020 OPENJDK_TARGET_CPU_ENDIAN
1021 OPENJDK_TARGET_CPU_BITS
1022 OPENJDK_TARGET_CPU_ARCH
1023 OPENJDK_TARGET_CPU
1024 OPENJDK_TARGET_OS_ENV
1025 OPENJDK_TARGET_OS_TYPE
1026 OPENJDK_TARGET_OS
1027 OPENJDK_BUILD_CPU_ENDIAN
1028 OPENJDK_BUILD_CPU_BITS
1029 OPENJDK_BUILD_CPU_ARCH
1030 OPENJDK_BUILD_CPU
1031 OPENJDK_BUILD_OS_ENV
1032 OPENJDK_BUILD_OS_TYPE
1033 OPENJDK_BUILD_OS
1034 OPENJDK_BUILD_AUTOCONF_NAME
1035 OPENJDK_TARGET_AUTOCONF_NAME
1036 target_os
1037 target_vendor
1038 target_cpu
1039 target
1040 host_os
1041 host_vendor
1042 host_cpu
1043 host
1044 build_os
1045 build_vendor
1046 build_cpu
1047 build
1048 NICE
1049 CPIO
1050 DF
1051 READLINK
1052 CYGPATH
1053 SED
1054 FGREP
1055 EGREP
1056 GREP
1057 AWK
1058 XARGS
1059 WHICH
1060 WC
1061 UNIQ
1062 UNAME
1063 TR
1064 TOUCH
1065 TEE
1066 TAR
1067 TAIL
1068 SORT
1069 SH
1070 RMDIR
1071 RM
1072 PRINTF
1073 NAWK
1074 MV
1075 MKTEMP
1076 MKDIR
1077 LS
1078 LN
1079 HEAD
1080 FIND
1081 FILE
1082 EXPR
1083 ECHO
1084 DIRNAME
1085 DIFF
1086 DATE
1087 CUT
1088 CP
1089 COMM
1090 CMP
1091 CHMOD
1092 CAT
1093 BASH
1094 BASENAME
1095 DATE_WHEN_CONFIGURED
1096 ORIGINAL_PATH
1097 CONFIGURE_COMMAND_LINE
1098 target_alias
1099 host_alias
1100 build_alias
1101 LIBS
1102 ECHO_T
1103 ECHO_N
1104 ECHO_C
1105 DEFS
1106 mandir
1107 localedir
1108 libdir
1109 psdir
1110 pdfdir
1111 dvidir
1112 htmldir
1113 infodir
1114 docdir
1115 oldincludedir
1116 includedir
1117 localstatedir
1118 sharedstatedir
1119 sysconfdir
1120 datadir
1121 datarootdir
1122 libexecdir
1123 sbindir
1124 bindir
1125 program_transform_name
1126 prefix
1127 exec_prefix
1128 PACKAGE_URL
1129 PACKAGE_BUGREPORT
1130 PACKAGE_STRING
1131 PACKAGE_VERSION
1132 PACKAGE_TARNAME
1133 PACKAGE_NAME
1134 PATH_SEPARATOR
1135 SHELL'
1136 ac_subst_files=''
1137 ac_user_opts='
1138 enable_option_checking
1139 with_target_bits
1140 enable_openjdk_only
1141 with_custom_make_dir
1142 with_jdk_variant
1143 enable_debug
1144 with_debug_level
1145 with_jvm_variants
1146 with_devkit
1147 with_sys_root
1148 with_sysroot
1149 with_tools_dir
1150 with_toolchain_path
1151 with_extra_path
1152 with_sdk_name
1153 with_conf_name
1154 with_output_sync
1155 with_default_make_target
1156 enable_headful
1157 with_cacerts_file
1158 enable_unlimited_crypto
1159 with_copyright_year
1160 enable_keep_packaged_modules
1161 with_milestone
1162 with_update_version
1163 with_user_release_suffix
1164 with_build_number
1165 with_version_string
1166 with_version_pre
1167 with_version_opt
1168 with_version_build
1169 with_version_major
1170 with_version_minor
1171 with_version_security
1172 with_version_patch
1173 with_boot_jdk
1174 with_build_jdk
1175 with_add_source_root
1176 with_override_source_root
1177 with_adds_and_overrides
1178 with_override_langtools
1179 with_override_corba
1180 with_override_jaxp
1181 with_override_jaxws
1182 with_override_hotspot
1183 with_override_nashorn
1184 with_override_jdk
1185 with_import_hotspot
1186 with_import_modules
1187 enable_static_build
1188 with_toolchain_type
1189 with_extra_cflags
1190 with_extra_cxxflags
1191 with_extra_ldflags
1192 with_toolchain_version
1193 with_build_devkit
1194 with_jtreg
1195 enable_warnings_as_errors
1196 with_native_debug_symbols
1197 enable_debug_symbols
1198 enable_zip_debug_info
1199 enable_native_coverage
1200 enable_dtrace
1201 with_jvm_features
1202 with_jvm_interpreter
1203 with_stdc__lib
1204 with_msvcr_dll
1205 with_msvcp_dll
1206 with_x
1207 with_cups
1208 with_cups_include
1209 with_freetype
1210 with_freetype_include
1211 with_freetype_lib
1212 with_freetype_src
1213 enable_freetype_bundling
1214 with_alsa
1215 with_alsa_include
1216 with_alsa_lib
1217 with_libffi
1218 with_libffi_include
1219 with_libffi_lib
1220 with_libjpeg
1221 with_giflib
1222 with_libpng
1223 with_zlib
1224 with_lcms
1225 with_dxsdk
1226 with_dxsdk_lib
1227 with_dxsdk_include
1228 enable_jtreg_failure_handler
1229 enable_new_hotspot_build
1230 enable_hotspot_test_in_build
1231 with_num_cores
1232 with_memory_size
1233 with_jobs
1234 with_test_jobs
1235 with_boot_jdk_jvmargs
1236 with_sjavac_server_java
1237 enable_sjavac
1238 enable_javac_server
1239 enable_icecc
1240 enable_precompiled_headers
1241 enable_ccache
1242 with_ccache_dir
1243 '
1244       ac_precious_vars='build_alias
1245 host_alias
1246 target_alias
1247 BASENAME
1248 BASH
1249 CAT
1250 CHMOD
1251 CMP
1252 COMM
1253 CP
1254 CUT
1255 DATE
1256 DIFF
1257 DIRNAME
1258 ECHO
1259 EXPR
1260 FILE
1261 FIND
1262 HEAD
1263 LN
1264 LS
1265 MKDIR
1266 MKTEMP
1267 MV
1268 NAWK
1269 PRINTF
1270 RM
1271 RMDIR
1272 SH
1273 SORT
1274 TAIL
1275 TAR
1276 TEE
1277 TOUCH
1278 TR
1279 UNAME
1280 UNIQ
1281 WC
1282 WHICH
1283 XARGS
1284 AWK
1285 GREP
1286 EGREP
1287 FGREP
1288 SED
1289 CYGPATH
1290 READLINK
1291 DF
1292 CPIO
1293 NICE
1294 MAKE
1295 UNZIP
1296 ZIP
1297 LDD
1298 OTOOL
1299 READELF
1300 HG
1301 STAT
1302 TIME
1303 DTRACE
1304 PATCH
1305 DSYMUTIL
1306 XATTR
1307 CODESIGN
1308 SETFILE
1309 PKG_CONFIG
1310 JAVA
1311 JAVAC
1312 JAVAH
1313 JAR
1314 JARSIGNER
1315 CC
1316 CFLAGS
1317 LDFLAGS
1318 LIBS
1319 CPPFLAGS
1320 CXX
1321 CXXFLAGS
1322 CCC
1323 CPP
1324 CXXCPP
1325 AS
1326 AR
1327 LIPO
1328 STRIP
1329 NM
1330 GNM
1331 OBJCOPY
1332 OBJDUMP
1333 BUILD_CC
1334 BUILD_CXX
1335 BUILD_NM
1336 BUILD_AR
1337 BUILD_OBJCOPY
1338 BUILD_STRIP
1339 JTREGEXE
1340 XMKMF
1341 FREETYPE_CFLAGS
1342 FREETYPE_LIBS
1343 ALSA_CFLAGS
1344 ALSA_LIBS
1345 LIBFFI_CFLAGS
1346 LIBFFI_LIBS
1347 PNG_CFLAGS
1348 PNG_LIBS
1349 LCMS_CFLAGS
1350 LCMS_LIBS
1351 ICECC_CMD
1352 ICECC_CREATE_ENV
1353 ICECC_WRAPPER
1354 CCACHE'
1355 
1356 
1357 # Initialize some variables set by options.
1358 ac_init_help=
1359 ac_init_version=false
1360 ac_unrecognized_opts=
1361 ac_unrecognized_sep=
1362 # The variables have the same names as the options, with
1363 # dashes changed to underlines.
1364 cache_file=/dev/null
1365 exec_prefix=NONE
1366 no_create=
1367 no_recursion=
1368 prefix=NONE
1369 program_prefix=NONE
1370 program_suffix=NONE
1371 program_transform_name=s,x,x,
1372 silent=
1373 site=
1374 srcdir=
1375 verbose=
1376 x_includes=NONE
1377 x_libraries=NONE
1378 
1379 # Installation directory options.
1380 # These are left unexpanded so users can "make install exec_prefix=/foo"
1381 # and all the variables that are supposed to be based on exec_prefix
1382 # by default will actually change.
1383 # Use braces instead of parens because sh, perl, etc. also accept them.
1384 # (The list follows the same order as the GNU Coding Standards.)
1385 bindir='${exec_prefix}/bin'
1386 sbindir='${exec_prefix}/sbin'
1387 libexecdir='${exec_prefix}/libexec'
1388 datarootdir='${prefix}/share'
1389 datadir='${datarootdir}'
1390 sysconfdir='${prefix}/etc'
1391 sharedstatedir='${prefix}/com'
1392 localstatedir='${prefix}/var'
1393 includedir='${prefix}/include'
1394 oldincludedir='/usr/include'
1395 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1396 infodir='${datarootdir}/info'
1397 htmldir='${docdir}'
1398 dvidir='${docdir}'
1399 pdfdir='${docdir}'
1400 psdir='${docdir}'
1401 libdir='${exec_prefix}/lib'
1402 localedir='${datarootdir}/locale'
1403 mandir='${datarootdir}/man'
1404 
1405 ac_prev=
1406 ac_dashdash=
1407 for ac_option
1408 do
1409   # If the previous option needs an argument, assign it.
1410   if test -n "$ac_prev"; then
1411     eval $ac_prev=\$ac_option
1412     ac_prev=
1413     continue
1414   fi
1415 
1416   case $ac_option in
1417   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1418   *=)   ac_optarg= ;;
1419   *)    ac_optarg=yes ;;
1420   esac
1421 
1422   # Accept the important Cygnus configure options, so we can diagnose typos.
1423 
1424   case $ac_dashdash$ac_option in
1425   --)
1426     ac_dashdash=yes ;;
1427 
1428   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1429     ac_prev=bindir ;;
1430   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1431     bindir=$ac_optarg ;;
1432 
1433   -build | --build | --buil | --bui | --bu)
1434     ac_prev=build_alias ;;
1435   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1436     build_alias=$ac_optarg ;;
1437 
1438   -cache-file | --cache-file | --cache-fil | --cache-fi \
1439   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1440     ac_prev=cache_file ;;
1441   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1442   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1443     cache_file=$ac_optarg ;;
1444 
1445   --config-cache | -C)
1446     cache_file=config.cache ;;
1447 
1448   -datadir | --datadir | --datadi | --datad)
1449     ac_prev=datadir ;;
1450   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1451     datadir=$ac_optarg ;;
1452 
1453   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1454   | --dataroo | --dataro | --datar)
1455     ac_prev=datarootdir ;;
1456   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1457   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1458     datarootdir=$ac_optarg ;;
1459 
1460   -disable-* | --disable-*)
1461     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1462     # Reject names that are not valid shell variable names.
1463     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464       as_fn_error $? "invalid feature name: $ac_useropt"
1465     ac_useropt_orig=$ac_useropt
1466     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467     case $ac_user_opts in
1468       *"
1469 "enable_$ac_useropt"
1470 "*) ;;
1471       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1472          ac_unrecognized_sep=', ';;
1473     esac
1474     eval enable_$ac_useropt=no ;;
1475 
1476   -docdir | --docdir | --docdi | --doc | --do)
1477     ac_prev=docdir ;;
1478   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1479     docdir=$ac_optarg ;;
1480 
1481   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1482     ac_prev=dvidir ;;
1483   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1484     dvidir=$ac_optarg ;;
1485 
1486   -enable-* | --enable-*)
1487     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1488     # Reject names that are not valid shell variable names.
1489     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490       as_fn_error $? "invalid feature name: $ac_useropt"
1491     ac_useropt_orig=$ac_useropt
1492     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493     case $ac_user_opts in
1494       *"
1495 "enable_$ac_useropt"
1496 "*) ;;
1497       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1498          ac_unrecognized_sep=', ';;
1499     esac
1500     eval enable_$ac_useropt=\$ac_optarg ;;
1501 
1502   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1503   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1504   | --exec | --exe | --ex)
1505     ac_prev=exec_prefix ;;
1506   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1507   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1508   | --exec=* | --exe=* | --ex=*)
1509     exec_prefix=$ac_optarg ;;
1510 
1511   -gas | --gas | --ga | --g)
1512     # Obsolete; use --with-gas.
1513     with_gas=yes ;;
1514 
1515   -help | --help | --hel | --he | -h)
1516     ac_init_help=long ;;
1517   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1518     ac_init_help=recursive ;;
1519   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1520     ac_init_help=short ;;
1521 
1522   -host | --host | --hos | --ho)
1523     ac_prev=host_alias ;;
1524   -host=* | --host=* | --hos=* | --ho=*)
1525     host_alias=$ac_optarg ;;
1526 
1527   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1528     ac_prev=htmldir ;;
1529   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1530   | --ht=*)
1531     htmldir=$ac_optarg ;;
1532 
1533   -includedir | --includedir | --includedi | --included | --include \
1534   | --includ | --inclu | --incl | --inc)
1535     ac_prev=includedir ;;
1536   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1537   | --includ=* | --inclu=* | --incl=* | --inc=*)
1538     includedir=$ac_optarg ;;
1539 
1540   -infodir | --infodir | --infodi | --infod | --info | --inf)
1541     ac_prev=infodir ;;
1542   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1543     infodir=$ac_optarg ;;
1544 
1545   -libdir | --libdir | --libdi | --libd)
1546     ac_prev=libdir ;;
1547   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1548     libdir=$ac_optarg ;;
1549 
1550   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1551   | --libexe | --libex | --libe)
1552     ac_prev=libexecdir ;;
1553   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1554   | --libexe=* | --libex=* | --libe=*)
1555     libexecdir=$ac_optarg ;;
1556 
1557   -localedir | --localedir | --localedi | --localed | --locale)
1558     ac_prev=localedir ;;
1559   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1560     localedir=$ac_optarg ;;
1561 
1562   -localstatedir | --localstatedir | --localstatedi | --localstated \
1563   | --localstate | --localstat | --localsta | --localst | --locals)
1564     ac_prev=localstatedir ;;
1565   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1566   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1567     localstatedir=$ac_optarg ;;
1568 
1569   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1570     ac_prev=mandir ;;
1571   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1572     mandir=$ac_optarg ;;
1573 
1574   -nfp | --nfp | --nf)
1575     # Obsolete; use --without-fp.
1576     with_fp=no ;;
1577 
1578   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1579   | --no-cr | --no-c | -n)
1580     no_create=yes ;;
1581 
1582   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1583   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1584     no_recursion=yes ;;
1585 
1586   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1587   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1588   | --oldin | --oldi | --old | --ol | --o)
1589     ac_prev=oldincludedir ;;
1590   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1591   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1592   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1593     oldincludedir=$ac_optarg ;;
1594 
1595   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1596     ac_prev=prefix ;;
1597   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1598     prefix=$ac_optarg ;;
1599 
1600   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1601   | --program-pre | --program-pr | --program-p)
1602     ac_prev=program_prefix ;;
1603   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1604   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1605     program_prefix=$ac_optarg ;;
1606 
1607   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1608   | --program-suf | --program-su | --program-s)
1609     ac_prev=program_suffix ;;
1610   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1611   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1612     program_suffix=$ac_optarg ;;
1613 
1614   -program-transform-name | --program-transform-name \
1615   | --program-transform-nam | --program-transform-na \
1616   | --program-transform-n | --program-transform- \
1617   | --program-transform | --program-transfor \
1618   | --program-transfo | --program-transf \
1619   | --program-trans | --program-tran \
1620   | --progr-tra | --program-tr | --program-t)
1621     ac_prev=program_transform_name ;;
1622   -program-transform-name=* | --program-transform-name=* \
1623   | --program-transform-nam=* | --program-transform-na=* \
1624   | --program-transform-n=* | --program-transform-=* \
1625   | --program-transform=* | --program-transfor=* \
1626   | --program-transfo=* | --program-transf=* \
1627   | --program-trans=* | --program-tran=* \
1628   | --progr-tra=* | --program-tr=* | --program-t=*)
1629     program_transform_name=$ac_optarg ;;
1630 
1631   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1632     ac_prev=pdfdir ;;
1633   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1634     pdfdir=$ac_optarg ;;
1635 
1636   -psdir | --psdir | --psdi | --psd | --ps)
1637     ac_prev=psdir ;;
1638   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1639     psdir=$ac_optarg ;;
1640 
1641   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642   | -silent | --silent | --silen | --sile | --sil)
1643     silent=yes ;;
1644 
1645   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1646     ac_prev=sbindir ;;
1647   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1648   | --sbi=* | --sb=*)
1649     sbindir=$ac_optarg ;;
1650 
1651   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1652   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1653   | --sharedst | --shareds | --shared | --share | --shar \
1654   | --sha | --sh)
1655     ac_prev=sharedstatedir ;;
1656   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1657   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1658   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1659   | --sha=* | --sh=*)
1660     sharedstatedir=$ac_optarg ;;
1661 
1662   -site | --site | --sit)
1663     ac_prev=site ;;
1664   -site=* | --site=* | --sit=*)
1665     site=$ac_optarg ;;
1666 
1667   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1668     ac_prev=srcdir ;;
1669   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1670     srcdir=$ac_optarg ;;
1671 
1672   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1673   | --syscon | --sysco | --sysc | --sys | --sy)
1674     ac_prev=sysconfdir ;;
1675   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1676   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1677     sysconfdir=$ac_optarg ;;
1678 
1679   -target | --target | --targe | --targ | --tar | --ta | --t)
1680     ac_prev=target_alias ;;
1681   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1682     target_alias=$ac_optarg ;;
1683 
1684   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1685     verbose=yes ;;
1686 
1687   -version | --version | --versio | --versi | --vers | -V)
1688     ac_init_version=: ;;
1689 
1690   -with-* | --with-*)
1691     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1692     # Reject names that are not valid shell variable names.
1693     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1694       as_fn_error $? "invalid package name: $ac_useropt"
1695     ac_useropt_orig=$ac_useropt
1696     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1697     case $ac_user_opts in
1698       *"
1699 "with_$ac_useropt"
1700 "*) ;;
1701       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1702          ac_unrecognized_sep=', ';;
1703     esac
1704     eval with_$ac_useropt=\$ac_optarg ;;
1705 
1706   -without-* | --without-*)
1707     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1708     # Reject names that are not valid shell variable names.
1709     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1710       as_fn_error $? "invalid package name: $ac_useropt"
1711     ac_useropt_orig=$ac_useropt
1712     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1713     case $ac_user_opts in
1714       *"
1715 "with_$ac_useropt"
1716 "*) ;;
1717       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1718          ac_unrecognized_sep=', ';;
1719     esac
1720     eval with_$ac_useropt=no ;;
1721 
1722   --x)
1723     # Obsolete; use --with-x.
1724     with_x=yes ;;
1725 
1726   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1727   | --x-incl | --x-inc | --x-in | --x-i)
1728     ac_prev=x_includes ;;
1729   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1730   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1731     x_includes=$ac_optarg ;;
1732 
1733   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1734   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1735     ac_prev=x_libraries ;;
1736   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1737   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1738     x_libraries=$ac_optarg ;;
1739 
1740   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1741 Try \`$0 --help' for more information"
1742     ;;
1743 
1744   *=*)
1745     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1746     # Reject names that are not valid shell variable names.
1747     case $ac_envvar in #(
1748       '' | [0-9]* | *[!_$as_cr_alnum]* )
1749       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1750     esac
1751     eval $ac_envvar=\$ac_optarg
1752     export $ac_envvar ;;
1753 
1754   *)
1755     # FIXME: should be removed in autoconf 3.0.
1756     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1757     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1758       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1759     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1760     ;;
1761 
1762   esac
1763 done
1764 
1765 if test -n "$ac_prev"; then
1766   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1767   as_fn_error $? "missing argument to $ac_option"
1768 fi
1769 
1770 if test -n "$ac_unrecognized_opts"; then
1771   case $enable_option_checking in
1772     no) ;;
1773     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1774     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1775   esac
1776 fi
1777 
1778 # Check all directory arguments for consistency.
1779 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1780                 datadir sysconfdir sharedstatedir localstatedir includedir \
1781                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1782                 libdir localedir mandir
1783 do
1784   eval ac_val=\$$ac_var
1785   # Remove trailing slashes.
1786   case $ac_val in
1787     */ )
1788       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1789       eval $ac_var=\$ac_val;;
1790   esac
1791   # Be sure to have absolute directory names.
1792   case $ac_val in
1793     [\\/$]* | ?:[\\/]* )  continue;;
1794     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1795   esac
1796   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1797 done
1798 
1799 # There might be people who depend on the old broken behavior: `$host'
1800 # used to hold the argument of --host etc.
1801 # FIXME: To remove some day.
1802 build=$build_alias
1803 host=$host_alias
1804 target=$target_alias
1805 
1806 # FIXME: To remove some day.
1807 if test "x$host_alias" != x; then
1808   if test "x$build_alias" = x; then
1809     cross_compiling=maybe
1810   elif test "x$build_alias" != "x$host_alias"; then
1811     cross_compiling=yes
1812   fi
1813 fi
1814 
1815 ac_tool_prefix=
1816 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1817 
1818 test "$silent" = yes && exec 6>/dev/null
1819 
1820 
1821 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1822 ac_ls_di=`ls -di .` &&
1823 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1824   as_fn_error $? "working directory cannot be determined"
1825 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1826   as_fn_error $? "pwd does not report name of working directory"
1827 
1828 
1829 # Find the source files, if location was not specified.
1830 if test -z "$srcdir"; then
1831   ac_srcdir_defaulted=yes
1832   # Try the directory containing this script, then the parent directory.
1833   ac_confdir=`$as_dirname -- "$as_myself" ||
1834 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1835          X"$as_myself" : 'X\(//\)[^/]' \| \
1836          X"$as_myself" : 'X\(//\)$' \| \
1837          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1838 $as_echo X"$as_myself" |
1839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1840             s//\1/
1841             q
1842           }
1843           /^X\(\/\/\)[^/].*/{
1844             s//\1/
1845             q
1846           }
1847           /^X\(\/\/\)$/{
1848             s//\1/
1849             q
1850           }
1851           /^X\(\/\).*/{
1852             s//\1/
1853             q
1854           }
1855           s/.*/./; q'`
1856   srcdir=$ac_confdir
1857   if test ! -r "$srcdir/$ac_unique_file"; then
1858     srcdir=..
1859   fi
1860 else
1861   ac_srcdir_defaulted=no
1862 fi
1863 if test ! -r "$srcdir/$ac_unique_file"; then
1864   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1865   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1866 fi
1867 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1868 ac_abs_confdir=`(
1869         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1870         pwd)`
1871 # When building in place, set srcdir=.
1872 if test "$ac_abs_confdir" = "$ac_pwd"; then
1873   srcdir=.
1874 fi
1875 # Remove unnecessary trailing slashes from srcdir.
1876 # Double slashes in file names in object file debugging info
1877 # mess up M-x gdb in Emacs.
1878 case $srcdir in
1879 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1880 esac
1881 for ac_var in $ac_precious_vars; do
1882   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1883   eval ac_env_${ac_var}_value=\$${ac_var}
1884   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1885   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1886 done
1887 
1888 #
1889 # Report the --help message.
1890 #
1891 if test "$ac_init_help" = "long"; then
1892   # Omit some internal or obsolete options to make the list less imposing.
1893   # This message is too long to be a string in the A/UX 3.1 sh.
1894   cat <<_ACEOF
1895 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1896 
1897 Usage: $0 [OPTION]... [VAR=VALUE]...
1898 
1899 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1900 VAR=VALUE.  See below for descriptions of some of the useful variables.
1901 
1902 Defaults for the options are specified in brackets.
1903 
1904 Configuration:
1905   -h, --help              display this help and exit
1906       --help=short        display options specific to this package
1907       --help=recursive    display the short help of all the included packages
1908   -V, --version           display version information and exit
1909   -q, --quiet, --silent   do not print \`checking ...' messages
1910       --cache-file=FILE   cache test results in FILE [disabled]
1911   -C, --config-cache      alias for \`--cache-file=config.cache'
1912   -n, --no-create         do not create output files
1913       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1914 
1915 Installation directories:
1916   --prefix=PREFIX         install architecture-independent files in PREFIX
1917                           [$ac_default_prefix]
1918   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1919                           [PREFIX]
1920 
1921 By default, \`make install' will install all the files in
1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1924 for instance \`--prefix=\$HOME'.
1925 
1926 For better control, use the options below.
1927 
1928 Fine tuning of the installation directories:
1929   --bindir=DIR            user executables [EPREFIX/bin]
1930   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1931   --libexecdir=DIR        program executables [EPREFIX/libexec]
1932   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1933   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1934   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1935   --libdir=DIR            object code libraries [EPREFIX/lib]
1936   --includedir=DIR        C header files [PREFIX/include]
1937   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1938   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1939   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1940   --infodir=DIR           info documentation [DATAROOTDIR/info]
1941   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1942   --mandir=DIR            man documentation [DATAROOTDIR/man]
1943   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1944   --htmldir=DIR           html documentation [DOCDIR]
1945   --dvidir=DIR            dvi documentation [DOCDIR]
1946   --pdfdir=DIR            pdf documentation [DOCDIR]
1947   --psdir=DIR             ps documentation [DOCDIR]
1948 _ACEOF
1949 
1950   cat <<\_ACEOF
1951 
1952 X features:
1953   --x-includes=DIR    X include files are in DIR
1954   --x-libraries=DIR   X library files are in DIR
1955 
1956 System types:
1957   --build=BUILD     configure for building on BUILD [guessed]
1958   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1959   --target=TARGET   configure for building compilers for TARGET [HOST]
1960 _ACEOF
1961 fi
1962 
1963 if test -n "$ac_init_help"; then
1964   case $ac_init_help in
1965      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1966    esac
1967   cat <<\_ACEOF
1968 
1969 Optional Features:
1970   --disable-option-checking  ignore unrecognized --enable/--with options
1971   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1972   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1973   --enable-openjdk-only   suppress building custom source even if present
1974                           [disabled]
1975   --enable-debug          set the debug level to fastdebug (shorthand for
1976                           --with-debug-level=fastdebug) [disabled]
1977   --disable-headful       disable building headful support (graphical UI
1978                           support) [enabled]
1979   --enable-unlimited-crypto
1980                           Enable unlimited crypto policy [disabled]
1981   --disable-keep-packaged-modules
1982                           Do not keep packaged modules in jdk image [enable]
1983   --enable-static-build   enable static library build [disabled]
1984   --disable-warnings-as-errors
1985                           do not consider native warnings to be an error
1986                           [enabled]
1987   --enable-debug-symbols  Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --enable-zip-debug-info Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --enable-native-coverage
1992                           enable native compilation with code coverage
1993                           data[disabled]
1994   --enable-dtrace[=yes/no/auto]
1995                           enable dtrace. Default is auto, where dtrace is
1996                           enabled if all dependencies are present.
1997   --disable-freetype-bundling
1998                           disable bundling of the freetype library with the
1999                           build result [enabled on Windows or when using
2000                           --with-freetype, disabled otherwise]
2001   --disable-new-hotspot-build
2002                           disable the new hotspot build system (use the old)
2003                           [enabled]
2004   --enable-hotspot-test-in-build
2005                           run the Queens test after Hotspot build [disabled]
2006   --enable-jtreg-failure-handler
2007                           forces build of the jtreg failure handler to be
2008                           enabled, missing dependencies become fatal errors.
2009                           Default is auto, where the failure handler is built
2010                           if all dependencies are present and otherwise just
2011                           disabled.
2012   --enable-sjavac         use sjavac to do fast incremental compiles
2013                           [disabled]
2014   --disable-javac-server  disable javac server [enabled]
2015   --enable-icecc          enable distribted compilation of native code using
2016                           icecc/icecream [disabled]
2017   --disable-precompiled-headers
2018                           disable using precompiled headers when compiling C++
2019                           [enabled]
2020   --enable-ccache         enable using ccache to speed up recompilations
2021                           [disabled]
2022 
2023 Optional Packages:
2024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2026   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
2027                           support it), e.g. --with-target-bits=32 [guessed]
2028   --with-custom-make-dir  Deprecated. Option is kept for backwards
2029                           compatibility and is ignored
2030   --with-jdk-variant      JDK variant to build (normal) [normal]
2031   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2032                           optimized) [release]
2033   --with-jvm-variants     JVM variants (separated by commas) to build
2034                           (server,client,minimal,core,zero,zeroshark,custom)
2035                           [server]
2036   --with-devkit           use this devkit for compilers, tools and resources
2037   --with-sys-root         alias for --with-sysroot for backwards compatability
2038   --with-sysroot          use this directory as sysroot
2039   --with-tools-dir        alias for --with-toolchain-path for backwards
2040                           compatibility
2041   --with-toolchain-path   prepend these directories when searching for
2042                           toolchain binaries (compilers etc)
2043   --with-extra-path       prepend these directories to the default path
2044   --with-sdk-name         use the platform SDK of the given name. [macosx]
2045   --with-conf-name        use this as the name of the configuration [generated
2046                           from important configuration options]
2047   --with-output-sync      set make output sync type if supported by make.
2048                           [recurse]
2049   --with-default-make-target
2050                           set the default make target [exploded-image]
2051   --with-cacerts-file     specify alternative cacerts file
2052   --with-copyright-year   Set copyright year value for build [current year]
2053   --with-milestone        Deprecated. Option is kept for backwards
2054                           compatibility and is ignored
2055   --with-update-version   Deprecated. Option is kept for backwards
2056                           compatibility and is ignored
2057   --with-user-release-suffix
2058                           Deprecated. Option is kept for backwards
2059                           compatibility and is ignored
2060   --with-build-number     Deprecated. Option is kept for backwards
2061                           compatibility and is ignored
2062   --with-version-string   Set version string [calculated]
2063   --with-version-pre      Set the base part of the version 'PRE' field
2064                           (pre-release identifier) ['internal']
2065   --with-version-opt      Set version 'OPT' field (build metadata)
2066                           [<timestamp>.<user>.<dirname>]
2067   --with-version-build    Set version 'BUILD' field (build number) [not
2068                           specified]
2069   --with-version-major    Set version 'MAJOR' field (first number) [current
2070                           source value]
2071   --with-version-minor    Set version 'MINOR' field (second number) [current
2072                           source value]
2073   --with-version-security Set version 'SECURITY' field (third number) [current
2074                           source value]
2075   --with-version-patch    Set version 'PATCH' field (fourth number) [not
2076                           specified]
2077   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2078   --with-build-jdk        path to JDK of same version as is being built[the
2079                           newly built JDK]
2080   --with-add-source-root  Deprecated. Option is kept for backwards
2081                           compatibility and is ignored
2082   --with-override-source-root
2083                           Deprecated. Option is kept for backwards
2084                           compatibility and is ignored
2085   --with-adds-and-overrides
2086                           Deprecated. Option is kept for backwards
2087                           compatibility and is ignored
2088   --with-override-langtools
2089                           Deprecated. Option is kept for backwards
2090                           compatibility and is ignored
2091   --with-override-corba   Deprecated. Option is kept for backwards
2092                           compatibility and is ignored
2093   --with-override-jaxp    Deprecated. Option is kept for backwards
2094                           compatibility and is ignored
2095   --with-override-jaxws   Deprecated. Option is kept for backwards
2096                           compatibility and is ignored
2097   --with-override-hotspot Deprecated. Option is kept for backwards
2098                           compatibility and is ignored
2099   --with-override-nashorn Deprecated. Option is kept for backwards
2100                           compatibility and is ignored
2101   --with-override-jdk     Deprecated. Option is kept for backwards
2102                           compatibility and is ignored
2103   --with-import-hotspot   import hotspot binaries from this jdk image or
2104                           hotspot build dist dir instead of building from
2105                           source
2106   --with-import-modules   import a set of prebuilt modules either as a zip
2107                           file or an exploded directory
2108   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2109                           to show possible values [platform dependent]
2110   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2111   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2112   --with-extra-ldflags    extra flags to be used when linking jdk
2113   --with-toolchain-version
2114                           the version of the toolchain to look for, use
2115                           '--help' to show possible values [platform
2116                           dependent]
2117   --with-build-devkit     Devkit to use for the build platform toolchain
2118   --with-jtreg            Regression Test Harness [probed]
2119   --with-native-debug-symbols
2120                           set the native debug symbol configuration (none,
2121                           internal, external, zipped) [varying]
2122   --with-jvm-features     additional JVM features to enable (separated by
2123                           comma), use '--help' to show possible values [none]
2124   --with-jvm-interpreter  Deprecated. Option is kept for backwards
2125                           compatibility and is ignored
2126   --with-stdc++lib=<static>,<dynamic>,<default>
2127                           force linking of the C++ runtime on Linux to either
2128                           static or dynamic, default is static with dynamic as
2129                           fallback
2130   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2131                           (Windows only) [probed]
2132   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2133                           (Windows only) [probed]
2134   --with-x                use the X Window System
2135   --with-cups             specify prefix directory for the cups package
2136                           (expecting the headers under PATH/include)
2137   --with-cups-include     specify directory for the cups include files
2138   --with-freetype         specify prefix directory for the freetype package
2139                           (expecting the libraries under PATH/lib and the
2140                           headers under PATH/include)
2141   --with-freetype-include specify directory for the freetype include files
2142   --with-freetype-lib     specify directory for the freetype library
2143   --with-freetype-src     specify directory with freetype sources to
2144                           automatically build the library (experimental,
2145                           Windows-only)
2146   --with-alsa             specify prefix directory for the alsa package
2147                           (expecting the libraries under PATH/lib and the
2148                           headers under PATH/include)
2149   --with-alsa-include     specify directory for the alsa include files
2150   --with-alsa-lib         specify directory for the alsa library
2151   --with-libffi           specify prefix directory for the libffi package
2152                           (expecting the libraries under PATH/lib and the
2153                           headers under PATH/include)
2154   --with-libffi-include   specify directory for the libffi include files
2155   --with-libffi-lib       specify directory for the libffi library
2156   --with-libjpeg          use libjpeg from build system or OpenJDK source
2157                           (system, bundled) [bundled]
2158   --with-giflib           use giflib from build system or OpenJDK source
2159                           (system, bundled) [bundled]
2160   --with-libpng           use libpng from build system or OpenJDK source
2161                           (system, bundled) [bundled]
2162   --with-zlib             use zlib from build system or OpenJDK source
2163                           (system, bundled) [bundled]
2164   --with-lcms             use lcms2 from build system or OpenJDK source
2165                           (system, bundled) [bundled]
2166   --with-dxsdk            Deprecated. Option is kept for backwards
2167                           compatibility and is ignored
2168   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2169                           compatibility and is ignored
2170   --with-dxsdk-include    Deprecated. Option is kept for backwards
2171                           compatibility and is ignored
2172   --with-num-cores        number of cores in the build system, e.g.
2173                           --with-num-cores=8 [probed]
2174   --with-memory-size      memory (in MB) available in the build system, e.g.
2175                           --with-memory-size=1024 [probed]
2176   --with-jobs             number of parallel jobs to let make run [calculated
2177                           based on cores and memory]
2178   --with-test-jobs        number of parallel tests jobs to run [based on build
2179                           jobs]
2180   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2181                           invocations of boot JDK, overriding the default
2182                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2183                           -enableassertions"
2184   --with-sjavac-server-java
2185                           use this java binary for running the sjavac
2186                           background server [Boot JDK java]
2187   --with-ccache-dir       where to store ccache files [~/.ccache]
2188 
2189 Some influential environment variables:
2190   BASENAME    Override default value for BASENAME
2191   BASH        Override default value for BASH
2192   CAT         Override default value for CAT
2193   CHMOD       Override default value for CHMOD
2194   CMP         Override default value for CMP
2195   COMM        Override default value for COMM
2196   CP          Override default value for CP
2197   CUT         Override default value for CUT
2198   DATE        Override default value for DATE
2199   DIFF        Override default value for DIFF
2200   DIRNAME     Override default value for DIRNAME
2201   ECHO        Override default value for ECHO
2202   EXPR        Override default value for EXPR
2203   FILE        Override default value for FILE
2204   FIND        Override default value for FIND
2205   HEAD        Override default value for HEAD
2206   LN          Override default value for LN
2207   LS          Override default value for LS
2208   MKDIR       Override default value for MKDIR
2209   MKTEMP      Override default value for MKTEMP
2210   MV          Override default value for MV
2211   NAWK        Override default value for NAWK
2212   PRINTF      Override default value for PRINTF
2213   RM          Override default value for RM
2214   RMDIR       Override default value for RMDIR
2215   SH          Override default value for SH
2216   SORT        Override default value for SORT
2217   TAIL        Override default value for TAIL
2218   TAR         Override default value for TAR
2219   TEE         Override default value for TEE
2220   TOUCH       Override default value for TOUCH
2221   TR          Override default value for TR
2222   UNAME       Override default value for UNAME
2223   UNIQ        Override default value for UNIQ
2224   WC          Override default value for WC
2225   WHICH       Override default value for WHICH
2226   XARGS       Override default value for XARGS
2227   AWK         Override default value for AWK
2228   GREP        Override default value for GREP
2229   EGREP       Override default value for EGREP
2230   FGREP       Override default value for FGREP
2231   SED         Override default value for SED
2232   CYGPATH     Override default value for CYGPATH
2233   READLINK    Override default value for READLINK
2234   DF          Override default value for DF
2235   CPIO        Override default value for CPIO
2236   NICE        Override default value for NICE
2237   MAKE        Override default value for MAKE
2238   UNZIP       Override default value for UNZIP
2239   ZIP         Override default value for ZIP
2240   LDD         Override default value for LDD
2241   OTOOL       Override default value for OTOOL
2242   READELF     Override default value for READELF
2243   HG          Override default value for HG
2244   STAT        Override default value for STAT
2245   TIME        Override default value for TIME
2246   DTRACE      Override default value for DTRACE
2247   PATCH       Override default value for PATCH
2248   DSYMUTIL    Override default value for DSYMUTIL
2249   XATTR       Override default value for XATTR
2250   CODESIGN    Override default value for CODESIGN
2251   SETFILE     Override default value for SETFILE
2252   PKG_CONFIG  path to pkg-config utility
2253   JAVA        Override default value for JAVA
2254   JAVAC       Override default value for JAVAC
2255   JAVAH       Override default value for JAVAH
2256   JAR         Override default value for JAR
2257   JARSIGNER   Override default value for JARSIGNER
2258   CC          C compiler command
2259   CFLAGS      C compiler flags
2260   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2261               nonstandard directory <lib dir>
2262   LIBS        libraries to pass to the linker, e.g. -l<library>
2263   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2264               you have headers in a nonstandard directory <include dir>
2265   CXX         C++ compiler command
2266   CXXFLAGS    C++ compiler flags
2267   CPP         C preprocessor
2268   CXXCPP      C++ preprocessor
2269   AS          Override default value for AS
2270   AR          Override default value for AR
2271   LIPO        Override default value for LIPO
2272   STRIP       Override default value for STRIP
2273   NM          Override default value for NM
2274   GNM         Override default value for GNM
2275   OBJCOPY     Override default value for OBJCOPY
2276   OBJDUMP     Override default value for OBJDUMP
2277   BUILD_CC    Override default value for BUILD_CC
2278   BUILD_CXX   Override default value for BUILD_CXX
2279   BUILD_NM    Override default value for BUILD_NM
2280   BUILD_AR    Override default value for BUILD_AR
2281   BUILD_OBJCOPY
2282               Override default value for BUILD_OBJCOPY
2283   BUILD_STRIP Override default value for BUILD_STRIP
2284   JTREGEXE    Override default value for JTREGEXE
2285   XMKMF       Path to xmkmf, Makefile generator for X Window System
2286   FREETYPE_CFLAGS
2287               C compiler flags for FREETYPE, overriding pkg-config
2288   FREETYPE_LIBS
2289               linker flags for FREETYPE, overriding pkg-config
2290   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2291   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2292   LIBFFI_CFLAGS
2293               C compiler flags for LIBFFI, overriding pkg-config
2294   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2295   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2296   PNG_LIBS    linker flags for PNG, overriding pkg-config
2297   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2298   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2299   ICECC_CMD   Override default value for ICECC_CMD
2300   ICECC_CREATE_ENV
2301               Override default value for ICECC_CREATE_ENV
2302   ICECC_WRAPPER
2303               Override default value for ICECC_WRAPPER
2304   CCACHE      Override default value for CCACHE
2305 
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2308 
2309 Report bugs to <build-dev@openjdk.java.net>.
2310 OpenJDK home page: <http://openjdk.java.net>.
2311 _ACEOF
2312 ac_status=$?
2313 fi
2314 
2315 if test "$ac_init_help" = "recursive"; then
2316   # If there are subdirs, report their specific --help.
2317   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2318     test -d "$ac_dir" ||
2319       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2320       continue
2321     ac_builddir=.
2322 
2323 case "$ac_dir" in
2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 *)
2326   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2327   # A ".." for each directory in $ac_dir_suffix.
2328   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2329   case $ac_top_builddir_sub in
2330   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2331   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2332   esac ;;
2333 esac
2334 ac_abs_top_builddir=$ac_pwd
2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2336 # for backward compatibility:
2337 ac_top_builddir=$ac_top_build_prefix
2338 
2339 case $srcdir in
2340   .)  # We are building in place.
2341     ac_srcdir=.
2342     ac_top_srcdir=$ac_top_builddir_sub
2343     ac_abs_top_srcdir=$ac_pwd ;;
2344   [\\/]* | ?:[\\/]* )  # Absolute name.
2345     ac_srcdir=$srcdir$ac_dir_suffix;
2346     ac_top_srcdir=$srcdir
2347     ac_abs_top_srcdir=$srcdir ;;
2348   *) # Relative name.
2349     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2350     ac_top_srcdir=$ac_top_build_prefix$srcdir
2351     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2352 esac
2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2354 
2355     cd "$ac_dir" || { ac_status=$?; continue; }
2356     # Check for guested configure.
2357     if test -f "$ac_srcdir/configure.gnu"; then
2358       echo &&
2359       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2360     elif test -f "$ac_srcdir/configure"; then
2361       echo &&
2362       $SHELL "$ac_srcdir/configure" --help=recursive
2363     else
2364       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2365     fi || ac_status=$?
2366     cd "$ac_pwd" || { ac_status=$?; break; }
2367   done
2368 fi
2369 
2370 test -n "$ac_init_help" && exit $ac_status
2371 if $ac_init_version; then
2372   cat <<\_ACEOF
2373 OpenJDK configure jdk9
2374 generated by GNU Autoconf 2.69
2375 
2376 Copyright (C) 2012 Free Software Foundation, Inc.
2377 This configure script is free software; the Free Software Foundation
2378 gives unlimited permission to copy, distribute and modify it.
2379 _ACEOF
2380   exit
2381 fi
2382 
2383 ## ------------------------ ##
2384 ## Autoconf initialization. ##
2385 ## ------------------------ ##
2386 
2387 # ac_fn_c_try_compile LINENO
2388 # --------------------------
2389 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2390 ac_fn_c_try_compile ()
2391 {
2392   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393   rm -f conftest.$ac_objext
2394   if { { ac_try="$ac_compile"
2395 case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401   (eval "$ac_compile") 2>conftest.err
2402   ac_status=$?
2403   if test -s conftest.err; then
2404     grep -v '^ *+' conftest.err >conftest.er1
2405     cat conftest.er1 >&5
2406     mv -f conftest.er1 conftest.err
2407   fi
2408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409   test $ac_status = 0; } && {
2410          test -z "$ac_c_werror_flag" ||
2411          test ! -s conftest.err
2412        } && test -s conftest.$ac_objext; then :
2413   ac_retval=0
2414 else
2415   $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417 
2418         ac_retval=1
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421   as_fn_set_status $ac_retval
2422 
2423 } # ac_fn_c_try_compile
2424 
2425 # ac_fn_cxx_try_compile LINENO
2426 # ----------------------------
2427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_cxx_try_compile ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   rm -f conftest.$ac_objext
2432   if { { ac_try="$ac_compile"
2433 case "(($ac_try" in
2434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435   *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439   (eval "$ac_compile") 2>conftest.err
2440   ac_status=$?
2441   if test -s conftest.err; then
2442     grep -v '^ *+' conftest.err >conftest.er1
2443     cat conftest.er1 >&5
2444     mv -f conftest.er1 conftest.err
2445   fi
2446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447   test $ac_status = 0; } && {
2448          test -z "$ac_cxx_werror_flag" ||
2449          test ! -s conftest.err
2450        } && test -s conftest.$ac_objext; then :
2451   ac_retval=0
2452 else
2453   $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455 
2456         ac_retval=1
2457 fi
2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459   as_fn_set_status $ac_retval
2460 
2461 } # ac_fn_cxx_try_compile
2462 
2463 # ac_fn_c_try_cpp LINENO
2464 # ----------------------
2465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_c_try_cpp ()
2467 {
2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469   if { { ac_try="$ac_cpp conftest.$ac_ext"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2477   ac_status=$?
2478   if test -s conftest.err; then
2479     grep -v '^ *+' conftest.err >conftest.er1
2480     cat conftest.er1 >&5
2481     mv -f conftest.er1 conftest.err
2482   fi
2483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484   test $ac_status = 0; } > conftest.i && {
2485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2486          test ! -s conftest.err
2487        }; then :
2488   ac_retval=0
2489 else
2490   $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492 
2493     ac_retval=1
2494 fi
2495   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496   as_fn_set_status $ac_retval
2497 
2498 } # ac_fn_c_try_cpp
2499 
2500 # ac_fn_cxx_try_cpp LINENO
2501 # ------------------------
2502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2503 ac_fn_cxx_try_cpp ()
2504 {
2505   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506   if { { ac_try="$ac_cpp conftest.$ac_ext"
2507 case "(($ac_try" in
2508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509   *) ac_try_echo=$ac_try;;
2510 esac
2511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2512 $as_echo "$ac_try_echo"; } >&5
2513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2514   ac_status=$?
2515   if test -s conftest.err; then
2516     grep -v '^ *+' conftest.err >conftest.er1
2517     cat conftest.er1 >&5
2518     mv -f conftest.er1 conftest.err
2519   fi
2520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521   test $ac_status = 0; } > conftest.i && {
2522          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2523          test ! -s conftest.err
2524        }; then :
2525   ac_retval=0
2526 else
2527   $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529 
2530     ac_retval=1
2531 fi
2532   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533   as_fn_set_status $ac_retval
2534 
2535 } # ac_fn_cxx_try_cpp
2536 
2537 # ac_fn_c_try_link LINENO
2538 # -----------------------
2539 # Try to link conftest.$ac_ext, and return whether this succeeded.
2540 ac_fn_c_try_link ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   rm -f conftest.$ac_objext conftest$ac_exeext
2544   if { { ac_try="$ac_link"
2545 case "(($ac_try" in
2546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547   *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551   (eval "$ac_link") 2>conftest.err
2552   ac_status=$?
2553   if test -s conftest.err; then
2554     grep -v '^ *+' conftest.err >conftest.er1
2555     cat conftest.er1 >&5
2556     mv -f conftest.er1 conftest.err
2557   fi
2558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2559   test $ac_status = 0; } && {
2560          test -z "$ac_c_werror_flag" ||
2561          test ! -s conftest.err
2562        } && test -s conftest$ac_exeext && {
2563          test "$cross_compiling" = yes ||
2564          test -x conftest$ac_exeext
2565        }; then :
2566   ac_retval=0
2567 else
2568   $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570 
2571         ac_retval=1
2572 fi
2573   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2574   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2575   # interfere with the next link command; also delete a directory that is
2576   # left behind by Apple's compiler.  We do this before executing the actions.
2577   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2579   as_fn_set_status $ac_retval
2580 
2581 } # ac_fn_c_try_link
2582 
2583 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2584 # ---------------------------------------------------------
2585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2586 # the include files in INCLUDES and setting the cache variable VAR
2587 # accordingly.
2588 ac_fn_cxx_check_header_mongrel ()
2589 {
2590   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591   if eval \${$3+:} false; then :
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if eval \${$3+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 fi
2597 eval ac_res=\$$3
2598                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600 else
2601   # Is the header compilable?
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2603 $as_echo_n "checking $2 usability... " >&6; }
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 #include <$2>
2608 _ACEOF
2609 if ac_fn_cxx_try_compile "$LINENO"; then :
2610   ac_header_compiler=yes
2611 else
2612   ac_header_compiler=no
2613 fi
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2616 $as_echo "$ac_header_compiler" >&6; }
2617 
2618 # Is the header present?
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2620 $as_echo_n "checking $2 presence... " >&6; }
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h.  */
2623 #include <$2>
2624 _ACEOF
2625 if ac_fn_cxx_try_cpp "$LINENO"; then :
2626   ac_header_preproc=yes
2627 else
2628   ac_header_preproc=no
2629 fi
2630 rm -f conftest.err conftest.i conftest.$ac_ext
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2632 $as_echo "$ac_header_preproc" >&6; }
2633 
2634 # So?  What about this header?
2635 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2636   yes:no: )
2637     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2641     ;;
2642   no:yes:* )
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2646 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2650 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2653 ( $as_echo "## ----------------------------------------- ##
2654 ## Report this to build-dev@openjdk.java.net ##
2655 ## ----------------------------------------- ##"
2656      ) | sed "s/^/$as_me: WARNING:     /" >&2
2657     ;;
2658 esac
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   eval "$3=\$ac_header_compiler"
2665 fi
2666 eval ac_res=\$$3
2667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 fi
2670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 
2672 } # ac_fn_cxx_check_header_mongrel
2673 
2674 # ac_fn_cxx_try_run LINENO
2675 # ------------------------
2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2677 # that executables *can* be run.
2678 ac_fn_cxx_try_run ()
2679 {
2680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681   if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688   (eval "$ac_link") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2692   { { case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698   (eval "$ac_try") 2>&5
2699   ac_status=$?
2700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701   test $ac_status = 0; }; }; then :
2702   ac_retval=0
2703 else
2704   $as_echo "$as_me: program exited with status $ac_status" >&5
2705        $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707 
2708        ac_retval=$ac_status
2709 fi
2710   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712   as_fn_set_status $ac_retval
2713 
2714 } # ac_fn_cxx_try_run
2715 
2716 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2717 # ---------------------------------------------------------
2718 # Tests whether HEADER exists and can be compiled using the include files in
2719 # INCLUDES, setting the cache variable VAR accordingly.
2720 ac_fn_cxx_check_header_compile ()
2721 {
2722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $4
2731 #include <$2>
2732 _ACEOF
2733 if ac_fn_cxx_try_compile "$LINENO"; then :
2734   eval "$3=yes"
2735 else
2736   eval "$3=no"
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744 
2745 } # ac_fn_cxx_check_header_compile
2746 
2747 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2748 # ----------------------------------------------
2749 # Tries to find the compile-time value of EXPR in a program that includes
2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2751 # computed
2752 ac_fn_cxx_compute_int ()
2753 {
2754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755   if test "$cross_compiling" = yes; then
2756     # Depending upon the size, compute the lo and hi bounds.
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h.  */
2759 $4
2760 int
2761 main ()
2762 {
2763 static int test_array [1 - 2 * !(($2) >= 0)];
2764 test_array [0] = 0;
2765 return test_array [0];
2766 
2767   ;
2768   return 0;
2769 }
2770 _ACEOF
2771 if ac_fn_cxx_try_compile "$LINENO"; then :
2772   ac_lo=0 ac_mid=0
2773   while :; do
2774     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h.  */
2776 $4
2777 int
2778 main ()
2779 {
2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781 test_array [0] = 0;
2782 return test_array [0];
2783 
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 if ac_fn_cxx_try_compile "$LINENO"; then :
2789   ac_hi=$ac_mid; break
2790 else
2791   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2792                         if test $ac_lo -le $ac_mid; then
2793                           ac_lo= ac_hi=
2794                           break
2795                         fi
2796                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2797 fi
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799   done
2800 else
2801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h.  */
2803 $4
2804 int
2805 main ()
2806 {
2807 static int test_array [1 - 2 * !(($2) < 0)];
2808 test_array [0] = 0;
2809 return test_array [0];
2810 
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_cxx_try_compile "$LINENO"; then :
2816   ac_hi=-1 ac_mid=-1
2817   while :; do
2818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h.  */
2820 $4
2821 int
2822 main ()
2823 {
2824 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2825 test_array [0] = 0;
2826 return test_array [0];
2827 
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 if ac_fn_cxx_try_compile "$LINENO"; then :
2833   ac_lo=$ac_mid; break
2834 else
2835   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2836                         if test $ac_mid -le $ac_hi; then
2837                           ac_lo= ac_hi=
2838                           break
2839                         fi
2840                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2841 fi
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843   done
2844 else
2845   ac_lo= ac_hi=
2846 fi
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 # Binary search between lo and hi bounds.
2851 while test "x$ac_lo" != "x$ac_hi"; do
2852   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854 /* end confdefs.h.  */
2855 $4
2856 int
2857 main ()
2858 {
2859 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2860 test_array [0] = 0;
2861 return test_array [0];
2862 
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 if ac_fn_cxx_try_compile "$LINENO"; then :
2868   ac_hi=$ac_mid
2869 else
2870   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 done
2874 case $ac_lo in #((
2875 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2876 '') ac_retval=1 ;;
2877 esac
2878   else
2879     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h.  */
2881 $4
2882 static long int longval () { return $2; }
2883 static unsigned long int ulongval () { return $2; }
2884 #include <stdio.h>
2885 #include <stdlib.h>
2886 int
2887 main ()
2888 {
2889 
2890   FILE *f = fopen ("conftest.val", "w");
2891   if (! f)
2892     return 1;
2893   if (($2) < 0)
2894     {
2895       long int i = longval ();
2896       if (i != ($2))
2897         return 1;
2898       fprintf (f, "%ld", i);
2899     }
2900   else
2901     {
2902       unsigned long int i = ulongval ();
2903       if (i != ($2))
2904         return 1;
2905       fprintf (f, "%lu", i);
2906     }
2907   /* Do not output a trailing newline, as this causes \r\n confusion
2908      on some platforms.  */
2909   return ferror (f) || fclose (f) != 0;
2910 
2911   ;
2912   return 0;
2913 }
2914 _ACEOF
2915 if ac_fn_cxx_try_run "$LINENO"; then :
2916   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2917 else
2918   ac_retval=1
2919 fi
2920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2921   conftest.$ac_objext conftest.beam conftest.$ac_ext
2922 rm -f conftest.val
2923 
2924   fi
2925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2926   as_fn_set_status $ac_retval
2927 
2928 } # ac_fn_cxx_compute_int
2929 
2930 # ac_fn_cxx_try_link LINENO
2931 # -------------------------
2932 # Try to link conftest.$ac_ext, and return whether this succeeded.
2933 ac_fn_cxx_try_link ()
2934 {
2935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936   rm -f conftest.$ac_objext conftest$ac_exeext
2937   if { { ac_try="$ac_link"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_link") 2>conftest.err
2945   ac_status=$?
2946   if test -s conftest.err; then
2947     grep -v '^ *+' conftest.err >conftest.er1
2948     cat conftest.er1 >&5
2949     mv -f conftest.er1 conftest.err
2950   fi
2951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952   test $ac_status = 0; } && {
2953          test -z "$ac_cxx_werror_flag" ||
2954          test ! -s conftest.err
2955        } && test -s conftest$ac_exeext && {
2956          test "$cross_compiling" = yes ||
2957          test -x conftest$ac_exeext
2958        }; then :
2959   ac_retval=0
2960 else
2961   $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963 
2964         ac_retval=1
2965 fi
2966   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2967   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2968   # interfere with the next link command; also delete a directory that is
2969   # left behind by Apple's compiler.  We do this before executing the actions.
2970   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2972   as_fn_set_status $ac_retval
2973 
2974 } # ac_fn_cxx_try_link
2975 
2976 # ac_fn_cxx_check_func LINENO FUNC VAR
2977 # ------------------------------------
2978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2979 ac_fn_cxx_check_func ()
2980 {
2981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2983 $as_echo_n "checking for $2... " >&6; }
2984 if eval \${$3+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h.  */
2989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2991 #define $2 innocuous_$2
2992 
2993 /* System header to define __stub macros and hopefully few prototypes,
2994     which can conflict with char $2 (); below.
2995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2996     <limits.h> exists even on freestanding compilers.  */
2997 
2998 #ifdef __STDC__
2999 # include <limits.h>
3000 #else
3001 # include <assert.h>
3002 #endif
3003 
3004 #undef $2
3005 
3006 /* Override any GCC internal prototype to avoid an error.
3007    Use char because int might match the return type of a GCC
3008    builtin and then its argument prototype would still apply.  */
3009 #ifdef __cplusplus
3010 extern "C"
3011 #endif
3012 char $2 ();
3013 /* The GNU C library defines this for functions which it implements
3014     to always fail with ENOSYS.  Some functions are actually named
3015     something starting with __ and the normal name is an alias.  */
3016 #if defined __stub_$2 || defined __stub___$2
3017 choke me
3018 #endif
3019 
3020 int
3021 main ()
3022 {
3023 return $2 ();
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_cxx_try_link "$LINENO"; then :
3029   eval "$3=yes"
3030 else
3031   eval "$3=no"
3032 fi
3033 rm -f core conftest.err conftest.$ac_objext \
3034     conftest$ac_exeext conftest.$ac_ext
3035 fi
3036 eval ac_res=\$$3
3037                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038 $as_echo "$ac_res" >&6; }
3039   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3040 
3041 } # ac_fn_cxx_check_func
3042 
3043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3044 # -------------------------------------------------------
3045 # Tests whether HEADER exists and can be compiled using the include files in
3046 # INCLUDES, setting the cache variable VAR accordingly.
3047 ac_fn_c_check_header_compile ()
3048 {
3049   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3051 $as_echo_n "checking for $2... " >&6; }
3052 if eval \${$3+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h.  */
3057 $4
3058 #include <$2>
3059 _ACEOF
3060 if ac_fn_c_try_compile "$LINENO"; then :
3061   eval "$3=yes"
3062 else
3063   eval "$3=no"
3064 fi
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 fi
3067 eval ac_res=\$$3
3068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3069 $as_echo "$ac_res" >&6; }
3070   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3071 
3072 } # ac_fn_c_check_header_compile
3073 cat >config.log <<_ACEOF
3074 This file contains any messages produced by compilers while
3075 running configure, to aid debugging if configure makes a mistake.
3076 
3077 It was created by OpenJDK $as_me jdk9, which was
3078 generated by GNU Autoconf 2.69.  Invocation command line was
3079 
3080   $ $0 $@
3081 
3082 _ACEOF
3083 exec 5>>config.log
3084 {
3085 cat <<_ASUNAME
3086 ## --------- ##
3087 ## Platform. ##
3088 ## --------- ##
3089 
3090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3095 
3096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3097 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3098 
3099 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3100 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3102 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3103 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3104 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3105 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3106 
3107 _ASUNAME
3108 
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     $as_echo "PATH: $as_dir"
3115   done
3116 IFS=$as_save_IFS
3117 
3118 } >&5
3119 
3120 cat >&5 <<_ACEOF
3121 
3122 
3123 ## ----------- ##
3124 ## Core tests. ##
3125 ## ----------- ##
3126 
3127 _ACEOF
3128 
3129 
3130 # Keep a trace of the command line.
3131 # Strip out --no-create and --no-recursion so they do not pile up.
3132 # Strip out --silent because we don't want to record it for future runs.
3133 # Also quote any args containing shell meta-characters.
3134 # Make two passes to allow for proper duplicate-argument suppression.
3135 ac_configure_args=
3136 ac_configure_args0=
3137 ac_configure_args1=
3138 ac_must_keep_next=false
3139 for ac_pass in 1 2
3140 do
3141   for ac_arg
3142   do
3143     case $ac_arg in
3144     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3145     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3146     | -silent | --silent | --silen | --sile | --sil)
3147       continue ;;
3148     *\'*)
3149       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3150     esac
3151     case $ac_pass in
3152     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3153     2)
3154       as_fn_append ac_configure_args1 " '$ac_arg'"
3155       if test $ac_must_keep_next = true; then
3156         ac_must_keep_next=false # Got value, back to normal.
3157       else
3158         case $ac_arg in
3159           *=* | --config-cache | -C | -disable-* | --disable-* \
3160           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3161           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3162           | -with-* | --with-* | -without-* | --without-* | --x)
3163             case "$ac_configure_args0 " in
3164               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3165             esac
3166             ;;
3167           -* ) ac_must_keep_next=true ;;
3168         esac
3169       fi
3170       as_fn_append ac_configure_args " '$ac_arg'"
3171       ;;
3172     esac
3173   done
3174 done
3175 { ac_configure_args0=; unset ac_configure_args0;}
3176 { ac_configure_args1=; unset ac_configure_args1;}
3177 
3178 # When interrupted or exit'd, cleanup temporary files, and complete
3179 # config.log.  We remove comments because anyway the quotes in there
3180 # would cause problems or look ugly.
3181 # WARNING: Use '\'' to represent an apostrophe within the trap.
3182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3183 trap 'exit_status=$?
3184   # Save into config.log some information that might help in debugging.
3185   {
3186     echo
3187 
3188     $as_echo "## ---------------- ##
3189 ## Cache variables. ##
3190 ## ---------------- ##"
3191     echo
3192     # The following way of writing the cache mishandles newlines in values,
3193 (
3194   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3195     eval ac_val=\$$ac_var
3196     case $ac_val in #(
3197     *${as_nl}*)
3198       case $ac_var in #(
3199       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3201       esac
3202       case $ac_var in #(
3203       _ | IFS | as_nl) ;; #(
3204       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3205       *) { eval $ac_var=; unset $ac_var;} ;;
3206       esac ;;
3207     esac
3208   done
3209   (set) 2>&1 |
3210     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3211     *${as_nl}ac_space=\ *)
3212       sed -n \
3213         "s/'\''/'\''\\\\'\'''\''/g;
3214           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3215       ;; #(
3216     *)
3217       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3218       ;;
3219     esac |
3220     sort
3221 )
3222     echo
3223 
3224     $as_echo "## ----------------- ##
3225 ## Output variables. ##
3226 ## ----------------- ##"
3227     echo
3228     for ac_var in $ac_subst_vars
3229     do
3230       eval ac_val=\$$ac_var
3231       case $ac_val in
3232       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3233       esac
3234       $as_echo "$ac_var='\''$ac_val'\''"
3235     done | sort
3236     echo
3237 
3238     if test -n "$ac_subst_files"; then
3239       $as_echo "## ------------------- ##
3240 ## File substitutions. ##
3241 ## ------------------- ##"
3242       echo
3243       for ac_var in $ac_subst_files
3244       do
3245         eval ac_val=\$$ac_var
3246         case $ac_val in
3247         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3248         esac
3249         $as_echo "$ac_var='\''$ac_val'\''"
3250       done | sort
3251       echo
3252     fi
3253 
3254     if test -s confdefs.h; then
3255       $as_echo "## ----------- ##
3256 ## confdefs.h. ##
3257 ## ----------- ##"
3258       echo
3259       cat confdefs.h
3260       echo
3261     fi
3262     test "$ac_signal" != 0 &&
3263       $as_echo "$as_me: caught signal $ac_signal"
3264     $as_echo "$as_me: exit $exit_status"
3265   } >&5
3266   rm -f core *.core core.conftest.* &&
3267     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3268     exit $exit_status
3269 ' 0
3270 for ac_signal in 1 2 13 15; do
3271   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3272 done
3273 ac_signal=0
3274 
3275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3276 rm -f -r conftest* confdefs.h
3277 
3278 $as_echo "/* confdefs.h */" > confdefs.h
3279 
3280 # Predefined preprocessor variables.
3281 
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_NAME "$PACKAGE_NAME"
3284 _ACEOF
3285 
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3288 _ACEOF
3289 
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3292 _ACEOF
3293 
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_STRING "$PACKAGE_STRING"
3296 _ACEOF
3297 
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3300 _ACEOF
3301 
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_URL "$PACKAGE_URL"
3304 _ACEOF
3305 
3306 
3307 # Let the site file select an alternate cache file if it wants to.
3308 # Prefer an explicitly selected file to automatically selected ones.
3309 ac_site_file1=NONE
3310 ac_site_file2=NONE
3311 if test -n "$CONFIG_SITE"; then
3312   # We do not want a PATH search for config.site.
3313   case $CONFIG_SITE in #((
3314     -*)  ac_site_file1=./$CONFIG_SITE;;
3315     */*) ac_site_file1=$CONFIG_SITE;;
3316     *)   ac_site_file1=./$CONFIG_SITE;;
3317   esac
3318 elif test "x$prefix" != xNONE; then
3319   ac_site_file1=$prefix/share/config.site
3320   ac_site_file2=$prefix/etc/config.site
3321 else
3322   ac_site_file1=$ac_default_prefix/share/config.site
3323   ac_site_file2=$ac_default_prefix/etc/config.site
3324 fi
3325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3326 do
3327   test "x$ac_site_file" = xNONE && continue
3328   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3329     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3331     sed 's/^/| /' "$ac_site_file" >&5
3332     . "$ac_site_file" \
3333       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "failed to load site script $ac_site_file
3336 See \`config.log' for more details" "$LINENO" 5; }
3337   fi
3338 done
3339 
3340 if test -r "$cache_file"; then
3341   # Some versions of bash will fail to source /dev/null (special files
3342   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3343   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3344     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3345 $as_echo "$as_me: loading cache $cache_file" >&6;}
3346     case $cache_file in
3347       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3348       *)                      . "./$cache_file";;
3349     esac
3350   fi
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3353 $as_echo "$as_me: creating cache $cache_file" >&6;}
3354   >$cache_file
3355 fi
3356 
3357 # Check that the precious variables saved in the cache have kept the same
3358 # value.
3359 ac_cache_corrupted=false
3360 for ac_var in $ac_precious_vars; do
3361   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362   eval ac_new_set=\$ac_env_${ac_var}_set
3363   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364   eval ac_new_val=\$ac_env_${ac_var}_value
3365   case $ac_old_set,$ac_new_set in
3366     set,)
3367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369       ac_cache_corrupted=: ;;
3370     ,set)
3371       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373       ac_cache_corrupted=: ;;
3374     ,);;
3375     *)
3376       if test "x$ac_old_val" != "x$ac_new_val"; then
3377         # differences in whitespace do not lead to failure.
3378         ac_old_val_w=`echo x $ac_old_val`
3379         ac_new_val_w=`echo x $ac_new_val`
3380         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3381           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383           ac_cache_corrupted=:
3384         else
3385           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387           eval $ac_var=\$ac_old_val
3388         fi
3389         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3390 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3391         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3392 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3393       fi;;
3394   esac
3395   # Pass precious variables to config.status.
3396   if test "$ac_new_set" = set; then
3397     case $ac_new_val in
3398     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399     *) ac_arg=$ac_var=$ac_new_val ;;
3400     esac
3401     case " $ac_configure_args " in
3402       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3403       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3404     esac
3405   fi
3406 done
3407 if $ac_cache_corrupted; then
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3412   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3413 fi
3414 ## -------------------- ##
3415 ## Main body of script. ##
3416 ## -------------------- ##
3417 
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 
3424 
3425 
3426 ac_aux_dir=
3427 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3428   if test -f "$ac_dir/install-sh"; then
3429     ac_aux_dir=$ac_dir
3430     ac_install_sh="$ac_aux_dir/install-sh -c"
3431     break
3432   elif test -f "$ac_dir/install.sh"; then
3433     ac_aux_dir=$ac_dir
3434     ac_install_sh="$ac_aux_dir/install.sh -c"
3435     break
3436   elif test -f "$ac_dir/shtool"; then
3437     ac_aux_dir=$ac_dir
3438     ac_install_sh="$ac_aux_dir/shtool install -c"
3439     break
3440   fi
3441 done
3442 if test -z "$ac_aux_dir"; then
3443   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
3444 fi
3445 
3446 # These three variables are undocumented and unsupported,
3447 # and are intended to be withdrawn in a future Autoconf release.
3448 # They can cause serious problems if a builder's source tree is in a directory
3449 # whose full name contains unusual characters.
3450 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3451 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3452 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3453 
3454 
3455 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3456 
3457 #
3458 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3459 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3460 #
3461 # This code is free software; you can redistribute it and/or modify it
3462 # under the terms of the GNU General Public License version 2 only, as
3463 # published by the Free Software Foundation.  Oracle designates this
3464 # particular file as subject to the "Classpath" exception as provided
3465 # by Oracle in the LICENSE file that accompanied this code.
3466 #
3467 # This code is distributed in the hope that it will be useful, but WITHOUT
3468 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3469 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3470 # version 2 for more details (a copy is included in the LICENSE file that
3471 # accompanied this code).
3472 #
3473 # You should have received a copy of the GNU General Public License version
3474 # 2 along with this work; if not, write to the Free Software Foundation,
3475 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3476 #
3477 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3478 # or visit www.oracle.com if you need additional information or have any
3479 # questions.
3480 #
3481 
3482 #
3483 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3484 #
3485 # This program is free software; you can redistribute it and/or modify
3486 # it under the terms of the GNU General Public License as published by
3487 # the Free Software Foundation; either version 2 of the License, or
3488 # (at your option) any later version.
3489 #
3490 # This program is distributed in the hope that it will be useful, but
3491 # WITHOUT ANY WARRANTY; without even the implied warranty of
3492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3493 # General Public License for more details.
3494 #
3495 # You should have received a copy of the GNU General Public License
3496 # along with this program; if not, write to the Free Software
3497 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3498 #
3499 # As a special exception to the GNU General Public License, if you
3500 # distribute this file as part of a program that contains a
3501 # configuration script generated by Autoconf, you may include it under
3502 # the same distribution terms that you use for the rest of that program.
3503 
3504 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3505 # ----------------------------------
3506 # PKG_PROG_PKG_CONFIG
3507 
3508 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3509 #
3510 # Check to see whether a particular set of modules exists.  Similar
3511 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3512 #
3513 #
3514 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3515 # this or PKG_CHECK_MODULES is called, or make sure to call
3516 # PKG_CHECK_EXISTS manually
3517 # --------------------------------------------------------------
3518 
3519 
3520 
3521 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3522 # ---------------------------------------------
3523 # _PKG_CONFIG
3524 
3525 # _PKG_SHORT_ERRORS_SUPPORTED
3526 # -----------------------------
3527 # _PKG_SHORT_ERRORS_SUPPORTED
3528 
3529 
3530 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3531 # [ACTION-IF-NOT-FOUND])
3532 #
3533 #
3534 # Note that if there is a possibility the first call to
3535 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3536 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3537 #
3538 #
3539 # --------------------------------------------------------------
3540 # PKG_CHECK_MODULES
3541 
3542 
3543 # Include these first...
3544 #
3545 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3546 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3547 #
3548 # This code is free software; you can redistribute it and/or modify it
3549 # under the terms of the GNU General Public License version 2 only, as
3550 # published by the Free Software Foundation.  Oracle designates this
3551 # particular file as subject to the "Classpath" exception as provided
3552 # by Oracle in the LICENSE file that accompanied this code.
3553 #
3554 # This code is distributed in the hope that it will be useful, but WITHOUT
3555 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3556 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3557 # version 2 for more details (a copy is included in the LICENSE file that
3558 # accompanied this code).
3559 #
3560 # You should have received a copy of the GNU General Public License version
3561 # 2 along with this work; if not, write to the Free Software Foundation,
3562 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3563 #
3564 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3565 # or visit www.oracle.com if you need additional information or have any
3566 # questions.
3567 #
3568 
3569 # Create a function/macro that takes a series of named arguments. The call is
3570 # similar to AC_DEFUN, but the setup of the function looks like this:
3571 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [
3572 # ... do something
3573 #   AC_MSG_NOTICE([Value of BAR is ARG_BAR])
3574 # ])
3575 # A star (*) in front of a named argument means that it is required and it's
3576 # presence will be verified. To pass e.g. the first value as a normal indexed
3577 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These
3578 # arguments are referenced in the function by their name prefixed by ARG_, e.g.
3579 # "ARG_FOO".
3580 #
3581 # The generated function can be called like this:
3582 # MYFUNC(FOO: [foo-val],
3583 #     BAR: [
3584 #         $ECHO hello world
3585 #     ])
3586 # Note that the argument value must start on the same line as the argument name.
3587 #
3588 # Argument 1: Name of the function to define
3589 # Argument 2: List of legal named arguments, with a * prefix for required arguments
3590 # Argument 3: Argument array to treat as named, typically $@
3591 # Argument 4: The main function body
3592 
3593 
3594 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3595 # If so, then append $1 to $2 \
3596 # Also set JVM_ARG_OK to true/false depending on outcome.
3597 
3598 
3599 # Appends a string to a path variable, only adding the : when needed.
3600 
3601 
3602 # Prepends a string to a path variable, only adding the : when needed.
3603 
3604 
3605 # This will make sure the given variable points to a full and proper
3606 # path. This means:
3607 # 1) There will be no spaces in the path. On unix platforms,
3608 #    spaces in the path will result in an error. On Windows,
3609 #    the path will be rewritten using short-style to be space-free.
3610 # 2) The path will be absolute, and it will be in unix-style (on
3611 #     cygwin).
3612 # $1: The name of the variable to fix
3613 
3614 
3615 # This will make sure the given variable points to a executable
3616 # with a full and proper path. This means:
3617 # 1) There will be no spaces in the path. On unix platforms,
3618 #    spaces in the path will result in an error. On Windows,
3619 #    the path will be rewritten using short-style to be space-free.
3620 # 2) The path will be absolute, and it will be in unix-style (on
3621 #     cygwin).
3622 # Any arguments given to the executable is preserved.
3623 # If the input variable does not have a directory specification, then
3624 # it need to be in the PATH.
3625 # $1: The name of the variable to fix
3626 
3627 
3628 
3629 
3630 # Register a --with argument but mark it as deprecated
3631 # $1: The name of the with argument to deprecate, not including --with-
3632 
3633 
3634 # Register a --enable argument but mark it as deprecated
3635 # $1: The name of the with argument to deprecate, not including --enable-
3636 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3637 # $3: Messages to user.
3638 
3639 
3640 
3641 
3642 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3643 # $1: variable to check
3644 
3645 
3646 # Check that there are no unprocessed overridden variables left.
3647 # If so, they are an incorrect argument and we will exit with an error.
3648 
3649 
3650 # Setup a tool for the given variable. If correctly specified by the user,
3651 # use that value, otherwise search for the tool using the supplied code snippet.
3652 # $1: variable to set
3653 # $2: code snippet to call to look for the tool
3654 # $3: code snippet to call if variable was used to find tool
3655 
3656 
3657 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3658 # $1: variable to set
3659 # $2: executable name (or list of names) to look for
3660 
3661 
3662 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3663 # $1: variable to set
3664 # $2: executable name (or list of names) to look for
3665 
3666 
3667 # Like BASIC_PATH_PROGS but fails if no tool was found.
3668 # $1: variable to set
3669 # $2: executable name (or list of names) to look for
3670 
3671 
3672 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3673 # $1: variable to set
3674 # $2: autoconf macro to call to look for the special tool
3675 
3676 
3677 # Setup the most fundamental tools that relies on not much else to set up,
3678 # but is used by much of the early bootstrap code.
3679 
3680 
3681 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3682 
3683 
3684 # Evaluates platform specific overrides for devkit variables.
3685 # $1: Name of variable
3686 
3687 
3688 
3689 
3690 
3691 
3692 #%%% Simple tools %%%
3693 
3694 # Check if we have found a usable version of make
3695 # $1: the path to a potential make binary (or empty)
3696 # $2: the description on how we found this
3697 
3698 
3699 
3700 
3701 # Goes looking for a usable version of GNU make.
3702 
3703 
3704 
3705 
3706 
3707 
3708 # Check if build directory is on local disk. If not possible to determine,
3709 # we prefer to claim it's local.
3710 # Argument 1: directory to test
3711 # Argument 2: what to do if it is on local disk
3712 # Argument 3: what to do otherwise (remote disk or failure)
3713 
3714 
3715 # Check that source files have basic read permissions set. This might
3716 # not be the case in cygwin in certain conditions.
3717 
3718 
3719 
3720 
3721 # Check for support for specific options in bash
3722 
3723 
3724 ################################################################################
3725 #
3726 # Default make target
3727 #
3728 
3729 
3730 # Code to run after AC_OUTPUT
3731 
3732 
3733 #
3734 # Copyright (c) 2011, 2012, 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 
3759 
3760 
3761 
3762 # Helper function which possibly converts a path using DOS-style short mode.
3763 # If so, the updated path is stored in $new_path.
3764 # $1: The path to check
3765 
3766 
3767 # Helper function which possibly converts a path using DOS-style short mode.
3768 # If so, the updated path is stored in $new_path.
3769 # $1: The path to check
3770 
3771 
3772 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3773 # and could probably be heavily simplified. However, all changes in this
3774 # area tend to need lot of testing in different scenarios, and in lack of
3775 # proper unit testing, cleaning this up has not been deemed worth the effort
3776 # at the moment.
3777 
3778 
3779 
3780 
3781 
3782 
3783 
3784 
3785 
3786 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3787 
3788 
3789 
3790 
3791 # ... then the rest
3792 #
3793 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3794 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3795 #
3796 # This code is free software; you can redistribute it and/or modify it
3797 # under the terms of the GNU General Public License version 2 only, as
3798 # published by the Free Software Foundation.  Oracle designates this
3799 # particular file as subject to the "Classpath" exception as provided
3800 # by Oracle in the LICENSE file that accompanied this code.
3801 #
3802 # This code is distributed in the hope that it will be useful, but WITHOUT
3803 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3804 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3805 # version 2 for more details (a copy is included in the LICENSE file that
3806 # accompanied this code).
3807 #
3808 # You should have received a copy of the GNU General Public License version
3809 # 2 along with this work; if not, write to the Free Software Foundation,
3810 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3811 #
3812 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3813 # or visit www.oracle.com if you need additional information or have any
3814 # questions.
3815 #
3816 
3817 ########################################################################
3818 # This file handles detection of the Boot JDK. The Boot JDK detection
3819 # process has been developed as a response to solve a complex real-world
3820 # problem. Initially, it was simple, but it has grown as platform after
3821 # platform, idiosyncracy after idiosyncracy has been supported.
3822 #
3823 # The basic idea is this:
3824 # 1) You need an acceptable *) JDK to use as a Boot JDK
3825 # 2) There are several ways to locate a JDK, that are mostly platform
3826 #    dependent **)
3827 # 3) You can have multiple JDKs installed
3828 # 4) If possible, configure should try to dig out an acceptable JDK
3829 #    automatically, without having to resort to command-line options
3830 #
3831 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3832 #     javac) and not a JRE, etc.
3833 #
3834 # **) On Windows we typically use a well-known path.
3835 #     On MacOSX we typically use the tool java_home.
3836 #     On Linux we typically find javac in the $PATH, and then follow a
3837 #     chain of symlinks that often ends up in a real JDK.
3838 #
3839 # This leads to the code where we check in different ways to locate a
3840 # JDK, and if one is found, check if it is acceptable. If not, we print
3841 # our reasons for rejecting it (useful when debugging non-working
3842 # configure situations) and continue checking the next one.
3843 ########################################################################
3844 
3845 # Execute the check given as argument, and verify the result
3846 # If the Boot JDK was previously found, do nothing
3847 # $1 A command line (typically autoconf macro) to execute
3848 
3849 
3850 # Test: Is bootjdk explicitely set by command line arguments?
3851 
3852 
3853 # Test: Is $JAVA_HOME set?
3854 
3855 
3856 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3857 
3858 
3859 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3860 # $1: Argument to the java_home binary (optional)
3861 
3862 
3863 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3864 
3865 
3866 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3867 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3868 # $1 = Path to directory containing jdk installations.
3869 # $2 = String to append to the found JDK directory to get the proper JDK home
3870 
3871 
3872 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3873 # environmental variable as base for where to look.
3874 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3875 
3876 
3877 # Test: Is there a JDK installed in default, well-known locations?
3878 
3879 
3880 # Check that a command-line tool in the Boot JDK is correct
3881 # $1 = name of variable to assign
3882 # $2 = name of binary
3883 
3884 
3885 ###############################################################################
3886 #
3887 # We need a Boot JDK to bootstrap the build.
3888 #
3889 
3890 
3891 
3892 
3893 
3894 # BUILD_JDK: the location of the latest JDK that can run
3895 #   on the host system and supports the target class file version
3896 #   generated in this JDK build.  This variable should only be
3897 #   used after the launchers are built.
3898 #
3899 
3900 # Execute the check given as argument, and verify the result.
3901 # If the JDK was previously found, do nothing.
3902 # $1 A command line (typically autoconf macro) to execute
3903 
3904 
3905 # By default the BUILD_JDK is the JDK_OUTPUTDIR.  If the target architecture
3906 # is different than the host system doing the build (e.g. cross-compilation),
3907 # a special BUILD_JDK is built as part of the build process.  An external
3908 # prebuilt BUILD_JDK can also be supplied.
3909 
3910 
3911 #
3912 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3913 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3914 #
3915 # This code is free software; you can redistribute it and/or modify it
3916 # under the terms of the GNU General Public License version 2 only, as
3917 # published by the Free Software Foundation.  Oracle designates this
3918 # particular file as subject to the "Classpath" exception as provided
3919 # by Oracle in the LICENSE file that accompanied this code.
3920 #
3921 # This code is distributed in the hope that it will be useful, but WITHOUT
3922 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3923 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3924 # version 2 for more details (a copy is included in the LICENSE file that
3925 # accompanied this code).
3926 #
3927 # You should have received a copy of the GNU General Public License version
3928 # 2 along with this work; if not, write to the Free Software Foundation,
3929 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3930 #
3931 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3932 # or visit www.oracle.com if you need additional information or have any
3933 # questions.
3934 #
3935 
3936 
3937 
3938 
3939 
3940 
3941 
3942 
3943 
3944 
3945 
3946 
3947 
3948 
3949 
3950 
3951 
3952 ################################################################################
3953 #
3954 # Runs icecc-create-env once and prints the error if it fails
3955 #
3956 # $1: arguments to icecc-create-env
3957 # $2: log file
3958 #
3959 
3960 
3961 ################################################################################
3962 #
3963 # Optionally enable distributed compilation of native code using icecc/icecream
3964 #
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 #
3973 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
3974 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3975 #
3976 # This code is free software; you can redistribute it and/or modify it
3977 # under the terms of the GNU General Public License version 2 only, as
3978 # published by the Free Software Foundation.  Oracle designates this
3979 # particular file as subject to the "Classpath" exception as provided
3980 # by Oracle in the LICENSE file that accompanied this code.
3981 #
3982 # This code is distributed in the hope that it will be useful, but WITHOUT
3983 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3984 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3985 # version 2 for more details (a copy is included in the LICENSE file that
3986 # accompanied this code).
3987 #
3988 # You should have received a copy of the GNU General Public License version
3989 # 2 along with this work; if not, write to the Free Software Foundation,
3990 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3991 #
3992 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3993 # or visit www.oracle.com if you need additional information or have any
3994 # questions.
3995 #
3996 
3997 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3998 # corresponding configure arguments instead
3999 
4000 
4001 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
4002 # that configure can use them while detecting compilers.
4003 # TOOLCHAIN_TYPE is available here.
4004 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
4005 
4006 
4007 
4008 
4009 
4010 
4011 # Documentation on common flags used for solstudio in HIGHEST.
4012 #
4013 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
4014 #          done with care, there are some assumptions below that need to
4015 #          be understood about the use of pointers, and IEEE behavior.
4016 #
4017 # -fns: Use non-standard floating point mode (not IEEE 754)
4018 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
4019 # -fsingle: Use single precision floating point with 'float'
4020 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
4021 #   (Source with excessing pointer casting and data access with mixed
4022 #    pointer types are not recommended)
4023 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
4024 #   (If you expect perfect errno behavior, do not use this)
4025 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
4026 # -xrestrict: Pointer parameters to functions do not overlap
4027 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
4028 #    If you pass in multiple pointers to the same data, do not use this)
4029 # -xlibmil: Inline some library routines
4030 #   (If you expect perfect errno behavior, do not use this)
4031 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
4032 #   (If you expect perfect errno behavior, do not use this)
4033 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
4034 
4035     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
4036     # Bug?
4037     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
4038     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
4039     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
4040     #fi
4041 
4042 
4043 
4044 
4045 
4046 
4047 ################################################################################
4048 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
4049 #      conditionals against.
4050 # $2 - Optional prefix for each variable defined.
4051 
4052 
4053 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4054 #                                  IF_FALSE: [RUN-IF-FALSE])
4055 # ------------------------------------------------------------
4056 # Check that the C compiler supports an argument
4057 
4058 
4059 
4060 
4061 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4062 #                                    IF_FALSE: [RUN-IF-FALSE])
4063 # ------------------------------------------------------------
4064 # Check that the C++ compiler supports an argument
4065 
4066 
4067 
4068 
4069 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4070 #                                IF_FALSE: [RUN-IF-FALSE])
4071 # ------------------------------------------------------------
4072 # Check that the C and C++ compilers support an argument
4073 
4074 
4075 
4076 
4077 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE],
4078 #                                   IF_FALSE: [RUN-IF-FALSE])
4079 # ------------------------------------------------------------
4080 # Check that the linker support an argument
4081 
4082 
4083 
4084 
4085 
4086 
4087 
4088 
4089 #
4090 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4091 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4092 #
4093 # This code is free software; you can redistribute it and/or modify it
4094 # under the terms of the GNU General Public License version 2 only, as
4095 # published by the Free Software Foundation.  Oracle designates this
4096 # particular file as subject to the "Classpath" exception as provided
4097 # by Oracle in the LICENSE file that accompanied this code.
4098 #
4099 # This code is distributed in the hope that it will be useful, but WITHOUT
4100 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4101 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4102 # version 2 for more details (a copy is included in the LICENSE file that
4103 # accompanied this code).
4104 #
4105 # You should have received a copy of the GNU General Public License version
4106 # 2 along with this work; if not, write to the Free Software Foundation,
4107 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4108 #
4109 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4110 # or visit www.oracle.com if you need additional information or have any
4111 # questions.
4112 #
4113 
4114 
4115 
4116 
4117 
4118 cygwin_help() {
4119   case $1 in
4120     unzip)
4121       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4122       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4123       ;;
4124     zip)
4125       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4126       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4127       ;;
4128     make)
4129       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4130       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4131       ;;
4132     freetype)
4133       HELP_MSG="
4134 The freetype library can now be build during the configure process.
4135 Download the freetype sources and unpack them into an arbitrary directory:
4136 
4137 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4138 tar -xzf freetype-2.5.3.tar.gz
4139 
4140 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4141 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4142 builds or into '<freetype_src>/lib32' for 32-bit builds.
4143 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4144 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds.
4145 
4146 Alternatively you can unpack the sources like this to use the default directory:
4147 
4148 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz"
4149       ;;
4150   esac
4151 }
4152 
4153 msys_help() {
4154   PKGHANDLER_COMMAND=""
4155 }
4156 
4157 apt_help() {
4158   case $1 in
4159     reduced)
4160       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
4161     devkit)
4162       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4163     openjdk)
4164       PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;;
4165     alsa)
4166       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4167     cups)
4168       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4169     freetype)
4170       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4171     ffi)
4172       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
4173     x11)
4174       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4175     ccache)
4176       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4177     dtrace)
4178       PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;;
4179   esac
4180 }
4181 
4182 yum_help() {
4183   case $1 in
4184     devkit)
4185       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4186     openjdk)
4187       PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;;
4188     alsa)
4189       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4190     cups)
4191       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4192     freetype)
4193       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4194     x11)
4195       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4196     ccache)
4197       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4198   esac
4199 }
4200 
4201 port_help() {
4202   PKGHANDLER_COMMAND=""
4203 }
4204 
4205 pkgutil_help() {
4206   PKGHANDLER_COMMAND=""
4207 }
4208 
4209 pkgadd_help() {
4210   PKGHANDLER_COMMAND=""
4211 }
4212 
4213 # This function will check if we're called from the "configure" wrapper while
4214 # printing --help. If so, we will print out additional information that can
4215 # only be extracted within the autoconf script, and then exit. This must be
4216 # called at the very beginning in configure.ac.
4217 
4218 
4219 
4220 
4221 
4222 
4223 #
4224 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4225 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4226 #
4227 # This code is free software; you can redistribute it and/or modify it
4228 # under the terms of the GNU General Public License version 2 only, as
4229 # published by the Free Software Foundation.  Oracle designates this
4230 # particular file as subject to the "Classpath" exception as provided
4231 # by Oracle in the LICENSE file that accompanied this code.
4232 #
4233 # This code is distributed in the hope that it will be useful, but WITHOUT
4234 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4235 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4236 # version 2 for more details (a copy is included in the LICENSE file that
4237 # accompanied this code).
4238 #
4239 # You should have received a copy of the GNU General Public License version
4240 # 2 along with this work; if not, write to the Free Software Foundation,
4241 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4242 #
4243 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4244 # or visit www.oracle.com if you need additional information or have any
4245 # questions.
4246 #
4247 
4248 # All valid JVM features, regardless of platform
4249 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \
4250     fprof vm-structs jni-check services management all-gcs nmt cds static-build"
4251 
4252 # All valid JVM variants
4253 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom"
4254 
4255 ###############################################################################
4256 # Check if the specified JVM variant should be built. To be used in shell if
4257 # constructs, like this:
4258 # if HOTSPOT_CHECK_JVM_VARIANT(server); then
4259 #
4260 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants.
4261 
4262 # Definition kept in one line to allow inlining in if statements.
4263 # Additional [] needed to keep m4 from mangling shell constructs.
4264 
4265 
4266 ###############################################################################
4267 # Check if the specified JVM features are explicitly enabled. To be used in
4268 # shell if constructs, like this:
4269 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then
4270 #
4271 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features.
4272 
4273 # Definition kept in one line to allow inlining in if statements.
4274 # Additional [] needed to keep m4 from mangling shell constructs.
4275 
4276 
4277 ###############################################################################
4278 # Check which variants of the JVM that we want to build. Available variants are:
4279 #   server: normal interpreter, and a tiered C1/C2 compiler
4280 #   client: normal interpreter, and C1 (no C2 compiler)
4281 #   minimal: reduced form of client with optional features stripped out
4282 #   core: normal interpreter only, no compiler
4283 #   zero: C++ based interpreter only, no compiler
4284 #   zeroshark: C++ based interpreter, and a llvm-based compiler
4285 #   custom: baseline JVM with no default features
4286 #
4287 
4288 
4289 ###############################################################################
4290 # Check if dtrace should be enabled and has all prerequisites present.
4291 #
4292 
4293 
4294 ###############################################################################
4295 # Set up all JVM features for each JVM variant.
4296 #
4297 
4298 
4299 ###############################################################################
4300 # Validate JVM features once all setup is complete, including custom setup.
4301 #
4302 
4303 
4304 ###############################################################################
4305 # Support for old hotspot build. Remove once new hotspot build has proven
4306 # to work satisfactory.
4307 #
4308 
4309 
4310 #
4311 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4312 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4313 #
4314 # This code is free software; you can redistribute it and/or modify it
4315 # under the terms of the GNU General Public License version 2 only, as
4316 # published by the Free Software Foundation.  Oracle designates this
4317 # particular file as subject to the "Classpath" exception as provided
4318 # by Oracle in the LICENSE file that accompanied this code.
4319 #
4320 # This code is distributed in the hope that it will be useful, but WITHOUT
4321 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4322 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4323 # version 2 for more details (a copy is included in the LICENSE file that
4324 # accompanied this code).
4325 #
4326 # You should have received a copy of the GNU General Public License version
4327 # 2 along with this work; if not, write to the Free Software Foundation,
4328 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4329 #
4330 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4331 # or visit www.oracle.com if you need additional information or have any
4332 # questions.
4333 #
4334 
4335 ###############################################################################
4336 # Check which variant of the JDK that we want to build.
4337 # Currently we have:
4338 #    normal:   standard edition
4339 # but the custom make system may add other variants
4340 #
4341 # Effectively the JDK variant gives a name to a specific set of
4342 # modules to compile into the JDK.
4343 
4344 
4345 ###############################################################################
4346 # Set the debug level
4347 #    release: no debug information, all optimizations, no asserts.
4348 #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
4349 #    fastdebug: debug information (-g), all optimizations, all asserts
4350 #    slowdebug: debug information (-g), no optimizations, all asserts
4351 
4352 
4353 ###############################################################################
4354 #
4355 # Should we build only OpenJDK even if closed sources are present?
4356 #
4357 
4358 
4359 
4360 
4361 ###############################################################################
4362 #
4363 # Enable or disable the elliptic curve crypto implementation
4364 #
4365 
4366 
4367 
4368 
4369 ################################################################################
4370 #
4371 # Gcov coverage data for hotspot
4372 #
4373 
4374 
4375 ################################################################################
4376 #
4377 # Static build support.  When enabled will generate static
4378 # libraries instead of shared libraries for all JDK libs.
4379 #
4380 
4381 
4382 ################################################################################
4383 #
4384 # jlink options.
4385 # We always keep packaged modules in JDK image.
4386 #
4387 
4388 
4389 ################################################################################
4390 #
4391 # Check if building of the jtreg failure handler should be enabled.
4392 #
4393 
4394 
4395 #
4396 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4397 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4398 #
4399 # This code is free software; you can redistribute it and/or modify it
4400 # under the terms of the GNU General Public License version 2 only, as
4401 # published by the Free Software Foundation.  Oracle designates this
4402 # particular file as subject to the "Classpath" exception as provided
4403 # by Oracle in the LICENSE file that accompanied this code.
4404 #
4405 # This code is distributed in the hope that it will be useful, but WITHOUT
4406 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4407 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4408 # version 2 for more details (a copy is included in the LICENSE file that
4409 # accompanied this code).
4410 #
4411 # You should have received a copy of the GNU General Public License version
4412 # 2 along with this work; if not, write to the Free Software Foundation,
4413 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4414 #
4415 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4416 # or visit www.oracle.com if you need additional information or have any
4417 # questions.
4418 #
4419 
4420 ###############################################################################
4421 #
4422 # Setup version numbers
4423 #
4424 
4425 # Verify that a given string represents a valid version number, and assign it
4426 # to a variable.
4427 
4428 # Argument 1: the variable to assign to
4429 # Argument 2: the value given by the user
4430 
4431 
4432 
4433 
4434 #
4435 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4436 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4437 #
4438 # This code is free software; you can redistribute it and/or modify it
4439 # under the terms of the GNU General Public License version 2 only, as
4440 # published by the Free Software Foundation.  Oracle designates this
4441 # particular file as subject to the "Classpath" exception as provided
4442 # by Oracle in the LICENSE file that accompanied this code.
4443 #
4444 # This code is distributed in the hope that it will be useful, but WITHOUT
4445 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4446 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4447 # version 2 for more details (a copy is included in the LICENSE file that
4448 # accompanied this code).
4449 #
4450 # You should have received a copy of the GNU General Public License version
4451 # 2 along with this work; if not, write to the Free Software Foundation,
4452 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4453 #
4454 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4455 # or visit www.oracle.com if you need additional information or have any
4456 # questions.
4457 #
4458 
4459 # Major library component reside in separate files.
4460 #
4461 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4462 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4463 #
4464 # This code is free software; you can redistribute it and/or modify it
4465 # under the terms of the GNU General Public License version 2 only, as
4466 # published by the Free Software Foundation.  Oracle designates this
4467 # particular file as subject to the "Classpath" exception as provided
4468 # by Oracle in the LICENSE file that accompanied this code.
4469 #
4470 # This code is distributed in the hope that it will be useful, but WITHOUT
4471 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4472 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4473 # version 2 for more details (a copy is included in the LICENSE file that
4474 # accompanied this code).
4475 #
4476 # You should have received a copy of the GNU General Public License version
4477 # 2 along with this work; if not, write to the Free Software Foundation,
4478 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4479 #
4480 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4481 # or visit www.oracle.com if you need additional information or have any
4482 # questions.
4483 #
4484 
4485 ################################################################################
4486 # Setup alsa (Advanced Linux Sound Architecture)
4487 ################################################################################
4488 
4489 
4490 #
4491 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4492 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4493 #
4494 # This code is free software; you can redistribute it and/or modify it
4495 # under the terms of the GNU General Public License version 2 only, as
4496 # published by the Free Software Foundation.  Oracle designates this
4497 # particular file as subject to the "Classpath" exception as provided
4498 # by Oracle in the LICENSE file that accompanied this code.
4499 #
4500 # This code is distributed in the hope that it will be useful, but WITHOUT
4501 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4502 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4503 # version 2 for more details (a copy is included in the LICENSE file that
4504 # accompanied this code).
4505 #
4506 # You should have received a copy of the GNU General Public License version
4507 # 2 along with this work; if not, write to the Free Software Foundation,
4508 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4509 #
4510 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4511 # or visit www.oracle.com if you need additional information or have any
4512 # questions.
4513 #
4514 
4515 ################################################################################
4516 # Setup bundled libraries.
4517 #
4518 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4519 # OpenJDK repository. Default is to use these libraries as bundled, but they
4520 # might be replaced by en external version by the user.
4521 ################################################################################
4522 
4523 
4524 ################################################################################
4525 # Setup libjpeg
4526 ################################################################################
4527 
4528 
4529 ################################################################################
4530 # Setup giflib
4531 ################################################################################
4532 
4533 
4534 ################################################################################
4535 # Setup libpng
4536 ################################################################################
4537 
4538 
4539 ################################################################################
4540 # Setup zlib
4541 ################################################################################
4542 
4543 
4544 ################################################################################
4545 # Setup lcms (Little CMS)
4546 ################################################################################
4547 
4548 
4549 #
4550 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4551 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4552 #
4553 # This code is free software; you can redistribute it and/or modify it
4554 # under the terms of the GNU General Public License version 2 only, as
4555 # published by the Free Software Foundation.  Oracle designates this
4556 # particular file as subject to the "Classpath" exception as provided
4557 # by Oracle in the LICENSE file that accompanied this code.
4558 #
4559 # This code is distributed in the hope that it will be useful, but WITHOUT
4560 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4561 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4562 # version 2 for more details (a copy is included in the LICENSE file that
4563 # accompanied this code).
4564 #
4565 # You should have received a copy of the GNU General Public License version
4566 # 2 along with this work; if not, write to the Free Software Foundation,
4567 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4568 #
4569 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4570 # or visit www.oracle.com if you need additional information or have any
4571 # questions.
4572 #
4573 
4574 ################################################################################
4575 # Setup cups (Common Unix Printing System)
4576 ################################################################################
4577 
4578 
4579 #
4580 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4581 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4582 #
4583 # This code is free software; you can redistribute it and/or modify it
4584 # under the terms of the GNU General Public License version 2 only, as
4585 # published by the Free Software Foundation.  Oracle designates this
4586 # particular file as subject to the "Classpath" exception as provided
4587 # by Oracle in the LICENSE file that accompanied this code.
4588 #
4589 # This code is distributed in the hope that it will be useful, but WITHOUT
4590 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4591 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4592 # version 2 for more details (a copy is included in the LICENSE file that
4593 # accompanied this code).
4594 #
4595 # You should have received a copy of the GNU General Public License version
4596 # 2 along with this work; if not, write to the Free Software Foundation,
4597 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4598 #
4599 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4600 # or visit www.oracle.com if you need additional information or have any
4601 # questions.
4602 #
4603 
4604 ################################################################################
4605 # Setup libffi (Foreign Function Interface)
4606 ################################################################################
4607 
4608 
4609 #
4610 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4611 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4612 #
4613 # This code is free software; you can redistribute it and/or modify it
4614 # under the terms of the GNU General Public License version 2 only, as
4615 # published by the Free Software Foundation.  Oracle designates this
4616 # particular file as subject to the "Classpath" exception as provided
4617 # by Oracle in the LICENSE file that accompanied this code.
4618 #
4619 # This code is distributed in the hope that it will be useful, but WITHOUT
4620 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4621 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4622 # version 2 for more details (a copy is included in the LICENSE file that
4623 # accompanied this code).
4624 #
4625 # You should have received a copy of the GNU General Public License version
4626 # 2 along with this work; if not, write to the Free Software Foundation,
4627 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4628 #
4629 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4630 # or visit www.oracle.com if you need additional information or have any
4631 # questions.
4632 #
4633 
4634 ################################################################################
4635 # Build the freetype lib from source
4636 ################################################################################
4637 
4638 
4639 ################################################################################
4640 # Check if a potential freeype library match is correct and usable
4641 ################################################################################
4642 
4643 
4644 ################################################################################
4645 # Setup freetype (The FreeType2 font rendering library)
4646 ################################################################################
4647 
4648 
4649 #
4650 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4651 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4652 #
4653 # This code is free software; you can redistribute it and/or modify it
4654 # under the terms of the GNU General Public License version 2 only, as
4655 # published by the Free Software Foundation.  Oracle designates this
4656 # particular file as subject to the "Classpath" exception as provided
4657 # by Oracle in the LICENSE file that accompanied this code.
4658 #
4659 # This code is distributed in the hope that it will be useful, but WITHOUT
4660 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4661 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4662 # version 2 for more details (a copy is included in the LICENSE file that
4663 # accompanied this code).
4664 #
4665 # You should have received a copy of the GNU General Public License version
4666 # 2 along with this work; if not, write to the Free Software Foundation,
4667 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4668 #
4669 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4670 # or visit www.oracle.com if you need additional information or have any
4671 # questions.
4672 #
4673 
4674 ################################################################################
4675 # Setup the standard C/C++ runtime libraries.
4676 #
4677 # Most importantly, determine if stdc++ should be linked statically or
4678 # dynamically.
4679 ################################################################################
4680 
4681 
4682 #
4683 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4684 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4685 #
4686 # This code is free software; you can redistribute it and/or modify it
4687 # under the terms of the GNU General Public License version 2 only, as
4688 # published by the Free Software Foundation.  Oracle designates this
4689 # particular file as subject to the "Classpath" exception as provided
4690 # by Oracle in the LICENSE file that accompanied this code.
4691 #
4692 # This code is distributed in the hope that it will be useful, but WITHOUT
4693 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4694 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4695 # version 2 for more details (a copy is included in the LICENSE file that
4696 # accompanied this code).
4697 #
4698 # You should have received a copy of the GNU General Public License version
4699 # 2 along with this work; if not, write to the Free Software Foundation,
4700 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4701 #
4702 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4703 # or visit www.oracle.com if you need additional information or have any
4704 # questions.
4705 #
4706 
4707 ################################################################################
4708 # Setup X11 Windows system
4709 ################################################################################
4710 
4711 
4712 
4713 ################################################################################
4714 # Determine which libraries are needed for this configuration
4715 ################################################################################
4716 
4717 
4718 ################################################################################
4719 # Parse library options, and setup needed libraries
4720 ################################################################################
4721 
4722 
4723 ################################################################################
4724 # Setup llvm (Low-Level VM)
4725 ################################################################################
4726 
4727 
4728 ################################################################################
4729 # Setup various libraries, typically small system libraries
4730 ################################################################################
4731 
4732 
4733 ################################################################################
4734 # libstlport.so.1 is needed for running gtest on Solaris. Find it to
4735 # redistribute it in the test image.
4736 ################################################################################
4737 
4738 #
4739 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4741 #
4742 # This code is free software; you can redistribute it and/or modify it
4743 # under the terms of the GNU General Public License version 2 only, as
4744 # published by the Free Software Foundation.  Oracle designates this
4745 # particular file as subject to the "Classpath" exception as provided
4746 # by Oracle in the LICENSE file that accompanied this code.
4747 #
4748 # This code is distributed in the hope that it will be useful, but WITHOUT
4749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4750 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4751 # version 2 for more details (a copy is included in the LICENSE file that
4752 # accompanied this code).
4753 #
4754 # You should have received a copy of the GNU General Public License version
4755 # 2 along with this work; if not, write to the Free Software Foundation,
4756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4757 #
4758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4759 # or visit www.oracle.com if you need additional information or have any
4760 # questions.
4761 #
4762 
4763 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4764 # Converts autoconf style CPU name to OpenJDK style, into
4765 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4766 
4767 
4768 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4769 # Converts autoconf style OS name to OpenJDK style, into
4770 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4771 
4772 
4773 # Expects $host_os $host_cpu $build_os and $build_cpu
4774 # and $with_target_bits to have been setup!
4775 #
4776 # Translate the standard triplet(quadruplet) definition
4777 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4778 # OPENJDK_BUILD_OS, etc.
4779 
4780 
4781 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4782 # accordingly. Must be done after setting up build and target system, but before
4783 # doing anything else with these values.
4784 
4785 
4786 # Setup the legacy variables, for controlling the old makefiles.
4787 #
4788 
4789 
4790 # $1 - Either TARGET or BUILD to setup the variables for.
4791 
4792 
4793 
4794 
4795 #%%% Build and target systems %%%
4796 
4797 
4798 
4799 
4800 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4801 # Add -mX to various FLAGS variables.
4802 
4803 
4804 
4805 
4806 
4807 
4808 #
4809 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4810 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4811 #
4812 # This code is free software; you can redistribute it and/or modify it
4813 # under the terms of the GNU General Public License version 2 only, as
4814 # published by the Free Software Foundation.  Oracle designates this
4815 # particular file as subject to the "Classpath" exception as provided
4816 # by Oracle in the LICENSE file that accompanied this code.
4817 #
4818 # This code is distributed in the hope that it will be useful, but WITHOUT
4819 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4820 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4821 # version 2 for more details (a copy is included in the LICENSE file that
4822 # accompanied this code).
4823 #
4824 # You should have received a copy of the GNU General Public License version
4825 # 2 along with this work; if not, write to the Free Software Foundation,
4826 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4827 #
4828 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4829 # or visit www.oracle.com if you need additional information or have any
4830 # questions.
4831 #
4832 
4833 
4834 
4835 
4836 
4837 
4838 
4839 ################################################################################
4840 # Define a mechanism for importing extra prebuilt modules
4841 #
4842 
4843 
4844 
4845 #
4846 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4847 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4848 #
4849 # This code is free software; you can redistribute it and/or modify it
4850 # under the terms of the GNU General Public License version 2 only, as
4851 # published by the Free Software Foundation.  Oracle designates this
4852 # particular file as subject to the "Classpath" exception as provided
4853 # by Oracle in the LICENSE file that accompanied this code.
4854 #
4855 # This code is distributed in the hope that it will be useful, but WITHOUT
4856 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4857 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4858 # version 2 for more details (a copy is included in the LICENSE file that
4859 # accompanied this code).
4860 #
4861 # You should have received a copy of the GNU General Public License version
4862 # 2 along with this work; if not, write to the Free Software Foundation,
4863 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4864 #
4865 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4866 # or visit www.oracle.com if you need additional information or have any
4867 # questions.
4868 #
4869 
4870 ########################################################################
4871 # This file is responsible for detecting, verifying and setting up the
4872 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4873 # proper paths to the binaries, but it will not setup any flags.
4874 #
4875 # The binaries used is determined by the toolchain type, which is the family of
4876 # compilers and related tools that are used.
4877 ########################################################################
4878 
4879 
4880 # All valid toolchains, regardless of platform (used by help.m4)
4881 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4882 
4883 # These toolchains are valid on different platforms
4884 VALID_TOOLCHAINS_linux="gcc clang"
4885 VALID_TOOLCHAINS_solaris="solstudio"
4886 VALID_TOOLCHAINS_macosx="gcc clang"
4887 VALID_TOOLCHAINS_aix="xlc"
4888 VALID_TOOLCHAINS_windows="microsoft"
4889 
4890 # Toolchain descriptions
4891 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4892 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4893 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4894 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4895 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4896 
4897 # Minimum supported versions, empty means unspecified
4898 TOOLCHAIN_MINIMUM_VERSION_clang="3.2"
4899 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3"
4900 TOOLCHAIN_MINIMUM_VERSION_microsoft=""
4901 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12"
4902 TOOLCHAIN_MINIMUM_VERSION_xlc=""
4903 
4904 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4905 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4906 
4907 
4908 # Check if the configured compiler (C and C++) is of a specific version or
4909 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4910 #
4911 # Arguments:
4912 #   VERSION:   The version string to check against the found version
4913 #   IF_AT_LEAST:   block to run if the compiler is at least this version (>=)
4914 #   IF_OLDER_THAN:   block to run if the compiler is older than this version (<)
4915 
4916 
4917 
4918 
4919 # Setup a number of variables describing how native output files are
4920 # named on this platform/toolchain.
4921 
4922 
4923 # Determine which toolchain type to use, and make sure it is valid for this
4924 # platform. Setup various information about the selected toolchain.
4925 
4926 
4927 # Before we start detecting the toolchain executables, we might need some
4928 # special setup, e.g. additional paths etc.
4929 
4930 
4931 # Restore path, etc
4932 
4933 
4934 # Check if a compiler is of the toolchain type we expect, and save the version
4935 # information from it. If the compiler does not match the expected type,
4936 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4937 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4938 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4939 #
4940 # $1 = compiler to test (CC or CXX)
4941 # $2 = human readable name of compiler (C or C++)
4942 
4943 
4944 # Try to locate the given C or C++ compiler in the path, or otherwise.
4945 #
4946 # $1 = compiler to test (CC or CXX)
4947 # $2 = human readable name of compiler (C or C++)
4948 # $3 = list of compiler names to search for
4949 
4950 
4951 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4952 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4953 # archiver (AR). Verify that the compilers are correct according to the
4954 # toolchain type.
4955 
4956 
4957 # Setup additional tools that is considered a part of the toolchain, but not the
4958 # core part. Many of these are highly platform-specific and do not exist,
4959 # and/or are not needed on all platforms.
4960 
4961 
4962 # Setup the build tools (i.e, the compiler and linker used to build programs
4963 # that should be run on the build platform, not the target platform, as a build
4964 # helper). Since the non-cross-compile case uses the normal, target compilers
4965 # for this, we can only do this after these have been setup.
4966 
4967 
4968 # Setup legacy variables that are still needed as alternative ways to refer to
4969 # parts of the toolchain.
4970 
4971 
4972 # Do some additional checks on the detected tools.
4973 
4974 
4975 # Setup the JTReg Regression Test Harness.
4976 
4977 
4978 #
4979 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4980 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4981 #
4982 # This code is free software; you can redistribute it and/or modify it
4983 # under the terms of the GNU General Public License version 2 only, as
4984 # published by the Free Software Foundation.  Oracle designates this
4985 # particular file as subject to the "Classpath" exception as provided
4986 # by Oracle in the LICENSE file that accompanied this code.
4987 #
4988 # This code is distributed in the hope that it will be useful, but WITHOUT
4989 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4990 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4991 # version 2 for more details (a copy is included in the LICENSE file that
4992 # accompanied this code).
4993 #
4994 # You should have received a copy of the GNU General Public License version
4995 # 2 along with this work; if not, write to the Free Software Foundation,
4996 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4997 #
4998 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4999 # or visit www.oracle.com if you need additional information or have any
5000 # questions.
5001 #
5002 
5003 ################################################################################
5004 # The order of these defines the priority by which we try to find them.
5005 VALID_VS_VERSIONS="2013 2012 2010"
5006 
5007 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
5008 VS_VERSION_INTERNAL_2010=100
5009 VS_MSVCR_2010=msvcr100.dll
5010 # We don't use msvcp on Visual Studio 2010
5011 #VS_MSVCP_2010=msvcp100.dll
5012 VS_ENVVAR_2010="VS100COMNTOOLS"
5013 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
5014 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
5015 VS_VS_PLATFORM_NAME_2010="v100"
5016 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
5017 
5018 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
5019 VS_VERSION_INTERNAL_2012=110
5020 VS_MSVCR_2012=msvcr110.dll
5021 VS_MSVCP_2012=msvcp110.dll
5022 VS_ENVVAR_2012="VS110COMNTOOLS"
5023 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
5024 VS_SDK_INSTALLDIR_2012=
5025 VS_VS_PLATFORM_NAME_2012="v110"
5026 VS_SDK_PLATFORM_NAME_2012=
5027 
5028 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
5029 VS_VERSION_INTERNAL_2013=120
5030 VS_MSVCR_2013=msvcr120.dll
5031 VS_MSVCP_2013=msvcp120.dll
5032 VS_ENVVAR_2013="VS120COMNTOOLS"
5033 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
5034 VS_SDK_INSTALLDIR_2013=
5035 VS_VS_PLATFORM_NAME_2013="v120"
5036 VS_SDK_PLATFORM_NAME_2013=
5037 
5038 ################################################################################
5039 
5040 
5041 
5042 ################################################################################
5043 
5044 
5045 
5046 ################################################################################
5047 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
5048 # build environment and assigns it to VS_ENV_CMD
5049 
5050 
5051 ################################################################################
5052 
5053 
5054 
5055 ################################################################################
5056 # Check if the VS env variables were setup prior to running configure.
5057 # If not, then find vcvarsall.bat and run it automatically, and integrate
5058 # the set env variables into the spec file.
5059 
5060 
5061 
5062 
5063 
5064 
5065 
5066 
5067 
5068 
5069 
5070 
5071 
5072 
5073 # This line needs to be here, verbatim, after all includes and the dummy hook
5074 # definitions. It is replaced with custom functionality when building
5075 # custom sources.
5076 #CUSTOM_AUTOCONF_INCLUDE
5077 
5078 # Do not change or remove the following line, it is needed for consistency checks:
5079 DATE_WHEN_GENERATED=1461064700
5080 
5081 ###############################################################################
5082 #
5083 # Initialization / Boot-strapping
5084 #
5085 # The bootstrapping process needs to solve the "chicken or the egg" problem,
5086 # thus it jumps back and forth, each time gaining something needed later on.
5087 #
5088 ###############################################################################
5089 
5090 # If we are requested to print additional help, do that and then exit.
5091 # This must be the very first call.
5092 
5093   if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then
5094 
5095     # Print available toolchains
5096     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
5097     $PRINTF "Which are valid to use depends on the build platform.\n"
5098     for toolchain in $VALID_TOOLCHAINS_all; do
5099       # Use indirect variable referencing
5100       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
5101       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
5102       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
5103     done
5104     $PRINTF "\n"
5105 
5106     # Print available jvm features
5107     $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n"
5108     $PRINTF "Which are valid to use depends on the target platform.\n  "
5109     $PRINTF "%s " $VALID_JVM_FEATURES
5110     $PRINTF "\n"
5111 
5112     # And now exit directly
5113     exit 0
5114   fi
5115 
5116 
5117 # Basic initialization that must happen first of all in the normal process.
5118 
5119   # Save the original command line. This is passed to us by the wrapper configure script.
5120 
5121   # Save the path variable before it gets changed
5122   ORIGINAL_PATH="$PATH"
5123 
5124   DATE_WHEN_CONFIGURED=`LANG=C date`
5125 
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
5127 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
5129 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
5130 
5131 
5132   # Start with tools that do not need have cross compilation support
5133   # and can be expected to be found in the default PATH. These tools are
5134   # used by configure.
5135 
5136   # First are all the simple required tools.
5137 
5138 
5139 
5140   # Publish this variable in the help.
5141 
5142 
5143   if [ -z "${BASENAME+x}" ]; then
5144     # The variable is not set by user, try to locate tool using the code snippet
5145     for ac_prog in basename
5146 do
5147   # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_path_BASENAME+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   case $BASENAME in
5155   [\\/]* | ?:[\\/]*)
5156   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5157   ;;
5158   *)
5159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162   IFS=$as_save_IFS
5163   test -z "$as_dir" && as_dir=.
5164     for ac_exec_ext in '' $ac_executable_extensions; do
5165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168     break 2
5169   fi
5170 done
5171   done
5172 IFS=$as_save_IFS
5173 
5174   ;;
5175 esac
5176 fi
5177 BASENAME=$ac_cv_path_BASENAME
5178 if test -n "$BASENAME"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5180 $as_echo "$BASENAME" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185 
5186 
5187   test -n "$BASENAME" && break
5188 done
5189 
5190   else
5191     # The variable is set, but is it from the command line or the environment?
5192 
5193     # Try to remove the string !BASENAME! from our list.
5194     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
5195     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5196       # If it failed, the variable was not from the command line. Ignore it,
5197       # but warn the user (except for BASH, which is always set by the calling BASH).
5198       if test "xBASENAME" != xBASH; then
5199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
5200 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
5201       fi
5202       # Try to locate tool using the code snippet
5203       for ac_prog in basename
5204 do
5205   # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_path_BASENAME+:} false; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   case $BASENAME in
5213   [\\/]* | ?:[\\/]*)
5214   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5215   ;;
5216   *)
5217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226     break 2
5227   fi
5228 done
5229   done
5230 IFS=$as_save_IFS
5231 
5232   ;;
5233 esac
5234 fi
5235 BASENAME=$ac_cv_path_BASENAME
5236 if test -n "$BASENAME"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5238 $as_echo "$BASENAME" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243 
5244 
5245   test -n "$BASENAME" && break
5246 done
5247 
5248     else
5249       # If it succeeded, then it was overridden by the user. We will use it
5250       # for the tool.
5251 
5252       # First remove it from the list of overridden variables, so we can test
5253       # for unknown variables in the end.
5254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5255 
5256       # Check if we try to supply an empty value
5257       if test "x$BASENAME" = x; then
5258         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
5259 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
5260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5261 $as_echo_n "checking for BASENAME... " >&6; }
5262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5263 $as_echo "disabled" >&6; }
5264       else
5265         # Check if the provided tool contains a complete path.
5266         tool_specified="$BASENAME"
5267         tool_basename="${tool_specified##*/}"
5268         if test "x$tool_basename" = "x$tool_specified"; then
5269           # A command without a complete path is provided, search $PATH.
5270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
5271 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
5272           # Extract the first word of "$tool_basename", so it can be a program name with args.
5273 set dummy $tool_basename; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if ${ac_cv_path_BASENAME+:} false; then :
5277   $as_echo_n "(cached) " >&6
5278 else
5279   case $BASENAME in
5280   [\\/]* | ?:[\\/]*)
5281   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5282   ;;
5283   *)
5284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296   done
5297 IFS=$as_save_IFS
5298 
5299   ;;
5300 esac
5301 fi
5302 BASENAME=$ac_cv_path_BASENAME
5303 if test -n "$BASENAME"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
5305 $as_echo "$BASENAME" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310 
5311 
5312           if test "x$BASENAME" = x; then
5313             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5314           fi
5315         else
5316           # Otherwise we believe it is a complete path. Use it as it is.
5317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
5318 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
5319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
5320 $as_echo_n "checking for BASENAME... " >&6; }
5321           if test ! -x "$tool_specified"; then
5322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5323 $as_echo "not found" >&6; }
5324             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
5325           fi
5326           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5327 $as_echo "$tool_specified" >&6; }
5328         fi
5329       fi
5330     fi
5331 
5332   fi
5333 
5334 
5335 
5336   if test "x$BASENAME" = x; then
5337     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
5338   fi
5339 
5340 
5341 
5342 
5343 
5344   # Publish this variable in the help.
5345 
5346 
5347   if [ -z "${BASH+x}" ]; then
5348     # The variable is not set by user, try to locate tool using the code snippet
5349     for ac_prog in bash
5350 do
5351   # Extract the first word of "$ac_prog", so it can be a program name with args.
5352 set dummy $ac_prog; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if ${ac_cv_path_BASH+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   case $BASH in
5359   [\\/]* | ?:[\\/]*)
5360   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5361   ;;
5362   *)
5363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366   IFS=$as_save_IFS
5367   test -z "$as_dir" && as_dir=.
5368     for ac_exec_ext in '' $ac_executable_extensions; do
5369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372     break 2
5373   fi
5374 done
5375   done
5376 IFS=$as_save_IFS
5377 
5378   ;;
5379 esac
5380 fi
5381 BASH=$ac_cv_path_BASH
5382 if test -n "$BASH"; then
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5384 $as_echo "$BASH" >&6; }
5385 else
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389 
5390 
5391   test -n "$BASH" && break
5392 done
5393 
5394   else
5395     # The variable is set, but is it from the command line or the environment?
5396 
5397     # Try to remove the string !BASH! from our list.
5398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5400       # If it failed, the variable was not from the command line. Ignore it,
5401       # but warn the user (except for BASH, which is always set by the calling BASH).
5402       if test "xBASH" != xBASH; then
5403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5404 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5405       fi
5406       # Try to locate tool using the code snippet
5407       for ac_prog in bash
5408 do
5409   # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_path_BASH+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $BASH in
5417   [\\/]* | ?:[\\/]*)
5418   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5419   ;;
5420   *)
5421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424   IFS=$as_save_IFS
5425   test -z "$as_dir" && as_dir=.
5426     for ac_exec_ext in '' $ac_executable_extensions; do
5427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430     break 2
5431   fi
5432 done
5433   done
5434 IFS=$as_save_IFS
5435 
5436   ;;
5437 esac
5438 fi
5439 BASH=$ac_cv_path_BASH
5440 if test -n "$BASH"; then
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5442 $as_echo "$BASH" >&6; }
5443 else
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5446 fi
5447 
5448 
5449   test -n "$BASH" && break
5450 done
5451 
5452     else
5453       # If it succeeded, then it was overridden by the user. We will use it
5454       # for the tool.
5455 
5456       # First remove it from the list of overridden variables, so we can test
5457       # for unknown variables in the end.
5458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5459 
5460       # Check if we try to supply an empty value
5461       if test "x$BASH" = x; then
5462         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
5463 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
5464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5465 $as_echo_n "checking for BASH... " >&6; }
5466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5467 $as_echo "disabled" >&6; }
5468       else
5469         # Check if the provided tool contains a complete path.
5470         tool_specified="$BASH"
5471         tool_basename="${tool_specified##*/}"
5472         if test "x$tool_basename" = "x$tool_specified"; then
5473           # A command without a complete path is provided, search $PATH.
5474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5475 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5476           # Extract the first word of "$tool_basename", so it can be a program name with args.
5477 set dummy $tool_basename; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_BASH+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   case $BASH in
5484   [\\/]* | ?:[\\/]*)
5485   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5486   ;;
5487   *)
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502 
5503   ;;
5504 esac
5505 fi
5506 BASH=$ac_cv_path_BASH
5507 if test -n "$BASH"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5509 $as_echo "$BASH" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514 
5515 
5516           if test "x$BASH" = x; then
5517             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5518           fi
5519         else
5520           # Otherwise we believe it is a complete path. Use it as it is.
5521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5522 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5524 $as_echo_n "checking for BASH... " >&6; }
5525           if test ! -x "$tool_specified"; then
5526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5527 $as_echo "not found" >&6; }
5528             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5529           fi
5530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5531 $as_echo "$tool_specified" >&6; }
5532         fi
5533       fi
5534     fi
5535 
5536   fi
5537 
5538 
5539 
5540   if test "x$BASH" = x; then
5541     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5542   fi
5543 
5544 
5545 
5546 
5547 
5548   # Publish this variable in the help.
5549 
5550 
5551   if [ -z "${CAT+x}" ]; then
5552     # The variable is not set by user, try to locate tool using the code snippet
5553     for ac_prog in cat
5554 do
5555   # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_path_CAT+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   case $CAT in
5563   [\\/]* | ?:[\\/]*)
5564   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5565   ;;
5566   *)
5567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572     for ac_exec_ext in '' $ac_executable_extensions; do
5573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576     break 2
5577   fi
5578 done
5579   done
5580 IFS=$as_save_IFS
5581 
5582   ;;
5583 esac
5584 fi
5585 CAT=$ac_cv_path_CAT
5586 if test -n "$CAT"; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5588 $as_echo "$CAT" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593 
5594 
5595   test -n "$CAT" && break
5596 done
5597 
5598   else
5599     # The variable is set, but is it from the command line or the environment?
5600 
5601     # Try to remove the string !CAT! from our list.
5602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5604       # If it failed, the variable was not from the command line. Ignore it,
5605       # but warn the user (except for BASH, which is always set by the calling BASH).
5606       if test "xCAT" != xBASH; then
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5608 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5609       fi
5610       # Try to locate tool using the code snippet
5611       for ac_prog in cat
5612 do
5613   # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_CAT+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $CAT in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5623   ;;
5624   *)
5625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639 
5640   ;;
5641 esac
5642 fi
5643 CAT=$ac_cv_path_CAT
5644 if test -n "$CAT"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5646 $as_echo "$CAT" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651 
5652 
5653   test -n "$CAT" && break
5654 done
5655 
5656     else
5657       # If it succeeded, then it was overridden by the user. We will use it
5658       # for the tool.
5659 
5660       # First remove it from the list of overridden variables, so we can test
5661       # for unknown variables in the end.
5662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5663 
5664       # Check if we try to supply an empty value
5665       if test "x$CAT" = x; then
5666         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5667 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5669 $as_echo_n "checking for CAT... " >&6; }
5670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5671 $as_echo "disabled" >&6; }
5672       else
5673         # Check if the provided tool contains a complete path.
5674         tool_specified="$CAT"
5675         tool_basename="${tool_specified##*/}"
5676         if test "x$tool_basename" = "x$tool_specified"; then
5677           # A command without a complete path is provided, search $PATH.
5678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5679 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5680           # Extract the first word of "$tool_basename", so it can be a program name with args.
5681 set dummy $tool_basename; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_path_CAT+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   case $CAT in
5688   [\\/]* | ?:[\\/]*)
5689   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5690   ;;
5691   *)
5692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695   IFS=$as_save_IFS
5696   test -z "$as_dir" && as_dir=.
5697     for ac_exec_ext in '' $ac_executable_extensions; do
5698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701     break 2
5702   fi
5703 done
5704   done
5705 IFS=$as_save_IFS
5706 
5707   ;;
5708 esac
5709 fi
5710 CAT=$ac_cv_path_CAT
5711 if test -n "$CAT"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5713 $as_echo "$CAT" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718 
5719 
5720           if test "x$CAT" = x; then
5721             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5722           fi
5723         else
5724           # Otherwise we believe it is a complete path. Use it as it is.
5725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5726 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5728 $as_echo_n "checking for CAT... " >&6; }
5729           if test ! -x "$tool_specified"; then
5730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5731 $as_echo "not found" >&6; }
5732             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5733           fi
5734           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5735 $as_echo "$tool_specified" >&6; }
5736         fi
5737       fi
5738     fi
5739 
5740   fi
5741 
5742 
5743 
5744   if test "x$CAT" = x; then
5745     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5746   fi
5747 
5748 
5749 
5750 
5751 
5752   # Publish this variable in the help.
5753 
5754 
5755   if [ -z "${CHMOD+x}" ]; then
5756     # The variable is not set by user, try to locate tool using the code snippet
5757     for ac_prog in chmod
5758 do
5759   # Extract the first word of "$ac_prog", so it can be a program name with args.
5760 set dummy $ac_prog; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_path_CHMOD+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   case $CHMOD in
5767   [\\/]* | ?:[\\/]*)
5768   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5769   ;;
5770   *)
5771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785 
5786   ;;
5787 esac
5788 fi
5789 CHMOD=$ac_cv_path_CHMOD
5790 if test -n "$CHMOD"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5792 $as_echo "$CHMOD" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797 
5798 
5799   test -n "$CHMOD" && break
5800 done
5801 
5802   else
5803     # The variable is set, but is it from the command line or the environment?
5804 
5805     # Try to remove the string !CHMOD! from our list.
5806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5808       # If it failed, the variable was not from the command line. Ignore it,
5809       # but warn the user (except for BASH, which is always set by the calling BASH).
5810       if test "xCHMOD" != xBASH; then
5811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5812 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5813       fi
5814       # Try to locate tool using the code snippet
5815       for ac_prog in chmod
5816 do
5817   # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if ${ac_cv_path_CHMOD+:} false; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   case $CHMOD in
5825   [\\/]* | ?:[\\/]*)
5826   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5827   ;;
5828   *)
5829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5831 do
5832   IFS=$as_save_IFS
5833   test -z "$as_dir" && as_dir=.
5834     for ac_exec_ext in '' $ac_executable_extensions; do
5835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838     break 2
5839   fi
5840 done
5841   done
5842 IFS=$as_save_IFS
5843 
5844   ;;
5845 esac
5846 fi
5847 CHMOD=$ac_cv_path_CHMOD
5848 if test -n "$CHMOD"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5850 $as_echo "$CHMOD" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855 
5856 
5857   test -n "$CHMOD" && break
5858 done
5859 
5860     else
5861       # If it succeeded, then it was overridden by the user. We will use it
5862       # for the tool.
5863 
5864       # First remove it from the list of overridden variables, so we can test
5865       # for unknown variables in the end.
5866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5867 
5868       # Check if we try to supply an empty value
5869       if test "x$CHMOD" = x; then
5870         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5871 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5873 $as_echo_n "checking for CHMOD... " >&6; }
5874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5875 $as_echo "disabled" >&6; }
5876       else
5877         # Check if the provided tool contains a complete path.
5878         tool_specified="$CHMOD"
5879         tool_basename="${tool_specified##*/}"
5880         if test "x$tool_basename" = "x$tool_specified"; then
5881           # A command without a complete path is provided, search $PATH.
5882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5883 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5884           # Extract the first word of "$tool_basename", so it can be a program name with args.
5885 set dummy $tool_basename; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_path_CHMOD+:} false; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   case $CHMOD in
5892   [\\/]* | ?:[\\/]*)
5893   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5894   ;;
5895   *)
5896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901     for ac_exec_ext in '' $ac_executable_extensions; do
5902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908   done
5909 IFS=$as_save_IFS
5910 
5911   ;;
5912 esac
5913 fi
5914 CHMOD=$ac_cv_path_CHMOD
5915 if test -n "$CHMOD"; then
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5917 $as_echo "$CHMOD" >&6; }
5918 else
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922 
5923 
5924           if test "x$CHMOD" = x; then
5925             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5926           fi
5927         else
5928           # Otherwise we believe it is a complete path. Use it as it is.
5929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5930 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5932 $as_echo_n "checking for CHMOD... " >&6; }
5933           if test ! -x "$tool_specified"; then
5934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5935 $as_echo "not found" >&6; }
5936             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5937           fi
5938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5939 $as_echo "$tool_specified" >&6; }
5940         fi
5941       fi
5942     fi
5943 
5944   fi
5945 
5946 
5947 
5948   if test "x$CHMOD" = x; then
5949     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5950   fi
5951 
5952 
5953 
5954 
5955 
5956   # Publish this variable in the help.
5957 
5958 
5959   if [ -z "${CMP+x}" ]; then
5960     # The variable is not set by user, try to locate tool using the code snippet
5961     for ac_prog in cmp
5962 do
5963   # Extract the first word of "$ac_prog", so it can be a program name with args.
5964 set dummy $ac_prog; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_path_CMP+:} false; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   case $CMP in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989 
5990   ;;
5991 esac
5992 fi
5993 CMP=$ac_cv_path_CMP
5994 if test -n "$CMP"; then
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5996 $as_echo "$CMP" >&6; }
5997 else
5998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001 
6002 
6003   test -n "$CMP" && break
6004 done
6005 
6006   else
6007     # The variable is set, but is it from the command line or the environment?
6008 
6009     # Try to remove the string !CMP! from our list.
6010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
6011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6012       # If it failed, the variable was not from the command line. Ignore it,
6013       # but warn the user (except for BASH, which is always set by the calling BASH).
6014       if test "xCMP" != xBASH; then
6015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
6016 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
6017       fi
6018       # Try to locate tool using the code snippet
6019       for ac_prog in cmp
6020 do
6021   # Extract the first word of "$ac_prog", so it can be a program name with args.
6022 set dummy $ac_prog; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_path_CMP+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   case $CMP in
6029   [\\/]* | ?:[\\/]*)
6030   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6031   ;;
6032   *)
6033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036   IFS=$as_save_IFS
6037   test -z "$as_dir" && as_dir=.
6038     for ac_exec_ext in '' $ac_executable_extensions; do
6039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042     break 2
6043   fi
6044 done
6045   done
6046 IFS=$as_save_IFS
6047 
6048   ;;
6049 esac
6050 fi
6051 CMP=$ac_cv_path_CMP
6052 if test -n "$CMP"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6054 $as_echo "$CMP" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059 
6060 
6061   test -n "$CMP" && break
6062 done
6063 
6064     else
6065       # If it succeeded, then it was overridden by the user. We will use it
6066       # for the tool.
6067 
6068       # First remove it from the list of overridden variables, so we can test
6069       # for unknown variables in the end.
6070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6071 
6072       # Check if we try to supply an empty value
6073       if test "x$CMP" = x; then
6074         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
6075 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
6076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6077 $as_echo_n "checking for CMP... " >&6; }
6078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6079 $as_echo "disabled" >&6; }
6080       else
6081         # Check if the provided tool contains a complete path.
6082         tool_specified="$CMP"
6083         tool_basename="${tool_specified##*/}"
6084         if test "x$tool_basename" = "x$tool_specified"; then
6085           # A command without a complete path is provided, search $PATH.
6086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
6087 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
6088           # Extract the first word of "$tool_basename", so it can be a program name with args.
6089 set dummy $tool_basename; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_path_CMP+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   case $CMP in
6096   [\\/]* | ?:[\\/]*)
6097   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6098   ;;
6099   *)
6100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114 
6115   ;;
6116 esac
6117 fi
6118 CMP=$ac_cv_path_CMP
6119 if test -n "$CMP"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6121 $as_echo "$CMP" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126 
6127 
6128           if test "x$CMP" = x; then
6129             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6130           fi
6131         else
6132           # Otherwise we believe it is a complete path. Use it as it is.
6133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
6134 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
6135           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
6136 $as_echo_n "checking for CMP... " >&6; }
6137           if test ! -x "$tool_specified"; then
6138             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6139 $as_echo "not found" >&6; }
6140             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
6141           fi
6142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6143 $as_echo "$tool_specified" >&6; }
6144         fi
6145       fi
6146     fi
6147 
6148   fi
6149 
6150 
6151 
6152   if test "x$CMP" = x; then
6153     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
6154   fi
6155 
6156 
6157 
6158 
6159 
6160   # Publish this variable in the help.
6161 
6162 
6163   if [ -z "${COMM+x}" ]; then
6164     # The variable is not set by user, try to locate tool using the code snippet
6165     for ac_prog in comm
6166 do
6167   # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_path_COMM+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   case $COMM in
6175   [\\/]* | ?:[\\/]*)
6176   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6177   ;;
6178   *)
6179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193 
6194   ;;
6195 esac
6196 fi
6197 COMM=$ac_cv_path_COMM
6198 if test -n "$COMM"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6200 $as_echo "$COMM" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205 
6206 
6207   test -n "$COMM" && break
6208 done
6209 
6210   else
6211     # The variable is set, but is it from the command line or the environment?
6212 
6213     # Try to remove the string !COMM! from our list.
6214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
6215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6216       # If it failed, the variable was not from the command line. Ignore it,
6217       # but warn the user (except for BASH, which is always set by the calling BASH).
6218       if test "xCOMM" != xBASH; then
6219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
6220 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
6221       fi
6222       # Try to locate tool using the code snippet
6223       for ac_prog in comm
6224 do
6225   # Extract the first word of "$ac_prog", so it can be a program name with args.
6226 set dummy $ac_prog; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_path_COMM+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   case $COMM in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242     for ac_exec_ext in '' $ac_executable_extensions; do
6243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249   done
6250 IFS=$as_save_IFS
6251 
6252   ;;
6253 esac
6254 fi
6255 COMM=$ac_cv_path_COMM
6256 if test -n "$COMM"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6258 $as_echo "$COMM" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263 
6264 
6265   test -n "$COMM" && break
6266 done
6267 
6268     else
6269       # If it succeeded, then it was overridden by the user. We will use it
6270       # for the tool.
6271 
6272       # First remove it from the list of overridden variables, so we can test
6273       # for unknown variables in the end.
6274       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6275 
6276       # Check if we try to supply an empty value
6277       if test "x$COMM" = x; then
6278         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
6279 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
6280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6281 $as_echo_n "checking for COMM... " >&6; }
6282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6283 $as_echo "disabled" >&6; }
6284       else
6285         # Check if the provided tool contains a complete path.
6286         tool_specified="$COMM"
6287         tool_basename="${tool_specified##*/}"
6288         if test "x$tool_basename" = "x$tool_specified"; then
6289           # A command without a complete path is provided, search $PATH.
6290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
6291 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
6292           # Extract the first word of "$tool_basename", so it can be a program name with args.
6293 set dummy $tool_basename; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_path_COMM+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   case $COMM in
6300   [\\/]* | ?:[\\/]*)
6301   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
6302   ;;
6303   *)
6304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309     for ac_exec_ext in '' $ac_executable_extensions; do
6310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
6312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316   done
6317 IFS=$as_save_IFS
6318 
6319   ;;
6320 esac
6321 fi
6322 COMM=$ac_cv_path_COMM
6323 if test -n "$COMM"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
6325 $as_echo "$COMM" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330 
6331 
6332           if test "x$COMM" = x; then
6333             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6334           fi
6335         else
6336           # Otherwise we believe it is a complete path. Use it as it is.
6337           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
6338 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
6339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
6340 $as_echo_n "checking for COMM... " >&6; }
6341           if test ! -x "$tool_specified"; then
6342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6343 $as_echo "not found" >&6; }
6344             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
6345           fi
6346           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6347 $as_echo "$tool_specified" >&6; }
6348         fi
6349       fi
6350     fi
6351 
6352   fi
6353 
6354 
6355 
6356   if test "x$COMM" = x; then
6357     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
6358   fi
6359 
6360 
6361 
6362 
6363 
6364   # Publish this variable in the help.
6365 
6366 
6367   if [ -z "${CP+x}" ]; then
6368     # The variable is not set by user, try to locate tool using the code snippet
6369     for ac_prog in cp
6370 do
6371   # Extract the first word of "$ac_prog", so it can be a program name with args.
6372 set dummy $ac_prog; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_path_CP+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   case $CP in
6379   [\\/]* | ?:[\\/]*)
6380   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6381   ;;
6382   *)
6383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388     for ac_exec_ext in '' $ac_executable_extensions; do
6389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395   done
6396 IFS=$as_save_IFS
6397 
6398   ;;
6399 esac
6400 fi
6401 CP=$ac_cv_path_CP
6402 if test -n "$CP"; then
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6404 $as_echo "$CP" >&6; }
6405 else
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6408 fi
6409 
6410 
6411   test -n "$CP" && break
6412 done
6413 
6414   else
6415     # The variable is set, but is it from the command line or the environment?
6416 
6417     # Try to remove the string !CP! from our list.
6418     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
6419     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6420       # If it failed, the variable was not from the command line. Ignore it,
6421       # but warn the user (except for BASH, which is always set by the calling BASH).
6422       if test "xCP" != xBASH; then
6423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
6424 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
6425       fi
6426       # Try to locate tool using the code snippet
6427       for ac_prog in cp
6428 do
6429   # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_path_CP+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   case $CP in
6437   [\\/]* | ?:[\\/]*)
6438   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6439   ;;
6440   *)
6441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446     for ac_exec_ext in '' $ac_executable_extensions; do
6447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453   done
6454 IFS=$as_save_IFS
6455 
6456   ;;
6457 esac
6458 fi
6459 CP=$ac_cv_path_CP
6460 if test -n "$CP"; then
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6462 $as_echo "$CP" >&6; }
6463 else
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467 
6468 
6469   test -n "$CP" && break
6470 done
6471 
6472     else
6473       # If it succeeded, then it was overridden by the user. We will use it
6474       # for the tool.
6475 
6476       # First remove it from the list of overridden variables, so we can test
6477       # for unknown variables in the end.
6478       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6479 
6480       # Check if we try to supply an empty value
6481       if test "x$CP" = x; then
6482         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6483 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6485 $as_echo_n "checking for CP... " >&6; }
6486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6487 $as_echo "disabled" >&6; }
6488       else
6489         # Check if the provided tool contains a complete path.
6490         tool_specified="$CP"
6491         tool_basename="${tool_specified##*/}"
6492         if test "x$tool_basename" = "x$tool_specified"; then
6493           # A command without a complete path is provided, search $PATH.
6494           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6495 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6496           # Extract the first word of "$tool_basename", so it can be a program name with args.
6497 set dummy $tool_basename; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_path_CP+:} false; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   case $CP in
6504   [\\/]* | ?:[\\/]*)
6505   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6506   ;;
6507   *)
6508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511   IFS=$as_save_IFS
6512   test -z "$as_dir" && as_dir=.
6513     for ac_exec_ext in '' $ac_executable_extensions; do
6514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517     break 2
6518   fi
6519 done
6520   done
6521 IFS=$as_save_IFS
6522 
6523   ;;
6524 esac
6525 fi
6526 CP=$ac_cv_path_CP
6527 if test -n "$CP"; then
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6529 $as_echo "$CP" >&6; }
6530 else
6531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6533 fi
6534 
6535 
6536           if test "x$CP" = x; then
6537             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6538           fi
6539         else
6540           # Otherwise we believe it is a complete path. Use it as it is.
6541           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6542 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6544 $as_echo_n "checking for CP... " >&6; }
6545           if test ! -x "$tool_specified"; then
6546             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6547 $as_echo "not found" >&6; }
6548             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6549           fi
6550           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6551 $as_echo "$tool_specified" >&6; }
6552         fi
6553       fi
6554     fi
6555 
6556   fi
6557 
6558 
6559 
6560   if test "x$CP" = x; then
6561     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6562   fi
6563 
6564 
6565 
6566 
6567 
6568   # Publish this variable in the help.
6569 
6570 
6571   if [ -z "${CUT+x}" ]; then
6572     # The variable is not set by user, try to locate tool using the code snippet
6573     for ac_prog in cut
6574 do
6575   # Extract the first word of "$ac_prog", so it can be a program name with args.
6576 set dummy $ac_prog; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_path_CUT+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   case $CUT in
6583   [\\/]* | ?:[\\/]*)
6584   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6585   ;;
6586   *)
6587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_exec_ext in '' $ac_executable_extensions; do
6593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6594     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599   done
6600 IFS=$as_save_IFS
6601 
6602   ;;
6603 esac
6604 fi
6605 CUT=$ac_cv_path_CUT
6606 if test -n "$CUT"; then
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6608 $as_echo "$CUT" >&6; }
6609 else
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613 
6614 
6615   test -n "$CUT" && break
6616 done
6617 
6618   else
6619     # The variable is set, but is it from the command line or the environment?
6620 
6621     # Try to remove the string !CUT! from our list.
6622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6624       # If it failed, the variable was not from the command line. Ignore it,
6625       # but warn the user (except for BASH, which is always set by the calling BASH).
6626       if test "xCUT" != xBASH; then
6627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6628 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6629       fi
6630       # Try to locate tool using the code snippet
6631       for ac_prog in cut
6632 do
6633   # Extract the first word of "$ac_prog", so it can be a program name with args.
6634 set dummy $ac_prog; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_path_CUT+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   case $CUT in
6641   [\\/]* | ?:[\\/]*)
6642   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6643   ;;
6644   *)
6645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648   IFS=$as_save_IFS
6649   test -z "$as_dir" && as_dir=.
6650     for ac_exec_ext in '' $ac_executable_extensions; do
6651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654     break 2
6655   fi
6656 done
6657   done
6658 IFS=$as_save_IFS
6659 
6660   ;;
6661 esac
6662 fi
6663 CUT=$ac_cv_path_CUT
6664 if test -n "$CUT"; then
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6666 $as_echo "$CUT" >&6; }
6667 else
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 fi
6671 
6672 
6673   test -n "$CUT" && break
6674 done
6675 
6676     else
6677       # If it succeeded, then it was overridden by the user. We will use it
6678       # for the tool.
6679 
6680       # First remove it from the list of overridden variables, so we can test
6681       # for unknown variables in the end.
6682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6683 
6684       # Check if we try to supply an empty value
6685       if test "x$CUT" = x; then
6686         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6687 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6689 $as_echo_n "checking for CUT... " >&6; }
6690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6691 $as_echo "disabled" >&6; }
6692       else
6693         # Check if the provided tool contains a complete path.
6694         tool_specified="$CUT"
6695         tool_basename="${tool_specified##*/}"
6696         if test "x$tool_basename" = "x$tool_specified"; then
6697           # A command without a complete path is provided, search $PATH.
6698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6699 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6700           # Extract the first word of "$tool_basename", so it can be a program name with args.
6701 set dummy $tool_basename; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_path_CUT+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   case $CUT in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726 
6727   ;;
6728 esac
6729 fi
6730 CUT=$ac_cv_path_CUT
6731 if test -n "$CUT"; then
6732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6733 $as_echo "$CUT" >&6; }
6734 else
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736 $as_echo "no" >&6; }
6737 fi
6738 
6739 
6740           if test "x$CUT" = x; then
6741             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6742           fi
6743         else
6744           # Otherwise we believe it is a complete path. Use it as it is.
6745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6746 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6747           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6748 $as_echo_n "checking for CUT... " >&6; }
6749           if test ! -x "$tool_specified"; then
6750             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6751 $as_echo "not found" >&6; }
6752             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6753           fi
6754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6755 $as_echo "$tool_specified" >&6; }
6756         fi
6757       fi
6758     fi
6759 
6760   fi
6761 
6762 
6763 
6764   if test "x$CUT" = x; then
6765     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6766   fi
6767 
6768 
6769 
6770 
6771 
6772   # Publish this variable in the help.
6773 
6774 
6775   if [ -z "${DATE+x}" ]; then
6776     # The variable is not set by user, try to locate tool using the code snippet
6777     for ac_prog in date
6778 do
6779   # Extract the first word of "$ac_prog", so it can be a program name with args.
6780 set dummy $ac_prog; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if ${ac_cv_path_DATE+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   case $DATE in
6787   [\\/]* | ?:[\\/]*)
6788   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6789   ;;
6790   *)
6791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794   IFS=$as_save_IFS
6795   test -z "$as_dir" && as_dir=.
6796     for ac_exec_ext in '' $ac_executable_extensions; do
6797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800     break 2
6801   fi
6802 done
6803   done
6804 IFS=$as_save_IFS
6805 
6806   ;;
6807 esac
6808 fi
6809 DATE=$ac_cv_path_DATE
6810 if test -n "$DATE"; then
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6812 $as_echo "$DATE" >&6; }
6813 else
6814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817 
6818 
6819   test -n "$DATE" && break
6820 done
6821 
6822   else
6823     # The variable is set, but is it from the command line or the environment?
6824 
6825     # Try to remove the string !DATE! from our list.
6826     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6827     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6828       # If it failed, the variable was not from the command line. Ignore it,
6829       # but warn the user (except for BASH, which is always set by the calling BASH).
6830       if test "xDATE" != xBASH; then
6831         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6832 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6833       fi
6834       # Try to locate tool using the code snippet
6835       for ac_prog in date
6836 do
6837   # Extract the first word of "$ac_prog", so it can be a program name with args.
6838 set dummy $ac_prog; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_path_DATE+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   case $DATE in
6845   [\\/]* | ?:[\\/]*)
6846   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6847   ;;
6848   *)
6849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863 
6864   ;;
6865 esac
6866 fi
6867 DATE=$ac_cv_path_DATE
6868 if test -n "$DATE"; then
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6870 $as_echo "$DATE" >&6; }
6871 else
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875 
6876 
6877   test -n "$DATE" && break
6878 done
6879 
6880     else
6881       # If it succeeded, then it was overridden by the user. We will use it
6882       # for the tool.
6883 
6884       # First remove it from the list of overridden variables, so we can test
6885       # for unknown variables in the end.
6886       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6887 
6888       # Check if we try to supply an empty value
6889       if test "x$DATE" = x; then
6890         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6891 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6893 $as_echo_n "checking for DATE... " >&6; }
6894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6895 $as_echo "disabled" >&6; }
6896       else
6897         # Check if the provided tool contains a complete path.
6898         tool_specified="$DATE"
6899         tool_basename="${tool_specified##*/}"
6900         if test "x$tool_basename" = "x$tool_specified"; then
6901           # A command without a complete path is provided, search $PATH.
6902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6903 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6904           # Extract the first word of "$tool_basename", so it can be a program name with args.
6905 set dummy $tool_basename; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_path_DATE+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   case $DATE in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921     for ac_exec_ext in '' $ac_executable_extensions; do
6922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928   done
6929 IFS=$as_save_IFS
6930 
6931   ;;
6932 esac
6933 fi
6934 DATE=$ac_cv_path_DATE
6935 if test -n "$DATE"; then
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6937 $as_echo "$DATE" >&6; }
6938 else
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942 
6943 
6944           if test "x$DATE" = x; then
6945             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6946           fi
6947         else
6948           # Otherwise we believe it is a complete path. Use it as it is.
6949           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6950 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6951           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6952 $as_echo_n "checking for DATE... " >&6; }
6953           if test ! -x "$tool_specified"; then
6954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6955 $as_echo "not found" >&6; }
6956             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6957           fi
6958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6959 $as_echo "$tool_specified" >&6; }
6960         fi
6961       fi
6962     fi
6963 
6964   fi
6965 
6966 
6967 
6968   if test "x$DATE" = x; then
6969     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6970   fi
6971 
6972 
6973 
6974 
6975 
6976   # Publish this variable in the help.
6977 
6978 
6979   if [ -z "${DIFF+x}" ]; then
6980     # The variable is not set by user, try to locate tool using the code snippet
6981     for ac_prog in gdiff diff
6982 do
6983   # Extract the first word of "$ac_prog", so it can be a program name with args.
6984 set dummy $ac_prog; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_path_DIFF+:} false; then :
6988   $as_echo_n "(cached) " >&6
6989 else
6990   case $DIFF in
6991   [\\/]* | ?:[\\/]*)
6992   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6993   ;;
6994   *)
6995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000     for ac_exec_ext in '' $ac_executable_extensions; do
7001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007   done
7008 IFS=$as_save_IFS
7009 
7010   ;;
7011 esac
7012 fi
7013 DIFF=$ac_cv_path_DIFF
7014 if test -n "$DIFF"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7016 $as_echo "$DIFF" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021 
7022 
7023   test -n "$DIFF" && break
7024 done
7025 
7026   else
7027     # The variable is set, but is it from the command line or the environment?
7028 
7029     # Try to remove the string !DIFF! from our list.
7030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
7031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7032       # If it failed, the variable was not from the command line. Ignore it,
7033       # but warn the user (except for BASH, which is always set by the calling BASH).
7034       if test "xDIFF" != xBASH; then
7035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
7036 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
7037       fi
7038       # Try to locate tool using the code snippet
7039       for ac_prog in gdiff diff
7040 do
7041   # Extract the first word of "$ac_prog", so it can be a program name with args.
7042 set dummy $ac_prog; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_path_DIFF+:} false; then :
7046   $as_echo_n "(cached) " >&6
7047 else
7048   case $DIFF in
7049   [\\/]* | ?:[\\/]*)
7050   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7051   ;;
7052   *)
7053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056   IFS=$as_save_IFS
7057   test -z "$as_dir" && as_dir=.
7058     for ac_exec_ext in '' $ac_executable_extensions; do
7059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062     break 2
7063   fi
7064 done
7065   done
7066 IFS=$as_save_IFS
7067 
7068   ;;
7069 esac
7070 fi
7071 DIFF=$ac_cv_path_DIFF
7072 if test -n "$DIFF"; then
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7074 $as_echo "$DIFF" >&6; }
7075 else
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079 
7080 
7081   test -n "$DIFF" && break
7082 done
7083 
7084     else
7085       # If it succeeded, then it was overridden by the user. We will use it
7086       # for the tool.
7087 
7088       # First remove it from the list of overridden variables, so we can test
7089       # for unknown variables in the end.
7090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7091 
7092       # Check if we try to supply an empty value
7093       if test "x$DIFF" = x; then
7094         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
7095 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
7096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7097 $as_echo_n "checking for DIFF... " >&6; }
7098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7099 $as_echo "disabled" >&6; }
7100       else
7101         # Check if the provided tool contains a complete path.
7102         tool_specified="$DIFF"
7103         tool_basename="${tool_specified##*/}"
7104         if test "x$tool_basename" = "x$tool_specified"; then
7105           # A command without a complete path is provided, search $PATH.
7106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
7107 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
7108           # Extract the first word of "$tool_basename", so it can be a program name with args.
7109 set dummy $tool_basename; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_path_DIFF+:} false; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   case $DIFF in
7116   [\\/]* | ?:[\\/]*)
7117   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
7118   ;;
7119   *)
7120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123   IFS=$as_save_IFS
7124   test -z "$as_dir" && as_dir=.
7125     for ac_exec_ext in '' $ac_executable_extensions; do
7126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
7128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129     break 2
7130   fi
7131 done
7132   done
7133 IFS=$as_save_IFS
7134 
7135   ;;
7136 esac
7137 fi
7138 DIFF=$ac_cv_path_DIFF
7139 if test -n "$DIFF"; then
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
7141 $as_echo "$DIFF" >&6; }
7142 else
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7145 fi
7146 
7147 
7148           if test "x$DIFF" = x; then
7149             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7150           fi
7151         else
7152           # Otherwise we believe it is a complete path. Use it as it is.
7153           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
7154 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
7155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
7156 $as_echo_n "checking for DIFF... " >&6; }
7157           if test ! -x "$tool_specified"; then
7158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7159 $as_echo "not found" >&6; }
7160             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
7161           fi
7162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7163 $as_echo "$tool_specified" >&6; }
7164         fi
7165       fi
7166     fi
7167 
7168   fi
7169 
7170 
7171 
7172   if test "x$DIFF" = x; then
7173     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
7174   fi
7175 
7176 
7177 
7178 
7179 
7180   # Publish this variable in the help.
7181 
7182 
7183   if [ -z "${DIRNAME+x}" ]; then
7184     # The variable is not set by user, try to locate tool using the code snippet
7185     for ac_prog in dirname
7186 do
7187   # Extract the first word of "$ac_prog", so it can be a program name with args.
7188 set dummy $ac_prog; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_path_DIRNAME+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   case $DIRNAME in
7195   [\\/]* | ?:[\\/]*)
7196   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7197   ;;
7198   *)
7199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213 
7214   ;;
7215 esac
7216 fi
7217 DIRNAME=$ac_cv_path_DIRNAME
7218 if test -n "$DIRNAME"; then
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7220 $as_echo "$DIRNAME" >&6; }
7221 else
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225 
7226 
7227   test -n "$DIRNAME" && break
7228 done
7229 
7230   else
7231     # The variable is set, but is it from the command line or the environment?
7232 
7233     # Try to remove the string !DIRNAME! from our list.
7234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
7235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7236       # If it failed, the variable was not from the command line. Ignore it,
7237       # but warn the user (except for BASH, which is always set by the calling BASH).
7238       if test "xDIRNAME" != xBASH; then
7239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
7240 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
7241       fi
7242       # Try to locate tool using the code snippet
7243       for ac_prog in dirname
7244 do
7245   # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_path_DIRNAME+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   case $DIRNAME in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271 
7272   ;;
7273 esac
7274 fi
7275 DIRNAME=$ac_cv_path_DIRNAME
7276 if test -n "$DIRNAME"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7278 $as_echo "$DIRNAME" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283 
7284 
7285   test -n "$DIRNAME" && break
7286 done
7287 
7288     else
7289       # If it succeeded, then it was overridden by the user. We will use it
7290       # for the tool.
7291 
7292       # First remove it from the list of overridden variables, so we can test
7293       # for unknown variables in the end.
7294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7295 
7296       # Check if we try to supply an empty value
7297       if test "x$DIRNAME" = x; then
7298         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
7299 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
7300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7301 $as_echo_n "checking for DIRNAME... " >&6; }
7302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7303 $as_echo "disabled" >&6; }
7304       else
7305         # Check if the provided tool contains a complete path.
7306         tool_specified="$DIRNAME"
7307         tool_basename="${tool_specified##*/}"
7308         if test "x$tool_basename" = "x$tool_specified"; then
7309           # A command without a complete path is provided, search $PATH.
7310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
7311 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
7312           # Extract the first word of "$tool_basename", so it can be a program name with args.
7313 set dummy $tool_basename; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_path_DIRNAME+:} false; then :
7317   $as_echo_n "(cached) " >&6
7318 else
7319   case $DIRNAME in
7320   [\\/]* | ?:[\\/]*)
7321   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
7322   ;;
7323   *)
7324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 for as_dir in $PATH
7326 do
7327   IFS=$as_save_IFS
7328   test -z "$as_dir" && as_dir=.
7329     for ac_exec_ext in '' $ac_executable_extensions; do
7330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
7332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333     break 2
7334   fi
7335 done
7336   done
7337 IFS=$as_save_IFS
7338 
7339   ;;
7340 esac
7341 fi
7342 DIRNAME=$ac_cv_path_DIRNAME
7343 if test -n "$DIRNAME"; then
7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
7345 $as_echo "$DIRNAME" >&6; }
7346 else
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350 
7351 
7352           if test "x$DIRNAME" = x; then
7353             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7354           fi
7355         else
7356           # Otherwise we believe it is a complete path. Use it as it is.
7357           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
7358 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
7359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
7360 $as_echo_n "checking for DIRNAME... " >&6; }
7361           if test ! -x "$tool_specified"; then
7362             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7363 $as_echo "not found" >&6; }
7364             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
7365           fi
7366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7367 $as_echo "$tool_specified" >&6; }
7368         fi
7369       fi
7370     fi
7371 
7372   fi
7373 
7374 
7375 
7376   if test "x$DIRNAME" = x; then
7377     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
7378   fi
7379 
7380 
7381 
7382 
7383 
7384   # Publish this variable in the help.
7385 
7386 
7387   if [ -z "${ECHO+x}" ]; then
7388     # The variable is not set by user, try to locate tool using the code snippet
7389     for ac_prog in echo
7390 do
7391   # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy $ac_prog; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_path_ECHO+:} false; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398   case $ECHO in
7399   [\\/]* | ?:[\\/]*)
7400   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7401   ;;
7402   *)
7403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417 
7418   ;;
7419 esac
7420 fi
7421 ECHO=$ac_cv_path_ECHO
7422 if test -n "$ECHO"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7424 $as_echo "$ECHO" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429 
7430 
7431   test -n "$ECHO" && break
7432 done
7433 
7434   else
7435     # The variable is set, but is it from the command line or the environment?
7436 
7437     # Try to remove the string !ECHO! from our list.
7438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
7439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7440       # If it failed, the variable was not from the command line. Ignore it,
7441       # but warn the user (except for BASH, which is always set by the calling BASH).
7442       if test "xECHO" != xBASH; then
7443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
7444 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
7445       fi
7446       # Try to locate tool using the code snippet
7447       for ac_prog in echo
7448 do
7449   # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_path_ECHO+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   case $ECHO in
7457   [\\/]* | ?:[\\/]*)
7458   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7459   ;;
7460   *)
7461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 for as_dir in $PATH
7463 do
7464   IFS=$as_save_IFS
7465   test -z "$as_dir" && as_dir=.
7466     for ac_exec_ext in '' $ac_executable_extensions; do
7467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470     break 2
7471   fi
7472 done
7473   done
7474 IFS=$as_save_IFS
7475 
7476   ;;
7477 esac
7478 fi
7479 ECHO=$ac_cv_path_ECHO
7480 if test -n "$ECHO"; then
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7482 $as_echo "$ECHO" >&6; }
7483 else
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487 
7488 
7489   test -n "$ECHO" && break
7490 done
7491 
7492     else
7493       # If it succeeded, then it was overridden by the user. We will use it
7494       # for the tool.
7495 
7496       # First remove it from the list of overridden variables, so we can test
7497       # for unknown variables in the end.
7498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7499 
7500       # Check if we try to supply an empty value
7501       if test "x$ECHO" = x; then
7502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7503 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7505 $as_echo_n "checking for ECHO... " >&6; }
7506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7507 $as_echo "disabled" >&6; }
7508       else
7509         # Check if the provided tool contains a complete path.
7510         tool_specified="$ECHO"
7511         tool_basename="${tool_specified##*/}"
7512         if test "x$tool_basename" = "x$tool_specified"; then
7513           # A command without a complete path is provided, search $PATH.
7514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7515 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7516           # Extract the first word of "$tool_basename", so it can be a program name with args.
7517 set dummy $tool_basename; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_path_ECHO+:} false; then :
7521   $as_echo_n "(cached) " >&6
7522 else
7523   case $ECHO in
7524   [\\/]* | ?:[\\/]*)
7525   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7526   ;;
7527   *)
7528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542 
7543   ;;
7544 esac
7545 fi
7546 ECHO=$ac_cv_path_ECHO
7547 if test -n "$ECHO"; then
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7549 $as_echo "$ECHO" >&6; }
7550 else
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7553 fi
7554 
7555 
7556           if test "x$ECHO" = x; then
7557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7558           fi
7559         else
7560           # Otherwise we believe it is a complete path. Use it as it is.
7561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7562 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7564 $as_echo_n "checking for ECHO... " >&6; }
7565           if test ! -x "$tool_specified"; then
7566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7567 $as_echo "not found" >&6; }
7568             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7569           fi
7570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7571 $as_echo "$tool_specified" >&6; }
7572         fi
7573       fi
7574     fi
7575 
7576   fi
7577 
7578 
7579 
7580   if test "x$ECHO" = x; then
7581     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7582   fi
7583 
7584 
7585 
7586 
7587 
7588   # Publish this variable in the help.
7589 
7590 
7591   if [ -z "${EXPR+x}" ]; then
7592     # The variable is not set by user, try to locate tool using the code snippet
7593     for ac_prog in expr
7594 do
7595   # Extract the first word of "$ac_prog", so it can be a program name with args.
7596 set dummy $ac_prog; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_path_EXPR+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   case $EXPR in
7603   [\\/]* | ?:[\\/]*)
7604   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7605   ;;
7606   *)
7607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621 
7622   ;;
7623 esac
7624 fi
7625 EXPR=$ac_cv_path_EXPR
7626 if test -n "$EXPR"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7628 $as_echo "$EXPR" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633 
7634 
7635   test -n "$EXPR" && break
7636 done
7637 
7638   else
7639     # The variable is set, but is it from the command line or the environment?
7640 
7641     # Try to remove the string !EXPR! from our list.
7642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7644       # If it failed, the variable was not from the command line. Ignore it,
7645       # but warn the user (except for BASH, which is always set by the calling BASH).
7646       if test "xEXPR" != xBASH; then
7647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7648 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7649       fi
7650       # Try to locate tool using the code snippet
7651       for ac_prog in expr
7652 do
7653   # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_path_EXPR+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $EXPR in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679 
7680   ;;
7681 esac
7682 fi
7683 EXPR=$ac_cv_path_EXPR
7684 if test -n "$EXPR"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7686 $as_echo "$EXPR" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 
7692 
7693   test -n "$EXPR" && break
7694 done
7695 
7696     else
7697       # If it succeeded, then it was overridden by the user. We will use it
7698       # for the tool.
7699 
7700       # First remove it from the list of overridden variables, so we can test
7701       # for unknown variables in the end.
7702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7703 
7704       # Check if we try to supply an empty value
7705       if test "x$EXPR" = x; then
7706         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7707 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7709 $as_echo_n "checking for EXPR... " >&6; }
7710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7711 $as_echo "disabled" >&6; }
7712       else
7713         # Check if the provided tool contains a complete path.
7714         tool_specified="$EXPR"
7715         tool_basename="${tool_specified##*/}"
7716         if test "x$tool_basename" = "x$tool_specified"; then
7717           # A command without a complete path is provided, search $PATH.
7718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7719 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7720           # Extract the first word of "$tool_basename", so it can be a program name with args.
7721 set dummy $tool_basename; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_path_EXPR+:} false; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   case $EXPR in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746 
7747   ;;
7748 esac
7749 fi
7750 EXPR=$ac_cv_path_EXPR
7751 if test -n "$EXPR"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7753 $as_echo "$EXPR" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758 
7759 
7760           if test "x$EXPR" = x; then
7761             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7762           fi
7763         else
7764           # Otherwise we believe it is a complete path. Use it as it is.
7765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7766 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7767           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7768 $as_echo_n "checking for EXPR... " >&6; }
7769           if test ! -x "$tool_specified"; then
7770             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7771 $as_echo "not found" >&6; }
7772             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7773           fi
7774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7775 $as_echo "$tool_specified" >&6; }
7776         fi
7777       fi
7778     fi
7779 
7780   fi
7781 
7782 
7783 
7784   if test "x$EXPR" = x; then
7785     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7786   fi
7787 
7788 
7789 
7790 
7791 
7792   # Publish this variable in the help.
7793 
7794 
7795   if [ -z "${FILE+x}" ]; then
7796     # The variable is not set by user, try to locate tool using the code snippet
7797     for ac_prog in file
7798 do
7799   # Extract the first word of "$ac_prog", so it can be a program name with args.
7800 set dummy $ac_prog; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_path_FILE+:} false; then :
7804   $as_echo_n "(cached) " >&6
7805 else
7806   case $FILE in
7807   [\\/]* | ?:[\\/]*)
7808   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7809   ;;
7810   *)
7811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816     for ac_exec_ext in '' $ac_executable_extensions; do
7817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823   done
7824 IFS=$as_save_IFS
7825 
7826   ;;
7827 esac
7828 fi
7829 FILE=$ac_cv_path_FILE
7830 if test -n "$FILE"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7832 $as_echo "$FILE" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837 
7838 
7839   test -n "$FILE" && break
7840 done
7841 
7842   else
7843     # The variable is set, but is it from the command line or the environment?
7844 
7845     # Try to remove the string !FILE! from our list.
7846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7848       # If it failed, the variable was not from the command line. Ignore it,
7849       # but warn the user (except for BASH, which is always set by the calling BASH).
7850       if test "xFILE" != xBASH; then
7851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7852 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7853       fi
7854       # Try to locate tool using the code snippet
7855       for ac_prog in file
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_path_FILE+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   case $FILE in
7865   [\\/]* | ?:[\\/]*)
7866   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7867   ;;
7868   *)
7869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872   IFS=$as_save_IFS
7873   test -z "$as_dir" && as_dir=.
7874     for ac_exec_ext in '' $ac_executable_extensions; do
7875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878     break 2
7879   fi
7880 done
7881   done
7882 IFS=$as_save_IFS
7883 
7884   ;;
7885 esac
7886 fi
7887 FILE=$ac_cv_path_FILE
7888 if test -n "$FILE"; then
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7890 $as_echo "$FILE" >&6; }
7891 else
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7894 fi
7895 
7896 
7897   test -n "$FILE" && break
7898 done
7899 
7900     else
7901       # If it succeeded, then it was overridden by the user. We will use it
7902       # for the tool.
7903 
7904       # First remove it from the list of overridden variables, so we can test
7905       # for unknown variables in the end.
7906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7907 
7908       # Check if we try to supply an empty value
7909       if test "x$FILE" = x; then
7910         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7911 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7913 $as_echo_n "checking for FILE... " >&6; }
7914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7915 $as_echo "disabled" >&6; }
7916       else
7917         # Check if the provided tool contains a complete path.
7918         tool_specified="$FILE"
7919         tool_basename="${tool_specified##*/}"
7920         if test "x$tool_basename" = "x$tool_specified"; then
7921           # A command without a complete path is provided, search $PATH.
7922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7923 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7924           # Extract the first word of "$tool_basename", so it can be a program name with args.
7925 set dummy $tool_basename; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_path_FILE+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   case $FILE in
7932   [\\/]* | ?:[\\/]*)
7933   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7934   ;;
7935   *)
7936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939   IFS=$as_save_IFS
7940   test -z "$as_dir" && as_dir=.
7941     for ac_exec_ext in '' $ac_executable_extensions; do
7942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945     break 2
7946   fi
7947 done
7948   done
7949 IFS=$as_save_IFS
7950 
7951   ;;
7952 esac
7953 fi
7954 FILE=$ac_cv_path_FILE
7955 if test -n "$FILE"; then
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7957 $as_echo "$FILE" >&6; }
7958 else
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962 
7963 
7964           if test "x$FILE" = x; then
7965             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7966           fi
7967         else
7968           # Otherwise we believe it is a complete path. Use it as it is.
7969           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7970 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7971           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7972 $as_echo_n "checking for FILE... " >&6; }
7973           if test ! -x "$tool_specified"; then
7974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7975 $as_echo "not found" >&6; }
7976             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7977           fi
7978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7979 $as_echo "$tool_specified" >&6; }
7980         fi
7981       fi
7982     fi
7983 
7984   fi
7985 
7986 
7987 
7988   if test "x$FILE" = x; then
7989     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7990   fi
7991 
7992 
7993 
7994 
7995 
7996   # Publish this variable in the help.
7997 
7998 
7999   if [ -z "${FIND+x}" ]; then
8000     # The variable is not set by user, try to locate tool using the code snippet
8001     for ac_prog in find
8002 do
8003   # Extract the first word of "$ac_prog", so it can be a program name with args.
8004 set dummy $ac_prog; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_path_FIND+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   case $FIND in
8011   [\\/]* | ?:[\\/]*)
8012   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8013   ;;
8014   *)
8015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018   IFS=$as_save_IFS
8019   test -z "$as_dir" && as_dir=.
8020     for ac_exec_ext in '' $ac_executable_extensions; do
8021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8022     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024     break 2
8025   fi
8026 done
8027   done
8028 IFS=$as_save_IFS
8029 
8030   ;;
8031 esac
8032 fi
8033 FIND=$ac_cv_path_FIND
8034 if test -n "$FIND"; then
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8036 $as_echo "$FIND" >&6; }
8037 else
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041 
8042 
8043   test -n "$FIND" && break
8044 done
8045 
8046   else
8047     # The variable is set, but is it from the command line or the environment?
8048 
8049     # Try to remove the string !FIND! from our list.
8050     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
8051     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8052       # If it failed, the variable was not from the command line. Ignore it,
8053       # but warn the user (except for BASH, which is always set by the calling BASH).
8054       if test "xFIND" != xBASH; then
8055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
8056 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
8057       fi
8058       # Try to locate tool using the code snippet
8059       for ac_prog in find
8060 do
8061   # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if ${ac_cv_path_FIND+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   case $FIND in
8069   [\\/]* | ?:[\\/]*)
8070   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8071   ;;
8072   *)
8073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078     for ac_exec_ext in '' $ac_executable_extensions; do
8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085   done
8086 IFS=$as_save_IFS
8087 
8088   ;;
8089 esac
8090 fi
8091 FIND=$ac_cv_path_FIND
8092 if test -n "$FIND"; then
8093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8094 $as_echo "$FIND" >&6; }
8095 else
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098 fi
8099 
8100 
8101   test -n "$FIND" && break
8102 done
8103 
8104     else
8105       # If it succeeded, then it was overridden by the user. We will use it
8106       # for the tool.
8107 
8108       # First remove it from the list of overridden variables, so we can test
8109       # for unknown variables in the end.
8110       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8111 
8112       # Check if we try to supply an empty value
8113       if test "x$FIND" = x; then
8114         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
8115 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
8116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8117 $as_echo_n "checking for FIND... " >&6; }
8118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8119 $as_echo "disabled" >&6; }
8120       else
8121         # Check if the provided tool contains a complete path.
8122         tool_specified="$FIND"
8123         tool_basename="${tool_specified##*/}"
8124         if test "x$tool_basename" = "x$tool_specified"; then
8125           # A command without a complete path is provided, search $PATH.
8126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
8127 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
8128           # Extract the first word of "$tool_basename", so it can be a program name with args.
8129 set dummy $tool_basename; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if ${ac_cv_path_FIND+:} false; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   case $FIND in
8136   [\\/]* | ?:[\\/]*)
8137   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
8138   ;;
8139   *)
8140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145     for ac_exec_ext in '' $ac_executable_extensions; do
8146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
8148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152   done
8153 IFS=$as_save_IFS
8154 
8155   ;;
8156 esac
8157 fi
8158 FIND=$ac_cv_path_FIND
8159 if test -n "$FIND"; then
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
8161 $as_echo "$FIND" >&6; }
8162 else
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166 
8167 
8168           if test "x$FIND" = x; then
8169             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8170           fi
8171         else
8172           # Otherwise we believe it is a complete path. Use it as it is.
8173           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
8174 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
8175           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
8176 $as_echo_n "checking for FIND... " >&6; }
8177           if test ! -x "$tool_specified"; then
8178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8179 $as_echo "not found" >&6; }
8180             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
8181           fi
8182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8183 $as_echo "$tool_specified" >&6; }
8184         fi
8185       fi
8186     fi
8187 
8188   fi
8189 
8190 
8191 
8192   if test "x$FIND" = x; then
8193     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
8194   fi
8195 
8196 
8197 
8198 
8199 
8200   # Publish this variable in the help.
8201 
8202 
8203   if [ -z "${HEAD+x}" ]; then
8204     # The variable is not set by user, try to locate tool using the code snippet
8205     for ac_prog in head
8206 do
8207   # Extract the first word of "$ac_prog", so it can be a program name with args.
8208 set dummy $ac_prog; ac_word=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if ${ac_cv_path_HEAD+:} false; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   case $HEAD in
8215   [\\/]* | ?:[\\/]*)
8216   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8217   ;;
8218   *)
8219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222   IFS=$as_save_IFS
8223   test -z "$as_dir" && as_dir=.
8224     for ac_exec_ext in '' $ac_executable_extensions; do
8225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8226     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228     break 2
8229   fi
8230 done
8231   done
8232 IFS=$as_save_IFS
8233 
8234   ;;
8235 esac
8236 fi
8237 HEAD=$ac_cv_path_HEAD
8238 if test -n "$HEAD"; then
8239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8240 $as_echo "$HEAD" >&6; }
8241 else
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8244 fi
8245 
8246 
8247   test -n "$HEAD" && break
8248 done
8249 
8250   else
8251     # The variable is set, but is it from the command line or the environment?
8252 
8253     # Try to remove the string !HEAD! from our list.
8254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
8255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8256       # If it failed, the variable was not from the command line. Ignore it,
8257       # but warn the user (except for BASH, which is always set by the calling BASH).
8258       if test "xHEAD" != xBASH; then
8259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
8260 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
8261       fi
8262       # Try to locate tool using the code snippet
8263       for ac_prog in head
8264 do
8265   # Extract the first word of "$ac_prog", so it can be a program name with args.
8266 set dummy $ac_prog; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_path_HEAD+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   case $HEAD in
8273   [\\/]* | ?:[\\/]*)
8274   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8275   ;;
8276   *)
8277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291 
8292   ;;
8293 esac
8294 fi
8295 HEAD=$ac_cv_path_HEAD
8296 if test -n "$HEAD"; then
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8298 $as_echo "$HEAD" >&6; }
8299 else
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8302 fi
8303 
8304 
8305   test -n "$HEAD" && break
8306 done
8307 
8308     else
8309       # If it succeeded, then it was overridden by the user. We will use it
8310       # for the tool.
8311 
8312       # First remove it from the list of overridden variables, so we can test
8313       # for unknown variables in the end.
8314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8315 
8316       # Check if we try to supply an empty value
8317       if test "x$HEAD" = x; then
8318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
8319 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
8320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8321 $as_echo_n "checking for HEAD... " >&6; }
8322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8323 $as_echo "disabled" >&6; }
8324       else
8325         # Check if the provided tool contains a complete path.
8326         tool_specified="$HEAD"
8327         tool_basename="${tool_specified##*/}"
8328         if test "x$tool_basename" = "x$tool_specified"; then
8329           # A command without a complete path is provided, search $PATH.
8330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
8331 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
8332           # Extract the first word of "$tool_basename", so it can be a program name with args.
8333 set dummy $tool_basename; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if ${ac_cv_path_HEAD+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   case $HEAD in
8340   [\\/]* | ?:[\\/]*)
8341   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
8342   ;;
8343   *)
8344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349     for ac_exec_ext in '' $ac_executable_extensions; do
8350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8351     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
8352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356   done
8357 IFS=$as_save_IFS
8358 
8359   ;;
8360 esac
8361 fi
8362 HEAD=$ac_cv_path_HEAD
8363 if test -n "$HEAD"; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
8365 $as_echo "$HEAD" >&6; }
8366 else
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370 
8371 
8372           if test "x$HEAD" = x; then
8373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8374           fi
8375         else
8376           # Otherwise we believe it is a complete path. Use it as it is.
8377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
8378 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
8379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
8380 $as_echo_n "checking for HEAD... " >&6; }
8381           if test ! -x "$tool_specified"; then
8382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8383 $as_echo "not found" >&6; }
8384             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
8385           fi
8386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8387 $as_echo "$tool_specified" >&6; }
8388         fi
8389       fi
8390     fi
8391 
8392   fi
8393 
8394 
8395 
8396   if test "x$HEAD" = x; then
8397     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
8398   fi
8399 
8400 
8401 
8402 
8403 
8404   # Publish this variable in the help.
8405 
8406 
8407   if [ -z "${LN+x}" ]; then
8408     # The variable is not set by user, try to locate tool using the code snippet
8409     for ac_prog in ln
8410 do
8411   # Extract the first word of "$ac_prog", so it can be a program name with args.
8412 set dummy $ac_prog; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if ${ac_cv_path_LN+:} false; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   case $LN in
8419   [\\/]* | ?:[\\/]*)
8420   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8421   ;;
8422   *)
8423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426   IFS=$as_save_IFS
8427   test -z "$as_dir" && as_dir=.
8428     for ac_exec_ext in '' $ac_executable_extensions; do
8429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8430     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432     break 2
8433   fi
8434 done
8435   done
8436 IFS=$as_save_IFS
8437 
8438   ;;
8439 esac
8440 fi
8441 LN=$ac_cv_path_LN
8442 if test -n "$LN"; then
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8444 $as_echo "$LN" >&6; }
8445 else
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449 
8450 
8451   test -n "$LN" && break
8452 done
8453 
8454   else
8455     # The variable is set, but is it from the command line or the environment?
8456 
8457     # Try to remove the string !LN! from our list.
8458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
8459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8460       # If it failed, the variable was not from the command line. Ignore it,
8461       # but warn the user (except for BASH, which is always set by the calling BASH).
8462       if test "xLN" != xBASH; then
8463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
8464 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
8465       fi
8466       # Try to locate tool using the code snippet
8467       for ac_prog in ln
8468 do
8469   # Extract the first word of "$ac_prog", so it can be a program name with args.
8470 set dummy $ac_prog; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_path_LN+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   case $LN in
8477   [\\/]* | ?:[\\/]*)
8478   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8479   ;;
8480   *)
8481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484   IFS=$as_save_IFS
8485   test -z "$as_dir" && as_dir=.
8486     for ac_exec_ext in '' $ac_executable_extensions; do
8487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490     break 2
8491   fi
8492 done
8493   done
8494 IFS=$as_save_IFS
8495 
8496   ;;
8497 esac
8498 fi
8499 LN=$ac_cv_path_LN
8500 if test -n "$LN"; then
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8502 $as_echo "$LN" >&6; }
8503 else
8504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8506 fi
8507 
8508 
8509   test -n "$LN" && break
8510 done
8511 
8512     else
8513       # If it succeeded, then it was overridden by the user. We will use it
8514       # for the tool.
8515 
8516       # First remove it from the list of overridden variables, so we can test
8517       # for unknown variables in the end.
8518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8519 
8520       # Check if we try to supply an empty value
8521       if test "x$LN" = x; then
8522         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8523 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8525 $as_echo_n "checking for LN... " >&6; }
8526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8527 $as_echo "disabled" >&6; }
8528       else
8529         # Check if the provided tool contains a complete path.
8530         tool_specified="$LN"
8531         tool_basename="${tool_specified##*/}"
8532         if test "x$tool_basename" = "x$tool_specified"; then
8533           # A command without a complete path is provided, search $PATH.
8534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8535 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8536           # Extract the first word of "$tool_basename", so it can be a program name with args.
8537 set dummy $tool_basename; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_path_LN+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   case $LN in
8544   [\\/]* | ?:[\\/]*)
8545   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8546   ;;
8547   *)
8548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553     for ac_exec_ext in '' $ac_executable_extensions; do
8554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560   done
8561 IFS=$as_save_IFS
8562 
8563   ;;
8564 esac
8565 fi
8566 LN=$ac_cv_path_LN
8567 if test -n "$LN"; then
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8569 $as_echo "$LN" >&6; }
8570 else
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574 
8575 
8576           if test "x$LN" = x; then
8577             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8578           fi
8579         else
8580           # Otherwise we believe it is a complete path. Use it as it is.
8581           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8582 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8584 $as_echo_n "checking for LN... " >&6; }
8585           if test ! -x "$tool_specified"; then
8586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8587 $as_echo "not found" >&6; }
8588             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8589           fi
8590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8591 $as_echo "$tool_specified" >&6; }
8592         fi
8593       fi
8594     fi
8595 
8596   fi
8597 
8598 
8599 
8600   if test "x$LN" = x; then
8601     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8602   fi
8603 
8604 
8605 
8606 
8607 
8608   # Publish this variable in the help.
8609 
8610 
8611   if [ -z "${LS+x}" ]; then
8612     # The variable is not set by user, try to locate tool using the code snippet
8613     for ac_prog in ls
8614 do
8615   # Extract the first word of "$ac_prog", so it can be a program name with args.
8616 set dummy $ac_prog; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if ${ac_cv_path_LS+:} false; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   case $LS in
8623   [\\/]* | ?:[\\/]*)
8624   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8625   ;;
8626   *)
8627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630   IFS=$as_save_IFS
8631   test -z "$as_dir" && as_dir=.
8632     for ac_exec_ext in '' $ac_executable_extensions; do
8633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8634     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636     break 2
8637   fi
8638 done
8639   done
8640 IFS=$as_save_IFS
8641 
8642   ;;
8643 esac
8644 fi
8645 LS=$ac_cv_path_LS
8646 if test -n "$LS"; then
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8648 $as_echo "$LS" >&6; }
8649 else
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 fi
8653 
8654 
8655   test -n "$LS" && break
8656 done
8657 
8658   else
8659     # The variable is set, but is it from the command line or the environment?
8660 
8661     # Try to remove the string !LS! from our list.
8662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8664       # If it failed, the variable was not from the command line. Ignore it,
8665       # but warn the user (except for BASH, which is always set by the calling BASH).
8666       if test "xLS" != xBASH; then
8667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8668 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8669       fi
8670       # Try to locate tool using the code snippet
8671       for ac_prog in ls
8672 do
8673   # Extract the first word of "$ac_prog", so it can be a program name with args.
8674 set dummy $ac_prog; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_path_LS+:} false; then :
8678   $as_echo_n "(cached) " >&6
8679 else
8680   case $LS in
8681   [\\/]* | ?:[\\/]*)
8682   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8683   ;;
8684   *)
8685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690     for ac_exec_ext in '' $ac_executable_extensions; do
8691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8692     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697   done
8698 IFS=$as_save_IFS
8699 
8700   ;;
8701 esac
8702 fi
8703 LS=$ac_cv_path_LS
8704 if test -n "$LS"; then
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8706 $as_echo "$LS" >&6; }
8707 else
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711 
8712 
8713   test -n "$LS" && break
8714 done
8715 
8716     else
8717       # If it succeeded, then it was overridden by the user. We will use it
8718       # for the tool.
8719 
8720       # First remove it from the list of overridden variables, so we can test
8721       # for unknown variables in the end.
8722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8723 
8724       # Check if we try to supply an empty value
8725       if test "x$LS" = x; then
8726         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8727 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8729 $as_echo_n "checking for LS... " >&6; }
8730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8731 $as_echo "disabled" >&6; }
8732       else
8733         # Check if the provided tool contains a complete path.
8734         tool_specified="$LS"
8735         tool_basename="${tool_specified##*/}"
8736         if test "x$tool_basename" = "x$tool_specified"; then
8737           # A command without a complete path is provided, search $PATH.
8738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8739 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8740           # Extract the first word of "$tool_basename", so it can be a program name with args.
8741 set dummy $tool_basename; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_path_LS+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   case $LS in
8748   [\\/]* | ?:[\\/]*)
8749   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8750   ;;
8751   *)
8752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755   IFS=$as_save_IFS
8756   test -z "$as_dir" && as_dir=.
8757     for ac_exec_ext in '' $ac_executable_extensions; do
8758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761     break 2
8762   fi
8763 done
8764   done
8765 IFS=$as_save_IFS
8766 
8767   ;;
8768 esac
8769 fi
8770 LS=$ac_cv_path_LS
8771 if test -n "$LS"; then
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8773 $as_echo "$LS" >&6; }
8774 else
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 fi
8778 
8779 
8780           if test "x$LS" = x; then
8781             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8782           fi
8783         else
8784           # Otherwise we believe it is a complete path. Use it as it is.
8785           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8786 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8788 $as_echo_n "checking for LS... " >&6; }
8789           if test ! -x "$tool_specified"; then
8790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8791 $as_echo "not found" >&6; }
8792             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8793           fi
8794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8795 $as_echo "$tool_specified" >&6; }
8796         fi
8797       fi
8798     fi
8799 
8800   fi
8801 
8802 
8803 
8804   if test "x$LS" = x; then
8805     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8806   fi
8807 
8808 
8809 
8810 
8811 
8812   # Publish this variable in the help.
8813 
8814 
8815   if [ -z "${MKDIR+x}" ]; then
8816     # The variable is not set by user, try to locate tool using the code snippet
8817     for ac_prog in mkdir
8818 do
8819   # Extract the first word of "$ac_prog", so it can be a program name with args.
8820 set dummy $ac_prog; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_path_MKDIR+:} false; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   case $MKDIR in
8827   [\\/]* | ?:[\\/]*)
8828   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8829   ;;
8830   *)
8831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834   IFS=$as_save_IFS
8835   test -z "$as_dir" && as_dir=.
8836     for ac_exec_ext in '' $ac_executable_extensions; do
8837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840     break 2
8841   fi
8842 done
8843   done
8844 IFS=$as_save_IFS
8845 
8846   ;;
8847 esac
8848 fi
8849 MKDIR=$ac_cv_path_MKDIR
8850 if test -n "$MKDIR"; then
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8852 $as_echo "$MKDIR" >&6; }
8853 else
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857 
8858 
8859   test -n "$MKDIR" && break
8860 done
8861 
8862   else
8863     # The variable is set, but is it from the command line or the environment?
8864 
8865     # Try to remove the string !MKDIR! from our list.
8866     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8867     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8868       # If it failed, the variable was not from the command line. Ignore it,
8869       # but warn the user (except for BASH, which is always set by the calling BASH).
8870       if test "xMKDIR" != xBASH; then
8871         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8872 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8873       fi
8874       # Try to locate tool using the code snippet
8875       for ac_prog in mkdir
8876 do
8877   # Extract the first word of "$ac_prog", so it can be a program name with args.
8878 set dummy $ac_prog; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if ${ac_cv_path_MKDIR+:} false; then :
8882   $as_echo_n "(cached) " >&6
8883 else
8884   case $MKDIR in
8885   [\\/]* | ?:[\\/]*)
8886   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8887   ;;
8888   *)
8889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8891 do
8892   IFS=$as_save_IFS
8893   test -z "$as_dir" && as_dir=.
8894     for ac_exec_ext in '' $ac_executable_extensions; do
8895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898     break 2
8899   fi
8900 done
8901   done
8902 IFS=$as_save_IFS
8903 
8904   ;;
8905 esac
8906 fi
8907 MKDIR=$ac_cv_path_MKDIR
8908 if test -n "$MKDIR"; then
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8910 $as_echo "$MKDIR" >&6; }
8911 else
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8914 fi
8915 
8916 
8917   test -n "$MKDIR" && break
8918 done
8919 
8920     else
8921       # If it succeeded, then it was overridden by the user. We will use it
8922       # for the tool.
8923 
8924       # First remove it from the list of overridden variables, so we can test
8925       # for unknown variables in the end.
8926       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8927 
8928       # Check if we try to supply an empty value
8929       if test "x$MKDIR" = x; then
8930         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8931 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8933 $as_echo_n "checking for MKDIR... " >&6; }
8934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8935 $as_echo "disabled" >&6; }
8936       else
8937         # Check if the provided tool contains a complete path.
8938         tool_specified="$MKDIR"
8939         tool_basename="${tool_specified##*/}"
8940         if test "x$tool_basename" = "x$tool_specified"; then
8941           # A command without a complete path is provided, search $PATH.
8942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8943 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8944           # Extract the first word of "$tool_basename", so it can be a program name with args.
8945 set dummy $tool_basename; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if ${ac_cv_path_MKDIR+:} false; then :
8949   $as_echo_n "(cached) " >&6
8950 else
8951   case $MKDIR in
8952   [\\/]* | ?:[\\/]*)
8953   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8954   ;;
8955   *)
8956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959   IFS=$as_save_IFS
8960   test -z "$as_dir" && as_dir=.
8961     for ac_exec_ext in '' $ac_executable_extensions; do
8962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8963     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965     break 2
8966   fi
8967 done
8968   done
8969 IFS=$as_save_IFS
8970 
8971   ;;
8972 esac
8973 fi
8974 MKDIR=$ac_cv_path_MKDIR
8975 if test -n "$MKDIR"; then
8976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8977 $as_echo "$MKDIR" >&6; }
8978 else
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8981 fi
8982 
8983 
8984           if test "x$MKDIR" = x; then
8985             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8986           fi
8987         else
8988           # Otherwise we believe it is a complete path. Use it as it is.
8989           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8990 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8992 $as_echo_n "checking for MKDIR... " >&6; }
8993           if test ! -x "$tool_specified"; then
8994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8995 $as_echo "not found" >&6; }
8996             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8997           fi
8998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8999 $as_echo "$tool_specified" >&6; }
9000         fi
9001       fi
9002     fi
9003 
9004   fi
9005 
9006 
9007 
9008   if test "x$MKDIR" = x; then
9009     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
9010   fi
9011 
9012 
9013 
9014 
9015 
9016   # Publish this variable in the help.
9017 
9018 
9019   if [ -z "${MKTEMP+x}" ]; then
9020     # The variable is not set by user, try to locate tool using the code snippet
9021     for ac_prog in mktemp
9022 do
9023   # Extract the first word of "$ac_prog", so it can be a program name with args.
9024 set dummy $ac_prog; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_path_MKTEMP+:} false; then :
9028   $as_echo_n "(cached) " >&6
9029 else
9030   case $MKTEMP in
9031   [\\/]* | ?:[\\/]*)
9032   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9033   ;;
9034   *)
9035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038   IFS=$as_save_IFS
9039   test -z "$as_dir" && as_dir=.
9040     for ac_exec_ext in '' $ac_executable_extensions; do
9041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044     break 2
9045   fi
9046 done
9047   done
9048 IFS=$as_save_IFS
9049 
9050   ;;
9051 esac
9052 fi
9053 MKTEMP=$ac_cv_path_MKTEMP
9054 if test -n "$MKTEMP"; then
9055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9056 $as_echo "$MKTEMP" >&6; }
9057 else
9058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9060 fi
9061 
9062 
9063   test -n "$MKTEMP" && break
9064 done
9065 
9066   else
9067     # The variable is set, but is it from the command line or the environment?
9068 
9069     # Try to remove the string !MKTEMP! from our list.
9070     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
9071     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9072       # If it failed, the variable was not from the command line. Ignore it,
9073       # but warn the user (except for BASH, which is always set by the calling BASH).
9074       if test "xMKTEMP" != xBASH; then
9075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
9076 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
9077       fi
9078       # Try to locate tool using the code snippet
9079       for ac_prog in mktemp
9080 do
9081   # Extract the first word of "$ac_prog", so it can be a program name with args.
9082 set dummy $ac_prog; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_path_MKTEMP+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   case $MKTEMP in
9089   [\\/]* | ?:[\\/]*)
9090   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9091   ;;
9092   *)
9093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   test -z "$as_dir" && as_dir=.
9098     for ac_exec_ext in '' $ac_executable_extensions; do
9099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102     break 2
9103   fi
9104 done
9105   done
9106 IFS=$as_save_IFS
9107 
9108   ;;
9109 esac
9110 fi
9111 MKTEMP=$ac_cv_path_MKTEMP
9112 if test -n "$MKTEMP"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9114 $as_echo "$MKTEMP" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119 
9120 
9121   test -n "$MKTEMP" && break
9122 done
9123 
9124     else
9125       # If it succeeded, then it was overridden by the user. We will use it
9126       # for the tool.
9127 
9128       # First remove it from the list of overridden variables, so we can test
9129       # for unknown variables in the end.
9130       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9131 
9132       # Check if we try to supply an empty value
9133       if test "x$MKTEMP" = x; then
9134         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
9135 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
9136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9137 $as_echo_n "checking for MKTEMP... " >&6; }
9138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9139 $as_echo "disabled" >&6; }
9140       else
9141         # Check if the provided tool contains a complete path.
9142         tool_specified="$MKTEMP"
9143         tool_basename="${tool_specified##*/}"
9144         if test "x$tool_basename" = "x$tool_specified"; then
9145           # A command without a complete path is provided, search $PATH.
9146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
9147 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
9148           # Extract the first word of "$tool_basename", so it can be a program name with args.
9149 set dummy $tool_basename; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if ${ac_cv_path_MKTEMP+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   case $MKTEMP in
9156   [\\/]* | ?:[\\/]*)
9157   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
9158   ;;
9159   *)
9160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9162 do
9163   IFS=$as_save_IFS
9164   test -z "$as_dir" && as_dir=.
9165     for ac_exec_ext in '' $ac_executable_extensions; do
9166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9167     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
9168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169     break 2
9170   fi
9171 done
9172   done
9173 IFS=$as_save_IFS
9174 
9175   ;;
9176 esac
9177 fi
9178 MKTEMP=$ac_cv_path_MKTEMP
9179 if test -n "$MKTEMP"; then
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
9181 $as_echo "$MKTEMP" >&6; }
9182 else
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9185 fi
9186 
9187 
9188           if test "x$MKTEMP" = x; then
9189             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9190           fi
9191         else
9192           # Otherwise we believe it is a complete path. Use it as it is.
9193           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
9194 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
9195           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
9196 $as_echo_n "checking for MKTEMP... " >&6; }
9197           if test ! -x "$tool_specified"; then
9198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9199 $as_echo "not found" >&6; }
9200             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
9201           fi
9202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9203 $as_echo "$tool_specified" >&6; }
9204         fi
9205       fi
9206     fi
9207 
9208   fi
9209 
9210 
9211 
9212   if test "x$MKTEMP" = x; then
9213     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
9214   fi
9215 
9216 
9217 
9218 
9219 
9220   # Publish this variable in the help.
9221 
9222 
9223   if [ -z "${MV+x}" ]; then
9224     # The variable is not set by user, try to locate tool using the code snippet
9225     for ac_prog in mv
9226 do
9227   # Extract the first word of "$ac_prog", so it can be a program name with args.
9228 set dummy $ac_prog; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_path_MV+:} false; then :
9232   $as_echo_n "(cached) " >&6
9233 else
9234   case $MV in
9235   [\\/]* | ?:[\\/]*)
9236   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9237   ;;
9238   *)
9239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in $PATH
9241 do
9242   IFS=$as_save_IFS
9243   test -z "$as_dir" && as_dir=.
9244     for ac_exec_ext in '' $ac_executable_extensions; do
9245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9246     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248     break 2
9249   fi
9250 done
9251   done
9252 IFS=$as_save_IFS
9253 
9254   ;;
9255 esac
9256 fi
9257 MV=$ac_cv_path_MV
9258 if test -n "$MV"; then
9259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9260 $as_echo "$MV" >&6; }
9261 else
9262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9264 fi
9265 
9266 
9267   test -n "$MV" && break
9268 done
9269 
9270   else
9271     # The variable is set, but is it from the command line or the environment?
9272 
9273     # Try to remove the string !MV! from our list.
9274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
9275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9276       # If it failed, the variable was not from the command line. Ignore it,
9277       # but warn the user (except for BASH, which is always set by the calling BASH).
9278       if test "xMV" != xBASH; then
9279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
9280 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
9281       fi
9282       # Try to locate tool using the code snippet
9283       for ac_prog in mv
9284 do
9285   # Extract the first word of "$ac_prog", so it can be a program name with args.
9286 set dummy $ac_prog; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if ${ac_cv_path_MV+:} false; then :
9290   $as_echo_n "(cached) " >&6
9291 else
9292   case $MV in
9293   [\\/]* | ?:[\\/]*)
9294   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9295   ;;
9296   *)
9297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9299 do
9300   IFS=$as_save_IFS
9301   test -z "$as_dir" && as_dir=.
9302     for ac_exec_ext in '' $ac_executable_extensions; do
9303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9304     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306     break 2
9307   fi
9308 done
9309   done
9310 IFS=$as_save_IFS
9311 
9312   ;;
9313 esac
9314 fi
9315 MV=$ac_cv_path_MV
9316 if test -n "$MV"; then
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9318 $as_echo "$MV" >&6; }
9319 else
9320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9322 fi
9323 
9324 
9325   test -n "$MV" && break
9326 done
9327 
9328     else
9329       # If it succeeded, then it was overridden by the user. We will use it
9330       # for the tool.
9331 
9332       # First remove it from the list of overridden variables, so we can test
9333       # for unknown variables in the end.
9334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9335 
9336       # Check if we try to supply an empty value
9337       if test "x$MV" = x; then
9338         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
9339 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
9340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9341 $as_echo_n "checking for MV... " >&6; }
9342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9343 $as_echo "disabled" >&6; }
9344       else
9345         # Check if the provided tool contains a complete path.
9346         tool_specified="$MV"
9347         tool_basename="${tool_specified##*/}"
9348         if test "x$tool_basename" = "x$tool_specified"; then
9349           # A command without a complete path is provided, search $PATH.
9350           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
9351 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
9352           # Extract the first word of "$tool_basename", so it can be a program name with args.
9353 set dummy $tool_basename; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_path_MV+:} false; then :
9357   $as_echo_n "(cached) " >&6
9358 else
9359   case $MV in
9360   [\\/]* | ?:[\\/]*)
9361   ac_cv_path_MV="$MV" # Let the user override the test with a path.
9362   ;;
9363   *)
9364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9366 do
9367   IFS=$as_save_IFS
9368   test -z "$as_dir" && as_dir=.
9369     for ac_exec_ext in '' $ac_executable_extensions; do
9370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9371     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373     break 2
9374   fi
9375 done
9376   done
9377 IFS=$as_save_IFS
9378 
9379   ;;
9380 esac
9381 fi
9382 MV=$ac_cv_path_MV
9383 if test -n "$MV"; then
9384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9385 $as_echo "$MV" >&6; }
9386 else
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9389 fi
9390 
9391 
9392           if test "x$MV" = x; then
9393             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9394           fi
9395         else
9396           # Otherwise we believe it is a complete path. Use it as it is.
9397           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
9398 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
9399           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
9400 $as_echo_n "checking for MV... " >&6; }
9401           if test ! -x "$tool_specified"; then
9402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9403 $as_echo "not found" >&6; }
9404             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
9405           fi
9406           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9407 $as_echo "$tool_specified" >&6; }
9408         fi
9409       fi
9410     fi
9411 
9412   fi
9413 
9414 
9415 
9416   if test "x$MV" = x; then
9417     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
9418   fi
9419 
9420 
9421 
9422 
9423 
9424   # Publish this variable in the help.
9425 
9426 
9427   if [ -z "${NAWK+x}" ]; then
9428     # The variable is not set by user, try to locate tool using the code snippet
9429     for ac_prog in nawk gawk awk
9430 do
9431   # Extract the first word of "$ac_prog", so it can be a program name with args.
9432 set dummy $ac_prog; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if ${ac_cv_path_NAWK+:} false; then :
9436   $as_echo_n "(cached) " >&6
9437 else
9438   case $NAWK in
9439   [\\/]* | ?:[\\/]*)
9440   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9441   ;;
9442   *)
9443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 for as_dir in $PATH
9445 do
9446   IFS=$as_save_IFS
9447   test -z "$as_dir" && as_dir=.
9448     for ac_exec_ext in '' $ac_executable_extensions; do
9449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9450     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9452     break 2
9453   fi
9454 done
9455   done
9456 IFS=$as_save_IFS
9457 
9458   ;;
9459 esac
9460 fi
9461 NAWK=$ac_cv_path_NAWK
9462 if test -n "$NAWK"; then
9463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9464 $as_echo "$NAWK" >&6; }
9465 else
9466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9467 $as_echo "no" >&6; }
9468 fi
9469 
9470 
9471   test -n "$NAWK" && break
9472 done
9473 
9474   else
9475     # The variable is set, but is it from the command line or the environment?
9476 
9477     # Try to remove the string !NAWK! from our list.
9478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9480       # If it failed, the variable was not from the command line. Ignore it,
9481       # but warn the user (except for BASH, which is always set by the calling BASH).
9482       if test "xNAWK" != xBASH; then
9483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9484 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9485       fi
9486       # Try to locate tool using the code snippet
9487       for ac_prog in nawk gawk awk
9488 do
9489   # Extract the first word of "$ac_prog", so it can be a program name with args.
9490 set dummy $ac_prog; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_path_NAWK+:} false; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   case $NAWK in
9497   [\\/]* | ?:[\\/]*)
9498   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9499   ;;
9500   *)
9501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502 for as_dir in $PATH
9503 do
9504   IFS=$as_save_IFS
9505   test -z "$as_dir" && as_dir=.
9506     for ac_exec_ext in '' $ac_executable_extensions; do
9507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9508     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510     break 2
9511   fi
9512 done
9513   done
9514 IFS=$as_save_IFS
9515 
9516   ;;
9517 esac
9518 fi
9519 NAWK=$ac_cv_path_NAWK
9520 if test -n "$NAWK"; then
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9522 $as_echo "$NAWK" >&6; }
9523 else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 fi
9527 
9528 
9529   test -n "$NAWK" && break
9530 done
9531 
9532     else
9533       # If it succeeded, then it was overridden by the user. We will use it
9534       # for the tool.
9535 
9536       # First remove it from the list of overridden variables, so we can test
9537       # for unknown variables in the end.
9538       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9539 
9540       # Check if we try to supply an empty value
9541       if test "x$NAWK" = x; then
9542         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9543 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9545 $as_echo_n "checking for NAWK... " >&6; }
9546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9547 $as_echo "disabled" >&6; }
9548       else
9549         # Check if the provided tool contains a complete path.
9550         tool_specified="$NAWK"
9551         tool_basename="${tool_specified##*/}"
9552         if test "x$tool_basename" = "x$tool_specified"; then
9553           # A command without a complete path is provided, search $PATH.
9554           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9555 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9556           # Extract the first word of "$tool_basename", so it can be a program name with args.
9557 set dummy $tool_basename; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if ${ac_cv_path_NAWK+:} false; then :
9561   $as_echo_n "(cached) " >&6
9562 else
9563   case $NAWK in
9564   [\\/]* | ?:[\\/]*)
9565   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9566   ;;
9567   *)
9568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571   IFS=$as_save_IFS
9572   test -z "$as_dir" && as_dir=.
9573     for ac_exec_ext in '' $ac_executable_extensions; do
9574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9575     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577     break 2
9578   fi
9579 done
9580   done
9581 IFS=$as_save_IFS
9582 
9583   ;;
9584 esac
9585 fi
9586 NAWK=$ac_cv_path_NAWK
9587 if test -n "$NAWK"; then
9588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9589 $as_echo "$NAWK" >&6; }
9590 else
9591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 fi
9594 
9595 
9596           if test "x$NAWK" = x; then
9597             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9598           fi
9599         else
9600           # Otherwise we believe it is a complete path. Use it as it is.
9601           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9602 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9603           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9604 $as_echo_n "checking for NAWK... " >&6; }
9605           if test ! -x "$tool_specified"; then
9606             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9607 $as_echo "not found" >&6; }
9608             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9609           fi
9610           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9611 $as_echo "$tool_specified" >&6; }
9612         fi
9613       fi
9614     fi
9615 
9616   fi
9617 
9618 
9619 
9620   if test "x$NAWK" = x; then
9621     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9622   fi
9623 
9624 
9625 
9626 
9627 
9628   # Publish this variable in the help.
9629 
9630 
9631   if [ -z "${PRINTF+x}" ]; then
9632     # The variable is not set by user, try to locate tool using the code snippet
9633     for ac_prog in printf
9634 do
9635   # Extract the first word of "$ac_prog", so it can be a program name with args.
9636 set dummy $ac_prog; ac_word=$2
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9638 $as_echo_n "checking for $ac_word... " >&6; }
9639 if ${ac_cv_path_PRINTF+:} false; then :
9640   $as_echo_n "(cached) " >&6
9641 else
9642   case $PRINTF in
9643   [\\/]* | ?:[\\/]*)
9644   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9645   ;;
9646   *)
9647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9649 do
9650   IFS=$as_save_IFS
9651   test -z "$as_dir" && as_dir=.
9652     for ac_exec_ext in '' $ac_executable_extensions; do
9653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656     break 2
9657   fi
9658 done
9659   done
9660 IFS=$as_save_IFS
9661 
9662   ;;
9663 esac
9664 fi
9665 PRINTF=$ac_cv_path_PRINTF
9666 if test -n "$PRINTF"; then
9667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9668 $as_echo "$PRINTF" >&6; }
9669 else
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9672 fi
9673 
9674 
9675   test -n "$PRINTF" && break
9676 done
9677 
9678   else
9679     # The variable is set, but is it from the command line or the environment?
9680 
9681     # Try to remove the string !PRINTF! from our list.
9682     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9683     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9684       # If it failed, the variable was not from the command line. Ignore it,
9685       # but warn the user (except for BASH, which is always set by the calling BASH).
9686       if test "xPRINTF" != xBASH; then
9687         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9688 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9689       fi
9690       # Try to locate tool using the code snippet
9691       for ac_prog in printf
9692 do
9693   # Extract the first word of "$ac_prog", so it can be a program name with args.
9694 set dummy $ac_prog; ac_word=$2
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696 $as_echo_n "checking for $ac_word... " >&6; }
9697 if ${ac_cv_path_PRINTF+:} false; then :
9698   $as_echo_n "(cached) " >&6
9699 else
9700   case $PRINTF in
9701   [\\/]* | ?:[\\/]*)
9702   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9703   ;;
9704   *)
9705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9707 do
9708   IFS=$as_save_IFS
9709   test -z "$as_dir" && as_dir=.
9710     for ac_exec_ext in '' $ac_executable_extensions; do
9711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714     break 2
9715   fi
9716 done
9717   done
9718 IFS=$as_save_IFS
9719 
9720   ;;
9721 esac
9722 fi
9723 PRINTF=$ac_cv_path_PRINTF
9724 if test -n "$PRINTF"; then
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9726 $as_echo "$PRINTF" >&6; }
9727 else
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 $as_echo "no" >&6; }
9730 fi
9731 
9732 
9733   test -n "$PRINTF" && break
9734 done
9735 
9736     else
9737       # If it succeeded, then it was overridden by the user. We will use it
9738       # for the tool.
9739 
9740       # First remove it from the list of overridden variables, so we can test
9741       # for unknown variables in the end.
9742       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9743 
9744       # Check if we try to supply an empty value
9745       if test "x$PRINTF" = x; then
9746         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9747 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9749 $as_echo_n "checking for PRINTF... " >&6; }
9750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9751 $as_echo "disabled" >&6; }
9752       else
9753         # Check if the provided tool contains a complete path.
9754         tool_specified="$PRINTF"
9755         tool_basename="${tool_specified##*/}"
9756         if test "x$tool_basename" = "x$tool_specified"; then
9757           # A command without a complete path is provided, search $PATH.
9758           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9759 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9760           # Extract the first word of "$tool_basename", so it can be a program name with args.
9761 set dummy $tool_basename; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_path_PRINTF+:} false; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   case $PRINTF in
9768   [\\/]* | ?:[\\/]*)
9769   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9770   ;;
9771   *)
9772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9774 do
9775   IFS=$as_save_IFS
9776   test -z "$as_dir" && as_dir=.
9777     for ac_exec_ext in '' $ac_executable_extensions; do
9778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9779     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781     break 2
9782   fi
9783 done
9784   done
9785 IFS=$as_save_IFS
9786 
9787   ;;
9788 esac
9789 fi
9790 PRINTF=$ac_cv_path_PRINTF
9791 if test -n "$PRINTF"; then
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9793 $as_echo "$PRINTF" >&6; }
9794 else
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9797 fi
9798 
9799 
9800           if test "x$PRINTF" = x; then
9801             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9802           fi
9803         else
9804           # Otherwise we believe it is a complete path. Use it as it is.
9805           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9806 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9807           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9808 $as_echo_n "checking for PRINTF... " >&6; }
9809           if test ! -x "$tool_specified"; then
9810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9811 $as_echo "not found" >&6; }
9812             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9813           fi
9814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9815 $as_echo "$tool_specified" >&6; }
9816         fi
9817       fi
9818     fi
9819 
9820   fi
9821 
9822 
9823 
9824   if test "x$PRINTF" = x; then
9825     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9826   fi
9827 
9828 
9829 
9830 
9831 
9832   # Publish this variable in the help.
9833 
9834 
9835   if [ -z "${RM+x}" ]; then
9836     # The variable is not set by user, try to locate tool using the code snippet
9837     for ac_prog in rm
9838 do
9839   # Extract the first word of "$ac_prog", so it can be a program name with args.
9840 set dummy $ac_prog; ac_word=$2
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9842 $as_echo_n "checking for $ac_word... " >&6; }
9843 if ${ac_cv_path_RM+:} false; then :
9844   $as_echo_n "(cached) " >&6
9845 else
9846   case $RM in
9847   [\\/]* | ?:[\\/]*)
9848   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9849   ;;
9850   *)
9851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9853 do
9854   IFS=$as_save_IFS
9855   test -z "$as_dir" && as_dir=.
9856     for ac_exec_ext in '' $ac_executable_extensions; do
9857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9858     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860     break 2
9861   fi
9862 done
9863   done
9864 IFS=$as_save_IFS
9865 
9866   ;;
9867 esac
9868 fi
9869 RM=$ac_cv_path_RM
9870 if test -n "$RM"; then
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9872 $as_echo "$RM" >&6; }
9873 else
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876 fi
9877 
9878 
9879   test -n "$RM" && break
9880 done
9881 
9882   else
9883     # The variable is set, but is it from the command line or the environment?
9884 
9885     # Try to remove the string !RM! from our list.
9886     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9887     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9888       # If it failed, the variable was not from the command line. Ignore it,
9889       # but warn the user (except for BASH, which is always set by the calling BASH).
9890       if test "xRM" != xBASH; then
9891         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9892 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9893       fi
9894       # Try to locate tool using the code snippet
9895       for ac_prog in rm
9896 do
9897   # Extract the first word of "$ac_prog", so it can be a program name with args.
9898 set dummy $ac_prog; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if ${ac_cv_path_RM+:} false; then :
9902   $as_echo_n "(cached) " >&6
9903 else
9904   case $RM in
9905   [\\/]* | ?:[\\/]*)
9906   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9907   ;;
9908   *)
9909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9910 for as_dir in $PATH
9911 do
9912   IFS=$as_save_IFS
9913   test -z "$as_dir" && as_dir=.
9914     for ac_exec_ext in '' $ac_executable_extensions; do
9915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9916     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918     break 2
9919   fi
9920 done
9921   done
9922 IFS=$as_save_IFS
9923 
9924   ;;
9925 esac
9926 fi
9927 RM=$ac_cv_path_RM
9928 if test -n "$RM"; then
9929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9930 $as_echo "$RM" >&6; }
9931 else
9932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935 
9936 
9937   test -n "$RM" && break
9938 done
9939 
9940     else
9941       # If it succeeded, then it was overridden by the user. We will use it
9942       # for the tool.
9943 
9944       # First remove it from the list of overridden variables, so we can test
9945       # for unknown variables in the end.
9946       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9947 
9948       # Check if we try to supply an empty value
9949       if test "x$RM" = x; then
9950         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9951 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9953 $as_echo_n "checking for RM... " >&6; }
9954         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9955 $as_echo "disabled" >&6; }
9956       else
9957         # Check if the provided tool contains a complete path.
9958         tool_specified="$RM"
9959         tool_basename="${tool_specified##*/}"
9960         if test "x$tool_basename" = "x$tool_specified"; then
9961           # A command without a complete path is provided, search $PATH.
9962           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9963 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9964           # Extract the first word of "$tool_basename", so it can be a program name with args.
9965 set dummy $tool_basename; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_RM+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   case $RM in
9972   [\\/]* | ?:[\\/]*)
9973   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9974   ;;
9975   *)
9976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979   IFS=$as_save_IFS
9980   test -z "$as_dir" && as_dir=.
9981     for ac_exec_ext in '' $ac_executable_extensions; do
9982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985     break 2
9986   fi
9987 done
9988   done
9989 IFS=$as_save_IFS
9990 
9991   ;;
9992 esac
9993 fi
9994 RM=$ac_cv_path_RM
9995 if test -n "$RM"; then
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9997 $as_echo "$RM" >&6; }
9998 else
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002 
10003 
10004           if test "x$RM" = x; then
10005             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10006           fi
10007         else
10008           # Otherwise we believe it is a complete path. Use it as it is.
10009           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
10010 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
10011           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
10012 $as_echo_n "checking for RM... " >&6; }
10013           if test ! -x "$tool_specified"; then
10014             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10015 $as_echo "not found" >&6; }
10016             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
10017           fi
10018           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10019 $as_echo "$tool_specified" >&6; }
10020         fi
10021       fi
10022     fi
10023 
10024   fi
10025 
10026 
10027 
10028   if test "x$RM" = x; then
10029     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
10030   fi
10031 
10032 
10033 
10034 
10035 
10036   # Publish this variable in the help.
10037 
10038 
10039   if [ -z "${RMDIR+x}" ]; then
10040     # The variable is not set by user, try to locate tool using the code snippet
10041     for ac_prog in rmdir
10042 do
10043   # Extract the first word of "$ac_prog", so it can be a program name with args.
10044 set dummy $ac_prog; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_path_RMDIR+:} false; then :
10048   $as_echo_n "(cached) " >&6
10049 else
10050   case $RMDIR in
10051   [\\/]* | ?:[\\/]*)
10052   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10053   ;;
10054   *)
10055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10057 do
10058   IFS=$as_save_IFS
10059   test -z "$as_dir" && as_dir=.
10060     for ac_exec_ext in '' $ac_executable_extensions; do
10061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064     break 2
10065   fi
10066 done
10067   done
10068 IFS=$as_save_IFS
10069 
10070   ;;
10071 esac
10072 fi
10073 RMDIR=$ac_cv_path_RMDIR
10074 if test -n "$RMDIR"; then
10075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10076 $as_echo "$RMDIR" >&6; }
10077 else
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079 $as_echo "no" >&6; }
10080 fi
10081 
10082 
10083   test -n "$RMDIR" && break
10084 done
10085 
10086   else
10087     # The variable is set, but is it from the command line or the environment?
10088 
10089     # Try to remove the string !RMDIR! from our list.
10090     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
10091     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10092       # If it failed, the variable was not from the command line. Ignore it,
10093       # but warn the user (except for BASH, which is always set by the calling BASH).
10094       if test "xRMDIR" != xBASH; then
10095         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
10096 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
10097       fi
10098       # Try to locate tool using the code snippet
10099       for ac_prog in rmdir
10100 do
10101   # Extract the first word of "$ac_prog", so it can be a program name with args.
10102 set dummy $ac_prog; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_path_RMDIR+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   case $RMDIR in
10109   [\\/]* | ?:[\\/]*)
10110   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10111   ;;
10112   *)
10113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10115 do
10116   IFS=$as_save_IFS
10117   test -z "$as_dir" && as_dir=.
10118     for ac_exec_ext in '' $ac_executable_extensions; do
10119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10120     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10122     break 2
10123   fi
10124 done
10125   done
10126 IFS=$as_save_IFS
10127 
10128   ;;
10129 esac
10130 fi
10131 RMDIR=$ac_cv_path_RMDIR
10132 if test -n "$RMDIR"; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10134 $as_echo "$RMDIR" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10138 fi
10139 
10140 
10141   test -n "$RMDIR" && break
10142 done
10143 
10144     else
10145       # If it succeeded, then it was overridden by the user. We will use it
10146       # for the tool.
10147 
10148       # First remove it from the list of overridden variables, so we can test
10149       # for unknown variables in the end.
10150       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10151 
10152       # Check if we try to supply an empty value
10153       if test "x$RMDIR" = x; then
10154         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
10155 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
10156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10157 $as_echo_n "checking for RMDIR... " >&6; }
10158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10159 $as_echo "disabled" >&6; }
10160       else
10161         # Check if the provided tool contains a complete path.
10162         tool_specified="$RMDIR"
10163         tool_basename="${tool_specified##*/}"
10164         if test "x$tool_basename" = "x$tool_specified"; then
10165           # A command without a complete path is provided, search $PATH.
10166           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
10167 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
10168           # Extract the first word of "$tool_basename", so it can be a program name with args.
10169 set dummy $tool_basename; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_RMDIR+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   case $RMDIR in
10176   [\\/]* | ?:[\\/]*)
10177   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
10178   ;;
10179   *)
10180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194 
10195   ;;
10196 esac
10197 fi
10198 RMDIR=$ac_cv_path_RMDIR
10199 if test -n "$RMDIR"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
10201 $as_echo "$RMDIR" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206 
10207 
10208           if test "x$RMDIR" = x; then
10209             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10210           fi
10211         else
10212           # Otherwise we believe it is a complete path. Use it as it is.
10213           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
10214 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
10215           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
10216 $as_echo_n "checking for RMDIR... " >&6; }
10217           if test ! -x "$tool_specified"; then
10218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10219 $as_echo "not found" >&6; }
10220             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
10221           fi
10222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10223 $as_echo "$tool_specified" >&6; }
10224         fi
10225       fi
10226     fi
10227 
10228   fi
10229 
10230 
10231 
10232   if test "x$RMDIR" = x; then
10233     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
10234   fi
10235 
10236 
10237 
10238 
10239 
10240   # Publish this variable in the help.
10241 
10242 
10243   if [ -z "${SH+x}" ]; then
10244     # The variable is not set by user, try to locate tool using the code snippet
10245     for ac_prog in sh
10246 do
10247   # Extract the first word of "$ac_prog", so it can be a program name with args.
10248 set dummy $ac_prog; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_SH+:} false; then :
10252   $as_echo_n "(cached) " >&6
10253 else
10254   case $SH in
10255   [\\/]* | ?:[\\/]*)
10256   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10257   ;;
10258   *)
10259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10261 do
10262   IFS=$as_save_IFS
10263   test -z "$as_dir" && as_dir=.
10264     for ac_exec_ext in '' $ac_executable_extensions; do
10265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10266     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268     break 2
10269   fi
10270 done
10271   done
10272 IFS=$as_save_IFS
10273 
10274   ;;
10275 esac
10276 fi
10277 SH=$ac_cv_path_SH
10278 if test -n "$SH"; then
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10280 $as_echo "$SH" >&6; }
10281 else
10282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10284 fi
10285 
10286 
10287   test -n "$SH" && break
10288 done
10289 
10290   else
10291     # The variable is set, but is it from the command line or the environment?
10292 
10293     # Try to remove the string !SH! from our list.
10294     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
10295     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10296       # If it failed, the variable was not from the command line. Ignore it,
10297       # but warn the user (except for BASH, which is always set by the calling BASH).
10298       if test "xSH" != xBASH; then
10299         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
10300 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
10301       fi
10302       # Try to locate tool using the code snippet
10303       for ac_prog in sh
10304 do
10305   # Extract the first word of "$ac_prog", so it can be a program name with args.
10306 set dummy $ac_prog; ac_word=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_SH+:} false; then :
10310   $as_echo_n "(cached) " >&6
10311 else
10312   case $SH in
10313   [\\/]* | ?:[\\/]*)
10314   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10315   ;;
10316   *)
10317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320   IFS=$as_save_IFS
10321   test -z "$as_dir" && as_dir=.
10322     for ac_exec_ext in '' $ac_executable_extensions; do
10323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326     break 2
10327   fi
10328 done
10329   done
10330 IFS=$as_save_IFS
10331 
10332   ;;
10333 esac
10334 fi
10335 SH=$ac_cv_path_SH
10336 if test -n "$SH"; then
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10338 $as_echo "$SH" >&6; }
10339 else
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10342 fi
10343 
10344 
10345   test -n "$SH" && break
10346 done
10347 
10348     else
10349       # If it succeeded, then it was overridden by the user. We will use it
10350       # for the tool.
10351 
10352       # First remove it from the list of overridden variables, so we can test
10353       # for unknown variables in the end.
10354       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10355 
10356       # Check if we try to supply an empty value
10357       if test "x$SH" = x; then
10358         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
10359 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
10360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10361 $as_echo_n "checking for SH... " >&6; }
10362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10363 $as_echo "disabled" >&6; }
10364       else
10365         # Check if the provided tool contains a complete path.
10366         tool_specified="$SH"
10367         tool_basename="${tool_specified##*/}"
10368         if test "x$tool_basename" = "x$tool_specified"; then
10369           # A command without a complete path is provided, search $PATH.
10370           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
10371 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
10372           # Extract the first word of "$tool_basename", so it can be a program name with args.
10373 set dummy $tool_basename; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if ${ac_cv_path_SH+:} false; then :
10377   $as_echo_n "(cached) " >&6
10378 else
10379   case $SH in
10380   [\\/]* | ?:[\\/]*)
10381   ac_cv_path_SH="$SH" # Let the user override the test with a path.
10382   ;;
10383   *)
10384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387   IFS=$as_save_IFS
10388   test -z "$as_dir" && as_dir=.
10389     for ac_exec_ext in '' $ac_executable_extensions; do
10390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10391     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
10392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393     break 2
10394   fi
10395 done
10396   done
10397 IFS=$as_save_IFS
10398 
10399   ;;
10400 esac
10401 fi
10402 SH=$ac_cv_path_SH
10403 if test -n "$SH"; then
10404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
10405 $as_echo "$SH" >&6; }
10406 else
10407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410 
10411 
10412           if test "x$SH" = x; then
10413             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10414           fi
10415         else
10416           # Otherwise we believe it is a complete path. Use it as it is.
10417           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
10418 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
10419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
10420 $as_echo_n "checking for SH... " >&6; }
10421           if test ! -x "$tool_specified"; then
10422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10423 $as_echo "not found" >&6; }
10424             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
10425           fi
10426           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10427 $as_echo "$tool_specified" >&6; }
10428         fi
10429       fi
10430     fi
10431 
10432   fi
10433 
10434 
10435 
10436   if test "x$SH" = x; then
10437     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
10438   fi
10439 
10440 
10441 
10442 
10443 
10444   # Publish this variable in the help.
10445 
10446 
10447   if [ -z "${SORT+x}" ]; then
10448     # The variable is not set by user, try to locate tool using the code snippet
10449     for ac_prog in sort
10450 do
10451   # Extract the first word of "$ac_prog", so it can be a program name with args.
10452 set dummy $ac_prog; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if ${ac_cv_path_SORT+:} false; then :
10456   $as_echo_n "(cached) " >&6
10457 else
10458   case $SORT in
10459   [\\/]* | ?:[\\/]*)
10460   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10461   ;;
10462   *)
10463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10465 do
10466   IFS=$as_save_IFS
10467   test -z "$as_dir" && as_dir=.
10468     for ac_exec_ext in '' $ac_executable_extensions; do
10469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10470     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472     break 2
10473   fi
10474 done
10475   done
10476 IFS=$as_save_IFS
10477 
10478   ;;
10479 esac
10480 fi
10481 SORT=$ac_cv_path_SORT
10482 if test -n "$SORT"; then
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10484 $as_echo "$SORT" >&6; }
10485 else
10486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 $as_echo "no" >&6; }
10488 fi
10489 
10490 
10491   test -n "$SORT" && break
10492 done
10493 
10494   else
10495     # The variable is set, but is it from the command line or the environment?
10496 
10497     # Try to remove the string !SORT! from our list.
10498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10500       # If it failed, the variable was not from the command line. Ignore it,
10501       # but warn the user (except for BASH, which is always set by the calling BASH).
10502       if test "xSORT" != xBASH; then
10503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10504 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10505       fi
10506       # Try to locate tool using the code snippet
10507       for ac_prog in sort
10508 do
10509   # Extract the first word of "$ac_prog", so it can be a program name with args.
10510 set dummy $ac_prog; ac_word=$2
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512 $as_echo_n "checking for $ac_word... " >&6; }
10513 if ${ac_cv_path_SORT+:} false; then :
10514   $as_echo_n "(cached) " >&6
10515 else
10516   case $SORT in
10517   [\\/]* | ?:[\\/]*)
10518   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10519   ;;
10520   *)
10521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10523 do
10524   IFS=$as_save_IFS
10525   test -z "$as_dir" && as_dir=.
10526     for ac_exec_ext in '' $ac_executable_extensions; do
10527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10528     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530     break 2
10531   fi
10532 done
10533   done
10534 IFS=$as_save_IFS
10535 
10536   ;;
10537 esac
10538 fi
10539 SORT=$ac_cv_path_SORT
10540 if test -n "$SORT"; then
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10542 $as_echo "$SORT" >&6; }
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10546 fi
10547 
10548 
10549   test -n "$SORT" && break
10550 done
10551 
10552     else
10553       # If it succeeded, then it was overridden by the user. We will use it
10554       # for the tool.
10555 
10556       # First remove it from the list of overridden variables, so we can test
10557       # for unknown variables in the end.
10558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10559 
10560       # Check if we try to supply an empty value
10561       if test "x$SORT" = x; then
10562         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10563 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10565 $as_echo_n "checking for SORT... " >&6; }
10566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10567 $as_echo "disabled" >&6; }
10568       else
10569         # Check if the provided tool contains a complete path.
10570         tool_specified="$SORT"
10571         tool_basename="${tool_specified##*/}"
10572         if test "x$tool_basename" = "x$tool_specified"; then
10573           # A command without a complete path is provided, search $PATH.
10574           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10575 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10576           # Extract the first word of "$tool_basename", so it can be a program name with args.
10577 set dummy $tool_basename; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_path_SORT+:} false; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   case $SORT in
10584   [\\/]* | ?:[\\/]*)
10585   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10586   ;;
10587   *)
10588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in $PATH
10590 do
10591   IFS=$as_save_IFS
10592   test -z "$as_dir" && as_dir=.
10593     for ac_exec_ext in '' $ac_executable_extensions; do
10594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10595     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597     break 2
10598   fi
10599 done
10600   done
10601 IFS=$as_save_IFS
10602 
10603   ;;
10604 esac
10605 fi
10606 SORT=$ac_cv_path_SORT
10607 if test -n "$SORT"; then
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10609 $as_echo "$SORT" >&6; }
10610 else
10611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612 $as_echo "no" >&6; }
10613 fi
10614 
10615 
10616           if test "x$SORT" = x; then
10617             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10618           fi
10619         else
10620           # Otherwise we believe it is a complete path. Use it as it is.
10621           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10622 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10624 $as_echo_n "checking for SORT... " >&6; }
10625           if test ! -x "$tool_specified"; then
10626             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10627 $as_echo "not found" >&6; }
10628             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10629           fi
10630           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10631 $as_echo "$tool_specified" >&6; }
10632         fi
10633       fi
10634     fi
10635 
10636   fi
10637 
10638 
10639 
10640   if test "x$SORT" = x; then
10641     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10642   fi
10643 
10644 
10645 
10646 
10647 
10648   # Publish this variable in the help.
10649 
10650 
10651   if [ -z "${TAIL+x}" ]; then
10652     # The variable is not set by user, try to locate tool using the code snippet
10653     for ac_prog in tail
10654 do
10655   # Extract the first word of "$ac_prog", so it can be a program name with args.
10656 set dummy $ac_prog; ac_word=$2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658 $as_echo_n "checking for $ac_word... " >&6; }
10659 if ${ac_cv_path_TAIL+:} false; then :
10660   $as_echo_n "(cached) " >&6
10661 else
10662   case $TAIL in
10663   [\\/]* | ?:[\\/]*)
10664   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10665   ;;
10666   *)
10667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668 for as_dir in $PATH
10669 do
10670   IFS=$as_save_IFS
10671   test -z "$as_dir" && as_dir=.
10672     for ac_exec_ext in '' $ac_executable_extensions; do
10673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676     break 2
10677   fi
10678 done
10679   done
10680 IFS=$as_save_IFS
10681 
10682   ;;
10683 esac
10684 fi
10685 TAIL=$ac_cv_path_TAIL
10686 if test -n "$TAIL"; then
10687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10688 $as_echo "$TAIL" >&6; }
10689 else
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 fi
10693 
10694 
10695   test -n "$TAIL" && break
10696 done
10697 
10698   else
10699     # The variable is set, but is it from the command line or the environment?
10700 
10701     # Try to remove the string !TAIL! from our list.
10702     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10703     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10704       # If it failed, the variable was not from the command line. Ignore it,
10705       # but warn the user (except for BASH, which is always set by the calling BASH).
10706       if test "xTAIL" != xBASH; then
10707         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10708 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10709       fi
10710       # Try to locate tool using the code snippet
10711       for ac_prog in tail
10712 do
10713   # Extract the first word of "$ac_prog", so it can be a program name with args.
10714 set dummy $ac_prog; ac_word=$2
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10716 $as_echo_n "checking for $ac_word... " >&6; }
10717 if ${ac_cv_path_TAIL+:} false; then :
10718   $as_echo_n "(cached) " >&6
10719 else
10720   case $TAIL in
10721   [\\/]* | ?:[\\/]*)
10722   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10723   ;;
10724   *)
10725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726 for as_dir in $PATH
10727 do
10728   IFS=$as_save_IFS
10729   test -z "$as_dir" && as_dir=.
10730     for ac_exec_ext in '' $ac_executable_extensions; do
10731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10732     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10734     break 2
10735   fi
10736 done
10737   done
10738 IFS=$as_save_IFS
10739 
10740   ;;
10741 esac
10742 fi
10743 TAIL=$ac_cv_path_TAIL
10744 if test -n "$TAIL"; then
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10746 $as_echo "$TAIL" >&6; }
10747 else
10748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749 $as_echo "no" >&6; }
10750 fi
10751 
10752 
10753   test -n "$TAIL" && break
10754 done
10755 
10756     else
10757       # If it succeeded, then it was overridden by the user. We will use it
10758       # for the tool.
10759 
10760       # First remove it from the list of overridden variables, so we can test
10761       # for unknown variables in the end.
10762       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10763 
10764       # Check if we try to supply an empty value
10765       if test "x$TAIL" = x; then
10766         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10767 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10769 $as_echo_n "checking for TAIL... " >&6; }
10770         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10771 $as_echo "disabled" >&6; }
10772       else
10773         # Check if the provided tool contains a complete path.
10774         tool_specified="$TAIL"
10775         tool_basename="${tool_specified##*/}"
10776         if test "x$tool_basename" = "x$tool_specified"; then
10777           # A command without a complete path is provided, search $PATH.
10778           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10779 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10780           # Extract the first word of "$tool_basename", so it can be a program name with args.
10781 set dummy $tool_basename; ac_word=$2
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783 $as_echo_n "checking for $ac_word... " >&6; }
10784 if ${ac_cv_path_TAIL+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   case $TAIL in
10788   [\\/]* | ?:[\\/]*)
10789   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10790   ;;
10791   *)
10792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795   IFS=$as_save_IFS
10796   test -z "$as_dir" && as_dir=.
10797     for ac_exec_ext in '' $ac_executable_extensions; do
10798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10799     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10801     break 2
10802   fi
10803 done
10804   done
10805 IFS=$as_save_IFS
10806 
10807   ;;
10808 esac
10809 fi
10810 TAIL=$ac_cv_path_TAIL
10811 if test -n "$TAIL"; then
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10813 $as_echo "$TAIL" >&6; }
10814 else
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10816 $as_echo "no" >&6; }
10817 fi
10818 
10819 
10820           if test "x$TAIL" = x; then
10821             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10822           fi
10823         else
10824           # Otherwise we believe it is a complete path. Use it as it is.
10825           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10826 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10827           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10828 $as_echo_n "checking for TAIL... " >&6; }
10829           if test ! -x "$tool_specified"; then
10830             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10831 $as_echo "not found" >&6; }
10832             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10833           fi
10834           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10835 $as_echo "$tool_specified" >&6; }
10836         fi
10837       fi
10838     fi
10839 
10840   fi
10841 
10842 
10843 
10844   if test "x$TAIL" = x; then
10845     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10846   fi
10847 
10848 
10849 
10850 
10851 
10852   # Publish this variable in the help.
10853 
10854 
10855   if [ -z "${TAR+x}" ]; then
10856     # The variable is not set by user, try to locate tool using the code snippet
10857     for ac_prog in tar
10858 do
10859   # Extract the first word of "$ac_prog", so it can be a program name with args.
10860 set dummy $ac_prog; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if ${ac_cv_path_TAR+:} false; then :
10864   $as_echo_n "(cached) " >&6
10865 else
10866   case $TAR in
10867   [\\/]* | ?:[\\/]*)
10868   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10869   ;;
10870   *)
10871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10873 do
10874   IFS=$as_save_IFS
10875   test -z "$as_dir" && as_dir=.
10876     for ac_exec_ext in '' $ac_executable_extensions; do
10877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10878     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10880     break 2
10881   fi
10882 done
10883   done
10884 IFS=$as_save_IFS
10885 
10886   ;;
10887 esac
10888 fi
10889 TAR=$ac_cv_path_TAR
10890 if test -n "$TAR"; then
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10892 $as_echo "$TAR" >&6; }
10893 else
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10896 fi
10897 
10898 
10899   test -n "$TAR" && break
10900 done
10901 
10902   else
10903     # The variable is set, but is it from the command line or the environment?
10904 
10905     # Try to remove the string !TAR! from our list.
10906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10908       # If it failed, the variable was not from the command line. Ignore it,
10909       # but warn the user (except for BASH, which is always set by the calling BASH).
10910       if test "xTAR" != xBASH; then
10911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10912 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10913       fi
10914       # Try to locate tool using the code snippet
10915       for ac_prog in tar
10916 do
10917   # Extract the first word of "$ac_prog", so it can be a program name with args.
10918 set dummy $ac_prog; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if ${ac_cv_path_TAR+:} false; then :
10922   $as_echo_n "(cached) " >&6
10923 else
10924   case $TAR in
10925   [\\/]* | ?:[\\/]*)
10926   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10927   ;;
10928   *)
10929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10931 do
10932   IFS=$as_save_IFS
10933   test -z "$as_dir" && as_dir=.
10934     for ac_exec_ext in '' $ac_executable_extensions; do
10935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938     break 2
10939   fi
10940 done
10941   done
10942 IFS=$as_save_IFS
10943 
10944   ;;
10945 esac
10946 fi
10947 TAR=$ac_cv_path_TAR
10948 if test -n "$TAR"; then
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10950 $as_echo "$TAR" >&6; }
10951 else
10952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955 
10956 
10957   test -n "$TAR" && break
10958 done
10959 
10960     else
10961       # If it succeeded, then it was overridden by the user. We will use it
10962       # for the tool.
10963 
10964       # First remove it from the list of overridden variables, so we can test
10965       # for unknown variables in the end.
10966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10967 
10968       # Check if we try to supply an empty value
10969       if test "x$TAR" = x; then
10970         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10971 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10973 $as_echo_n "checking for TAR... " >&6; }
10974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10975 $as_echo "disabled" >&6; }
10976       else
10977         # Check if the provided tool contains a complete path.
10978         tool_specified="$TAR"
10979         tool_basename="${tool_specified##*/}"
10980         if test "x$tool_basename" = "x$tool_specified"; then
10981           # A command without a complete path is provided, search $PATH.
10982           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10983 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10984           # Extract the first word of "$tool_basename", so it can be a program name with args.
10985 set dummy $tool_basename; ac_word=$2
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 $as_echo_n "checking for $ac_word... " >&6; }
10988 if ${ac_cv_path_TAR+:} false; then :
10989   $as_echo_n "(cached) " >&6
10990 else
10991   case $TAR in
10992   [\\/]* | ?:[\\/]*)
10993   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10994   ;;
10995   *)
10996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999   IFS=$as_save_IFS
11000   test -z "$as_dir" && as_dir=.
11001     for ac_exec_ext in '' $ac_executable_extensions; do
11002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11003     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11005     break 2
11006   fi
11007 done
11008   done
11009 IFS=$as_save_IFS
11010 
11011   ;;
11012 esac
11013 fi
11014 TAR=$ac_cv_path_TAR
11015 if test -n "$TAR"; then
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11017 $as_echo "$TAR" >&6; }
11018 else
11019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11021 fi
11022 
11023 
11024           if test "x$TAR" = x; then
11025             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11026           fi
11027         else
11028           # Otherwise we believe it is a complete path. Use it as it is.
11029           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
11030 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
11031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
11032 $as_echo_n "checking for TAR... " >&6; }
11033           if test ! -x "$tool_specified"; then
11034             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11035 $as_echo "not found" >&6; }
11036             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
11037           fi
11038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11039 $as_echo "$tool_specified" >&6; }
11040         fi
11041       fi
11042     fi
11043 
11044   fi
11045 
11046 
11047 
11048   if test "x$TAR" = x; then
11049     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
11050   fi
11051 
11052 
11053 
11054 
11055 
11056   # Publish this variable in the help.
11057 
11058 
11059   if [ -z "${TEE+x}" ]; then
11060     # The variable is not set by user, try to locate tool using the code snippet
11061     for ac_prog in tee
11062 do
11063   # Extract the first word of "$ac_prog", so it can be a program name with args.
11064 set dummy $ac_prog; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066 $as_echo_n "checking for $ac_word... " >&6; }
11067 if ${ac_cv_path_TEE+:} false; then :
11068   $as_echo_n "(cached) " >&6
11069 else
11070   case $TEE in
11071   [\\/]* | ?:[\\/]*)
11072   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11073   ;;
11074   *)
11075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080     for ac_exec_ext in '' $ac_executable_extensions; do
11081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087   done
11088 IFS=$as_save_IFS
11089 
11090   ;;
11091 esac
11092 fi
11093 TEE=$ac_cv_path_TEE
11094 if test -n "$TEE"; then
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11096 $as_echo "$TEE" >&6; }
11097 else
11098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11100 fi
11101 
11102 
11103   test -n "$TEE" && break
11104 done
11105 
11106   else
11107     # The variable is set, but is it from the command line or the environment?
11108 
11109     # Try to remove the string !TEE! from our list.
11110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
11111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11112       # If it failed, the variable was not from the command line. Ignore it,
11113       # but warn the user (except for BASH, which is always set by the calling BASH).
11114       if test "xTEE" != xBASH; then
11115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
11116 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
11117       fi
11118       # Try to locate tool using the code snippet
11119       for ac_prog in tee
11120 do
11121   # Extract the first word of "$ac_prog", so it can be a program name with args.
11122 set dummy $ac_prog; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_path_TEE+:} false; then :
11126   $as_echo_n "(cached) " >&6
11127 else
11128   case $TEE in
11129   [\\/]* | ?:[\\/]*)
11130   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11131   ;;
11132   *)
11133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11140     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147 
11148   ;;
11149 esac
11150 fi
11151 TEE=$ac_cv_path_TEE
11152 if test -n "$TEE"; then
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11154 $as_echo "$TEE" >&6; }
11155 else
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11158 fi
11159 
11160 
11161   test -n "$TEE" && break
11162 done
11163 
11164     else
11165       # If it succeeded, then it was overridden by the user. We will use it
11166       # for the tool.
11167 
11168       # First remove it from the list of overridden variables, so we can test
11169       # for unknown variables in the end.
11170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11171 
11172       # Check if we try to supply an empty value
11173       if test "x$TEE" = x; then
11174         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
11175 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
11176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11177 $as_echo_n "checking for TEE... " >&6; }
11178         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11179 $as_echo "disabled" >&6; }
11180       else
11181         # Check if the provided tool contains a complete path.
11182         tool_specified="$TEE"
11183         tool_basename="${tool_specified##*/}"
11184         if test "x$tool_basename" = "x$tool_specified"; then
11185           # A command without a complete path is provided, search $PATH.
11186           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
11187 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
11188           # Extract the first word of "$tool_basename", so it can be a program name with args.
11189 set dummy $tool_basename; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if ${ac_cv_path_TEE+:} false; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   case $TEE in
11196   [\\/]* | ?:[\\/]*)
11197   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
11198   ;;
11199   *)
11200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201 for as_dir in $PATH
11202 do
11203   IFS=$as_save_IFS
11204   test -z "$as_dir" && as_dir=.
11205     for ac_exec_ext in '' $ac_executable_extensions; do
11206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
11208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209     break 2
11210   fi
11211 done
11212   done
11213 IFS=$as_save_IFS
11214 
11215   ;;
11216 esac
11217 fi
11218 TEE=$ac_cv_path_TEE
11219 if test -n "$TEE"; then
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
11221 $as_echo "$TEE" >&6; }
11222 else
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226 
11227 
11228           if test "x$TEE" = x; then
11229             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11230           fi
11231         else
11232           # Otherwise we believe it is a complete path. Use it as it is.
11233           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
11234 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
11235           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
11236 $as_echo_n "checking for TEE... " >&6; }
11237           if test ! -x "$tool_specified"; then
11238             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11239 $as_echo "not found" >&6; }
11240             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
11241           fi
11242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11243 $as_echo "$tool_specified" >&6; }
11244         fi
11245       fi
11246     fi
11247 
11248   fi
11249 
11250 
11251 
11252   if test "x$TEE" = x; then
11253     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
11254   fi
11255 
11256 
11257 
11258 
11259 
11260   # Publish this variable in the help.
11261 
11262 
11263   if [ -z "${TOUCH+x}" ]; then
11264     # The variable is not set by user, try to locate tool using the code snippet
11265     for ac_prog in touch
11266 do
11267   # Extract the first word of "$ac_prog", so it can be a program name with args.
11268 set dummy $ac_prog; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_path_TOUCH+:} false; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274   case $TOUCH in
11275   [\\/]* | ?:[\\/]*)
11276   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11277   ;;
11278   *)
11279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11281 do
11282   IFS=$as_save_IFS
11283   test -z "$as_dir" && as_dir=.
11284     for ac_exec_ext in '' $ac_executable_extensions; do
11285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11288     break 2
11289   fi
11290 done
11291   done
11292 IFS=$as_save_IFS
11293 
11294   ;;
11295 esac
11296 fi
11297 TOUCH=$ac_cv_path_TOUCH
11298 if test -n "$TOUCH"; then
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11300 $as_echo "$TOUCH" >&6; }
11301 else
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305 
11306 
11307   test -n "$TOUCH" && break
11308 done
11309 
11310   else
11311     # The variable is set, but is it from the command line or the environment?
11312 
11313     # Try to remove the string !TOUCH! from our list.
11314     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
11315     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11316       # If it failed, the variable was not from the command line. Ignore it,
11317       # but warn the user (except for BASH, which is always set by the calling BASH).
11318       if test "xTOUCH" != xBASH; then
11319         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
11320 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
11321       fi
11322       # Try to locate tool using the code snippet
11323       for ac_prog in touch
11324 do
11325   # Extract the first word of "$ac_prog", so it can be a program name with args.
11326 set dummy $ac_prog; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_path_TOUCH+:} false; then :
11330   $as_echo_n "(cached) " >&6
11331 else
11332   case $TOUCH in
11333   [\\/]* | ?:[\\/]*)
11334   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11335   ;;
11336   *)
11337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $PATH
11339 do
11340   IFS=$as_save_IFS
11341   test -z "$as_dir" && as_dir=.
11342     for ac_exec_ext in '' $ac_executable_extensions; do
11343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11344     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351 
11352   ;;
11353 esac
11354 fi
11355 TOUCH=$ac_cv_path_TOUCH
11356 if test -n "$TOUCH"; then
11357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11358 $as_echo "$TOUCH" >&6; }
11359 else
11360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11362 fi
11363 
11364 
11365   test -n "$TOUCH" && break
11366 done
11367 
11368     else
11369       # If it succeeded, then it was overridden by the user. We will use it
11370       # for the tool.
11371 
11372       # First remove it from the list of overridden variables, so we can test
11373       # for unknown variables in the end.
11374       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11375 
11376       # Check if we try to supply an empty value
11377       if test "x$TOUCH" = x; then
11378         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
11379 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11381 $as_echo_n "checking for TOUCH... " >&6; }
11382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11383 $as_echo "disabled" >&6; }
11384       else
11385         # Check if the provided tool contains a complete path.
11386         tool_specified="$TOUCH"
11387         tool_basename="${tool_specified##*/}"
11388         if test "x$tool_basename" = "x$tool_specified"; then
11389           # A command without a complete path is provided, search $PATH.
11390           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
11391 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
11392           # Extract the first word of "$tool_basename", so it can be a program name with args.
11393 set dummy $tool_basename; ac_word=$2
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395 $as_echo_n "checking for $ac_word... " >&6; }
11396 if ${ac_cv_path_TOUCH+:} false; then :
11397   $as_echo_n "(cached) " >&6
11398 else
11399   case $TOUCH in
11400   [\\/]* | ?:[\\/]*)
11401   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
11402   ;;
11403   *)
11404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11406 do
11407   IFS=$as_save_IFS
11408   test -z "$as_dir" && as_dir=.
11409     for ac_exec_ext in '' $ac_executable_extensions; do
11410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11411     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
11412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413     break 2
11414   fi
11415 done
11416   done
11417 IFS=$as_save_IFS
11418 
11419   ;;
11420 esac
11421 fi
11422 TOUCH=$ac_cv_path_TOUCH
11423 if test -n "$TOUCH"; then
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
11425 $as_echo "$TOUCH" >&6; }
11426 else
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11429 fi
11430 
11431 
11432           if test "x$TOUCH" = x; then
11433             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11434           fi
11435         else
11436           # Otherwise we believe it is a complete path. Use it as it is.
11437           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
11438 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
11439           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
11440 $as_echo_n "checking for TOUCH... " >&6; }
11441           if test ! -x "$tool_specified"; then
11442             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11443 $as_echo "not found" >&6; }
11444             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
11445           fi
11446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11447 $as_echo "$tool_specified" >&6; }
11448         fi
11449       fi
11450     fi
11451 
11452   fi
11453 
11454 
11455 
11456   if test "x$TOUCH" = x; then
11457     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
11458   fi
11459 
11460 
11461 
11462 
11463 
11464   # Publish this variable in the help.
11465 
11466 
11467   if [ -z "${TR+x}" ]; then
11468     # The variable is not set by user, try to locate tool using the code snippet
11469     for ac_prog in tr
11470 do
11471   # Extract the first word of "$ac_prog", so it can be a program name with args.
11472 set dummy $ac_prog; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_path_TR+:} false; then :
11476   $as_echo_n "(cached) " >&6
11477 else
11478   case $TR in
11479   [\\/]* | ?:[\\/]*)
11480   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11481   ;;
11482   *)
11483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486   IFS=$as_save_IFS
11487   test -z "$as_dir" && as_dir=.
11488     for ac_exec_ext in '' $ac_executable_extensions; do
11489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492     break 2
11493   fi
11494 done
11495   done
11496 IFS=$as_save_IFS
11497 
11498   ;;
11499 esac
11500 fi
11501 TR=$ac_cv_path_TR
11502 if test -n "$TR"; then
11503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11504 $as_echo "$TR" >&6; }
11505 else
11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11508 fi
11509 
11510 
11511   test -n "$TR" && break
11512 done
11513 
11514   else
11515     # The variable is set, but is it from the command line or the environment?
11516 
11517     # Try to remove the string !TR! from our list.
11518     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11519     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11520       # If it failed, the variable was not from the command line. Ignore it,
11521       # but warn the user (except for BASH, which is always set by the calling BASH).
11522       if test "xTR" != xBASH; then
11523         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11524 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11525       fi
11526       # Try to locate tool using the code snippet
11527       for ac_prog in tr
11528 do
11529   # Extract the first word of "$ac_prog", so it can be a program name with args.
11530 set dummy $ac_prog; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_path_TR+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   case $TR in
11537   [\\/]* | ?:[\\/]*)
11538   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11539   ;;
11540   *)
11541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544   IFS=$as_save_IFS
11545   test -z "$as_dir" && as_dir=.
11546     for ac_exec_ext in '' $ac_executable_extensions; do
11547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550     break 2
11551   fi
11552 done
11553   done
11554 IFS=$as_save_IFS
11555 
11556   ;;
11557 esac
11558 fi
11559 TR=$ac_cv_path_TR
11560 if test -n "$TR"; then
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11562 $as_echo "$TR" >&6; }
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567 
11568 
11569   test -n "$TR" && break
11570 done
11571 
11572     else
11573       # If it succeeded, then it was overridden by the user. We will use it
11574       # for the tool.
11575 
11576       # First remove it from the list of overridden variables, so we can test
11577       # for unknown variables in the end.
11578       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11579 
11580       # Check if we try to supply an empty value
11581       if test "x$TR" = x; then
11582         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11583 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11585 $as_echo_n "checking for TR... " >&6; }
11586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11587 $as_echo "disabled" >&6; }
11588       else
11589         # Check if the provided tool contains a complete path.
11590         tool_specified="$TR"
11591         tool_basename="${tool_specified##*/}"
11592         if test "x$tool_basename" = "x$tool_specified"; then
11593           # A command without a complete path is provided, search $PATH.
11594           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11595 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11596           # Extract the first word of "$tool_basename", so it can be a program name with args.
11597 set dummy $tool_basename; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_path_TR+:} false; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   case $TR in
11604   [\\/]* | ?:[\\/]*)
11605   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11606   ;;
11607   *)
11608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611   IFS=$as_save_IFS
11612   test -z "$as_dir" && as_dir=.
11613     for ac_exec_ext in '' $ac_executable_extensions; do
11614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617     break 2
11618   fi
11619 done
11620   done
11621 IFS=$as_save_IFS
11622 
11623   ;;
11624 esac
11625 fi
11626 TR=$ac_cv_path_TR
11627 if test -n "$TR"; then
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11629 $as_echo "$TR" >&6; }
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634 
11635 
11636           if test "x$TR" = x; then
11637             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11638           fi
11639         else
11640           # Otherwise we believe it is a complete path. Use it as it is.
11641           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11642 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11643           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11644 $as_echo_n "checking for TR... " >&6; }
11645           if test ! -x "$tool_specified"; then
11646             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11647 $as_echo "not found" >&6; }
11648             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11649           fi
11650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11651 $as_echo "$tool_specified" >&6; }
11652         fi
11653       fi
11654     fi
11655 
11656   fi
11657 
11658 
11659 
11660   if test "x$TR" = x; then
11661     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11662   fi
11663 
11664 
11665 
11666 
11667 
11668   # Publish this variable in the help.
11669 
11670 
11671   if [ -z "${UNAME+x}" ]; then
11672     # The variable is not set by user, try to locate tool using the code snippet
11673     for ac_prog in uname
11674 do
11675   # Extract the first word of "$ac_prog", so it can be a program name with args.
11676 set dummy $ac_prog; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_UNAME+:} false; then :
11680   $as_echo_n "(cached) " >&6
11681 else
11682   case $UNAME in
11683   [\\/]* | ?:[\\/]*)
11684   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11685   ;;
11686   *)
11687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11689 do
11690   IFS=$as_save_IFS
11691   test -z "$as_dir" && as_dir=.
11692     for ac_exec_ext in '' $ac_executable_extensions; do
11693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696     break 2
11697   fi
11698 done
11699   done
11700 IFS=$as_save_IFS
11701 
11702   ;;
11703 esac
11704 fi
11705 UNAME=$ac_cv_path_UNAME
11706 if test -n "$UNAME"; then
11707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11708 $as_echo "$UNAME" >&6; }
11709 else
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11712 fi
11713 
11714 
11715   test -n "$UNAME" && break
11716 done
11717 
11718   else
11719     # The variable is set, but is it from the command line or the environment?
11720 
11721     # Try to remove the string !UNAME! from our list.
11722     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11723     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11724       # If it failed, the variable was not from the command line. Ignore it,
11725       # but warn the user (except for BASH, which is always set by the calling BASH).
11726       if test "xUNAME" != xBASH; then
11727         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11728 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11729       fi
11730       # Try to locate tool using the code snippet
11731       for ac_prog in uname
11732 do
11733   # Extract the first word of "$ac_prog", so it can be a program name with args.
11734 set dummy $ac_prog; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_path_UNAME+:} false; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   case $UNAME in
11741   [\\/]* | ?:[\\/]*)
11742   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11743   ;;
11744   *)
11745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750     for ac_exec_ext in '' $ac_executable_extensions; do
11751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757   done
11758 IFS=$as_save_IFS
11759 
11760   ;;
11761 esac
11762 fi
11763 UNAME=$ac_cv_path_UNAME
11764 if test -n "$UNAME"; then
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11766 $as_echo "$UNAME" >&6; }
11767 else
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11770 fi
11771 
11772 
11773   test -n "$UNAME" && break
11774 done
11775 
11776     else
11777       # If it succeeded, then it was overridden by the user. We will use it
11778       # for the tool.
11779 
11780       # First remove it from the list of overridden variables, so we can test
11781       # for unknown variables in the end.
11782       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11783 
11784       # Check if we try to supply an empty value
11785       if test "x$UNAME" = x; then
11786         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11787 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11789 $as_echo_n "checking for UNAME... " >&6; }
11790         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11791 $as_echo "disabled" >&6; }
11792       else
11793         # Check if the provided tool contains a complete path.
11794         tool_specified="$UNAME"
11795         tool_basename="${tool_specified##*/}"
11796         if test "x$tool_basename" = "x$tool_specified"; then
11797           # A command without a complete path is provided, search $PATH.
11798           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11799 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11800           # Extract the first word of "$tool_basename", so it can be a program name with args.
11801 set dummy $tool_basename; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_path_UNAME+:} false; then :
11805   $as_echo_n "(cached) " >&6
11806 else
11807   case $UNAME in
11808   [\\/]* | ?:[\\/]*)
11809   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11810   ;;
11811   *)
11812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11814 do
11815   IFS=$as_save_IFS
11816   test -z "$as_dir" && as_dir=.
11817     for ac_exec_ext in '' $ac_executable_extensions; do
11818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821     break 2
11822   fi
11823 done
11824   done
11825 IFS=$as_save_IFS
11826 
11827   ;;
11828 esac
11829 fi
11830 UNAME=$ac_cv_path_UNAME
11831 if test -n "$UNAME"; then
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11833 $as_echo "$UNAME" >&6; }
11834 else
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836 $as_echo "no" >&6; }
11837 fi
11838 
11839 
11840           if test "x$UNAME" = x; then
11841             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11842           fi
11843         else
11844           # Otherwise we believe it is a complete path. Use it as it is.
11845           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11846 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11847           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11848 $as_echo_n "checking for UNAME... " >&6; }
11849           if test ! -x "$tool_specified"; then
11850             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11851 $as_echo "not found" >&6; }
11852             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11853           fi
11854           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11855 $as_echo "$tool_specified" >&6; }
11856         fi
11857       fi
11858     fi
11859 
11860   fi
11861 
11862 
11863 
11864   if test "x$UNAME" = x; then
11865     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11866   fi
11867 
11868 
11869 
11870 
11871 
11872   # Publish this variable in the help.
11873 
11874 
11875   if [ -z "${UNIQ+x}" ]; then
11876     # The variable is not set by user, try to locate tool using the code snippet
11877     for ac_prog in uniq
11878 do
11879   # Extract the first word of "$ac_prog", so it can be a program name with args.
11880 set dummy $ac_prog; ac_word=$2
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882 $as_echo_n "checking for $ac_word... " >&6; }
11883 if ${ac_cv_path_UNIQ+:} false; then :
11884   $as_echo_n "(cached) " >&6
11885 else
11886   case $UNIQ in
11887   [\\/]* | ?:[\\/]*)
11888   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11889   ;;
11890   *)
11891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894   IFS=$as_save_IFS
11895   test -z "$as_dir" && as_dir=.
11896     for ac_exec_ext in '' $ac_executable_extensions; do
11897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900     break 2
11901   fi
11902 done
11903   done
11904 IFS=$as_save_IFS
11905 
11906   ;;
11907 esac
11908 fi
11909 UNIQ=$ac_cv_path_UNIQ
11910 if test -n "$UNIQ"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11912 $as_echo "$UNIQ" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917 
11918 
11919   test -n "$UNIQ" && break
11920 done
11921 
11922   else
11923     # The variable is set, but is it from the command line or the environment?
11924 
11925     # Try to remove the string !UNIQ! from our list.
11926     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11927     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11928       # If it failed, the variable was not from the command line. Ignore it,
11929       # but warn the user (except for BASH, which is always set by the calling BASH).
11930       if test "xUNIQ" != xBASH; then
11931         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11932 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11933       fi
11934       # Try to locate tool using the code snippet
11935       for ac_prog in uniq
11936 do
11937   # Extract the first word of "$ac_prog", so it can be a program name with args.
11938 set dummy $ac_prog; ac_word=$2
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940 $as_echo_n "checking for $ac_word... " >&6; }
11941 if ${ac_cv_path_UNIQ+:} false; then :
11942   $as_echo_n "(cached) " >&6
11943 else
11944   case $UNIQ in
11945   [\\/]* | ?:[\\/]*)
11946   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11947   ;;
11948   *)
11949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954     for ac_exec_ext in '' $ac_executable_extensions; do
11955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961   done
11962 IFS=$as_save_IFS
11963 
11964   ;;
11965 esac
11966 fi
11967 UNIQ=$ac_cv_path_UNIQ
11968 if test -n "$UNIQ"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11970 $as_echo "$UNIQ" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975 
11976 
11977   test -n "$UNIQ" && break
11978 done
11979 
11980     else
11981       # If it succeeded, then it was overridden by the user. We will use it
11982       # for the tool.
11983 
11984       # First remove it from the list of overridden variables, so we can test
11985       # for unknown variables in the end.
11986       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11987 
11988       # Check if we try to supply an empty value
11989       if test "x$UNIQ" = x; then
11990         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11991 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11993 $as_echo_n "checking for UNIQ... " >&6; }
11994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11995 $as_echo "disabled" >&6; }
11996       else
11997         # Check if the provided tool contains a complete path.
11998         tool_specified="$UNIQ"
11999         tool_basename="${tool_specified##*/}"
12000         if test "x$tool_basename" = "x$tool_specified"; then
12001           # A command without a complete path is provided, search $PATH.
12002           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
12003 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
12004           # Extract the first word of "$tool_basename", so it can be a program name with args.
12005 set dummy $tool_basename; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if ${ac_cv_path_UNIQ+:} false; then :
12009   $as_echo_n "(cached) " >&6
12010 else
12011   case $UNIQ in
12012   [\\/]* | ?:[\\/]*)
12013   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
12014   ;;
12015   *)
12016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019   IFS=$as_save_IFS
12020   test -z "$as_dir" && as_dir=.
12021     for ac_exec_ext in '' $ac_executable_extensions; do
12022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
12024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12025     break 2
12026   fi
12027 done
12028   done
12029 IFS=$as_save_IFS
12030 
12031   ;;
12032 esac
12033 fi
12034 UNIQ=$ac_cv_path_UNIQ
12035 if test -n "$UNIQ"; then
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
12037 $as_echo "$UNIQ" >&6; }
12038 else
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 fi
12042 
12043 
12044           if test "x$UNIQ" = x; then
12045             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12046           fi
12047         else
12048           # Otherwise we believe it is a complete path. Use it as it is.
12049           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
12050 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
12051           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
12052 $as_echo_n "checking for UNIQ... " >&6; }
12053           if test ! -x "$tool_specified"; then
12054             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12055 $as_echo "not found" >&6; }
12056             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
12057           fi
12058           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12059 $as_echo "$tool_specified" >&6; }
12060         fi
12061       fi
12062     fi
12063 
12064   fi
12065 
12066 
12067 
12068   if test "x$UNIQ" = x; then
12069     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
12070   fi
12071 
12072 
12073 
12074 
12075 
12076   # Publish this variable in the help.
12077 
12078 
12079   if [ -z "${WC+x}" ]; then
12080     # The variable is not set by user, try to locate tool using the code snippet
12081     for ac_prog in wc
12082 do
12083   # Extract the first word of "$ac_prog", so it can be a program name with args.
12084 set dummy $ac_prog; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_path_WC+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   case $WC in
12091   [\\/]* | ?:[\\/]*)
12092   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12093   ;;
12094   *)
12095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12097 do
12098   IFS=$as_save_IFS
12099   test -z "$as_dir" && as_dir=.
12100     for ac_exec_ext in '' $ac_executable_extensions; do
12101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12104     break 2
12105   fi
12106 done
12107   done
12108 IFS=$as_save_IFS
12109 
12110   ;;
12111 esac
12112 fi
12113 WC=$ac_cv_path_WC
12114 if test -n "$WC"; then
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12116 $as_echo "$WC" >&6; }
12117 else
12118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12120 fi
12121 
12122 
12123   test -n "$WC" && break
12124 done
12125 
12126   else
12127     # The variable is set, but is it from the command line or the environment?
12128 
12129     # Try to remove the string !WC! from our list.
12130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
12131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12132       # If it failed, the variable was not from the command line. Ignore it,
12133       # but warn the user (except for BASH, which is always set by the calling BASH).
12134       if test "xWC" != xBASH; then
12135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
12136 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
12137       fi
12138       # Try to locate tool using the code snippet
12139       for ac_prog in wc
12140 do
12141   # Extract the first word of "$ac_prog", so it can be a program name with args.
12142 set dummy $ac_prog; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if ${ac_cv_path_WC+:} false; then :
12146   $as_echo_n "(cached) " >&6
12147 else
12148   case $WC in
12149   [\\/]* | ?:[\\/]*)
12150   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12151   ;;
12152   *)
12153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165   done
12166 IFS=$as_save_IFS
12167 
12168   ;;
12169 esac
12170 fi
12171 WC=$ac_cv_path_WC
12172 if test -n "$WC"; then
12173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12174 $as_echo "$WC" >&6; }
12175 else
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179 
12180 
12181   test -n "$WC" && break
12182 done
12183 
12184     else
12185       # If it succeeded, then it was overridden by the user. We will use it
12186       # for the tool.
12187 
12188       # First remove it from the list of overridden variables, so we can test
12189       # for unknown variables in the end.
12190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12191 
12192       # Check if we try to supply an empty value
12193       if test "x$WC" = x; then
12194         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
12195 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
12196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12197 $as_echo_n "checking for WC... " >&6; }
12198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12199 $as_echo "disabled" >&6; }
12200       else
12201         # Check if the provided tool contains a complete path.
12202         tool_specified="$WC"
12203         tool_basename="${tool_specified##*/}"
12204         if test "x$tool_basename" = "x$tool_specified"; then
12205           # A command without a complete path is provided, search $PATH.
12206           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
12207 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
12208           # Extract the first word of "$tool_basename", so it can be a program name with args.
12209 set dummy $tool_basename; ac_word=$2
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12211 $as_echo_n "checking for $ac_word... " >&6; }
12212 if ${ac_cv_path_WC+:} false; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   case $WC in
12216   [\\/]* | ?:[\\/]*)
12217   ac_cv_path_WC="$WC" # Let the user override the test with a path.
12218   ;;
12219   *)
12220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12222 do
12223   IFS=$as_save_IFS
12224   test -z "$as_dir" && as_dir=.
12225     for ac_exec_ext in '' $ac_executable_extensions; do
12226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
12228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12229     break 2
12230   fi
12231 done
12232   done
12233 IFS=$as_save_IFS
12234 
12235   ;;
12236 esac
12237 fi
12238 WC=$ac_cv_path_WC
12239 if test -n "$WC"; then
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
12241 $as_echo "$WC" >&6; }
12242 else
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 fi
12246 
12247 
12248           if test "x$WC" = x; then
12249             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12250           fi
12251         else
12252           # Otherwise we believe it is a complete path. Use it as it is.
12253           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
12254 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
12255           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
12256 $as_echo_n "checking for WC... " >&6; }
12257           if test ! -x "$tool_specified"; then
12258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12259 $as_echo "not found" >&6; }
12260             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
12261           fi
12262           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12263 $as_echo "$tool_specified" >&6; }
12264         fi
12265       fi
12266     fi
12267 
12268   fi
12269 
12270 
12271 
12272   if test "x$WC" = x; then
12273     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
12274   fi
12275 
12276 
12277 
12278 
12279 
12280   # Publish this variable in the help.
12281 
12282 
12283   if [ -z "${WHICH+x}" ]; then
12284     # The variable is not set by user, try to locate tool using the code snippet
12285     for ac_prog in which
12286 do
12287   # Extract the first word of "$ac_prog", so it can be a program name with args.
12288 set dummy $ac_prog; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if ${ac_cv_path_WHICH+:} false; then :
12292   $as_echo_n "(cached) " >&6
12293 else
12294   case $WHICH in
12295   [\\/]* | ?:[\\/]*)
12296   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12297   ;;
12298   *)
12299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12301 do
12302   IFS=$as_save_IFS
12303   test -z "$as_dir" && as_dir=.
12304     for ac_exec_ext in '' $ac_executable_extensions; do
12305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12306     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308     break 2
12309   fi
12310 done
12311   done
12312 IFS=$as_save_IFS
12313 
12314   ;;
12315 esac
12316 fi
12317 WHICH=$ac_cv_path_WHICH
12318 if test -n "$WHICH"; then
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12320 $as_echo "$WHICH" >&6; }
12321 else
12322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323 $as_echo "no" >&6; }
12324 fi
12325 
12326 
12327   test -n "$WHICH" && break
12328 done
12329 
12330   else
12331     # The variable is set, but is it from the command line or the environment?
12332 
12333     # Try to remove the string !WHICH! from our list.
12334     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
12335     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12336       # If it failed, the variable was not from the command line. Ignore it,
12337       # but warn the user (except for BASH, which is always set by the calling BASH).
12338       if test "xWHICH" != xBASH; then
12339         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
12340 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
12341       fi
12342       # Try to locate tool using the code snippet
12343       for ac_prog in which
12344 do
12345   # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_path_WHICH+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352   case $WHICH in
12353   [\\/]* | ?:[\\/]*)
12354   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12355   ;;
12356   *)
12357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358 for as_dir in $PATH
12359 do
12360   IFS=$as_save_IFS
12361   test -z "$as_dir" && as_dir=.
12362     for ac_exec_ext in '' $ac_executable_extensions; do
12363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12364     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366     break 2
12367   fi
12368 done
12369   done
12370 IFS=$as_save_IFS
12371 
12372   ;;
12373 esac
12374 fi
12375 WHICH=$ac_cv_path_WHICH
12376 if test -n "$WHICH"; then
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12378 $as_echo "$WHICH" >&6; }
12379 else
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12382 fi
12383 
12384 
12385   test -n "$WHICH" && break
12386 done
12387 
12388     else
12389       # If it succeeded, then it was overridden by the user. We will use it
12390       # for the tool.
12391 
12392       # First remove it from the list of overridden variables, so we can test
12393       # for unknown variables in the end.
12394       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12395 
12396       # Check if we try to supply an empty value
12397       if test "x$WHICH" = x; then
12398         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
12399 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
12400         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12401 $as_echo_n "checking for WHICH... " >&6; }
12402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12403 $as_echo "disabled" >&6; }
12404       else
12405         # Check if the provided tool contains a complete path.
12406         tool_specified="$WHICH"
12407         tool_basename="${tool_specified##*/}"
12408         if test "x$tool_basename" = "x$tool_specified"; then
12409           # A command without a complete path is provided, search $PATH.
12410           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
12411 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
12412           # Extract the first word of "$tool_basename", so it can be a program name with args.
12413 set dummy $tool_basename; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if ${ac_cv_path_WHICH+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419   case $WHICH in
12420   [\\/]* | ?:[\\/]*)
12421   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
12422   ;;
12423   *)
12424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425 for as_dir in $PATH
12426 do
12427   IFS=$as_save_IFS
12428   test -z "$as_dir" && as_dir=.
12429     for ac_exec_ext in '' $ac_executable_extensions; do
12430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12431     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
12432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433     break 2
12434   fi
12435 done
12436   done
12437 IFS=$as_save_IFS
12438 
12439   ;;
12440 esac
12441 fi
12442 WHICH=$ac_cv_path_WHICH
12443 if test -n "$WHICH"; then
12444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
12445 $as_echo "$WHICH" >&6; }
12446 else
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450 
12451 
12452           if test "x$WHICH" = x; then
12453             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12454           fi
12455         else
12456           # Otherwise we believe it is a complete path. Use it as it is.
12457           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
12458 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
12459           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
12460 $as_echo_n "checking for WHICH... " >&6; }
12461           if test ! -x "$tool_specified"; then
12462             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12463 $as_echo "not found" >&6; }
12464             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
12465           fi
12466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12467 $as_echo "$tool_specified" >&6; }
12468         fi
12469       fi
12470     fi
12471 
12472   fi
12473 
12474 
12475 
12476   if test "x$WHICH" = x; then
12477     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12478   fi
12479 
12480 
12481 
12482 
12483 
12484   # Publish this variable in the help.
12485 
12486 
12487   if [ -z "${XARGS+x}" ]; then
12488     # The variable is not set by user, try to locate tool using the code snippet
12489     for ac_prog in xargs
12490 do
12491   # Extract the first word of "$ac_prog", so it can be a program name with args.
12492 set dummy $ac_prog; ac_word=$2
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494 $as_echo_n "checking for $ac_word... " >&6; }
12495 if ${ac_cv_path_XARGS+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   case $XARGS in
12499   [\\/]* | ?:[\\/]*)
12500   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12501   ;;
12502   *)
12503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12505 do
12506   IFS=$as_save_IFS
12507   test -z "$as_dir" && as_dir=.
12508     for ac_exec_ext in '' $ac_executable_extensions; do
12509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512     break 2
12513   fi
12514 done
12515   done
12516 IFS=$as_save_IFS
12517 
12518   ;;
12519 esac
12520 fi
12521 XARGS=$ac_cv_path_XARGS
12522 if test -n "$XARGS"; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12524 $as_echo "$XARGS" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529 
12530 
12531   test -n "$XARGS" && break
12532 done
12533 
12534   else
12535     # The variable is set, but is it from the command line or the environment?
12536 
12537     # Try to remove the string !XARGS! from our list.
12538     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12539     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12540       # If it failed, the variable was not from the command line. Ignore it,
12541       # but warn the user (except for BASH, which is always set by the calling BASH).
12542       if test "xXARGS" != xBASH; then
12543         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12544 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12545       fi
12546       # Try to locate tool using the code snippet
12547       for ac_prog in xargs
12548 do
12549   # Extract the first word of "$ac_prog", so it can be a program name with args.
12550 set dummy $ac_prog; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if ${ac_cv_path_XARGS+:} false; then :
12554   $as_echo_n "(cached) " >&6
12555 else
12556   case $XARGS in
12557   [\\/]* | ?:[\\/]*)
12558   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12559   ;;
12560   *)
12561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $PATH
12563 do
12564   IFS=$as_save_IFS
12565   test -z "$as_dir" && as_dir=.
12566     for ac_exec_ext in '' $ac_executable_extensions; do
12567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12568     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570     break 2
12571   fi
12572 done
12573   done
12574 IFS=$as_save_IFS
12575 
12576   ;;
12577 esac
12578 fi
12579 XARGS=$ac_cv_path_XARGS
12580 if test -n "$XARGS"; then
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12582 $as_echo "$XARGS" >&6; }
12583 else
12584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12586 fi
12587 
12588 
12589   test -n "$XARGS" && break
12590 done
12591 
12592     else
12593       # If it succeeded, then it was overridden by the user. We will use it
12594       # for the tool.
12595 
12596       # First remove it from the list of overridden variables, so we can test
12597       # for unknown variables in the end.
12598       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12599 
12600       # Check if we try to supply an empty value
12601       if test "x$XARGS" = x; then
12602         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12603 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12605 $as_echo_n "checking for XARGS... " >&6; }
12606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12607 $as_echo "disabled" >&6; }
12608       else
12609         # Check if the provided tool contains a complete path.
12610         tool_specified="$XARGS"
12611         tool_basename="${tool_specified##*/}"
12612         if test "x$tool_basename" = "x$tool_specified"; then
12613           # A command without a complete path is provided, search $PATH.
12614           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12615 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12616           # Extract the first word of "$tool_basename", so it can be a program name with args.
12617 set dummy $tool_basename; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_path_XARGS+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   case $XARGS in
12624   [\\/]* | ?:[\\/]*)
12625   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12626   ;;
12627   *)
12628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631   IFS=$as_save_IFS
12632   test -z "$as_dir" && as_dir=.
12633     for ac_exec_ext in '' $ac_executable_extensions; do
12634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637     break 2
12638   fi
12639 done
12640   done
12641 IFS=$as_save_IFS
12642 
12643   ;;
12644 esac
12645 fi
12646 XARGS=$ac_cv_path_XARGS
12647 if test -n "$XARGS"; then
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12649 $as_echo "$XARGS" >&6; }
12650 else
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12653 fi
12654 
12655 
12656           if test "x$XARGS" = x; then
12657             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12658           fi
12659         else
12660           # Otherwise we believe it is a complete path. Use it as it is.
12661           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12662 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12663           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12664 $as_echo_n "checking for XARGS... " >&6; }
12665           if test ! -x "$tool_specified"; then
12666             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12667 $as_echo "not found" >&6; }
12668             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12669           fi
12670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12671 $as_echo "$tool_specified" >&6; }
12672         fi
12673       fi
12674     fi
12675 
12676   fi
12677 
12678 
12679 
12680   if test "x$XARGS" = x; then
12681     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12682   fi
12683 
12684 
12685 
12686   # Then required tools that require some special treatment.
12687 
12688 
12689   # Publish this variable in the help.
12690 
12691 
12692   if [ -z "${AWK+x}" ]; then
12693     # The variable is not set by user, try to locate tool using the code snippet
12694     for ac_prog in gawk mawk nawk awk
12695 do
12696   # Extract the first word of "$ac_prog", so it can be a program name with args.
12697 set dummy $ac_prog; ac_word=$2
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 $as_echo_n "checking for $ac_word... " >&6; }
12700 if ${ac_cv_prog_AWK+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   if test -n "$AWK"; then
12704   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12705 else
12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707 for as_dir in $PATH
12708 do
12709   IFS=$as_save_IFS
12710   test -z "$as_dir" && as_dir=.
12711     for ac_exec_ext in '' $ac_executable_extensions; do
12712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713     ac_cv_prog_AWK="$ac_prog"
12714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715     break 2
12716   fi
12717 done
12718   done
12719 IFS=$as_save_IFS
12720 
12721 fi
12722 fi
12723 AWK=$ac_cv_prog_AWK
12724 if test -n "$AWK"; then
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12726 $as_echo "$AWK" >&6; }
12727 else
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12730 fi
12731 
12732 
12733   test -n "$AWK" && break
12734 done
12735 
12736   else
12737     # The variable is set, but is it from the command line or the environment?
12738 
12739     # Try to remove the string !AWK! from our list.
12740     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12741     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12742       # If it failed, the variable was not from the command line. Ignore it,
12743       # but warn the user (except for BASH, which is always set by the calling BASH).
12744       if test "xAWK" != xBASH; then
12745         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12746 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12747       fi
12748       # Try to locate tool using the code snippet
12749       for ac_prog in gawk mawk nawk awk
12750 do
12751   # Extract the first word of "$ac_prog", so it can be a program name with args.
12752 set dummy $ac_prog; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_prog_AWK+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   if test -n "$AWK"; then
12759   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12760 else
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12763 do
12764   IFS=$as_save_IFS
12765   test -z "$as_dir" && as_dir=.
12766     for ac_exec_ext in '' $ac_executable_extensions; do
12767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12768     ac_cv_prog_AWK="$ac_prog"
12769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770     break 2
12771   fi
12772 done
12773   done
12774 IFS=$as_save_IFS
12775 
12776 fi
12777 fi
12778 AWK=$ac_cv_prog_AWK
12779 if test -n "$AWK"; then
12780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12781 $as_echo "$AWK" >&6; }
12782 else
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12785 fi
12786 
12787 
12788   test -n "$AWK" && break
12789 done
12790 
12791     else
12792       # If it succeeded, then it was overridden by the user. We will use it
12793       # for the tool.
12794 
12795       # First remove it from the list of overridden variables, so we can test
12796       # for unknown variables in the end.
12797       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12798 
12799       # Check if we try to supply an empty value
12800       if test "x$AWK" = x; then
12801         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12802 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12804 $as_echo_n "checking for AWK... " >&6; }
12805         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12806 $as_echo "disabled" >&6; }
12807       else
12808         # Check if the provided tool contains a complete path.
12809         tool_specified="$AWK"
12810         tool_basename="${tool_specified##*/}"
12811         if test "x$tool_basename" = "x$tool_specified"; then
12812           # A command without a complete path is provided, search $PATH.
12813           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12814 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12815           # Extract the first word of "$tool_basename", so it can be a program name with args.
12816 set dummy $tool_basename; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_path_AWK+:} false; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822   case $AWK in
12823   [\\/]* | ?:[\\/]*)
12824   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12825   ;;
12826   *)
12827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832     for ac_exec_ext in '' $ac_executable_extensions; do
12833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839   done
12840 IFS=$as_save_IFS
12841 
12842   ;;
12843 esac
12844 fi
12845 AWK=$ac_cv_path_AWK
12846 if test -n "$AWK"; then
12847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12848 $as_echo "$AWK" >&6; }
12849 else
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853 
12854 
12855           if test "x$AWK" = x; then
12856             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12857           fi
12858         else
12859           # Otherwise we believe it is a complete path. Use it as it is.
12860           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12861 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12862           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12863 $as_echo_n "checking for AWK... " >&6; }
12864           if test ! -x "$tool_specified"; then
12865             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12866 $as_echo "not found" >&6; }
12867             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12868           fi
12869           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12870 $as_echo "$tool_specified" >&6; }
12871         fi
12872       fi
12873     fi
12874 
12875   fi
12876 
12877 
12878   if test "x$AWK" = x; then
12879     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12880   fi
12881 
12882 
12883 
12884 
12885   # Publish this variable in the help.
12886 
12887 
12888   if [ -z "${GREP+x}" ]; then
12889     # The variable is not set by user, try to locate tool using the code snippet
12890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12892 if ${ac_cv_path_GREP+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   if test -z "$GREP"; then
12896   ac_path_GREP_found=false
12897   # Loop through the user's path and test for each of PROGNAME-LIST
12898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12900 do
12901   IFS=$as_save_IFS
12902   test -z "$as_dir" && as_dir=.
12903     for ac_prog in grep ggrep; do
12904     for ac_exec_ext in '' $ac_executable_extensions; do
12905       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12906       as_fn_executable_p "$ac_path_GREP" || continue
12907 # Check for GNU ac_path_GREP and select it if it is found.
12908   # Check for GNU $ac_path_GREP
12909 case `"$ac_path_GREP" --version 2>&1` in
12910 *GNU*)
12911   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12912 *)
12913   ac_count=0
12914   $as_echo_n 0123456789 >"conftest.in"
12915   while :
12916   do
12917     cat "conftest.in" "conftest.in" >"conftest.tmp"
12918     mv "conftest.tmp" "conftest.in"
12919     cp "conftest.in" "conftest.nl"
12920     $as_echo 'GREP' >> "conftest.nl"
12921     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12922     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12923     as_fn_arith $ac_count + 1 && ac_count=$as_val
12924     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12925       # Best one so far, save it but keep looking for a better one
12926       ac_cv_path_GREP="$ac_path_GREP"
12927       ac_path_GREP_max=$ac_count
12928     fi
12929     # 10*(2^10) chars as input seems more than enough
12930     test $ac_count -gt 10 && break
12931   done
12932   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12933 esac
12934 
12935       $ac_path_GREP_found && break 3
12936     done
12937   done
12938   done
12939 IFS=$as_save_IFS
12940   if test -z "$ac_cv_path_GREP"; then
12941     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12942   fi
12943 else
12944   ac_cv_path_GREP=$GREP
12945 fi
12946 
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12949 $as_echo "$ac_cv_path_GREP" >&6; }
12950  GREP="$ac_cv_path_GREP"
12951 
12952 
12953   else
12954     # The variable is set, but is it from the command line or the environment?
12955 
12956     # Try to remove the string !GREP! from our list.
12957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12959       # If it failed, the variable was not from the command line. Ignore it,
12960       # but warn the user (except for BASH, which is always set by the calling BASH).
12961       if test "xGREP" != xBASH; then
12962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12963 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12964       fi
12965       # Try to locate tool using the code snippet
12966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12967 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12968 if ${ac_cv_path_GREP+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   if test -z "$GREP"; then
12972   ac_path_GREP_found=false
12973   # Loop through the user's path and test for each of PROGNAME-LIST
12974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12976 do
12977   IFS=$as_save_IFS
12978   test -z "$as_dir" && as_dir=.
12979     for ac_prog in grep ggrep; do
12980     for ac_exec_ext in '' $ac_executable_extensions; do
12981       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12982       as_fn_executable_p "$ac_path_GREP" || continue
12983 # Check for GNU ac_path_GREP and select it if it is found.
12984   # Check for GNU $ac_path_GREP
12985 case `"$ac_path_GREP" --version 2>&1` in
12986 *GNU*)
12987   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12988 *)
12989   ac_count=0
12990   $as_echo_n 0123456789 >"conftest.in"
12991   while :
12992   do
12993     cat "conftest.in" "conftest.in" >"conftest.tmp"
12994     mv "conftest.tmp" "conftest.in"
12995     cp "conftest.in" "conftest.nl"
12996     $as_echo 'GREP' >> "conftest.nl"
12997     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12999     as_fn_arith $ac_count + 1 && ac_count=$as_val
13000     if test $ac_count -gt ${ac_path_GREP_max-0}; then
13001       # Best one so far, save it but keep looking for a better one
13002       ac_cv_path_GREP="$ac_path_GREP"
13003       ac_path_GREP_max=$ac_count
13004     fi
13005     # 10*(2^10) chars as input seems more than enough
13006     test $ac_count -gt 10 && break
13007   done
13008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13009 esac
13010 
13011       $ac_path_GREP_found && break 3
13012     done
13013   done
13014   done
13015 IFS=$as_save_IFS
13016   if test -z "$ac_cv_path_GREP"; then
13017     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13018   fi
13019 else
13020   ac_cv_path_GREP=$GREP
13021 fi
13022 
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
13025 $as_echo "$ac_cv_path_GREP" >&6; }
13026  GREP="$ac_cv_path_GREP"
13027 
13028 
13029     else
13030       # If it succeeded, then it was overridden by the user. We will use it
13031       # for the tool.
13032 
13033       # First remove it from the list of overridden variables, so we can test
13034       # for unknown variables in the end.
13035       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13036 
13037       # Check if we try to supply an empty value
13038       if test "x$GREP" = x; then
13039         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
13040 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
13041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13042 $as_echo_n "checking for GREP... " >&6; }
13043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13044 $as_echo "disabled" >&6; }
13045       else
13046         # Check if the provided tool contains a complete path.
13047         tool_specified="$GREP"
13048         tool_basename="${tool_specified##*/}"
13049         if test "x$tool_basename" = "x$tool_specified"; then
13050           # A command without a complete path is provided, search $PATH.
13051           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
13052 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
13053           # Extract the first word of "$tool_basename", so it can be a program name with args.
13054 set dummy $tool_basename; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if ${ac_cv_path_GREP+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   case $GREP in
13061   [\\/]* | ?:[\\/]*)
13062   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
13063   ;;
13064   *)
13065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068   IFS=$as_save_IFS
13069   test -z "$as_dir" && as_dir=.
13070     for ac_exec_ext in '' $ac_executable_extensions; do
13071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
13073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074     break 2
13075   fi
13076 done
13077   done
13078 IFS=$as_save_IFS
13079 
13080   ;;
13081 esac
13082 fi
13083 GREP=$ac_cv_path_GREP
13084 if test -n "$GREP"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
13086 $as_echo "$GREP" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091 
13092 
13093           if test "x$GREP" = x; then
13094             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13095           fi
13096         else
13097           # Otherwise we believe it is a complete path. Use it as it is.
13098           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
13099 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
13100           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
13101 $as_echo_n "checking for GREP... " >&6; }
13102           if test ! -x "$tool_specified"; then
13103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13104 $as_echo "not found" >&6; }
13105             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13106           fi
13107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13108 $as_echo "$tool_specified" >&6; }
13109         fi
13110       fi
13111     fi
13112 
13113   fi
13114 
13115 
13116   if test "x$GREP" = x; then
13117     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
13118   fi
13119 
13120 
13121 
13122 
13123   # Publish this variable in the help.
13124 
13125 
13126   if [ -z "${EGREP+x}" ]; then
13127     # The variable is not set by user, try to locate tool using the code snippet
13128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13129 $as_echo_n "checking for egrep... " >&6; }
13130 if ${ac_cv_path_EGREP+:} false; then :
13131   $as_echo_n "(cached) " >&6
13132 else
13133   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13134    then ac_cv_path_EGREP="$GREP -E"
13135    else
13136      if test -z "$EGREP"; then
13137   ac_path_EGREP_found=false
13138   # Loop through the user's path and test for each of PROGNAME-LIST
13139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13141 do
13142   IFS=$as_save_IFS
13143   test -z "$as_dir" && as_dir=.
13144     for ac_prog in egrep; do
13145     for ac_exec_ext in '' $ac_executable_extensions; do
13146       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13147       as_fn_executable_p "$ac_path_EGREP" || continue
13148 # Check for GNU ac_path_EGREP and select it if it is found.
13149   # Check for GNU $ac_path_EGREP
13150 case `"$ac_path_EGREP" --version 2>&1` in
13151 *GNU*)
13152   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13153 *)
13154   ac_count=0
13155   $as_echo_n 0123456789 >"conftest.in"
13156   while :
13157   do
13158     cat "conftest.in" "conftest.in" >"conftest.tmp"
13159     mv "conftest.tmp" "conftest.in"
13160     cp "conftest.in" "conftest.nl"
13161     $as_echo 'EGREP' >> "conftest.nl"
13162     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13163     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13164     as_fn_arith $ac_count + 1 && ac_count=$as_val
13165     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13166       # Best one so far, save it but keep looking for a better one
13167       ac_cv_path_EGREP="$ac_path_EGREP"
13168       ac_path_EGREP_max=$ac_count
13169     fi
13170     # 10*(2^10) chars as input seems more than enough
13171     test $ac_count -gt 10 && break
13172   done
13173   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13174 esac
13175 
13176       $ac_path_EGREP_found && break 3
13177     done
13178   done
13179   done
13180 IFS=$as_save_IFS
13181   if test -z "$ac_cv_path_EGREP"; then
13182     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13183   fi
13184 else
13185   ac_cv_path_EGREP=$EGREP
13186 fi
13187 
13188    fi
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13191 $as_echo "$ac_cv_path_EGREP" >&6; }
13192  EGREP="$ac_cv_path_EGREP"
13193 
13194 
13195   else
13196     # The variable is set, but is it from the command line or the environment?
13197 
13198     # Try to remove the string !EGREP! from our list.
13199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
13200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13201       # If it failed, the variable was not from the command line. Ignore it,
13202       # but warn the user (except for BASH, which is always set by the calling BASH).
13203       if test "xEGREP" != xBASH; then
13204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
13205 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
13206       fi
13207       # Try to locate tool using the code snippet
13208       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13209 $as_echo_n "checking for egrep... " >&6; }
13210 if ${ac_cv_path_EGREP+:} false; then :
13211   $as_echo_n "(cached) " >&6
13212 else
13213   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13214    then ac_cv_path_EGREP="$GREP -E"
13215    else
13216      if test -z "$EGREP"; then
13217   ac_path_EGREP_found=false
13218   # Loop through the user's path and test for each of PROGNAME-LIST
13219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13221 do
13222   IFS=$as_save_IFS
13223   test -z "$as_dir" && as_dir=.
13224     for ac_prog in egrep; do
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
13227       as_fn_executable_p "$ac_path_EGREP" || continue
13228 # Check for GNU ac_path_EGREP and select it if it is found.
13229   # Check for GNU $ac_path_EGREP
13230 case `"$ac_path_EGREP" --version 2>&1` in
13231 *GNU*)
13232   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13233 *)
13234   ac_count=0
13235   $as_echo_n 0123456789 >"conftest.in"
13236   while :
13237   do
13238     cat "conftest.in" "conftest.in" >"conftest.tmp"
13239     mv "conftest.tmp" "conftest.in"
13240     cp "conftest.in" "conftest.nl"
13241     $as_echo 'EGREP' >> "conftest.nl"
13242     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13243     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13244     as_fn_arith $ac_count + 1 && ac_count=$as_val
13245     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13246       # Best one so far, save it but keep looking for a better one
13247       ac_cv_path_EGREP="$ac_path_EGREP"
13248       ac_path_EGREP_max=$ac_count
13249     fi
13250     # 10*(2^10) chars as input seems more than enough
13251     test $ac_count -gt 10 && break
13252   done
13253   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13254 esac
13255 
13256       $ac_path_EGREP_found && break 3
13257     done
13258   done
13259   done
13260 IFS=$as_save_IFS
13261   if test -z "$ac_cv_path_EGREP"; then
13262     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13263   fi
13264 else
13265   ac_cv_path_EGREP=$EGREP
13266 fi
13267 
13268    fi
13269 fi
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13271 $as_echo "$ac_cv_path_EGREP" >&6; }
13272  EGREP="$ac_cv_path_EGREP"
13273 
13274 
13275     else
13276       # If it succeeded, then it was overridden by the user. We will use it
13277       # for the tool.
13278 
13279       # First remove it from the list of overridden variables, so we can test
13280       # for unknown variables in the end.
13281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13282 
13283       # Check if we try to supply an empty value
13284       if test "x$EGREP" = x; then
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
13286 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
13287         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13288 $as_echo_n "checking for EGREP... " >&6; }
13289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13290 $as_echo "disabled" >&6; }
13291       else
13292         # Check if the provided tool contains a complete path.
13293         tool_specified="$EGREP"
13294         tool_basename="${tool_specified##*/}"
13295         if test "x$tool_basename" = "x$tool_specified"; then
13296           # A command without a complete path is provided, search $PATH.
13297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
13298 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
13299           # Extract the first word of "$tool_basename", so it can be a program name with args.
13300 set dummy $tool_basename; ac_word=$2
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302 $as_echo_n "checking for $ac_word... " >&6; }
13303 if ${ac_cv_path_EGREP+:} false; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   case $EGREP in
13307   [\\/]* | ?:[\\/]*)
13308   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
13309   ;;
13310   *)
13311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314   IFS=$as_save_IFS
13315   test -z "$as_dir" && as_dir=.
13316     for ac_exec_ext in '' $ac_executable_extensions; do
13317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
13319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320     break 2
13321   fi
13322 done
13323   done
13324 IFS=$as_save_IFS
13325 
13326   ;;
13327 esac
13328 fi
13329 EGREP=$ac_cv_path_EGREP
13330 if test -n "$EGREP"; then
13331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
13332 $as_echo "$EGREP" >&6; }
13333 else
13334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13336 fi
13337 
13338 
13339           if test "x$EGREP" = x; then
13340             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13341           fi
13342         else
13343           # Otherwise we believe it is a complete path. Use it as it is.
13344           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
13345 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
13346           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
13347 $as_echo_n "checking for EGREP... " >&6; }
13348           if test ! -x "$tool_specified"; then
13349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13350 $as_echo "not found" >&6; }
13351             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13352           fi
13353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13354 $as_echo "$tool_specified" >&6; }
13355         fi
13356       fi
13357     fi
13358 
13359   fi
13360 
13361 
13362   if test "x$EGREP" = x; then
13363     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
13364   fi
13365 
13366 
13367 
13368 
13369   # Publish this variable in the help.
13370 
13371 
13372   if [ -z "${FGREP+x}" ]; then
13373     # The variable is not set by user, try to locate tool using the code snippet
13374     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13375 $as_echo_n "checking for fgrep... " >&6; }
13376 if ${ac_cv_path_FGREP+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13380    then ac_cv_path_FGREP="$GREP -F"
13381    else
13382      if test -z "$FGREP"; then
13383   ac_path_FGREP_found=false
13384   # Loop through the user's path and test for each of PROGNAME-LIST
13385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13387 do
13388   IFS=$as_save_IFS
13389   test -z "$as_dir" && as_dir=.
13390     for ac_prog in fgrep; do
13391     for ac_exec_ext in '' $ac_executable_extensions; do
13392       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13393       as_fn_executable_p "$ac_path_FGREP" || continue
13394 # Check for GNU ac_path_FGREP and select it if it is found.
13395   # Check for GNU $ac_path_FGREP
13396 case `"$ac_path_FGREP" --version 2>&1` in
13397 *GNU*)
13398   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13399 *)
13400   ac_count=0
13401   $as_echo_n 0123456789 >"conftest.in"
13402   while :
13403   do
13404     cat "conftest.in" "conftest.in" >"conftest.tmp"
13405     mv "conftest.tmp" "conftest.in"
13406     cp "conftest.in" "conftest.nl"
13407     $as_echo 'FGREP' >> "conftest.nl"
13408     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13410     as_fn_arith $ac_count + 1 && ac_count=$as_val
13411     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13412       # Best one so far, save it but keep looking for a better one
13413       ac_cv_path_FGREP="$ac_path_FGREP"
13414       ac_path_FGREP_max=$ac_count
13415     fi
13416     # 10*(2^10) chars as input seems more than enough
13417     test $ac_count -gt 10 && break
13418   done
13419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13420 esac
13421 
13422       $ac_path_FGREP_found && break 3
13423     done
13424   done
13425   done
13426 IFS=$as_save_IFS
13427   if test -z "$ac_cv_path_FGREP"; then
13428     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13429   fi
13430 else
13431   ac_cv_path_FGREP=$FGREP
13432 fi
13433 
13434    fi
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13437 $as_echo "$ac_cv_path_FGREP" >&6; }
13438  FGREP="$ac_cv_path_FGREP"
13439 
13440 
13441   else
13442     # The variable is set, but is it from the command line or the environment?
13443 
13444     # Try to remove the string !FGREP! from our list.
13445     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
13446     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13447       # If it failed, the variable was not from the command line. Ignore it,
13448       # but warn the user (except for BASH, which is always set by the calling BASH).
13449       if test "xFGREP" != xBASH; then
13450         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
13451 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
13452       fi
13453       # Try to locate tool using the code snippet
13454       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13455 $as_echo_n "checking for fgrep... " >&6; }
13456 if ${ac_cv_path_FGREP+:} false; then :
13457   $as_echo_n "(cached) " >&6
13458 else
13459   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13460    then ac_cv_path_FGREP="$GREP -F"
13461    else
13462      if test -z "$FGREP"; then
13463   ac_path_FGREP_found=false
13464   # Loop through the user's path and test for each of PROGNAME-LIST
13465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13467 do
13468   IFS=$as_save_IFS
13469   test -z "$as_dir" && as_dir=.
13470     for ac_prog in fgrep; do
13471     for ac_exec_ext in '' $ac_executable_extensions; do
13472       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13473       as_fn_executable_p "$ac_path_FGREP" || continue
13474 # Check for GNU ac_path_FGREP and select it if it is found.
13475   # Check for GNU $ac_path_FGREP
13476 case `"$ac_path_FGREP" --version 2>&1` in
13477 *GNU*)
13478   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13479 *)
13480   ac_count=0
13481   $as_echo_n 0123456789 >"conftest.in"
13482   while :
13483   do
13484     cat "conftest.in" "conftest.in" >"conftest.tmp"
13485     mv "conftest.tmp" "conftest.in"
13486     cp "conftest.in" "conftest.nl"
13487     $as_echo 'FGREP' >> "conftest.nl"
13488     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13489     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13490     as_fn_arith $ac_count + 1 && ac_count=$as_val
13491     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13492       # Best one so far, save it but keep looking for a better one
13493       ac_cv_path_FGREP="$ac_path_FGREP"
13494       ac_path_FGREP_max=$ac_count
13495     fi
13496     # 10*(2^10) chars as input seems more than enough
13497     test $ac_count -gt 10 && break
13498   done
13499   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13500 esac
13501 
13502       $ac_path_FGREP_found && break 3
13503     done
13504   done
13505   done
13506 IFS=$as_save_IFS
13507   if test -z "$ac_cv_path_FGREP"; then
13508     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13509   fi
13510 else
13511   ac_cv_path_FGREP=$FGREP
13512 fi
13513 
13514    fi
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13517 $as_echo "$ac_cv_path_FGREP" >&6; }
13518  FGREP="$ac_cv_path_FGREP"
13519 
13520 
13521     else
13522       # If it succeeded, then it was overridden by the user. We will use it
13523       # for the tool.
13524 
13525       # First remove it from the list of overridden variables, so we can test
13526       # for unknown variables in the end.
13527       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13528 
13529       # Check if we try to supply an empty value
13530       if test "x$FGREP" = x; then
13531         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13532 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13534 $as_echo_n "checking for FGREP... " >&6; }
13535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13536 $as_echo "disabled" >&6; }
13537       else
13538         # Check if the provided tool contains a complete path.
13539         tool_specified="$FGREP"
13540         tool_basename="${tool_specified##*/}"
13541         if test "x$tool_basename" = "x$tool_specified"; then
13542           # A command without a complete path is provided, search $PATH.
13543           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13544 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13545           # Extract the first word of "$tool_basename", so it can be a program name with args.
13546 set dummy $tool_basename; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if ${ac_cv_path_FGREP+:} false; then :
13550   $as_echo_n "(cached) " >&6
13551 else
13552   case $FGREP in
13553   [\\/]* | ?:[\\/]*)
13554   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13555   ;;
13556   *)
13557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13558 for as_dir in $PATH
13559 do
13560   IFS=$as_save_IFS
13561   test -z "$as_dir" && as_dir=.
13562     for ac_exec_ext in '' $ac_executable_extensions; do
13563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13564     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13566     break 2
13567   fi
13568 done
13569   done
13570 IFS=$as_save_IFS
13571 
13572   ;;
13573 esac
13574 fi
13575 FGREP=$ac_cv_path_FGREP
13576 if test -n "$FGREP"; then
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13578 $as_echo "$FGREP" >&6; }
13579 else
13580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13582 fi
13583 
13584 
13585           if test "x$FGREP" = x; then
13586             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13587           fi
13588         else
13589           # Otherwise we believe it is a complete path. Use it as it is.
13590           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13591 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13592           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13593 $as_echo_n "checking for FGREP... " >&6; }
13594           if test ! -x "$tool_specified"; then
13595             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13596 $as_echo "not found" >&6; }
13597             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13598           fi
13599           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13600 $as_echo "$tool_specified" >&6; }
13601         fi
13602       fi
13603     fi
13604 
13605   fi
13606 
13607 
13608   if test "x$FGREP" = x; then
13609     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13610   fi
13611 
13612 
13613 
13614 
13615   # Publish this variable in the help.
13616 
13617 
13618   if [ -z "${SED+x}" ]; then
13619     # The variable is not set by user, try to locate tool using the code snippet
13620     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13621 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13622 if ${ac_cv_path_SED+:} false; then :
13623   $as_echo_n "(cached) " >&6
13624 else
13625             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13626      for ac_i in 1 2 3 4 5 6 7; do
13627        ac_script="$ac_script$as_nl$ac_script"
13628      done
13629      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13630      { ac_script=; unset ac_script;}
13631      if test -z "$SED"; then
13632   ac_path_SED_found=false
13633   # Loop through the user's path and test for each of PROGNAME-LIST
13634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637   IFS=$as_save_IFS
13638   test -z "$as_dir" && as_dir=.
13639     for ac_prog in sed gsed; do
13640     for ac_exec_ext in '' $ac_executable_extensions; do
13641       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13642       as_fn_executable_p "$ac_path_SED" || continue
13643 # Check for GNU ac_path_SED and select it if it is found.
13644   # Check for GNU $ac_path_SED
13645 case `"$ac_path_SED" --version 2>&1` in
13646 *GNU*)
13647   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13648 *)
13649   ac_count=0
13650   $as_echo_n 0123456789 >"conftest.in"
13651   while :
13652   do
13653     cat "conftest.in" "conftest.in" >"conftest.tmp"
13654     mv "conftest.tmp" "conftest.in"
13655     cp "conftest.in" "conftest.nl"
13656     $as_echo '' >> "conftest.nl"
13657     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13659     as_fn_arith $ac_count + 1 && ac_count=$as_val
13660     if test $ac_count -gt ${ac_path_SED_max-0}; then
13661       # Best one so far, save it but keep looking for a better one
13662       ac_cv_path_SED="$ac_path_SED"
13663       ac_path_SED_max=$ac_count
13664     fi
13665     # 10*(2^10) chars as input seems more than enough
13666     test $ac_count -gt 10 && break
13667   done
13668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13669 esac
13670 
13671       $ac_path_SED_found && break 3
13672     done
13673   done
13674   done
13675 IFS=$as_save_IFS
13676   if test -z "$ac_cv_path_SED"; then
13677     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13678   fi
13679 else
13680   ac_cv_path_SED=$SED
13681 fi
13682 
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13685 $as_echo "$ac_cv_path_SED" >&6; }
13686  SED="$ac_cv_path_SED"
13687   rm -f conftest.sed
13688 
13689   else
13690     # The variable is set, but is it from the command line or the environment?
13691 
13692     # Try to remove the string !SED! from our list.
13693     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13694     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13695       # If it failed, the variable was not from the command line. Ignore it,
13696       # but warn the user (except for BASH, which is always set by the calling BASH).
13697       if test "xSED" != xBASH; then
13698         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13699 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13700       fi
13701       # Try to locate tool using the code snippet
13702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13703 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13704 if ${ac_cv_path_SED+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13708      for ac_i in 1 2 3 4 5 6 7; do
13709        ac_script="$ac_script$as_nl$ac_script"
13710      done
13711      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13712      { ac_script=; unset ac_script;}
13713      if test -z "$SED"; then
13714   ac_path_SED_found=false
13715   # Loop through the user's path and test for each of PROGNAME-LIST
13716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13718 do
13719   IFS=$as_save_IFS
13720   test -z "$as_dir" && as_dir=.
13721     for ac_prog in sed gsed; do
13722     for ac_exec_ext in '' $ac_executable_extensions; do
13723       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13724       as_fn_executable_p "$ac_path_SED" || continue
13725 # Check for GNU ac_path_SED and select it if it is found.
13726   # Check for GNU $ac_path_SED
13727 case `"$ac_path_SED" --version 2>&1` in
13728 *GNU*)
13729   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13730 *)
13731   ac_count=0
13732   $as_echo_n 0123456789 >"conftest.in"
13733   while :
13734   do
13735     cat "conftest.in" "conftest.in" >"conftest.tmp"
13736     mv "conftest.tmp" "conftest.in"
13737     cp "conftest.in" "conftest.nl"
13738     $as_echo '' >> "conftest.nl"
13739     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13740     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13741     as_fn_arith $ac_count + 1 && ac_count=$as_val
13742     if test $ac_count -gt ${ac_path_SED_max-0}; then
13743       # Best one so far, save it but keep looking for a better one
13744       ac_cv_path_SED="$ac_path_SED"
13745       ac_path_SED_max=$ac_count
13746     fi
13747     # 10*(2^10) chars as input seems more than enough
13748     test $ac_count -gt 10 && break
13749   done
13750   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13751 esac
13752 
13753       $ac_path_SED_found && break 3
13754     done
13755   done
13756   done
13757 IFS=$as_save_IFS
13758   if test -z "$ac_cv_path_SED"; then
13759     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13760   fi
13761 else
13762   ac_cv_path_SED=$SED
13763 fi
13764 
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13767 $as_echo "$ac_cv_path_SED" >&6; }
13768  SED="$ac_cv_path_SED"
13769   rm -f conftest.sed
13770 
13771     else
13772       # If it succeeded, then it was overridden by the user. We will use it
13773       # for the tool.
13774 
13775       # First remove it from the list of overridden variables, so we can test
13776       # for unknown variables in the end.
13777       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13778 
13779       # Check if we try to supply an empty value
13780       if test "x$SED" = x; then
13781         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13782 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13784 $as_echo_n "checking for SED... " >&6; }
13785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13786 $as_echo "disabled" >&6; }
13787       else
13788         # Check if the provided tool contains a complete path.
13789         tool_specified="$SED"
13790         tool_basename="${tool_specified##*/}"
13791         if test "x$tool_basename" = "x$tool_specified"; then
13792           # A command without a complete path is provided, search $PATH.
13793           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13794 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13795           # Extract the first word of "$tool_basename", so it can be a program name with args.
13796 set dummy $tool_basename; ac_word=$2
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13798 $as_echo_n "checking for $ac_word... " >&6; }
13799 if ${ac_cv_path_SED+:} false; then :
13800   $as_echo_n "(cached) " >&6
13801 else
13802   case $SED in
13803   [\\/]* | ?:[\\/]*)
13804   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13805   ;;
13806   *)
13807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810   IFS=$as_save_IFS
13811   test -z "$as_dir" && as_dir=.
13812     for ac_exec_ext in '' $ac_executable_extensions; do
13813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13814     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816     break 2
13817   fi
13818 done
13819   done
13820 IFS=$as_save_IFS
13821 
13822   ;;
13823 esac
13824 fi
13825 SED=$ac_cv_path_SED
13826 if test -n "$SED"; then
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13828 $as_echo "$SED" >&6; }
13829 else
13830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832 fi
13833 
13834 
13835           if test "x$SED" = x; then
13836             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13837           fi
13838         else
13839           # Otherwise we believe it is a complete path. Use it as it is.
13840           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13841 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13842           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13843 $as_echo_n "checking for SED... " >&6; }
13844           if test ! -x "$tool_specified"; then
13845             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13846 $as_echo "not found" >&6; }
13847             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13848           fi
13849           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13850 $as_echo "$tool_specified" >&6; }
13851         fi
13852       fi
13853     fi
13854 
13855   fi
13856 
13857 
13858   if test "x$SED" = x; then
13859     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13860   fi
13861 
13862 
13863 
13864   # Always force rm.
13865   RM="$RM -f"
13866 
13867   # pwd behaves differently on various platforms and some don't support the -L flag.
13868   # Always use the bash builtin pwd to get uniform behavior.
13869   THEPWDCMD=pwd
13870 
13871   # These are not required on all platforms
13872 
13873 
13874   # Publish this variable in the help.
13875 
13876 
13877   if [ -z "${CYGPATH+x}" ]; then
13878     # The variable is not set by user, try to locate tool using the code snippet
13879     for ac_prog in cygpath
13880 do
13881   # Extract the first word of "$ac_prog", so it can be a program name with args.
13882 set dummy $ac_prog; ac_word=$2
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13884 $as_echo_n "checking for $ac_word... " >&6; }
13885 if ${ac_cv_path_CYGPATH+:} false; then :
13886   $as_echo_n "(cached) " >&6
13887 else
13888   case $CYGPATH in
13889   [\\/]* | ?:[\\/]*)
13890   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13891   ;;
13892   *)
13893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13894 for as_dir in $PATH
13895 do
13896   IFS=$as_save_IFS
13897   test -z "$as_dir" && as_dir=.
13898     for ac_exec_ext in '' $ac_executable_extensions; do
13899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13900     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13902     break 2
13903   fi
13904 done
13905   done
13906 IFS=$as_save_IFS
13907 
13908   ;;
13909 esac
13910 fi
13911 CYGPATH=$ac_cv_path_CYGPATH
13912 if test -n "$CYGPATH"; then
13913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13914 $as_echo "$CYGPATH" >&6; }
13915 else
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918 fi
13919 
13920 
13921   test -n "$CYGPATH" && break
13922 done
13923 
13924   else
13925     # The variable is set, but is it from the command line or the environment?
13926 
13927     # Try to remove the string !CYGPATH! from our list.
13928     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13929     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13930       # If it failed, the variable was not from the command line. Ignore it,
13931       # but warn the user (except for BASH, which is always set by the calling BASH).
13932       if test "xCYGPATH" != xBASH; then
13933         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13934 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13935       fi
13936       # Try to locate tool using the code snippet
13937       for ac_prog in cygpath
13938 do
13939   # Extract the first word of "$ac_prog", so it can be a program name with args.
13940 set dummy $ac_prog; ac_word=$2
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13942 $as_echo_n "checking for $ac_word... " >&6; }
13943 if ${ac_cv_path_CYGPATH+:} false; then :
13944   $as_echo_n "(cached) " >&6
13945 else
13946   case $CYGPATH in
13947   [\\/]* | ?:[\\/]*)
13948   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13949   ;;
13950   *)
13951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13952 for as_dir in $PATH
13953 do
13954   IFS=$as_save_IFS
13955   test -z "$as_dir" && as_dir=.
13956     for ac_exec_ext in '' $ac_executable_extensions; do
13957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13958     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13960     break 2
13961   fi
13962 done
13963   done
13964 IFS=$as_save_IFS
13965 
13966   ;;
13967 esac
13968 fi
13969 CYGPATH=$ac_cv_path_CYGPATH
13970 if test -n "$CYGPATH"; then
13971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13972 $as_echo "$CYGPATH" >&6; }
13973 else
13974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13975 $as_echo "no" >&6; }
13976 fi
13977 
13978 
13979   test -n "$CYGPATH" && break
13980 done
13981 
13982     else
13983       # If it succeeded, then it was overridden by the user. We will use it
13984       # for the tool.
13985 
13986       # First remove it from the list of overridden variables, so we can test
13987       # for unknown variables in the end.
13988       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13989 
13990       # Check if we try to supply an empty value
13991       if test "x$CYGPATH" = x; then
13992         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13993 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13994         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13995 $as_echo_n "checking for CYGPATH... " >&6; }
13996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13997 $as_echo "disabled" >&6; }
13998       else
13999         # Check if the provided tool contains a complete path.
14000         tool_specified="$CYGPATH"
14001         tool_basename="${tool_specified##*/}"
14002         if test "x$tool_basename" = "x$tool_specified"; then
14003           # A command without a complete path is provided, search $PATH.
14004           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
14005 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
14006           # Extract the first word of "$tool_basename", so it can be a program name with args.
14007 set dummy $tool_basename; ac_word=$2
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14009 $as_echo_n "checking for $ac_word... " >&6; }
14010 if ${ac_cv_path_CYGPATH+:} false; then :
14011   $as_echo_n "(cached) " >&6
14012 else
14013   case $CYGPATH in
14014   [\\/]* | ?:[\\/]*)
14015   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
14016   ;;
14017   *)
14018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14020 do
14021   IFS=$as_save_IFS
14022   test -z "$as_dir" && as_dir=.
14023     for ac_exec_ext in '' $ac_executable_extensions; do
14024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14025     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
14026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14027     break 2
14028   fi
14029 done
14030   done
14031 IFS=$as_save_IFS
14032 
14033   ;;
14034 esac
14035 fi
14036 CYGPATH=$ac_cv_path_CYGPATH
14037 if test -n "$CYGPATH"; then
14038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
14039 $as_echo "$CYGPATH" >&6; }
14040 else
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043 fi
14044 
14045 
14046           if test "x$CYGPATH" = x; then
14047             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14048           fi
14049         else
14050           # Otherwise we believe it is a complete path. Use it as it is.
14051           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
14052 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
14053           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
14054 $as_echo_n "checking for CYGPATH... " >&6; }
14055           if test ! -x "$tool_specified"; then
14056             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14057 $as_echo "not found" >&6; }
14058             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
14059           fi
14060           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14061 $as_echo "$tool_specified" >&6; }
14062         fi
14063       fi
14064     fi
14065 
14066   fi
14067 
14068 
14069 
14070 
14071   # Publish this variable in the help.
14072 
14073 
14074   if [ -z "${READLINK+x}" ]; then
14075     # The variable is not set by user, try to locate tool using the code snippet
14076     for ac_prog in greadlink readlink
14077 do
14078   # Extract the first word of "$ac_prog", so it can be a program name with args.
14079 set dummy $ac_prog; ac_word=$2
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14081 $as_echo_n "checking for $ac_word... " >&6; }
14082 if ${ac_cv_path_READLINK+:} false; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   case $READLINK in
14086   [\\/]* | ?:[\\/]*)
14087   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14088   ;;
14089   *)
14090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14092 do
14093   IFS=$as_save_IFS
14094   test -z "$as_dir" && as_dir=.
14095     for ac_exec_ext in '' $ac_executable_extensions; do
14096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14099     break 2
14100   fi
14101 done
14102   done
14103 IFS=$as_save_IFS
14104 
14105   ;;
14106 esac
14107 fi
14108 READLINK=$ac_cv_path_READLINK
14109 if test -n "$READLINK"; then
14110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14111 $as_echo "$READLINK" >&6; }
14112 else
14113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14115 fi
14116 
14117 
14118   test -n "$READLINK" && break
14119 done
14120 
14121   else
14122     # The variable is set, but is it from the command line or the environment?
14123 
14124     # Try to remove the string !READLINK! from our list.
14125     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
14126     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14127       # If it failed, the variable was not from the command line. Ignore it,
14128       # but warn the user (except for BASH, which is always set by the calling BASH).
14129       if test "xREADLINK" != xBASH; then
14130         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
14131 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
14132       fi
14133       # Try to locate tool using the code snippet
14134       for ac_prog in greadlink readlink
14135 do
14136   # Extract the first word of "$ac_prog", so it can be a program name with args.
14137 set dummy $ac_prog; ac_word=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139 $as_echo_n "checking for $ac_word... " >&6; }
14140 if ${ac_cv_path_READLINK+:} false; then :
14141   $as_echo_n "(cached) " >&6
14142 else
14143   case $READLINK in
14144   [\\/]* | ?:[\\/]*)
14145   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14146   ;;
14147   *)
14148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149 for as_dir in $PATH
14150 do
14151   IFS=$as_save_IFS
14152   test -z "$as_dir" && as_dir=.
14153     for ac_exec_ext in '' $ac_executable_extensions; do
14154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14155     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14157     break 2
14158   fi
14159 done
14160   done
14161 IFS=$as_save_IFS
14162 
14163   ;;
14164 esac
14165 fi
14166 READLINK=$ac_cv_path_READLINK
14167 if test -n "$READLINK"; then
14168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14169 $as_echo "$READLINK" >&6; }
14170 else
14171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14173 fi
14174 
14175 
14176   test -n "$READLINK" && break
14177 done
14178 
14179     else
14180       # If it succeeded, then it was overridden by the user. We will use it
14181       # for the tool.
14182 
14183       # First remove it from the list of overridden variables, so we can test
14184       # for unknown variables in the end.
14185       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14186 
14187       # Check if we try to supply an empty value
14188       if test "x$READLINK" = x; then
14189         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
14190 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
14191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14192 $as_echo_n "checking for READLINK... " >&6; }
14193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14194 $as_echo "disabled" >&6; }
14195       else
14196         # Check if the provided tool contains a complete path.
14197         tool_specified="$READLINK"
14198         tool_basename="${tool_specified##*/}"
14199         if test "x$tool_basename" = "x$tool_specified"; then
14200           # A command without a complete path is provided, search $PATH.
14201           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
14202 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
14203           # Extract the first word of "$tool_basename", so it can be a program name with args.
14204 set dummy $tool_basename; ac_word=$2
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14206 $as_echo_n "checking for $ac_word... " >&6; }
14207 if ${ac_cv_path_READLINK+:} false; then :
14208   $as_echo_n "(cached) " >&6
14209 else
14210   case $READLINK in
14211   [\\/]* | ?:[\\/]*)
14212   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
14213   ;;
14214   *)
14215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14217 do
14218   IFS=$as_save_IFS
14219   test -z "$as_dir" && as_dir=.
14220     for ac_exec_ext in '' $ac_executable_extensions; do
14221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
14223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224     break 2
14225   fi
14226 done
14227   done
14228 IFS=$as_save_IFS
14229 
14230   ;;
14231 esac
14232 fi
14233 READLINK=$ac_cv_path_READLINK
14234 if test -n "$READLINK"; then
14235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
14236 $as_echo "$READLINK" >&6; }
14237 else
14238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241 
14242 
14243           if test "x$READLINK" = x; then
14244             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14245           fi
14246         else
14247           # Otherwise we believe it is a complete path. Use it as it is.
14248           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
14249 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
14250           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
14251 $as_echo_n "checking for READLINK... " >&6; }
14252           if test ! -x "$tool_specified"; then
14253             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14254 $as_echo "not found" >&6; }
14255             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
14256           fi
14257           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14258 $as_echo "$tool_specified" >&6; }
14259         fi
14260       fi
14261     fi
14262 
14263   fi
14264 
14265 
14266 
14267 
14268   # Publish this variable in the help.
14269 
14270 
14271   if [ -z "${DF+x}" ]; then
14272     # The variable is not set by user, try to locate tool using the code snippet
14273     for ac_prog in df
14274 do
14275   # Extract the first word of "$ac_prog", so it can be a program name with args.
14276 set dummy $ac_prog; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278 $as_echo_n "checking for $ac_word... " >&6; }
14279 if ${ac_cv_path_DF+:} false; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   case $DF in
14283   [\\/]* | ?:[\\/]*)
14284   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14285   ;;
14286   *)
14287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14289 do
14290   IFS=$as_save_IFS
14291   test -z "$as_dir" && as_dir=.
14292     for ac_exec_ext in '' $ac_executable_extensions; do
14293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14294     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14296     break 2
14297   fi
14298 done
14299   done
14300 IFS=$as_save_IFS
14301 
14302   ;;
14303 esac
14304 fi
14305 DF=$ac_cv_path_DF
14306 if test -n "$DF"; then
14307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14308 $as_echo "$DF" >&6; }
14309 else
14310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14312 fi
14313 
14314 
14315   test -n "$DF" && break
14316 done
14317 
14318   else
14319     # The variable is set, but is it from the command line or the environment?
14320 
14321     # Try to remove the string !DF! from our list.
14322     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
14323     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14324       # If it failed, the variable was not from the command line. Ignore it,
14325       # but warn the user (except for BASH, which is always set by the calling BASH).
14326       if test "xDF" != xBASH; then
14327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
14328 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
14329       fi
14330       # Try to locate tool using the code snippet
14331       for ac_prog in df
14332 do
14333   # Extract the first word of "$ac_prog", so it can be a program name with args.
14334 set dummy $ac_prog; ac_word=$2
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14336 $as_echo_n "checking for $ac_word... " >&6; }
14337 if ${ac_cv_path_DF+:} false; then :
14338   $as_echo_n "(cached) " >&6
14339 else
14340   case $DF in
14341   [\\/]* | ?:[\\/]*)
14342   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14343   ;;
14344   *)
14345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14347 do
14348   IFS=$as_save_IFS
14349   test -z "$as_dir" && as_dir=.
14350     for ac_exec_ext in '' $ac_executable_extensions; do
14351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14352     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354     break 2
14355   fi
14356 done
14357   done
14358 IFS=$as_save_IFS
14359 
14360   ;;
14361 esac
14362 fi
14363 DF=$ac_cv_path_DF
14364 if test -n "$DF"; then
14365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14366 $as_echo "$DF" >&6; }
14367 else
14368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 fi
14371 
14372 
14373   test -n "$DF" && break
14374 done
14375 
14376     else
14377       # If it succeeded, then it was overridden by the user. We will use it
14378       # for the tool.
14379 
14380       # First remove it from the list of overridden variables, so we can test
14381       # for unknown variables in the end.
14382       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14383 
14384       # Check if we try to supply an empty value
14385       if test "x$DF" = x; then
14386         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
14387 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
14388         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14389 $as_echo_n "checking for DF... " >&6; }
14390         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14391 $as_echo "disabled" >&6; }
14392       else
14393         # Check if the provided tool contains a complete path.
14394         tool_specified="$DF"
14395         tool_basename="${tool_specified##*/}"
14396         if test "x$tool_basename" = "x$tool_specified"; then
14397           # A command without a complete path is provided, search $PATH.
14398           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
14399 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
14400           # Extract the first word of "$tool_basename", so it can be a program name with args.
14401 set dummy $tool_basename; ac_word=$2
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403 $as_echo_n "checking for $ac_word... " >&6; }
14404 if ${ac_cv_path_DF+:} false; then :
14405   $as_echo_n "(cached) " >&6
14406 else
14407   case $DF in
14408   [\\/]* | ?:[\\/]*)
14409   ac_cv_path_DF="$DF" # Let the user override the test with a path.
14410   ;;
14411   *)
14412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14414 do
14415   IFS=$as_save_IFS
14416   test -z "$as_dir" && as_dir=.
14417     for ac_exec_ext in '' $ac_executable_extensions; do
14418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14419     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
14420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14421     break 2
14422   fi
14423 done
14424   done
14425 IFS=$as_save_IFS
14426 
14427   ;;
14428 esac
14429 fi
14430 DF=$ac_cv_path_DF
14431 if test -n "$DF"; then
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
14433 $as_echo "$DF" >&6; }
14434 else
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 fi
14438 
14439 
14440           if test "x$DF" = x; then
14441             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14442           fi
14443         else
14444           # Otherwise we believe it is a complete path. Use it as it is.
14445           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
14446 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
14447           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
14448 $as_echo_n "checking for DF... " >&6; }
14449           if test ! -x "$tool_specified"; then
14450             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14451 $as_echo "not found" >&6; }
14452             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
14453           fi
14454           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14455 $as_echo "$tool_specified" >&6; }
14456         fi
14457       fi
14458     fi
14459 
14460   fi
14461 
14462 
14463 
14464 
14465   # Publish this variable in the help.
14466 
14467 
14468   if [ -z "${CPIO+x}" ]; then
14469     # The variable is not set by user, try to locate tool using the code snippet
14470     for ac_prog in cpio bsdcpio
14471 do
14472   # Extract the first word of "$ac_prog", so it can be a program name with args.
14473 set dummy $ac_prog; ac_word=$2
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475 $as_echo_n "checking for $ac_word... " >&6; }
14476 if ${ac_cv_path_CPIO+:} false; then :
14477   $as_echo_n "(cached) " >&6
14478 else
14479   case $CPIO in
14480   [\\/]* | ?:[\\/]*)
14481   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14482   ;;
14483   *)
14484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487   IFS=$as_save_IFS
14488   test -z "$as_dir" && as_dir=.
14489     for ac_exec_ext in '' $ac_executable_extensions; do
14490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493     break 2
14494   fi
14495 done
14496   done
14497 IFS=$as_save_IFS
14498 
14499   ;;
14500 esac
14501 fi
14502 CPIO=$ac_cv_path_CPIO
14503 if test -n "$CPIO"; then
14504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14505 $as_echo "$CPIO" >&6; }
14506 else
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14509 fi
14510 
14511 
14512   test -n "$CPIO" && break
14513 done
14514 
14515   else
14516     # The variable is set, but is it from the command line or the environment?
14517 
14518     # Try to remove the string !CPIO! from our list.
14519     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14520     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14521       # If it failed, the variable was not from the command line. Ignore it,
14522       # but warn the user (except for BASH, which is always set by the calling BASH).
14523       if test "xCPIO" != xBASH; then
14524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14525 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14526       fi
14527       # Try to locate tool using the code snippet
14528       for ac_prog in cpio bsdcpio
14529 do
14530   # Extract the first word of "$ac_prog", so it can be a program name with args.
14531 set dummy $ac_prog; ac_word=$2
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14533 $as_echo_n "checking for $ac_word... " >&6; }
14534 if ${ac_cv_path_CPIO+:} false; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   case $CPIO in
14538   [\\/]* | ?:[\\/]*)
14539   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14540   ;;
14541   *)
14542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545   IFS=$as_save_IFS
14546   test -z "$as_dir" && as_dir=.
14547     for ac_exec_ext in '' $ac_executable_extensions; do
14548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551     break 2
14552   fi
14553 done
14554   done
14555 IFS=$as_save_IFS
14556 
14557   ;;
14558 esac
14559 fi
14560 CPIO=$ac_cv_path_CPIO
14561 if test -n "$CPIO"; then
14562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14563 $as_echo "$CPIO" >&6; }
14564 else
14565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567 fi
14568 
14569 
14570   test -n "$CPIO" && break
14571 done
14572 
14573     else
14574       # If it succeeded, then it was overridden by the user. We will use it
14575       # for the tool.
14576 
14577       # First remove it from the list of overridden variables, so we can test
14578       # for unknown variables in the end.
14579       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14580 
14581       # Check if we try to supply an empty value
14582       if test "x$CPIO" = x; then
14583         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14584 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14586 $as_echo_n "checking for CPIO... " >&6; }
14587         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14588 $as_echo "disabled" >&6; }
14589       else
14590         # Check if the provided tool contains a complete path.
14591         tool_specified="$CPIO"
14592         tool_basename="${tool_specified##*/}"
14593         if test "x$tool_basename" = "x$tool_specified"; then
14594           # A command without a complete path is provided, search $PATH.
14595           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14596 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14597           # Extract the first word of "$tool_basename", so it can be a program name with args.
14598 set dummy $tool_basename; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if ${ac_cv_path_CPIO+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   case $CPIO in
14605   [\\/]* | ?:[\\/]*)
14606   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14607   ;;
14608   *)
14609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14611 do
14612   IFS=$as_save_IFS
14613   test -z "$as_dir" && as_dir=.
14614     for ac_exec_ext in '' $ac_executable_extensions; do
14615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14616     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14618     break 2
14619   fi
14620 done
14621   done
14622 IFS=$as_save_IFS
14623 
14624   ;;
14625 esac
14626 fi
14627 CPIO=$ac_cv_path_CPIO
14628 if test -n "$CPIO"; then
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14630 $as_echo "$CPIO" >&6; }
14631 else
14632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14633 $as_echo "no" >&6; }
14634 fi
14635 
14636 
14637           if test "x$CPIO" = x; then
14638             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14639           fi
14640         else
14641           # Otherwise we believe it is a complete path. Use it as it is.
14642           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14643 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14644           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14645 $as_echo_n "checking for CPIO... " >&6; }
14646           if test ! -x "$tool_specified"; then
14647             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14648 $as_echo "not found" >&6; }
14649             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14650           fi
14651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14652 $as_echo "$tool_specified" >&6; }
14653         fi
14654       fi
14655     fi
14656 
14657   fi
14658 
14659 
14660 
14661 
14662   # Publish this variable in the help.
14663 
14664 
14665   if [ -z "${NICE+x}" ]; then
14666     # The variable is not set by user, try to locate tool using the code snippet
14667     for ac_prog in nice
14668 do
14669   # Extract the first word of "$ac_prog", so it can be a program name with args.
14670 set dummy $ac_prog; ac_word=$2
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14672 $as_echo_n "checking for $ac_word... " >&6; }
14673 if ${ac_cv_path_NICE+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676   case $NICE in
14677   [\\/]* | ?:[\\/]*)
14678   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14679   ;;
14680   *)
14681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14682 for as_dir in $PATH
14683 do
14684   IFS=$as_save_IFS
14685   test -z "$as_dir" && as_dir=.
14686     for ac_exec_ext in '' $ac_executable_extensions; do
14687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14688     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14690     break 2
14691   fi
14692 done
14693   done
14694 IFS=$as_save_IFS
14695 
14696   ;;
14697 esac
14698 fi
14699 NICE=$ac_cv_path_NICE
14700 if test -n "$NICE"; then
14701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14702 $as_echo "$NICE" >&6; }
14703 else
14704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14705 $as_echo "no" >&6; }
14706 fi
14707 
14708 
14709   test -n "$NICE" && break
14710 done
14711 
14712   else
14713     # The variable is set, but is it from the command line or the environment?
14714 
14715     # Try to remove the string !NICE! from our list.
14716     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14717     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14718       # If it failed, the variable was not from the command line. Ignore it,
14719       # but warn the user (except for BASH, which is always set by the calling BASH).
14720       if test "xNICE" != xBASH; then
14721         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14722 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14723       fi
14724       # Try to locate tool using the code snippet
14725       for ac_prog in nice
14726 do
14727   # Extract the first word of "$ac_prog", so it can be a program name with args.
14728 set dummy $ac_prog; ac_word=$2
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14730 $as_echo_n "checking for $ac_word... " >&6; }
14731 if ${ac_cv_path_NICE+:} false; then :
14732   $as_echo_n "(cached) " >&6
14733 else
14734   case $NICE in
14735   [\\/]* | ?:[\\/]*)
14736   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14737   ;;
14738   *)
14739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14741 do
14742   IFS=$as_save_IFS
14743   test -z "$as_dir" && as_dir=.
14744     for ac_exec_ext in '' $ac_executable_extensions; do
14745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14746     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14748     break 2
14749   fi
14750 done
14751   done
14752 IFS=$as_save_IFS
14753 
14754   ;;
14755 esac
14756 fi
14757 NICE=$ac_cv_path_NICE
14758 if test -n "$NICE"; then
14759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14760 $as_echo "$NICE" >&6; }
14761 else
14762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763 $as_echo "no" >&6; }
14764 fi
14765 
14766 
14767   test -n "$NICE" && break
14768 done
14769 
14770     else
14771       # If it succeeded, then it was overridden by the user. We will use it
14772       # for the tool.
14773 
14774       # First remove it from the list of overridden variables, so we can test
14775       # for unknown variables in the end.
14776       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14777 
14778       # Check if we try to supply an empty value
14779       if test "x$NICE" = x; then
14780         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14781 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14783 $as_echo_n "checking for NICE... " >&6; }
14784         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14785 $as_echo "disabled" >&6; }
14786       else
14787         # Check if the provided tool contains a complete path.
14788         tool_specified="$NICE"
14789         tool_basename="${tool_specified##*/}"
14790         if test "x$tool_basename" = "x$tool_specified"; then
14791           # A command without a complete path is provided, search $PATH.
14792           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14793 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14794           # Extract the first word of "$tool_basename", so it can be a program name with args.
14795 set dummy $tool_basename; ac_word=$2
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14797 $as_echo_n "checking for $ac_word... " >&6; }
14798 if ${ac_cv_path_NICE+:} false; then :
14799   $as_echo_n "(cached) " >&6
14800 else
14801   case $NICE in
14802   [\\/]* | ?:[\\/]*)
14803   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14804   ;;
14805   *)
14806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14808 do
14809   IFS=$as_save_IFS
14810   test -z "$as_dir" && as_dir=.
14811     for ac_exec_ext in '' $ac_executable_extensions; do
14812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815     break 2
14816   fi
14817 done
14818   done
14819 IFS=$as_save_IFS
14820 
14821   ;;
14822 esac
14823 fi
14824 NICE=$ac_cv_path_NICE
14825 if test -n "$NICE"; then
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14827 $as_echo "$NICE" >&6; }
14828 else
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832 
14833 
14834           if test "x$NICE" = x; then
14835             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14836           fi
14837         else
14838           # Otherwise we believe it is a complete path. Use it as it is.
14839           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14840 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14841           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14842 $as_echo_n "checking for NICE... " >&6; }
14843           if test ! -x "$tool_specified"; then
14844             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14845 $as_echo "not found" >&6; }
14846             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14847           fi
14848           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14849 $as_echo "$tool_specified" >&6; }
14850         fi
14851       fi
14852     fi
14853 
14854   fi
14855 
14856 
14857 
14858 
14859 # Now we can determine OpenJDK build and target platforms. This is required to
14860 # have early on.
14861 # Make sure we can run config.sub.
14862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14863   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14864 
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14866 $as_echo_n "checking build system type... " >&6; }
14867 if ${ac_cv_build+:} false; then :
14868   $as_echo_n "(cached) " >&6
14869 else
14870   ac_build_alias=$build_alias
14871 test "x$ac_build_alias" = x &&
14872   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14873 test "x$ac_build_alias" = x &&
14874   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14876   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14877 
14878 fi
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14880 $as_echo "$ac_cv_build" >&6; }
14881 case $ac_cv_build in
14882 *-*-*) ;;
14883 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14884 esac
14885 build=$ac_cv_build
14886 ac_save_IFS=$IFS; IFS='-'
14887 set x $ac_cv_build
14888 shift
14889 build_cpu=$1
14890 build_vendor=$2
14891 shift; shift
14892 # Remember, the first character of IFS is used to create $*,
14893 # except with old shells:
14894 build_os=$*
14895 IFS=$ac_save_IFS
14896 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14897 
14898 
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14900 $as_echo_n "checking host system type... " >&6; }
14901 if ${ac_cv_host+:} false; then :
14902   $as_echo_n "(cached) " >&6
14903 else
14904   if test "x$host_alias" = x; then
14905   ac_cv_host=$ac_cv_build
14906 else
14907   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14908     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14909 fi
14910 
14911 fi
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14913 $as_echo "$ac_cv_host" >&6; }
14914 case $ac_cv_host in
14915 *-*-*) ;;
14916 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14917 esac
14918 host=$ac_cv_host
14919 ac_save_IFS=$IFS; IFS='-'
14920 set x $ac_cv_host
14921 shift
14922 host_cpu=$1
14923 host_vendor=$2
14924 shift; shift
14925 # Remember, the first character of IFS is used to create $*,
14926 # except with old shells:
14927 host_os=$*
14928 IFS=$ac_save_IFS
14929 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14930 
14931 
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14933 $as_echo_n "checking target system type... " >&6; }
14934 if ${ac_cv_target+:} false; then :
14935   $as_echo_n "(cached) " >&6
14936 else
14937   if test "x$target_alias" = x; then
14938   ac_cv_target=$ac_cv_host
14939 else
14940   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14941     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14942 fi
14943 
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14946 $as_echo "$ac_cv_target" >&6; }
14947 case $ac_cv_target in
14948 *-*-*) ;;
14949 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14950 esac
14951 target=$ac_cv_target
14952 ac_save_IFS=$IFS; IFS='-'
14953 set x $ac_cv_target
14954 shift
14955 target_cpu=$1
14956 target_vendor=$2
14957 shift; shift
14958 # Remember, the first character of IFS is used to create $*,
14959 # except with old shells:
14960 target_os=$*
14961 IFS=$ac_save_IFS
14962 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14963 
14964 
14965 # The aliases save the names the user supplied, while $host etc.
14966 # will get canonicalized.
14967 test -n "$target_alias" &&
14968   test "$program_prefix$program_suffix$program_transform_name" = \
14969     NONENONEs,x,x, &&
14970   program_prefix=${target_alias}-
14971 
14972   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14973   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14974   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14975   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14976   # to use the configure naming style.
14977 
14978 
14979 
14980 
14981 
14982   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14983   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14984   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14985   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14986   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14987   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14988 
14989 
14990 
14991   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14992 
14993   case "$build_os" in
14994     *linux*)
14995       VAR_OS=linux
14996       VAR_OS_TYPE=unix
14997       ;;
14998     *solaris*)
14999       VAR_OS=solaris
15000       VAR_OS_TYPE=unix
15001       ;;
15002     *darwin*)
15003       VAR_OS=macosx
15004       VAR_OS_TYPE=unix
15005       ;;
15006     *bsd*)
15007       VAR_OS=bsd
15008       VAR_OS_TYPE=unix
15009       ;;
15010     *cygwin*)
15011       VAR_OS=windows
15012       VAR_OS_ENV=windows.cygwin
15013       ;;
15014     *mingw*)
15015       VAR_OS=windows
15016       VAR_OS_ENV=windows.msys
15017       ;;
15018     *aix*)
15019       VAR_OS=aix
15020       VAR_OS_TYPE=unix
15021       ;;
15022     *)
15023       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
15024       ;;
15025   esac
15026 
15027 
15028   # First argument is the cpu name from the trip/quad
15029   case "$build_cpu" in
15030     x86_64)
15031       VAR_CPU=x86_64
15032       VAR_CPU_ARCH=x86
15033       VAR_CPU_BITS=64
15034       VAR_CPU_ENDIAN=little
15035       ;;
15036     i?86)
15037       VAR_CPU=x86
15038       VAR_CPU_ARCH=x86
15039       VAR_CPU_BITS=32
15040       VAR_CPU_ENDIAN=little
15041       ;;
15042     arm*)
15043       VAR_CPU=arm
15044       VAR_CPU_ARCH=arm
15045       VAR_CPU_BITS=32
15046       VAR_CPU_ENDIAN=little
15047       ;;
15048     aarch64)
15049       VAR_CPU=aarch64
15050       VAR_CPU_ARCH=aarch64
15051       VAR_CPU_BITS=64
15052       VAR_CPU_ENDIAN=little
15053       ;;
15054     powerpc)
15055       VAR_CPU=ppc
15056       VAR_CPU_ARCH=ppc
15057       VAR_CPU_BITS=32
15058       VAR_CPU_ENDIAN=big
15059       ;;
15060     powerpc64)
15061       VAR_CPU=ppc64
15062       VAR_CPU_ARCH=ppc
15063       VAR_CPU_BITS=64
15064       VAR_CPU_ENDIAN=big
15065       ;;
15066     powerpc64le)
15067       VAR_CPU=ppc64le
15068       VAR_CPU_ARCH=ppc
15069       VAR_CPU_BITS=64
15070       VAR_CPU_ENDIAN=little
15071       ;;
15072     s390)
15073       VAR_CPU=s390
15074       VAR_CPU_ARCH=s390
15075       VAR_CPU_BITS=32
15076       VAR_CPU_ENDIAN=big
15077       ;;
15078     s390x)
15079       VAR_CPU=s390x
15080       VAR_CPU_ARCH=s390
15081       VAR_CPU_BITS=64
15082       VAR_CPU_ENDIAN=big
15083       ;;
15084     sparc)
15085       VAR_CPU=sparc
15086       VAR_CPU_ARCH=sparc
15087       VAR_CPU_BITS=32
15088       VAR_CPU_ENDIAN=big
15089       ;;
15090     sparcv9|sparc64)
15091       VAR_CPU=sparcv9
15092       VAR_CPU_ARCH=sparc
15093       VAR_CPU_BITS=64
15094       VAR_CPU_ENDIAN=big
15095       ;;
15096     *)
15097       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
15098       ;;
15099   esac
15100 
15101   # ..and setup our own variables. (Do this explicitely to facilitate searching)
15102   OPENJDK_BUILD_OS="$VAR_OS"
15103   if test "x$VAR_OS_TYPE" != x; then
15104     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
15105   else
15106     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
15107   fi
15108   if test "x$VAR_OS_ENV" != x; then
15109     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
15110   else
15111     OPENJDK_BUILD_OS_ENV="$VAR_OS"
15112   fi
15113   OPENJDK_BUILD_CPU="$VAR_CPU"
15114   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
15115   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
15116   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15117 
15118 
15119 
15120 
15121 
15122 
15123 
15124 
15125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
15126 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
15127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
15128 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
15129 
15130   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
15131 
15132   case "$host_os" in
15133     *linux*)
15134       VAR_OS=linux
15135       VAR_OS_TYPE=unix
15136       ;;
15137     *solaris*)
15138       VAR_OS=solaris
15139       VAR_OS_TYPE=unix
15140       ;;
15141     *darwin*)
15142       VAR_OS=macosx
15143       VAR_OS_TYPE=unix
15144       ;;
15145     *bsd*)
15146       VAR_OS=bsd
15147       VAR_OS_TYPE=unix
15148       ;;
15149     *cygwin*)
15150       VAR_OS=windows
15151       VAR_OS_ENV=windows.cygwin
15152       ;;
15153     *mingw*)
15154       VAR_OS=windows
15155       VAR_OS_ENV=windows.msys
15156       ;;
15157     *aix*)
15158       VAR_OS=aix
15159       VAR_OS_TYPE=unix
15160       ;;
15161     *)
15162       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
15163       ;;
15164   esac
15165 
15166 
15167   # First argument is the cpu name from the trip/quad
15168   case "$host_cpu" in
15169     x86_64)
15170       VAR_CPU=x86_64
15171       VAR_CPU_ARCH=x86
15172       VAR_CPU_BITS=64
15173       VAR_CPU_ENDIAN=little
15174       ;;
15175     i?86)
15176       VAR_CPU=x86
15177       VAR_CPU_ARCH=x86
15178       VAR_CPU_BITS=32
15179       VAR_CPU_ENDIAN=little
15180       ;;
15181     arm*)
15182       VAR_CPU=arm
15183       VAR_CPU_ARCH=arm
15184       VAR_CPU_BITS=32
15185       VAR_CPU_ENDIAN=little
15186       ;;
15187     aarch64)
15188       VAR_CPU=aarch64
15189       VAR_CPU_ARCH=aarch64
15190       VAR_CPU_BITS=64
15191       VAR_CPU_ENDIAN=little
15192       ;;
15193     powerpc)
15194       VAR_CPU=ppc
15195       VAR_CPU_ARCH=ppc
15196       VAR_CPU_BITS=32
15197       VAR_CPU_ENDIAN=big
15198       ;;
15199     powerpc64)
15200       VAR_CPU=ppc64
15201       VAR_CPU_ARCH=ppc
15202       VAR_CPU_BITS=64
15203       VAR_CPU_ENDIAN=big
15204       ;;
15205     powerpc64le)
15206       VAR_CPU=ppc64le
15207       VAR_CPU_ARCH=ppc
15208       VAR_CPU_BITS=64
15209       VAR_CPU_ENDIAN=little
15210       ;;
15211     s390)
15212       VAR_CPU=s390
15213       VAR_CPU_ARCH=s390
15214       VAR_CPU_BITS=32
15215       VAR_CPU_ENDIAN=big
15216       ;;
15217     s390x)
15218       VAR_CPU=s390x
15219       VAR_CPU_ARCH=s390
15220       VAR_CPU_BITS=64
15221       VAR_CPU_ENDIAN=big
15222       ;;
15223     sparc)
15224       VAR_CPU=sparc
15225       VAR_CPU_ARCH=sparc
15226       VAR_CPU_BITS=32
15227       VAR_CPU_ENDIAN=big
15228       ;;
15229     sparcv9|sparc64)
15230       VAR_CPU=sparcv9
15231       VAR_CPU_ARCH=sparc
15232       VAR_CPU_BITS=64
15233       VAR_CPU_ENDIAN=big
15234       ;;
15235     *)
15236       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
15237       ;;
15238   esac
15239 
15240   # ... and setup our own variables. (Do this explicitely to facilitate searching)
15241   OPENJDK_TARGET_OS="$VAR_OS"
15242   if test "x$VAR_OS_TYPE" != x; then
15243     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
15244   else
15245     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
15246   fi
15247   if test "x$VAR_OS_ENV" != x; then
15248     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
15249   else
15250     OPENJDK_TARGET_OS_ENV="$VAR_OS"
15251   fi
15252   OPENJDK_TARGET_CPU="$VAR_CPU"
15253   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
15254   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
15255   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
15256 
15257 
15258 
15259 
15260 
15261 
15262 
15263 
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
15265 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
15266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
15267 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
15268 
15269 
15270 
15271 # Check whether --with-target-bits was given.
15272 if test "${with_target_bits+set}" = set; then :
15273   withval=$with_target_bits;
15274 fi
15275 
15276 
15277   # We have three types of compiles:
15278   # native  == normal compilation, target system == build system
15279   # cross   == traditional cross compilation, target system != build system; special toolchain needed
15280   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
15281   #
15282   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
15283     # We're doing a proper cross-compilation
15284     COMPILE_TYPE="cross"
15285   else
15286     COMPILE_TYPE="native"
15287   fi
15288 
15289   if test "x$with_target_bits" != x; then
15290     if test "x$COMPILE_TYPE" = "xcross"; then
15291       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
15292     fi
15293 
15294     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15295       # A reduced build is requested
15296       COMPILE_TYPE="reduced"
15297       OPENJDK_TARGET_CPU_BITS=32
15298       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
15299         OPENJDK_TARGET_CPU=x86
15300       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
15301         OPENJDK_TARGET_CPU=sparc
15302       else
15303         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
15304       fi
15305     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
15306       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
15307     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
15308       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
15309 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
15310     else
15311       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
15312     fi
15313   fi
15314 
15315 
15316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
15317 $as_echo_n "checking compilation type... " >&6; }
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
15319 $as_echo "$COMPILE_TYPE" >&6; }
15320 
15321 
15322   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
15323     REQUIRED_OS_NAME=SunOS
15324     REQUIRED_OS_VERSION=5.10
15325   fi
15326   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
15327     REQUIRED_OS_NAME=Linux
15328     REQUIRED_OS_VERSION=2.6
15329   fi
15330   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15331     REQUIRED_OS_NAME=Windows
15332     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
15333       REQUIRED_OS_VERSION=5.2
15334     else
15335       REQUIRED_OS_VERSION=5.1
15336     fi
15337   fi
15338   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15339     REQUIRED_OS_NAME=Darwin
15340     REQUIRED_OS_VERSION=11.2
15341   fi
15342   if test "x$OPENJDK_TARGET_OS" = "xaix"; then
15343     REQUIRED_OS_NAME=AIX
15344     REQUIRED_OS_VERSION=7.1
15345   fi
15346 
15347 
15348 
15349 
15350 
15351 
15352   # Also store the legacy naming of the cpu.
15353   # Ie i586 and amd64 instead of x86 and x86_64
15354   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
15355   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15356     OPENJDK_TARGET_CPU_LEGACY="i586"
15357   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15358     # On all platforms except MacOSX replace x86_64 with amd64.
15359     OPENJDK_TARGET_CPU_LEGACY="amd64"
15360   fi
15361 
15362 
15363   # And the second legacy naming of the cpu.
15364   # Ie i386 and amd64 instead of x86 and x86_64.
15365   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
15366   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15367     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
15368   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15369     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
15370   fi
15371 
15372 
15373   # This is the name of the cpu (but using i386 and amd64 instead of
15374   # x86 and x86_64, respectively), preceeded by a /, to be used when
15375   # locating libraries. On macosx, it's empty, though.
15376   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
15377   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15378     OPENJDK_TARGET_CPU_LIBDIR=""
15379   fi
15380 
15381 
15382   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15383   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15384   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
15385   OPENJDK_TARGET_CPU_ISADIR=""
15386   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15387     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15388       OPENJDK_TARGET_CPU_ISADIR="/amd64"
15389     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15390       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
15391     fi
15392   fi
15393 
15394 
15395   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
15396   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
15397   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
15398     # On linux only, we replace x86 with i386.
15399     OPENJDK_TARGET_CPU_OSARCH="i386"
15400   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15401     # On all platforms except macosx, we replace x86_64 with amd64.
15402     OPENJDK_TARGET_CPU_OSARCH="amd64"
15403   fi
15404 
15405 
15406   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
15407   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15408     OPENJDK_TARGET_CPU_JLI="i386"
15409   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15410     # On all platforms except macosx, we replace x86_64 with amd64.
15411     OPENJDK_TARGET_CPU_JLI="amd64"
15412   fi
15413   # Now setup the -D flags for building libjli.
15414   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
15415   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15416     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15417       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15418     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15419       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15420     fi
15421   fi
15422 
15423 
15424   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15425       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
15426   else
15427       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
15428   fi
15429 
15430 
15431   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15432     A_LP64="LP64:="
15433     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15434     # unpack200.exe
15435     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
15436       OPENJDK_TARGET_ADD_LP64="-D_LP64=1"
15437     fi
15438   fi
15439   LP64=$A_LP64
15440 
15441 
15442   if test "x$COMPILE_TYPE" = "xcross"; then
15443     # FIXME: ... or should this include reduced builds..?
15444     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
15445   else
15446     DEFINE_CROSS_COMPILE_ARCH=""
15447   fi
15448 
15449 
15450   # Convert openjdk platform names to hotspot names
15451 
15452   HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS}
15453   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15454     HOTSPOT_TARGET_OS=bsd
15455   fi
15456 
15457 
15458   HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE}
15459   if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then
15460     HOTSPOT_TARGET_OS_TYPE=posix
15461   fi
15462 
15463 
15464   HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU}
15465   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15466     HOTSPOT_TARGET_CPU=x86_32
15467   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15468     HOTSPOT_TARGET_CPU=sparc
15469   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15470     HOTSPOT_TARGET_CPU=ppc_64
15471   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15472     HOTSPOT_TARGET_CPU=ppc_64
15473   fi
15474 
15475 
15476   # This is identical with OPENJDK_*, but define anyway for consistency.
15477   HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH}
15478 
15479 
15480   # Setup HOTSPOT_TARGET_CPU_DEFINE
15481   if test "x$OPENJDK_TARGET_CPU" = xx86; then
15482     HOTSPOT_TARGET_CPU_DEFINE=IA32
15483   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15484     HOTSPOT_TARGET_CPU_DEFINE=AMD64
15485   elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
15486     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15487   elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15488     HOTSPOT_TARGET_CPU_DEFINE=AARCH64
15489   elif test "x$OPENJDK_TARGET_CPU" = xppc64; then
15490     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15491   elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then
15492     HOTSPOT_TARGET_CPU_DEFINE=PPC64
15493 
15494   # The cpu defines below are for zero, we don't support them directly.
15495   elif test "x$OPENJDK_TARGET_CPU" = xsparc; then
15496     HOTSPOT_TARGET_CPU_DEFINE=SPARC
15497   elif test "x$OPENJDK_TARGET_CPU" = xppc; then
15498     HOTSPOT_TARGET_CPU_DEFINE=PPC32
15499   elif test "x$OPENJDK_TARGET_CPU" = xs390; then
15500     HOTSPOT_TARGET_CPU_DEFINE=S390
15501   elif test "x$OPENJDK_TARGET_CPU" = ss390x; then
15502     HOTSPOT_TARGET_CPU_DEFINE=S390
15503   fi
15504 
15505 
15506 
15507 
15508   # Also store the legacy naming of the cpu.
15509   # Ie i586 and amd64 instead of x86 and x86_64
15510   OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU"
15511   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15512     OPENJDK_BUILD_CPU_LEGACY="i586"
15513   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15514     # On all platforms except MacOSX replace x86_64 with amd64.
15515     OPENJDK_BUILD_CPU_LEGACY="amd64"
15516   fi
15517 
15518 
15519   # And the second legacy naming of the cpu.
15520   # Ie i386 and amd64 instead of x86 and x86_64.
15521   OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU"
15522   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15523     OPENJDK_BUILD_CPU_LEGACY_LIB="i386"
15524   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15525     OPENJDK_BUILD_CPU_LEGACY_LIB="amd64"
15526   fi
15527 
15528 
15529   # This is the name of the cpu (but using i386 and amd64 instead of
15530   # x86 and x86_64, respectively), preceeded by a /, to be used when
15531   # locating libraries. On macosx, it's empty, though.
15532   OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB"
15533   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15534     OPENJDK_BUILD_CPU_LIBDIR=""
15535   fi
15536 
15537 
15538   # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
15539   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
15540   # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so
15541   OPENJDK_BUILD_CPU_ISADIR=""
15542   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15543     if test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15544       OPENJDK_BUILD_CPU_ISADIR="/amd64"
15545     elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15546       OPENJDK_BUILD_CPU_ISADIR="/sparcv9"
15547     fi
15548   fi
15549 
15550 
15551   # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property
15552   OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU"
15553   if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then
15554     # On linux only, we replace x86 with i386.
15555     OPENJDK_BUILD_CPU_OSARCH="i386"
15556   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15557     # On all platforms except macosx, we replace x86_64 with amd64.
15558     OPENJDK_BUILD_CPU_OSARCH="amd64"
15559   fi
15560 
15561 
15562   OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU"
15563   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15564     OPENJDK_BUILD_CPU_JLI="i386"
15565   elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15566     # On all platforms except macosx, we replace x86_64 with amd64.
15567     OPENJDK_BUILD_CPU_JLI="amd64"
15568   fi
15569   # Now setup the -D flags for building libjli.
15570   OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'"
15571   if test "x$OPENJDK_BUILD_OS" = xsolaris; then
15572     if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then
15573       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
15574     elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then
15575       OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
15576     fi
15577   fi
15578 
15579 
15580   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15581       OPENJDK_BUILD_OS_EXPORT_DIR=macosx
15582   else
15583       OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE}
15584   fi
15585 
15586 
15587   if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then
15588     A_LP64="LP64:="
15589     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
15590     # unpack200.exe
15591     if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then
15592       OPENJDK_BUILD_ADD_LP64="-D_LP64=1"
15593     fi
15594   fi
15595   LP64=$A_LP64
15596 
15597 
15598   if test "x$COMPILE_TYPE" = "xcross"; then
15599     # FIXME: ... or should this include reduced builds..?
15600     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY"
15601   else
15602     DEFINE_CROSS_COMPILE_ARCH=""
15603   fi
15604 
15605 
15606   # Convert openjdk platform names to hotspot names
15607 
15608   HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS}
15609   if test "x$OPENJDK_BUILD_OS" = xmacosx; then
15610     HOTSPOT_BUILD_OS=bsd
15611   fi
15612 
15613 
15614   HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE}
15615   if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then
15616     HOTSPOT_BUILD_OS_TYPE=posix
15617   fi
15618 
15619 
15620   HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU}
15621   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15622     HOTSPOT_BUILD_CPU=x86_32
15623   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15624     HOTSPOT_BUILD_CPU=sparc
15625   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
15626     HOTSPOT_BUILD_CPU=ppc_64
15627   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
15628     HOTSPOT_BUILD_CPU=ppc_64
15629   fi
15630 
15631 
15632   # This is identical with OPENJDK_*, but define anyway for consistency.
15633   HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH}
15634 
15635 
15636   # Setup HOTSPOT_BUILD_CPU_DEFINE
15637   if test "x$OPENJDK_BUILD_CPU" = xx86; then
15638     HOTSPOT_BUILD_CPU_DEFINE=IA32
15639   elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then
15640     HOTSPOT_BUILD_CPU_DEFINE=AMD64
15641   elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then
15642     HOTSPOT_BUILD_CPU_DEFINE=SPARC
15643   elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then
15644     HOTSPOT_BUILD_CPU_DEFINE=AARCH64
15645   elif test "x$OPENJDK_BUILD_CPU" = xppc64; then
15646     HOTSPOT_BUILD_CPU_DEFINE=PPC64
15647   elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then
15648     HOTSPOT_BUILD_CPU_DEFINE=PPC64
15649 
15650   # The cpu defines below are for zero, we don't support them directly.
15651   elif test "x$OPENJDK_BUILD_CPU" = xsparc; then
15652     HOTSPOT_BUILD_CPU_DEFINE=SPARC
15653   elif test "x$OPENJDK_BUILD_CPU" = xppc; then
15654     HOTSPOT_BUILD_CPU_DEFINE=PPC32
15655   elif test "x$OPENJDK_BUILD_CPU" = xs390; then
15656     HOTSPOT_BUILD_CPU_DEFINE=S390
15657   elif test "x$OPENJDK_BUILD_CPU" = ss390x; then
15658     HOTSPOT_BUILD_CPU_DEFINE=S390
15659   fi
15660 
15661 
15662 
15663 
15664   # ZERO_ARCHDEF is used to enable architecture-specific code.
15665   # This is used in legacy hotspot build.
15666   ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE"
15667 
15668 
15669 
15670 
15671 
15672 # Continue setting up basic stuff. Most remaining code require fundamental tools.
15673 
15674   # Save the current directory this script was started from
15675   CURDIR="$PWD"
15676 
15677   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
15678   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
15679   # was not available at that time.
15680   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15681   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15682     ORIGINAL_PATH="$REWRITTEN_PATH"
15683     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15684 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15685   fi
15686 
15687   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15688     PATH_SEP=";"
15689 
15690   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15691   if test $SRC_ROOT_LENGTH -gt 100; then
15692     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15693   fi
15694 
15695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15697 $as_echo_n "checking cygwin release... " >&6; }
15698     CYGWIN_VERSION=`$UNAME -r`
15699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15700 $as_echo "$CYGWIN_VERSION" >&6; }
15701     WINDOWS_ENV_VENDOR='cygwin'
15702     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15703 
15704     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15705     if test "x$CYGWIN_VERSION_OLD" != x; then
15706       { $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
15707 $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;}
15708       as_fn_error $? "Cannot continue" "$LINENO" 5
15709     fi
15710     if test "x$CYGPATH" = x; then
15711       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15712     fi
15713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15714 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15715     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15716     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15717     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15718     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15720 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15721     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15722     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15723     if test "x$test_cygdrive_prefix" = x; then
15724       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15725     fi
15726   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15728 $as_echo_n "checking msys release... " >&6; }
15729     MSYS_VERSION=`$UNAME -r`
15730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15731 $as_echo "$MSYS_VERSION" >&6; }
15732 
15733     WINDOWS_ENV_VENDOR='msys'
15734     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15735 
15736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15737 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15738     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15739     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15740 
15741   windows_path="$MSYS_ROOT_PATH"
15742   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15743     unix_path=`$CYGPATH -u "$windows_path"`
15744     MSYS_ROOT_PATH="$unix_path"
15745   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15746     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15747     MSYS_ROOT_PATH="$unix_path"
15748   fi
15749 
15750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15751 $as_echo "$MSYS_ROOT_PATH" >&6; }
15752     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15753   else
15754     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15755   fi
15756 
15757   # Test if windows or unix (cygwin/msys) find is first in path.
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15759 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15760   FIND_BINARY_OUTPUT=`find --version 2>&1`
15761   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15763 $as_echo "unix style" >&6; }
15764   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15766 $as_echo "Windows" >&6; }
15767     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15768 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15769     { $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
15770 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15771     as_fn_error $? "Cannot continue" "$LINENO" 5
15772   else
15773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15774 $as_echo "unknown" >&6; }
15775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15776 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15777   fi
15778 
15779   else
15780     PATH_SEP=":"
15781   fi
15782 
15783 
15784   # We get the top-level directory from the supporting wrappers.
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15786 $as_echo_n "checking for top-level directory... " >&6; }
15787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15788 $as_echo "$TOPDIR" >&6; }
15789 
15790 
15791   # Save the original version of TOPDIR for string comparisons
15792   ORIGINAL_TOPDIR="$TOPDIR"
15793 
15794 
15795   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15796 
15797   # Only process if variable expands to non-empty
15798 
15799   if test "x$CURDIR" != x; then
15800     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15801 
15802   # Input might be given as Windows format, start by converting to
15803   # unix format.
15804   path="$CURDIR"
15805   new_path=`$CYGPATH -u "$path"`
15806 
15807   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15808   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15809   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15810   # "foo.exe" is OK but "foo" is an error.
15811   #
15812   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15813   # It is also a way to make sure we got the proper file name for the real test later on.
15814   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15815   if test "x$test_shortpath" = x; then
15816     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15817 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15818     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15819   fi
15820 
15821   # Call helper function which possibly converts this using DOS-style short mode.
15822   # If so, the updated path is stored in $new_path.
15823 
15824   input_path="$new_path"
15825   # Check if we need to convert this using DOS-style short mode. If the path
15826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15827   # take no chances and rewrite it.
15828   # Note: m4 eats our [], so we need to use [ and ] instead.
15829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15830   if test "x$has_forbidden_chars" != x; then
15831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15832     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15833     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15834     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15835       # Going to short mode and back again did indeed matter. Since short mode is
15836       # case insensitive, let's make it lowercase to improve readability.
15837       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15838       # Now convert it back to Unix-style (cygpath)
15839       input_path=`$CYGPATH -u "$shortmode_path"`
15840       new_path="$input_path"
15841     fi
15842   fi
15843 
15844   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15845   if test "x$test_cygdrive_prefix" = x; then
15846     # As a simple fix, exclude /usr/bin since it's not a real path.
15847     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15848       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15849       # a path prefixed by /cygdrive for fixpath to work.
15850       new_path="$CYGWIN_ROOT_PATH$input_path"
15851     fi
15852   fi
15853 
15854 
15855   if test "x$path" != "x$new_path"; then
15856     CURDIR="$new_path"
15857     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15858 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15859   fi
15860 
15861     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15862 
15863   path="$CURDIR"
15864   has_colon=`$ECHO $path | $GREP ^.:`
15865   new_path="$path"
15866   if test "x$has_colon" = x; then
15867     # Not in mixed or Windows style, start by that.
15868     new_path=`cmd //c echo $path`
15869   fi
15870 
15871 
15872   input_path="$new_path"
15873   # Check if we need to convert this using DOS-style short mode. If the path
15874   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15875   # take no chances and rewrite it.
15876   # Note: m4 eats our [], so we need to use [ and ] instead.
15877   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15878   if test "x$has_forbidden_chars" != x; then
15879     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15880     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15881   fi
15882 
15883 
15884   windows_path="$new_path"
15885   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15886     unix_path=`$CYGPATH -u "$windows_path"`
15887     new_path="$unix_path"
15888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15889     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15890     new_path="$unix_path"
15891   fi
15892 
15893   if test "x$path" != "x$new_path"; then
15894     CURDIR="$new_path"
15895     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15896 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15897   fi
15898 
15899   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15900   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15901 
15902     else
15903       # We're on a unix platform. Hooray! :)
15904       path="$CURDIR"
15905       has_space=`$ECHO "$path" | $GREP " "`
15906       if test "x$has_space" != x; then
15907         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15908 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15909         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15910       fi
15911 
15912       # Use eval to expand a potential ~
15913       eval path="$path"
15914       if test ! -f "$path" && test ! -d "$path"; then
15915         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15916       fi
15917 
15918       if test -d "$path"; then
15919         CURDIR="`cd "$path"; $THEPWDCMD -L`"
15920       else
15921         dir="`$DIRNAME "$path"`"
15922         base="`$BASENAME "$path"`"
15923         CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
15924       fi
15925     fi
15926   fi
15927 
15928 
15929   # Only process if variable expands to non-empty
15930 
15931   if test "x$TOPDIR" != x; then
15932     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15933 
15934   # Input might be given as Windows format, start by converting to
15935   # unix format.
15936   path="$TOPDIR"
15937   new_path=`$CYGPATH -u "$path"`
15938 
15939   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15940   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15941   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15942   # "foo.exe" is OK but "foo" is an error.
15943   #
15944   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15945   # It is also a way to make sure we got the proper file name for the real test later on.
15946   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15947   if test "x$test_shortpath" = x; then
15948     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15949 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15950     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15951   fi
15952 
15953   # Call helper function which possibly converts this using DOS-style short mode.
15954   # If so, the updated path is stored in $new_path.
15955 
15956   input_path="$new_path"
15957   # Check if we need to convert this using DOS-style short mode. If the path
15958   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15959   # take no chances and rewrite it.
15960   # Note: m4 eats our [], so we need to use [ and ] instead.
15961   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15962   if test "x$has_forbidden_chars" != x; then
15963     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15964     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15965     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15966     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15967       # Going to short mode and back again did indeed matter. Since short mode is
15968       # case insensitive, let's make it lowercase to improve readability.
15969       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15970       # Now convert it back to Unix-style (cygpath)
15971       input_path=`$CYGPATH -u "$shortmode_path"`
15972       new_path="$input_path"
15973     fi
15974   fi
15975 
15976   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15977   if test "x$test_cygdrive_prefix" = x; then
15978     # As a simple fix, exclude /usr/bin since it's not a real path.
15979     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15980       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15981       # a path prefixed by /cygdrive for fixpath to work.
15982       new_path="$CYGWIN_ROOT_PATH$input_path"
15983     fi
15984   fi
15985 
15986 
15987   if test "x$path" != "x$new_path"; then
15988     TOPDIR="$new_path"
15989     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15990 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15991   fi
15992 
15993     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15994 
15995   path="$TOPDIR"
15996   has_colon=`$ECHO $path | $GREP ^.:`
15997   new_path="$path"
15998   if test "x$has_colon" = x; then
15999     # Not in mixed or Windows style, start by that.
16000     new_path=`cmd //c echo $path`
16001   fi
16002 
16003 
16004   input_path="$new_path"
16005   # Check if we need to convert this using DOS-style short mode. If the path
16006   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16007   # take no chances and rewrite it.
16008   # Note: m4 eats our [], so we need to use [ and ] instead.
16009   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16010   if test "x$has_forbidden_chars" != x; then
16011     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16012     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16013   fi
16014 
16015 
16016   windows_path="$new_path"
16017   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16018     unix_path=`$CYGPATH -u "$windows_path"`
16019     new_path="$unix_path"
16020   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16021     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16022     new_path="$unix_path"
16023   fi
16024 
16025   if test "x$path" != "x$new_path"; then
16026     TOPDIR="$new_path"
16027     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
16028 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
16029   fi
16030 
16031   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16032   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16033 
16034     else
16035       # We're on a unix platform. Hooray! :)
16036       path="$TOPDIR"
16037       has_space=`$ECHO "$path" | $GREP " "`
16038       if test "x$has_space" != x; then
16039         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
16040 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
16041         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16042       fi
16043 
16044       # Use eval to expand a potential ~
16045       eval path="$path"
16046       if test ! -f "$path" && test ! -d "$path"; then
16047         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
16048       fi
16049 
16050       if test -d "$path"; then
16051         TOPDIR="`cd "$path"; $THEPWDCMD -L`"
16052       else
16053         dir="`$DIRNAME "$path"`"
16054         base="`$BASENAME "$path"`"
16055         TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base"
16056       fi
16057     fi
16058   fi
16059 
16060   # SRC_ROOT is a traditional alias for TOPDIR.
16061   SRC_ROOT=$TOPDIR
16062 
16063   # Calculate a canonical version of TOPDIR for string comparisons
16064   CANONICAL_TOPDIR=$TOPDIR
16065 
16066   if test "x$OPENJDK_BUILD_OS" != xwindows; then
16067     # Follow a chain of symbolic links. Use readlink
16068     # where it exists, else fall back to horribly
16069     # complicated shell code.
16070     if test "x$READLINK_TESTED" != yes; then
16071       # On MacOSX there is a readlink tool with a different
16072       # purpose than the GNU readlink tool. Check the found readlink.
16073       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
16074       if test "x$ISGNU" = x; then
16075         # A readlink that we do not know how to use.
16076         # Are there other non-GNU readlinks out there?
16077         READLINK_TESTED=yes
16078         READLINK=
16079       fi
16080     fi
16081 
16082     if test "x$READLINK" != x; then
16083       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
16084     else
16085       # Save the current directory for restoring afterwards
16086       STARTDIR=$PWD
16087       COUNTER=0
16088       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
16089       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
16090       cd $sym_link_dir
16091       # Use -P flag to resolve symlinks in directories.
16092       cd `$THEPWDCMD -P`
16093       sym_link_dir=`$THEPWDCMD -P`
16094       # Resolve file symlinks
16095       while test $COUNTER -lt 20; do
16096         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
16097         if test "x$ISLINK" == x; then
16098           # This is not a symbolic link! We are done!
16099           break
16100         fi
16101         # Again resolve directory symlinks since the target of the just found
16102         # link could be in a different directory
16103         cd `$DIRNAME $ISLINK`
16104         sym_link_dir=`$THEPWDCMD -P`
16105         sym_link_file=`$BASENAME $ISLINK`
16106         let COUNTER=COUNTER+1
16107       done
16108       cd $STARTDIR
16109       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
16110     fi
16111   fi
16112 
16113 
16114 
16115   # Locate the directory of this script.
16116   AUTOCONF_DIR=$TOPDIR/common/autoconf
16117 
16118   # Setup username (for use in adhoc version strings etc)
16119   # Outer [ ] to quote m4.
16120    USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'`
16121 
16122 
16123 
16124 # Check if it's a pure open build or if custom sources are to be used.
16125 
16126   # Check whether --enable-openjdk-only was given.
16127 if test "${enable_openjdk_only+set}" = set; then :
16128   enableval=$enable_openjdk_only;
16129 else
16130   enable_openjdk_only="no"
16131 fi
16132 
16133 
16134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
16135 $as_echo_n "checking for presence of closed sources... " >&6; }
16136   if test -d "$SRC_ROOT/jdk/src/closed"; then
16137     CLOSED_SOURCE_PRESENT=yes
16138   else
16139     CLOSED_SOURCE_PRESENT=no
16140   fi
16141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
16142 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
16143 
16144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
16145 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
16146   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
16147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
16148 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
16149 
16150   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
16151     OPENJDK=true
16152     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16153       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
16154 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
16155     fi
16156   else
16157     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
16158       OPENJDK=true
16159     else
16160       OPENJDK=false
16161     fi
16162   fi
16163 
16164   if test "x$OPENJDK" = "xtrue"; then
16165     SET_OPENJDK="OPENJDK=true"
16166   fi
16167 
16168 
16169 
16170   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
16171   # the IncludeCustomExtension macro.
16172 
16173 
16174 # Check whether --with-custom-make-dir was given.
16175 if test "${with_custom_make_dir+set}" = set; then :
16176   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
16177 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
16178 fi
16179 
16180 
16181 
16182 
16183 # These are needed to be able to create a configuration name (and thus the output directory)
16184 
16185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
16186 $as_echo_n "checking which variant of the JDK to build... " >&6; }
16187 
16188 # Check whether --with-jdk-variant was given.
16189 if test "${with_jdk_variant+set}" = set; then :
16190   withval=$with_jdk_variant;
16191 fi
16192 
16193 
16194   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
16195     JDK_VARIANT="normal"
16196   else
16197     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
16198   fi
16199 
16200 
16201 
16202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
16203 $as_echo "$JDK_VARIANT" >&6; }
16204 
16205 
16206   DEBUG_LEVEL="release"
16207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
16208 $as_echo_n "checking which debug level to use... " >&6; }
16209   # Check whether --enable-debug was given.
16210 if test "${enable_debug+set}" = set; then :
16211   enableval=$enable_debug;
16212         ENABLE_DEBUG="${enableval}"
16213         DEBUG_LEVEL="fastdebug"
16214 
16215 else
16216   ENABLE_DEBUG="no"
16217 fi
16218 
16219 
16220 
16221 # Check whether --with-debug-level was given.
16222 if test "${with_debug_level+set}" = set; then :
16223   withval=$with_debug_level;
16224         DEBUG_LEVEL="${withval}"
16225         if test "x$ENABLE_DEBUG" = xyes; then
16226           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
16227         fi
16228 
16229 fi
16230 
16231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
16232 $as_echo "$DEBUG_LEVEL" >&6; }
16233 
16234   if test "x$DEBUG_LEVEL" != xrelease && \
16235       test "x$DEBUG_LEVEL" != xoptimized && \
16236       test "x$DEBUG_LEVEL" != xfastdebug && \
16237       test "x$DEBUG_LEVEL" != xslowdebug; then
16238     as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5
16239   fi
16240 
16241   # Translate DEBUG_LEVEL to debug level used by Hotspot
16242   HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL"
16243   if test "x$DEBUG_LEVEL" = xrelease; then
16244     HOTSPOT_DEBUG_LEVEL="product"
16245   elif test "x$DEBUG_LEVEL" = xslowdebug; then
16246     HOTSPOT_DEBUG_LEVEL="debug"
16247   fi
16248 
16249   if test "x$DEBUG_LEVEL" = xoptimized; then
16250     # The debug level 'optimized' is a little special because it is currently only
16251     # applicable to the HotSpot build where it means to build a completely
16252     # optimized version of the VM without any debugging code (like for the
16253     # 'release' debug level which is called 'product' in the HotSpot build) but
16254     # with the exception that it can contain additional code which is otherwise
16255     # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
16256     # test new and/or experimental features which are not intended for customer
16257     # shipment. Because these new features need to be tested and benchmarked in
16258     # real world scenarios, we want to build the containing JDK at the 'release'
16259     # debug level.
16260     DEBUG_LEVEL="release"
16261   fi
16262 
16263 
16264 
16265 
16266 
16267 
16268 # Check whether --with-jvm-variants was given.
16269 if test "${with_jvm_variants+set}" = set; then :
16270   withval=$with_jvm_variants;
16271 fi
16272 
16273 
16274   if test "x$with_jvm_variants" = x; then
16275     with_jvm_variants="server"
16276   fi
16277   JVM_VARIANTS_OPT="$with_jvm_variants"
16278 
16279   # Has the user listed more than one variant?
16280   # Additional [] needed to keep m4 from mangling shell constructs.
16281   if  [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then
16282     BUILDING_MULTIPLE_JVM_VARIANTS=true
16283   else
16284     BUILDING_MULTIPLE_JVM_VARIANTS=false
16285   fi
16286   # Replace the commas with AND for use in the build directory name.
16287   JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'`
16288 
16289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
16290 $as_echo_n "checking which variants of the JVM to build... " >&6; }
16291   # JVM_VARIANTS is a space-separated list.
16292   # Also use minimal, not minimal1 (which is kept for backwards compatibility).
16293   JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'`
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5
16295 $as_echo "$JVM_VARIANTS" >&6; }
16296 
16297   # Check that the selected variants are valid
16298 
16299   # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326
16300   # Notice that the original variant failes on SLES 10 and 11
16301   NEEDLE=${VALID_JVM_VARIANTS// /$'\n'}
16302   STACK=${JVM_VARIANTS// /$'\n'}
16303   INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16304   if test "x$INVALID_VARIANTS" != x; then
16305     { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5
16306 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;}
16307     as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5
16308   fi
16309 
16310   # All "special" variants share the same output directory ("server")
16311   VALID_MULTIPLE_JVM_VARIANTS="server client minimal"
16312   NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'}
16313   STACK=${JVM_VARIANTS// /$'\n'}
16314   INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"`
16315   if  test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then
16316     as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5
16317   fi
16318 
16319 
16320 
16321 
16322   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
16323     # zero behaves as a platform and rewrites these values. This is really weird. :(
16324     # We are guaranteed that we do not build any other variants when building zero.
16325     HOTSPOT_TARGET_CPU=zero
16326     HOTSPOT_TARGET_CPU_ARCH=zero
16327   fi
16328 
16329 
16330 # With basic setup done, call the custom early hook.
16331 
16332 
16333 # Check if we have devkits, extra paths or sysroot set.
16334 
16335 
16336 # Check whether --with-devkit was given.
16337 if test "${with_devkit+set}" = set; then :
16338   withval=$with_devkit;
16339 
16340   # Only process if variable expands to non-empty
16341 
16342   if test "x$with_devkit" != x; then
16343     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16344 
16345   # Input might be given as Windows format, start by converting to
16346   # unix format.
16347   path="$with_devkit"
16348   new_path=`$CYGPATH -u "$path"`
16349 
16350   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16351   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16352   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16353   # "foo.exe" is OK but "foo" is an error.
16354   #
16355   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16356   # It is also a way to make sure we got the proper file name for the real test later on.
16357   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16358   if test "x$test_shortpath" = x; then
16359     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16360 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16361     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
16362   fi
16363 
16364   # Call helper function which possibly converts this using DOS-style short mode.
16365   # If so, the updated path is stored in $new_path.
16366 
16367   input_path="$new_path"
16368   # Check if we need to convert this using DOS-style short mode. If the path
16369   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16370   # take no chances and rewrite it.
16371   # Note: m4 eats our [], so we need to use [ and ] instead.
16372   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16373   if test "x$has_forbidden_chars" != x; then
16374     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16375     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16376     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16377     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16378       # Going to short mode and back again did indeed matter. Since short mode is
16379       # case insensitive, let's make it lowercase to improve readability.
16380       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16381       # Now convert it back to Unix-style (cygpath)
16382       input_path=`$CYGPATH -u "$shortmode_path"`
16383       new_path="$input_path"
16384     fi
16385   fi
16386 
16387   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16388   if test "x$test_cygdrive_prefix" = x; then
16389     # As a simple fix, exclude /usr/bin since it's not a real path.
16390     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16391       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16392       # a path prefixed by /cygdrive for fixpath to work.
16393       new_path="$CYGWIN_ROOT_PATH$input_path"
16394     fi
16395   fi
16396 
16397 
16398   if test "x$path" != "x$new_path"; then
16399     with_devkit="$new_path"
16400     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16401 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16402   fi
16403 
16404     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16405 
16406   path="$with_devkit"
16407   has_colon=`$ECHO $path | $GREP ^.:`
16408   new_path="$path"
16409   if test "x$has_colon" = x; then
16410     # Not in mixed or Windows style, start by that.
16411     new_path=`cmd //c echo $path`
16412   fi
16413 
16414 
16415   input_path="$new_path"
16416   # Check if we need to convert this using DOS-style short mode. If the path
16417   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16418   # take no chances and rewrite it.
16419   # Note: m4 eats our [], so we need to use [ and ] instead.
16420   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16421   if test "x$has_forbidden_chars" != x; then
16422     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16423     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16424   fi
16425 
16426 
16427   windows_path="$new_path"
16428   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16429     unix_path=`$CYGPATH -u "$windows_path"`
16430     new_path="$unix_path"
16431   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16432     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16433     new_path="$unix_path"
16434   fi
16435 
16436   if test "x$path" != "x$new_path"; then
16437     with_devkit="$new_path"
16438     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
16439 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
16440   fi
16441 
16442   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16443   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16444 
16445     else
16446       # We're on a unix platform. Hooray! :)
16447       path="$with_devkit"
16448       has_space=`$ECHO "$path" | $GREP " "`
16449       if test "x$has_space" != x; then
16450         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
16451 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
16452         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16453       fi
16454 
16455       # Use eval to expand a potential ~
16456       eval path="$path"
16457       if test ! -f "$path" && test ! -d "$path"; then
16458         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
16459       fi
16460 
16461       if test -d "$path"; then
16462         with_devkit="`cd "$path"; $THEPWDCMD -L`"
16463       else
16464         dir="`$DIRNAME "$path"`"
16465         base="`$BASENAME "$path"`"
16466         with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base"
16467       fi
16468     fi
16469   fi
16470 
16471         DEVKIT_ROOT="$with_devkit"
16472         # Check for a meta data info file in the root of the devkit
16473         if test -f "$DEVKIT_ROOT/devkit.info"; then
16474           . $DEVKIT_ROOT/devkit.info
16475           # This potentially sets the following:
16476           # A descriptive name of the devkit
16477 
16478   if test "x$DEVKIT_NAME" = x; then
16479     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
16480   fi
16481 
16482           # Corresponds to --with-extra-path
16483 
16484   if test "x$DEVKIT_EXTRA_PATH" = x; then
16485     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
16486   fi
16487 
16488           # Corresponds to --with-toolchain-path
16489 
16490   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16491     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
16492   fi
16493 
16494           # Corresponds to --with-sysroot
16495 
16496   if test "x$DEVKIT_SYSROOT" = x; then
16497     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
16498   fi
16499 
16500 
16501           # Identifies the Visual Studio version in the devkit
16502 
16503   if test "x$DEVKIT_VS_VERSION" = x; then
16504     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
16505   fi
16506 
16507           # The Visual Studio include environment variable
16508 
16509   if test "x$DEVKIT_VS_INCLUDE" = x; then
16510     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
16511   fi
16512 
16513           # The Visual Studio lib environment variable
16514 
16515   if test "x$DEVKIT_VS_LIB" = x; then
16516     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
16517   fi
16518 
16519           # Corresponds to --with-msvcr-dll
16520 
16521   if test "x$DEVKIT_MSVCR_DLL" = x; then
16522     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
16523   fi
16524 
16525           # Corresponds to --with-msvcp-dll
16526 
16527   if test "x$DEVKIT_MSVCP_DLL" = x; then
16528     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
16529   fi
16530 
16531         fi
16532 
16533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16534 $as_echo_n "checking for devkit... " >&6; }
16535         if test "x$DEVKIT_NAME" != x; then
16536           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16537 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16538         else
16539           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16540 $as_echo "$DEVKIT_ROOT" >&6; }
16541         fi
16542 
16543 
16544   if test "x$DEVKIT_EXTRA_PATH" != x; then
16545     if test "x$EXTRA_PATH" = x; then
16546       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16547     else
16548       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16549     fi
16550   fi
16551 
16552 
16553         # Fallback default of just /bin if DEVKIT_PATH is not defined
16554         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16555           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16556         fi
16557 
16558   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16559     if test "x$TOOLCHAIN_PATH" = x; then
16560       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16561     else
16562       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16563     fi
16564   fi
16565 
16566 
16567         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16568         # places for backwards compatiblity.
16569         if test "x$DEVKIT_SYSROOT" != x; then
16570           SYSROOT="$DEVKIT_SYSROOT"
16571         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16572           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16573         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16574           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16575         fi
16576 
16577 
16578 fi
16579 
16580 
16581   # You can force the sysroot if the sysroot encoded into the compiler tools
16582   # is not correct.
16583 
16584 # Check whether --with-sys-root was given.
16585 if test "${with_sys_root+set}" = set; then :
16586   withval=$with_sys_root; SYSROOT=$with_sys_root
16587 
16588 fi
16589 
16590 
16591 
16592 # Check whether --with-sysroot was given.
16593 if test "${with_sysroot+set}" = set; then :
16594   withval=$with_sysroot; SYSROOT=$with_sysroot
16595 
16596 fi
16597 
16598 
16599 
16600 # Check whether --with-tools-dir was given.
16601 if test "${with_tools_dir+set}" = set; then :
16602   withval=$with_tools_dir;
16603   if test "x$with_tools_dir" != x; then
16604     if test "x$TOOLCHAIN_PATH" = x; then
16605       TOOLCHAIN_PATH="$with_tools_dir"
16606     else
16607       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16608     fi
16609   fi
16610 
16611 
16612 fi
16613 
16614 
16615 
16616 # Check whether --with-toolchain-path was given.
16617 if test "${with_toolchain_path+set}" = set; then :
16618   withval=$with_toolchain_path;
16619   if test "x$with_toolchain_path" != x; then
16620     if test "x$TOOLCHAIN_PATH" = x; then
16621       TOOLCHAIN_PATH="$with_toolchain_path"
16622     else
16623       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16624     fi
16625   fi
16626 
16627 
16628 fi
16629 
16630 
16631 
16632 # Check whether --with-extra-path was given.
16633 if test "${with_extra_path+set}" = set; then :
16634   withval=$with_extra_path;
16635   if test "x$with_extra_path" != x; then
16636     if test "x$EXTRA_PATH" = x; then
16637       EXTRA_PATH="$with_extra_path"
16638     else
16639       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16640     fi
16641   fi
16642 
16643 
16644 fi
16645 
16646 
16647   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16648     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16649     # If not, detect if Xcode is installed by running xcodebuild -version
16650     # if no Xcode installed, xcodebuild exits with 1
16651     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16652     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16653       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16654       # fall back on the stub binary in /usr/bin/xcodebuild
16655       # Extract the first word of "xcodebuild", so it can be a program name with args.
16656 set dummy xcodebuild; ac_word=$2
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16658 $as_echo_n "checking for $ac_word... " >&6; }
16659 if ${ac_cv_path_XCODEBUILD+:} false; then :
16660   $as_echo_n "(cached) " >&6
16661 else
16662   case $XCODEBUILD in
16663   [\\/]* | ?:[\\/]*)
16664   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16665   ;;
16666   *)
16667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $TOOLCHAIN_PATH
16669 do
16670   IFS=$as_save_IFS
16671   test -z "$as_dir" && as_dir=.
16672     for ac_exec_ext in '' $ac_executable_extensions; do
16673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16676     break 2
16677   fi
16678 done
16679   done
16680 IFS=$as_save_IFS
16681 
16682   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16683   ;;
16684 esac
16685 fi
16686 XCODEBUILD=$ac_cv_path_XCODEBUILD
16687 if test -n "$XCODEBUILD"; then
16688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16689 $as_echo "$XCODEBUILD" >&6; }
16690 else
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16692 $as_echo "no" >&6; }
16693 fi
16694 
16695 
16696     else
16697       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16698       # when only the command line tools are installed there are no SDKs, so headers
16699       # are copied into the system frameworks
16700       XCODEBUILD=
16701 
16702     fi
16703 
16704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16705 $as_echo_n "checking for sdk name... " >&6; }
16706 
16707 # Check whether --with-sdk-name was given.
16708 if test "${with_sdk_name+set}" = set; then :
16709   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16710 
16711 fi
16712 
16713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16714 $as_echo "$SDKNAME" >&6; }
16715 
16716     # if toolchain path is specified then don't rely on system headers, they may not compile
16717     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16718     test -z "$TOOLCHAIN_PATH" && \
16719       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16720 
16721     if test -z "$SYSROOT"; then
16722       if test -n "$XCODEBUILD"; then
16723         # if we don't have system headers, use default SDK name (last resort)
16724         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16725           SDKNAME=${SDKNAME:-macosx}
16726         fi
16727 
16728         if test -n "$SDKNAME"; then
16729           # Call xcodebuild to determine SYSROOT
16730           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16731         fi
16732       else
16733         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16734           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
16735         fi
16736       fi
16737     else
16738       # warn user if --with-sdk-name was also set
16739       if test -n "$with_sdk_name"; then
16740         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16741 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16742       fi
16743     fi
16744 
16745     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16746       # If no system framework headers, then SYSROOT must be set, or we won't build
16747       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
16748     fi
16749 
16750     # Perform a basic sanity test
16751     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16752       if test -z "$SYSROOT"; then
16753         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
16754       else
16755         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16756       fi
16757     fi
16758 
16759     # set SDKROOT too, Xcode tools will pick it up
16760     SDKROOT=$SYSROOT
16761 
16762   fi
16763 
16764   # Prepend the extra path to the global path
16765 
16766   if test "x$EXTRA_PATH" != x; then
16767     if test "x$PATH" = x; then
16768       PATH="$EXTRA_PATH"
16769     else
16770       PATH="$EXTRA_PATH:$PATH"
16771     fi
16772   fi
16773 
16774 
16775   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16776     # Add extra search paths on solaris for utilities like ar, as, dtrace etc...
16777     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin"
16778   fi
16779 
16780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16781 $as_echo_n "checking for sysroot... " >&6; }
16782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16783 $as_echo "$SYSROOT" >&6; }
16784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16785 $as_echo_n "checking for toolchain path... " >&6; }
16786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16787 $as_echo "$TOOLCHAIN_PATH" >&6; }
16788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16789 $as_echo_n "checking for extra path... " >&6; }
16790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16791 $as_echo "$EXTRA_PATH" >&6; }
16792 
16793 
16794 # To properly create a configuration name, we need to have the OpenJDK target
16795 # and options (variants and debug level) parsed.
16796 
16797 
16798 
16799 # Check whether --with-conf-name was given.
16800 if test "${with_conf_name+set}" = set; then :
16801   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16802 fi
16803 
16804 
16805   # Test from where we are running configure, in or outside of src root.
16806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16807 $as_echo_n "checking where to store configuration... " >&6; }
16808   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16809       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16810       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16811     # We are running configure from the src root.
16812     # Create a default ./build/target-variant-debuglevel output root.
16813     if test "x${CONF_NAME}" = x; then
16814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16815 $as_echo "in default location" >&6; }
16816       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}"
16817     else
16818       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16819 $as_echo "in build directory with custom name" >&6; }
16820     fi
16821     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16822     $MKDIR -p "$OUTPUT_ROOT"
16823     if test ! -d "$OUTPUT_ROOT"; then
16824       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16825     fi
16826   else
16827     # We are running configure from outside of the src dir.
16828     # Then use the current directory as output dir!
16829     # If configuration is situated in normal build directory, just use the build
16830     # directory name as configuration name, otherwise use the complete path.
16831     if test "x${CONF_NAME}" = x; then
16832       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16833     fi
16834     OUTPUT_ROOT="$CURDIR"
16835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16836 $as_echo "in current directory" >&6; }
16837 
16838     # WARNING: This might be a bad thing to do. You need to be sure you want to
16839     # have a configuration in this directory. Do some sanity checks!
16840 
16841     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16842       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16843       # other files
16844       files_present=`$LS $OUTPUT_ROOT`
16845       # Configure has already touched config.log and confdefs.h in the current dir when this check
16846       # is performed.
16847       filtered_files=`$ECHO "$files_present" \
16848           | $SED -e 's/config.log//g' \
16849               -e 's/configure.log//g' \
16850               -e 's/confdefs.h//g' \
16851               -e 's/ //g' \
16852           | $TR -d '\n'`
16853       if test "x$filtered_files" != x; then
16854         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16855 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16856         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16857 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16858         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16859 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16860         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16861 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16862         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16863 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16864         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16865 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16866         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16867 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16868         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16869       fi
16870     fi
16871   fi
16872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16873 $as_echo_n "checking what configuration name to use... " >&6; }
16874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16875 $as_echo "$CONF_NAME" >&6; }
16876 
16877 
16878   # Only process if variable expands to non-empty
16879 
16880   if test "x$OUTPUT_ROOT" != x; then
16881     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16882 
16883   # Input might be given as Windows format, start by converting to
16884   # unix format.
16885   path="$OUTPUT_ROOT"
16886   new_path=`$CYGPATH -u "$path"`
16887 
16888   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16889   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16890   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16891   # "foo.exe" is OK but "foo" is an error.
16892   #
16893   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16894   # It is also a way to make sure we got the proper file name for the real test later on.
16895   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16896   if test "x$test_shortpath" = x; then
16897     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16898 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16899     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16900   fi
16901 
16902   # Call helper function which possibly converts this using DOS-style short mode.
16903   # If so, the updated path is stored in $new_path.
16904 
16905   input_path="$new_path"
16906   # Check if we need to convert this using DOS-style short mode. If the path
16907   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16908   # take no chances and rewrite it.
16909   # Note: m4 eats our [], so we need to use [ and ] instead.
16910   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16911   if test "x$has_forbidden_chars" != x; then
16912     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16913     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16914     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16915     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16916       # Going to short mode and back again did indeed matter. Since short mode is
16917       # case insensitive, let's make it lowercase to improve readability.
16918       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16919       # Now convert it back to Unix-style (cygpath)
16920       input_path=`$CYGPATH -u "$shortmode_path"`
16921       new_path="$input_path"
16922     fi
16923   fi
16924 
16925   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16926   if test "x$test_cygdrive_prefix" = x; then
16927     # As a simple fix, exclude /usr/bin since it's not a real path.
16928     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16929       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16930       # a path prefixed by /cygdrive for fixpath to work.
16931       new_path="$CYGWIN_ROOT_PATH$input_path"
16932     fi
16933   fi
16934 
16935 
16936   if test "x$path" != "x$new_path"; then
16937     OUTPUT_ROOT="$new_path"
16938     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16939 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16940   fi
16941 
16942     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16943 
16944   path="$OUTPUT_ROOT"
16945   has_colon=`$ECHO $path | $GREP ^.:`
16946   new_path="$path"
16947   if test "x$has_colon" = x; then
16948     # Not in mixed or Windows style, start by that.
16949     new_path=`cmd //c echo $path`
16950   fi
16951 
16952 
16953   input_path="$new_path"
16954   # Check if we need to convert this using DOS-style short mode. If the path
16955   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16956   # take no chances and rewrite it.
16957   # Note: m4 eats our [], so we need to use [ and ] instead.
16958   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16959   if test "x$has_forbidden_chars" != x; then
16960     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16961     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16962   fi
16963 
16964 
16965   windows_path="$new_path"
16966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16967     unix_path=`$CYGPATH -u "$windows_path"`
16968     new_path="$unix_path"
16969   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16970     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16971     new_path="$unix_path"
16972   fi
16973 
16974   if test "x$path" != "x$new_path"; then
16975     OUTPUT_ROOT="$new_path"
16976     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16977 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16978   fi
16979 
16980   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16981   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16982 
16983     else
16984       # We're on a unix platform. Hooray! :)
16985       path="$OUTPUT_ROOT"
16986       has_space=`$ECHO "$path" | $GREP " "`
16987       if test "x$has_space" != x; then
16988         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16989 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16990         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16991       fi
16992 
16993       # Use eval to expand a potential ~
16994       eval path="$path"
16995       if test ! -f "$path" && test ! -d "$path"; then
16996         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16997       fi
16998 
16999       if test -d "$path"; then
17000         OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
17001       else
17002         dir="`$DIRNAME "$path"`"
17003         base="`$BASENAME "$path"`"
17004         OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base"
17005       fi
17006     fi
17007   fi
17008 
17009 
17010   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
17011   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
17012 
17013   SPEC=$OUTPUT_ROOT/spec.gmk
17014 
17015   CONF_NAME=$CONF_NAME
17016 
17017   OUTPUT_ROOT=$OUTPUT_ROOT
17018 
17019 
17020 
17021   # The spec.gmk file contains all variables for the make system.
17022   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
17023 
17024   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
17025   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
17026 
17027   # The bootcycle-spec.gmk file contains support for boot cycle builds.
17028   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
17029 
17030   # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling.
17031   ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in"
17032 
17033   # The compare.sh is used to compare the build output to other builds.
17034   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
17035 
17036   # The generated Makefile knows where the spec.gmk is and where the source is.
17037   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
17038   # which will look for generated configurations
17039   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
17040 
17041 
17042 
17043 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
17044 
17045   for ac_prog in apt-get yum port pkgutil pkgadd
17046 do
17047   # Extract the first word of "$ac_prog", so it can be a program name with args.
17048 set dummy $ac_prog; ac_word=$2
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17050 $as_echo_n "checking for $ac_word... " >&6; }
17051 if ${ac_cv_prog_PKGHANDLER+:} false; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054   if test -n "$PKGHANDLER"; then
17055   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
17056 else
17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $PATH
17059 do
17060   IFS=$as_save_IFS
17061   test -z "$as_dir" && as_dir=.
17062     for ac_exec_ext in '' $ac_executable_extensions; do
17063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17064     ac_cv_prog_PKGHANDLER="$ac_prog"
17065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17066     break 2
17067   fi
17068 done
17069   done
17070 IFS=$as_save_IFS
17071 
17072 fi
17073 fi
17074 PKGHANDLER=$ac_cv_prog_PKGHANDLER
17075 if test -n "$PKGHANDLER"; then
17076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
17077 $as_echo "$PKGHANDLER" >&6; }
17078 else
17079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081 fi
17082 
17083 
17084   test -n "$PKGHANDLER" && break
17085 done
17086 
17087 
17088 
17089 # Setup tools that requires more complex handling, or that is not needed by the configure script.
17090 
17091 
17092 
17093   # Publish this variable in the help.
17094 
17095 
17096   if [ -z "${MAKE+x}" ]; then
17097     # The variable is not set by user, try to locate tool using the code snippet
17098 
17099     # Try our hardest to locate a correct version of GNU make
17100     for ac_prog in gmake
17101 do
17102   # Extract the first word of "$ac_prog", so it can be a program name with args.
17103 set dummy $ac_prog; ac_word=$2
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17105 $as_echo_n "checking for $ac_word... " >&6; }
17106 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
17107   $as_echo_n "(cached) " >&6
17108 else
17109   case $CHECK_GMAKE in
17110   [\\/]* | ?:[\\/]*)
17111   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
17112   ;;
17113   *)
17114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17115 for as_dir in $PATH
17116 do
17117   IFS=$as_save_IFS
17118   test -z "$as_dir" && as_dir=.
17119     for ac_exec_ext in '' $ac_executable_extensions; do
17120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17121     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17123     break 2
17124   fi
17125 done
17126   done
17127 IFS=$as_save_IFS
17128 
17129   ;;
17130 esac
17131 fi
17132 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
17133 if test -n "$CHECK_GMAKE"; then
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
17135 $as_echo "$CHECK_GMAKE" >&6; }
17136 else
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17139 fi
17140 
17141 
17142   test -n "$CHECK_GMAKE" && break
17143 done
17144 
17145 
17146   MAKE_CANDIDATE=""$CHECK_GMAKE""
17147   DESCRIPTION="gmake in PATH"
17148 
17149   # On Cygwin, we require a newer version of make than on other platforms
17150   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17151     MAKE_VERSION_EXPR="-e 4\."
17152     MAKE_REQUIRED_VERSION="4.0"
17153    else
17154     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17155     MAKE_REQUIRED_VERSION="3.81"
17156   fi
17157 
17158   if test "x$MAKE_CANDIDATE" != x; then
17159     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17160 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17161     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17162     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17163     if test "x$IS_GNU_MAKE" = x; then
17164       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17165 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17166     else
17167       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17168       if test "x$IS_MODERN_MAKE" = x; then
17169         { $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
17170 $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;}
17171       else
17172         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17173           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17174             MAKE_EXPECTED_ENV='cygwin'
17175           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17176             MAKE_EXPECTED_ENV='msys'
17177           else
17178             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17179           fi
17180           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17181           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17182         else
17183           # Not relevant for non-Windows
17184           IS_MAKE_CORRECT_ENV=true
17185         fi
17186         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17187           { $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
17188 $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;}
17189         else
17190           FOUND_MAKE=$MAKE_CANDIDATE
17191 
17192   # Only process if variable expands to non-empty
17193 
17194   if test "x$FOUND_MAKE" != x; then
17195     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17196 
17197   # First separate the path from the arguments. This will split at the first
17198   # space.
17199   complete="$FOUND_MAKE"
17200   path="${complete%% *}"
17201   tmp="$complete EOL"
17202   arguments="${tmp#* }"
17203 
17204   # Input might be given as Windows format, start by converting to
17205   # unix format.
17206   new_path=`$CYGPATH -u "$path"`
17207 
17208   # Now try to locate executable using which
17209   new_path=`$WHICH "$new_path" 2> /dev/null`
17210   # bat and cmd files are not always considered executable in cygwin causing which
17211   # to not find them
17212   if test "x$new_path" = x \
17213       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17214       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17215     new_path=`$CYGPATH -u "$path"`
17216   fi
17217   if test "x$new_path" = x; then
17218     # Oops. Which didn't find the executable.
17219     # The splitting of arguments from the executable at a space might have been incorrect,
17220     # since paths with space are more likely in Windows. Give it another try with the whole
17221     # argument.
17222     path="$complete"
17223     arguments="EOL"
17224     new_path=`$CYGPATH -u "$path"`
17225     new_path=`$WHICH "$new_path" 2> /dev/null`
17226     # bat and cmd files are not always considered executable in cygwin causing which
17227     # to not find them
17228     if test "x$new_path" = x \
17229         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17230         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17231       new_path=`$CYGPATH -u "$path"`
17232     fi
17233     if test "x$new_path" = x; then
17234       # It's still not found. Now this is an unrecoverable error.
17235       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17236 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17237       has_space=`$ECHO "$complete" | $GREP " "`
17238       if test "x$has_space" != x; then
17239         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17241       fi
17242       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17243     fi
17244   fi
17245 
17246   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17247   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17248   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17249   # "foo.exe" is OK but "foo" is an error.
17250   #
17251   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17252   # It is also a way to make sure we got the proper file name for the real test later on.
17253   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17254   if test "x$test_shortpath" = x; then
17255     # Short path failed, file does not exist as specified.
17256     # Try adding .exe or .cmd
17257     if test -f "${new_path}.exe"; then
17258       input_to_shortpath="${new_path}.exe"
17259     elif test -f "${new_path}.cmd"; then
17260       input_to_shortpath="${new_path}.cmd"
17261     else
17262       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17264       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17265 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17266       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17267     fi
17268   else
17269     input_to_shortpath="$new_path"
17270   fi
17271 
17272   # Call helper function which possibly converts this using DOS-style short mode.
17273   # If so, the updated path is stored in $new_path.
17274   new_path="$input_to_shortpath"
17275 
17276   input_path="$input_to_shortpath"
17277   # Check if we need to convert this using DOS-style short mode. If the path
17278   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17279   # take no chances and rewrite it.
17280   # Note: m4 eats our [], so we need to use [ and ] instead.
17281   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17282   if test "x$has_forbidden_chars" != x; then
17283     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17284     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17285     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17286     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17287       # Going to short mode and back again did indeed matter. Since short mode is
17288       # case insensitive, let's make it lowercase to improve readability.
17289       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17290       # Now convert it back to Unix-style (cygpath)
17291       input_path=`$CYGPATH -u "$shortmode_path"`
17292       new_path="$input_path"
17293     fi
17294   fi
17295 
17296   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17297   if test "x$test_cygdrive_prefix" = x; then
17298     # As a simple fix, exclude /usr/bin since it's not a real path.
17299     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17300       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17301       # a path prefixed by /cygdrive for fixpath to work.
17302       new_path="$CYGWIN_ROOT_PATH$input_path"
17303     fi
17304   fi
17305 
17306   # remove trailing .exe if any
17307   new_path="${new_path/%.exe/}"
17308 
17309     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17310 
17311   # First separate the path from the arguments. This will split at the first
17312   # space.
17313   complete="$FOUND_MAKE"
17314   path="${complete%% *}"
17315   tmp="$complete EOL"
17316   arguments="${tmp#* }"
17317 
17318   # Input might be given as Windows format, start by converting to
17319   # unix format.
17320   new_path="$path"
17321 
17322   windows_path="$new_path"
17323   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17324     unix_path=`$CYGPATH -u "$windows_path"`
17325     new_path="$unix_path"
17326   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17327     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17328     new_path="$unix_path"
17329   fi
17330 
17331 
17332   # Now try to locate executable using which
17333   new_path=`$WHICH "$new_path" 2> /dev/null`
17334 
17335   if test "x$new_path" = x; then
17336     # Oops. Which didn't find the executable.
17337     # The splitting of arguments from the executable at a space might have been incorrect,
17338     # since paths with space are more likely in Windows. Give it another try with the whole
17339     # argument.
17340     path="$complete"
17341     arguments="EOL"
17342     new_path="$path"
17343 
17344   windows_path="$new_path"
17345   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17346     unix_path=`$CYGPATH -u "$windows_path"`
17347     new_path="$unix_path"
17348   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17349     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17350     new_path="$unix_path"
17351   fi
17352 
17353 
17354     new_path=`$WHICH "$new_path" 2> /dev/null`
17355     # bat and cmd files are not always considered executable in MSYS causing which
17356     # to not find them
17357     if test "x$new_path" = x \
17358         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17359         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17360       new_path="$path"
17361 
17362   windows_path="$new_path"
17363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17364     unix_path=`$CYGPATH -u "$windows_path"`
17365     new_path="$unix_path"
17366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17368     new_path="$unix_path"
17369   fi
17370 
17371     fi
17372 
17373     if test "x$new_path" = x; then
17374       # It's still not found. Now this is an unrecoverable error.
17375       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17376 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17377       has_space=`$ECHO "$complete" | $GREP " "`
17378       if test "x$has_space" != x; then
17379         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17380 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17381       fi
17382       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17383     fi
17384   fi
17385 
17386   # Now new_path has a complete unix path to the binary
17387   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17388     # Keep paths in /bin as-is, but remove trailing .exe if any
17389     new_path="${new_path/%.exe/}"
17390     # Do not save /bin paths to all_fixpath_prefixes!
17391   else
17392     # Not in mixed or Windows style, start by that.
17393     new_path=`cmd //c echo $new_path`
17394 
17395   input_path="$new_path"
17396   # Check if we need to convert this using DOS-style short mode. If the path
17397   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17398   # take no chances and rewrite it.
17399   # Note: m4 eats our [], so we need to use [ and ] instead.
17400   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17401   if test "x$has_forbidden_chars" != x; then
17402     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17403     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17404   fi
17405 
17406     # Output is in $new_path
17407 
17408   windows_path="$new_path"
17409   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17410     unix_path=`$CYGPATH -u "$windows_path"`
17411     new_path="$unix_path"
17412   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17413     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17414     new_path="$unix_path"
17415   fi
17416 
17417     # remove trailing .exe if any
17418     new_path="${new_path/%.exe/}"
17419 
17420     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17421     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17422   fi
17423 
17424     else
17425       # We're on a unix platform. Hooray! :)
17426       # First separate the path from the arguments. This will split at the first
17427       # space.
17428       complete="$FOUND_MAKE"
17429       path="${complete%% *}"
17430       tmp="$complete EOL"
17431       arguments="${tmp#* }"
17432 
17433       # Cannot rely on the command "which" here since it doesn't always work.
17434       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17435       if test -z "$is_absolute_path"; then
17436         # Path to executable is not absolute. Find it.
17437         IFS_save="$IFS"
17438         IFS=:
17439         for p in $PATH; do
17440           if test -f "$p/$path" && test -x "$p/$path"; then
17441             new_path="$p/$path"
17442             break
17443           fi
17444         done
17445         IFS="$IFS_save"
17446       else
17447         # This is an absolute path, we can use it without further modifications.
17448         new_path="$path"
17449       fi
17450 
17451       if test "x$new_path" = x; then
17452         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17453 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17454         has_space=`$ECHO "$complete" | $GREP " "`
17455         if test "x$has_space" != x; then
17456           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17457 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17458         fi
17459         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17460       fi
17461     fi
17462 
17463     # Now join together the path and the arguments once again
17464     if test "x$arguments" != xEOL; then
17465       new_complete="$new_path ${arguments% *}"
17466     else
17467       new_complete="$new_path"
17468     fi
17469 
17470     if test "x$complete" != "x$new_complete"; then
17471       FOUND_MAKE="$new_complete"
17472       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17473 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17474     fi
17475   fi
17476 
17477         fi
17478       fi
17479     fi
17480   fi
17481 
17482 
17483     if test "x$FOUND_MAKE" = x; then
17484       for ac_prog in make
17485 do
17486   # Extract the first word of "$ac_prog", so it can be a program name with args.
17487 set dummy $ac_prog; ac_word=$2
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17489 $as_echo_n "checking for $ac_word... " >&6; }
17490 if ${ac_cv_path_CHECK_MAKE+:} false; then :
17491   $as_echo_n "(cached) " >&6
17492 else
17493   case $CHECK_MAKE in
17494   [\\/]* | ?:[\\/]*)
17495   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
17496   ;;
17497   *)
17498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17499 for as_dir in $PATH
17500 do
17501   IFS=$as_save_IFS
17502   test -z "$as_dir" && as_dir=.
17503     for ac_exec_ext in '' $ac_executable_extensions; do
17504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17505     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
17506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17507     break 2
17508   fi
17509 done
17510   done
17511 IFS=$as_save_IFS
17512 
17513   ;;
17514 esac
17515 fi
17516 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
17517 if test -n "$CHECK_MAKE"; then
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
17519 $as_echo "$CHECK_MAKE" >&6; }
17520 else
17521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17522 $as_echo "no" >&6; }
17523 fi
17524 
17525 
17526   test -n "$CHECK_MAKE" && break
17527 done
17528 
17529 
17530   MAKE_CANDIDATE=""$CHECK_MAKE""
17531   DESCRIPTION="make in PATH"
17532 
17533   # On Cygwin, we require a newer version of make than on other platforms
17534   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17535     MAKE_VERSION_EXPR="-e 4\."
17536     MAKE_REQUIRED_VERSION="4.0"
17537    else
17538     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17539     MAKE_REQUIRED_VERSION="3.81"
17540   fi
17541 
17542   if test "x$MAKE_CANDIDATE" != x; then
17543     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17544 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17545     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17546     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17547     if test "x$IS_GNU_MAKE" = x; then
17548       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17549 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17550     else
17551       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17552       if test "x$IS_MODERN_MAKE" = x; then
17553         { $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
17554 $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;}
17555       else
17556         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17557           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17558             MAKE_EXPECTED_ENV='cygwin'
17559           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17560             MAKE_EXPECTED_ENV='msys'
17561           else
17562             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17563           fi
17564           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17565           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17566         else
17567           # Not relevant for non-Windows
17568           IS_MAKE_CORRECT_ENV=true
17569         fi
17570         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17571           { $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
17572 $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;}
17573         else
17574           FOUND_MAKE=$MAKE_CANDIDATE
17575 
17576   # Only process if variable expands to non-empty
17577 
17578   if test "x$FOUND_MAKE" != x; then
17579     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17580 
17581   # First separate the path from the arguments. This will split at the first
17582   # space.
17583   complete="$FOUND_MAKE"
17584   path="${complete%% *}"
17585   tmp="$complete EOL"
17586   arguments="${tmp#* }"
17587 
17588   # Input might be given as Windows format, start by converting to
17589   # unix format.
17590   new_path=`$CYGPATH -u "$path"`
17591 
17592   # Now try to locate executable using which
17593   new_path=`$WHICH "$new_path" 2> /dev/null`
17594   # bat and cmd files are not always considered executable in cygwin causing which
17595   # to not find them
17596   if test "x$new_path" = x \
17597       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17598       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17599     new_path=`$CYGPATH -u "$path"`
17600   fi
17601   if test "x$new_path" = x; then
17602     # Oops. Which didn't find the executable.
17603     # The splitting of arguments from the executable at a space might have been incorrect,
17604     # since paths with space are more likely in Windows. Give it another try with the whole
17605     # argument.
17606     path="$complete"
17607     arguments="EOL"
17608     new_path=`$CYGPATH -u "$path"`
17609     new_path=`$WHICH "$new_path" 2> /dev/null`
17610     # bat and cmd files are not always considered executable in cygwin causing which
17611     # to not find them
17612     if test "x$new_path" = x \
17613         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17614         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17615       new_path=`$CYGPATH -u "$path"`
17616     fi
17617     if test "x$new_path" = x; then
17618       # It's still not found. Now this is an unrecoverable error.
17619       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17620 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17621       has_space=`$ECHO "$complete" | $GREP " "`
17622       if test "x$has_space" != x; then
17623         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17625       fi
17626       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17627     fi
17628   fi
17629 
17630   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17631   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17632   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17633   # "foo.exe" is OK but "foo" is an error.
17634   #
17635   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17636   # It is also a way to make sure we got the proper file name for the real test later on.
17637   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17638   if test "x$test_shortpath" = x; then
17639     # Short path failed, file does not exist as specified.
17640     # Try adding .exe or .cmd
17641     if test -f "${new_path}.exe"; then
17642       input_to_shortpath="${new_path}.exe"
17643     elif test -f "${new_path}.cmd"; then
17644       input_to_shortpath="${new_path}.cmd"
17645     else
17646       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17647 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17648       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17649 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17650       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17651     fi
17652   else
17653     input_to_shortpath="$new_path"
17654   fi
17655 
17656   # Call helper function which possibly converts this using DOS-style short mode.
17657   # If so, the updated path is stored in $new_path.
17658   new_path="$input_to_shortpath"
17659 
17660   input_path="$input_to_shortpath"
17661   # Check if we need to convert this using DOS-style short mode. If the path
17662   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17663   # take no chances and rewrite it.
17664   # Note: m4 eats our [], so we need to use [ and ] instead.
17665   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17666   if test "x$has_forbidden_chars" != x; then
17667     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17668     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17669     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17670     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17671       # Going to short mode and back again did indeed matter. Since short mode is
17672       # case insensitive, let's make it lowercase to improve readability.
17673       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17674       # Now convert it back to Unix-style (cygpath)
17675       input_path=`$CYGPATH -u "$shortmode_path"`
17676       new_path="$input_path"
17677     fi
17678   fi
17679 
17680   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17681   if test "x$test_cygdrive_prefix" = x; then
17682     # As a simple fix, exclude /usr/bin since it's not a real path.
17683     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17684       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17685       # a path prefixed by /cygdrive for fixpath to work.
17686       new_path="$CYGWIN_ROOT_PATH$input_path"
17687     fi
17688   fi
17689 
17690   # remove trailing .exe if any
17691   new_path="${new_path/%.exe/}"
17692 
17693     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17694 
17695   # First separate the path from the arguments. This will split at the first
17696   # space.
17697   complete="$FOUND_MAKE"
17698   path="${complete%% *}"
17699   tmp="$complete EOL"
17700   arguments="${tmp#* }"
17701 
17702   # Input might be given as Windows format, start by converting to
17703   # unix format.
17704   new_path="$path"
17705 
17706   windows_path="$new_path"
17707   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17708     unix_path=`$CYGPATH -u "$windows_path"`
17709     new_path="$unix_path"
17710   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17711     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17712     new_path="$unix_path"
17713   fi
17714 
17715 
17716   # Now try to locate executable using which
17717   new_path=`$WHICH "$new_path" 2> /dev/null`
17718 
17719   if test "x$new_path" = x; then
17720     # Oops. Which didn't find the executable.
17721     # The splitting of arguments from the executable at a space might have been incorrect,
17722     # since paths with space are more likely in Windows. Give it another try with the whole
17723     # argument.
17724     path="$complete"
17725     arguments="EOL"
17726     new_path="$path"
17727 
17728   windows_path="$new_path"
17729   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17730     unix_path=`$CYGPATH -u "$windows_path"`
17731     new_path="$unix_path"
17732   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17733     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17734     new_path="$unix_path"
17735   fi
17736 
17737 
17738     new_path=`$WHICH "$new_path" 2> /dev/null`
17739     # bat and cmd files are not always considered executable in MSYS causing which
17740     # to not find them
17741     if test "x$new_path" = x \
17742         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17743         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17744       new_path="$path"
17745 
17746   windows_path="$new_path"
17747   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17748     unix_path=`$CYGPATH -u "$windows_path"`
17749     new_path="$unix_path"
17750   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17751     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17752     new_path="$unix_path"
17753   fi
17754 
17755     fi
17756 
17757     if test "x$new_path" = x; then
17758       # It's still not found. Now this is an unrecoverable error.
17759       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17760 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17761       has_space=`$ECHO "$complete" | $GREP " "`
17762       if test "x$has_space" != x; then
17763         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17764 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17765       fi
17766       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17767     fi
17768   fi
17769 
17770   # Now new_path has a complete unix path to the binary
17771   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17772     # Keep paths in /bin as-is, but remove trailing .exe if any
17773     new_path="${new_path/%.exe/}"
17774     # Do not save /bin paths to all_fixpath_prefixes!
17775   else
17776     # Not in mixed or Windows style, start by that.
17777     new_path=`cmd //c echo $new_path`
17778 
17779   input_path="$new_path"
17780   # Check if we need to convert this using DOS-style short mode. If the path
17781   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17782   # take no chances and rewrite it.
17783   # Note: m4 eats our [], so we need to use [ and ] instead.
17784   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17785   if test "x$has_forbidden_chars" != x; then
17786     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17787     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17788   fi
17789 
17790     # Output is in $new_path
17791 
17792   windows_path="$new_path"
17793   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17794     unix_path=`$CYGPATH -u "$windows_path"`
17795     new_path="$unix_path"
17796   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17797     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17798     new_path="$unix_path"
17799   fi
17800 
17801     # remove trailing .exe if any
17802     new_path="${new_path/%.exe/}"
17803 
17804     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17805     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17806   fi
17807 
17808     else
17809       # We're on a unix platform. Hooray! :)
17810       # First separate the path from the arguments. This will split at the first
17811       # space.
17812       complete="$FOUND_MAKE"
17813       path="${complete%% *}"
17814       tmp="$complete EOL"
17815       arguments="${tmp#* }"
17816 
17817       # Cannot rely on the command "which" here since it doesn't always work.
17818       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17819       if test -z "$is_absolute_path"; then
17820         # Path to executable is not absolute. Find it.
17821         IFS_save="$IFS"
17822         IFS=:
17823         for p in $PATH; do
17824           if test -f "$p/$path" && test -x "$p/$path"; then
17825             new_path="$p/$path"
17826             break
17827           fi
17828         done
17829         IFS="$IFS_save"
17830       else
17831         # This is an absolute path, we can use it without further modifications.
17832         new_path="$path"
17833       fi
17834 
17835       if test "x$new_path" = x; then
17836         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17837 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17838         has_space=`$ECHO "$complete" | $GREP " "`
17839         if test "x$has_space" != x; then
17840           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17841 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17842         fi
17843         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17844       fi
17845     fi
17846 
17847     # Now join together the path and the arguments once again
17848     if test "x$arguments" != xEOL; then
17849       new_complete="$new_path ${arguments% *}"
17850     else
17851       new_complete="$new_path"
17852     fi
17853 
17854     if test "x$complete" != "x$new_complete"; then
17855       FOUND_MAKE="$new_complete"
17856       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17857 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17858     fi
17859   fi
17860 
17861         fi
17862       fi
17863     fi
17864   fi
17865 
17866     fi
17867 
17868     if test "x$FOUND_MAKE" = x; then
17869       if test "x$TOOLCHAIN_PATH" != x; then
17870         # We have a toolchain path, check that as well before giving up.
17871         OLD_PATH=$PATH
17872         PATH=$TOOLCHAIN_PATH:$PATH
17873         for ac_prog in gmake
17874 do
17875   # Extract the first word of "$ac_prog", so it can be a program name with args.
17876 set dummy $ac_prog; ac_word=$2
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17878 $as_echo_n "checking for $ac_word... " >&6; }
17879 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17880   $as_echo_n "(cached) " >&6
17881 else
17882   case $CHECK_TOOLSDIR_GMAKE in
17883   [\\/]* | ?:[\\/]*)
17884   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17885   ;;
17886   *)
17887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17888 for as_dir in $PATH
17889 do
17890   IFS=$as_save_IFS
17891   test -z "$as_dir" && as_dir=.
17892     for ac_exec_ext in '' $ac_executable_extensions; do
17893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17894     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17896     break 2
17897   fi
17898 done
17899   done
17900 IFS=$as_save_IFS
17901 
17902   ;;
17903 esac
17904 fi
17905 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17906 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17908 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17909 else
17910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17911 $as_echo "no" >&6; }
17912 fi
17913 
17914 
17915   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17916 done
17917 
17918 
17919   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17920   DESCRIPTION="gmake in tools-dir"
17921 
17922   # On Cygwin, we require a newer version of make than on other platforms
17923   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17924     MAKE_VERSION_EXPR="-e 4\."
17925     MAKE_REQUIRED_VERSION="4.0"
17926    else
17927     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17928     MAKE_REQUIRED_VERSION="3.81"
17929   fi
17930 
17931   if test "x$MAKE_CANDIDATE" != x; then
17932     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17933 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17934     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17935     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17936     if test "x$IS_GNU_MAKE" = x; then
17937       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17938 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17939     else
17940       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17941       if test "x$IS_MODERN_MAKE" = x; then
17942         { $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
17943 $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;}
17944       else
17945         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17946           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17947             MAKE_EXPECTED_ENV='cygwin'
17948           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17949             MAKE_EXPECTED_ENV='msys'
17950           else
17951             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17952           fi
17953           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17954           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17955         else
17956           # Not relevant for non-Windows
17957           IS_MAKE_CORRECT_ENV=true
17958         fi
17959         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17960           { $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
17961 $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;}
17962         else
17963           FOUND_MAKE=$MAKE_CANDIDATE
17964 
17965   # Only process if variable expands to non-empty
17966 
17967   if test "x$FOUND_MAKE" != x; then
17968     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17969 
17970   # First separate the path from the arguments. This will split at the first
17971   # space.
17972   complete="$FOUND_MAKE"
17973   path="${complete%% *}"
17974   tmp="$complete EOL"
17975   arguments="${tmp#* }"
17976 
17977   # Input might be given as Windows format, start by converting to
17978   # unix format.
17979   new_path=`$CYGPATH -u "$path"`
17980 
17981   # Now try to locate executable using which
17982   new_path=`$WHICH "$new_path" 2> /dev/null`
17983   # bat and cmd files are not always considered executable in cygwin causing which
17984   # to not find them
17985   if test "x$new_path" = x \
17986       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17987       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17988     new_path=`$CYGPATH -u "$path"`
17989   fi
17990   if test "x$new_path" = x; then
17991     # Oops. Which didn't find the executable.
17992     # The splitting of arguments from the executable at a space might have been incorrect,
17993     # since paths with space are more likely in Windows. Give it another try with the whole
17994     # argument.
17995     path="$complete"
17996     arguments="EOL"
17997     new_path=`$CYGPATH -u "$path"`
17998     new_path=`$WHICH "$new_path" 2> /dev/null`
17999     # bat and cmd files are not always considered executable in cygwin causing which
18000     # to not find them
18001     if test "x$new_path" = x \
18002         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18003         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18004       new_path=`$CYGPATH -u "$path"`
18005     fi
18006     if test "x$new_path" = x; then
18007       # It's still not found. Now this is an unrecoverable error.
18008       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18010       has_space=`$ECHO "$complete" | $GREP " "`
18011       if test "x$has_space" != x; then
18012         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18013 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18014       fi
18015       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18016     fi
18017   fi
18018 
18019   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18020   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18021   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18022   # "foo.exe" is OK but "foo" is an error.
18023   #
18024   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18025   # It is also a way to make sure we got the proper file name for the real test later on.
18026   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18027   if test "x$test_shortpath" = x; then
18028     # Short path failed, file does not exist as specified.
18029     # Try adding .exe or .cmd
18030     if test -f "${new_path}.exe"; then
18031       input_to_shortpath="${new_path}.exe"
18032     elif test -f "${new_path}.cmd"; then
18033       input_to_shortpath="${new_path}.cmd"
18034     else
18035       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18036 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18037       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18038 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18039       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18040     fi
18041   else
18042     input_to_shortpath="$new_path"
18043   fi
18044 
18045   # Call helper function which possibly converts this using DOS-style short mode.
18046   # If so, the updated path is stored in $new_path.
18047   new_path="$input_to_shortpath"
18048 
18049   input_path="$input_to_shortpath"
18050   # Check if we need to convert this using DOS-style short mode. If the path
18051   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18052   # take no chances and rewrite it.
18053   # Note: m4 eats our [], so we need to use [ and ] instead.
18054   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18055   if test "x$has_forbidden_chars" != x; then
18056     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18057     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18058     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18059     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18060       # Going to short mode and back again did indeed matter. Since short mode is
18061       # case insensitive, let's make it lowercase to improve readability.
18062       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18063       # Now convert it back to Unix-style (cygpath)
18064       input_path=`$CYGPATH -u "$shortmode_path"`
18065       new_path="$input_path"
18066     fi
18067   fi
18068 
18069   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18070   if test "x$test_cygdrive_prefix" = x; then
18071     # As a simple fix, exclude /usr/bin since it's not a real path.
18072     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18073       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18074       # a path prefixed by /cygdrive for fixpath to work.
18075       new_path="$CYGWIN_ROOT_PATH$input_path"
18076     fi
18077   fi
18078 
18079   # remove trailing .exe if any
18080   new_path="${new_path/%.exe/}"
18081 
18082     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18083 
18084   # First separate the path from the arguments. This will split at the first
18085   # space.
18086   complete="$FOUND_MAKE"
18087   path="${complete%% *}"
18088   tmp="$complete EOL"
18089   arguments="${tmp#* }"
18090 
18091   # Input might be given as Windows format, start by converting to
18092   # unix format.
18093   new_path="$path"
18094 
18095   windows_path="$new_path"
18096   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18097     unix_path=`$CYGPATH -u "$windows_path"`
18098     new_path="$unix_path"
18099   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18100     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18101     new_path="$unix_path"
18102   fi
18103 
18104 
18105   # Now try to locate executable using which
18106   new_path=`$WHICH "$new_path" 2> /dev/null`
18107 
18108   if test "x$new_path" = x; then
18109     # Oops. Which didn't find the executable.
18110     # The splitting of arguments from the executable at a space might have been incorrect,
18111     # since paths with space are more likely in Windows. Give it another try with the whole
18112     # argument.
18113     path="$complete"
18114     arguments="EOL"
18115     new_path="$path"
18116 
18117   windows_path="$new_path"
18118   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18119     unix_path=`$CYGPATH -u "$windows_path"`
18120     new_path="$unix_path"
18121   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18122     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18123     new_path="$unix_path"
18124   fi
18125 
18126 
18127     new_path=`$WHICH "$new_path" 2> /dev/null`
18128     # bat and cmd files are not always considered executable in MSYS causing which
18129     # to not find them
18130     if test "x$new_path" = x \
18131         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18132         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18133       new_path="$path"
18134 
18135   windows_path="$new_path"
18136   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18137     unix_path=`$CYGPATH -u "$windows_path"`
18138     new_path="$unix_path"
18139   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18140     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18141     new_path="$unix_path"
18142   fi
18143 
18144     fi
18145 
18146     if test "x$new_path" = x; then
18147       # It's still not found. Now this is an unrecoverable error.
18148       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18149 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18150       has_space=`$ECHO "$complete" | $GREP " "`
18151       if test "x$has_space" != x; then
18152         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18153 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18154       fi
18155       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18156     fi
18157   fi
18158 
18159   # Now new_path has a complete unix path to the binary
18160   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18161     # Keep paths in /bin as-is, but remove trailing .exe if any
18162     new_path="${new_path/%.exe/}"
18163     # Do not save /bin paths to all_fixpath_prefixes!
18164   else
18165     # Not in mixed or Windows style, start by that.
18166     new_path=`cmd //c echo $new_path`
18167 
18168   input_path="$new_path"
18169   # Check if we need to convert this using DOS-style short mode. If the path
18170   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18171   # take no chances and rewrite it.
18172   # Note: m4 eats our [], so we need to use [ and ] instead.
18173   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18174   if test "x$has_forbidden_chars" != x; then
18175     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18176     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18177   fi
18178 
18179     # Output is in $new_path
18180 
18181   windows_path="$new_path"
18182   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18183     unix_path=`$CYGPATH -u "$windows_path"`
18184     new_path="$unix_path"
18185   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18186     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18187     new_path="$unix_path"
18188   fi
18189 
18190     # remove trailing .exe if any
18191     new_path="${new_path/%.exe/}"
18192 
18193     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18194     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18195   fi
18196 
18197     else
18198       # We're on a unix platform. Hooray! :)
18199       # First separate the path from the arguments. This will split at the first
18200       # space.
18201       complete="$FOUND_MAKE"
18202       path="${complete%% *}"
18203       tmp="$complete EOL"
18204       arguments="${tmp#* }"
18205 
18206       # Cannot rely on the command "which" here since it doesn't always work.
18207       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18208       if test -z "$is_absolute_path"; then
18209         # Path to executable is not absolute. Find it.
18210         IFS_save="$IFS"
18211         IFS=:
18212         for p in $PATH; do
18213           if test -f "$p/$path" && test -x "$p/$path"; then
18214             new_path="$p/$path"
18215             break
18216           fi
18217         done
18218         IFS="$IFS_save"
18219       else
18220         # This is an absolute path, we can use it without further modifications.
18221         new_path="$path"
18222       fi
18223 
18224       if test "x$new_path" = x; then
18225         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18227         has_space=`$ECHO "$complete" | $GREP " "`
18228         if test "x$has_space" != x; then
18229           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18230 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18231         fi
18232         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18233       fi
18234     fi
18235 
18236     # Now join together the path and the arguments once again
18237     if test "x$arguments" != xEOL; then
18238       new_complete="$new_path ${arguments% *}"
18239     else
18240       new_complete="$new_path"
18241     fi
18242 
18243     if test "x$complete" != "x$new_complete"; then
18244       FOUND_MAKE="$new_complete"
18245       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18246 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18247     fi
18248   fi
18249 
18250         fi
18251       fi
18252     fi
18253   fi
18254 
18255         if test "x$FOUND_MAKE" = x; then
18256           for ac_prog in make
18257 do
18258   # Extract the first word of "$ac_prog", so it can be a program name with args.
18259 set dummy $ac_prog; ac_word=$2
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18261 $as_echo_n "checking for $ac_word... " >&6; }
18262 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
18263   $as_echo_n "(cached) " >&6
18264 else
18265   case $CHECK_TOOLSDIR_MAKE in
18266   [\\/]* | ?:[\\/]*)
18267   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
18268   ;;
18269   *)
18270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18272 do
18273   IFS=$as_save_IFS
18274   test -z "$as_dir" && as_dir=.
18275     for ac_exec_ext in '' $ac_executable_extensions; do
18276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
18278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18279     break 2
18280   fi
18281 done
18282   done
18283 IFS=$as_save_IFS
18284 
18285   ;;
18286 esac
18287 fi
18288 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
18289 if test -n "$CHECK_TOOLSDIR_MAKE"; then
18290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
18291 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
18292 else
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 $as_echo "no" >&6; }
18295 fi
18296 
18297 
18298   test -n "$CHECK_TOOLSDIR_MAKE" && break
18299 done
18300 
18301 
18302   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
18303   DESCRIPTION="make in tools-dir"
18304 
18305   # On Cygwin, we require a newer version of make than on other platforms
18306   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18307     MAKE_VERSION_EXPR="-e 4\."
18308     MAKE_REQUIRED_VERSION="4.0"
18309    else
18310     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18311     MAKE_REQUIRED_VERSION="3.81"
18312   fi
18313 
18314   if test "x$MAKE_CANDIDATE" != x; then
18315     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18316 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18317     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18318     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18319     if test "x$IS_GNU_MAKE" = x; then
18320       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18321 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18322     else
18323       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18324       if test "x$IS_MODERN_MAKE" = x; then
18325         { $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
18326 $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;}
18327       else
18328         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18329           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18330             MAKE_EXPECTED_ENV='cygwin'
18331           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18332             MAKE_EXPECTED_ENV='msys'
18333           else
18334             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18335           fi
18336           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18337           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18338         else
18339           # Not relevant for non-Windows
18340           IS_MAKE_CORRECT_ENV=true
18341         fi
18342         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18343           { $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
18344 $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;}
18345         else
18346           FOUND_MAKE=$MAKE_CANDIDATE
18347 
18348   # Only process if variable expands to non-empty
18349 
18350   if test "x$FOUND_MAKE" != x; then
18351     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18352 
18353   # First separate the path from the arguments. This will split at the first
18354   # space.
18355   complete="$FOUND_MAKE"
18356   path="${complete%% *}"
18357   tmp="$complete EOL"
18358   arguments="${tmp#* }"
18359 
18360   # Input might be given as Windows format, start by converting to
18361   # unix format.
18362   new_path=`$CYGPATH -u "$path"`
18363 
18364   # Now try to locate executable using which
18365   new_path=`$WHICH "$new_path" 2> /dev/null`
18366   # bat and cmd files are not always considered executable in cygwin causing which
18367   # to not find them
18368   if test "x$new_path" = x \
18369       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18370       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18371     new_path=`$CYGPATH -u "$path"`
18372   fi
18373   if test "x$new_path" = x; then
18374     # Oops. Which didn't find the executable.
18375     # The splitting of arguments from the executable at a space might have been incorrect,
18376     # since paths with space are more likely in Windows. Give it another try with the whole
18377     # argument.
18378     path="$complete"
18379     arguments="EOL"
18380     new_path=`$CYGPATH -u "$path"`
18381     new_path=`$WHICH "$new_path" 2> /dev/null`
18382     # bat and cmd files are not always considered executable in cygwin causing which
18383     # to not find them
18384     if test "x$new_path" = x \
18385         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18386         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18387       new_path=`$CYGPATH -u "$path"`
18388     fi
18389     if test "x$new_path" = x; then
18390       # It's still not found. Now this is an unrecoverable error.
18391       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18393       has_space=`$ECHO "$complete" | $GREP " "`
18394       if test "x$has_space" != x; then
18395         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18396 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18397       fi
18398       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18399     fi
18400   fi
18401 
18402   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18403   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18404   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18405   # "foo.exe" is OK but "foo" is an error.
18406   #
18407   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18408   # It is also a way to make sure we got the proper file name for the real test later on.
18409   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18410   if test "x$test_shortpath" = x; then
18411     # Short path failed, file does not exist as specified.
18412     # Try adding .exe or .cmd
18413     if test -f "${new_path}.exe"; then
18414       input_to_shortpath="${new_path}.exe"
18415     elif test -f "${new_path}.cmd"; then
18416       input_to_shortpath="${new_path}.cmd"
18417     else
18418       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18419 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18420       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18421 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18422       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18423     fi
18424   else
18425     input_to_shortpath="$new_path"
18426   fi
18427 
18428   # Call helper function which possibly converts this using DOS-style short mode.
18429   # If so, the updated path is stored in $new_path.
18430   new_path="$input_to_shortpath"
18431 
18432   input_path="$input_to_shortpath"
18433   # Check if we need to convert this using DOS-style short mode. If the path
18434   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18435   # take no chances and rewrite it.
18436   # Note: m4 eats our [], so we need to use [ and ] instead.
18437   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18438   if test "x$has_forbidden_chars" != x; then
18439     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18440     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18441     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18442     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18443       # Going to short mode and back again did indeed matter. Since short mode is
18444       # case insensitive, let's make it lowercase to improve readability.
18445       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18446       # Now convert it back to Unix-style (cygpath)
18447       input_path=`$CYGPATH -u "$shortmode_path"`
18448       new_path="$input_path"
18449     fi
18450   fi
18451 
18452   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18453   if test "x$test_cygdrive_prefix" = x; then
18454     # As a simple fix, exclude /usr/bin since it's not a real path.
18455     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18456       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18457       # a path prefixed by /cygdrive for fixpath to work.
18458       new_path="$CYGWIN_ROOT_PATH$input_path"
18459     fi
18460   fi
18461 
18462   # remove trailing .exe if any
18463   new_path="${new_path/%.exe/}"
18464 
18465     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18466 
18467   # First separate the path from the arguments. This will split at the first
18468   # space.
18469   complete="$FOUND_MAKE"
18470   path="${complete%% *}"
18471   tmp="$complete EOL"
18472   arguments="${tmp#* }"
18473 
18474   # Input might be given as Windows format, start by converting to
18475   # unix format.
18476   new_path="$path"
18477 
18478   windows_path="$new_path"
18479   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18480     unix_path=`$CYGPATH -u "$windows_path"`
18481     new_path="$unix_path"
18482   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18483     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18484     new_path="$unix_path"
18485   fi
18486 
18487 
18488   # Now try to locate executable using which
18489   new_path=`$WHICH "$new_path" 2> /dev/null`
18490 
18491   if test "x$new_path" = x; then
18492     # Oops. Which didn't find the executable.
18493     # The splitting of arguments from the executable at a space might have been incorrect,
18494     # since paths with space are more likely in Windows. Give it another try with the whole
18495     # argument.
18496     path="$complete"
18497     arguments="EOL"
18498     new_path="$path"
18499 
18500   windows_path="$new_path"
18501   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18502     unix_path=`$CYGPATH -u "$windows_path"`
18503     new_path="$unix_path"
18504   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18505     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18506     new_path="$unix_path"
18507   fi
18508 
18509 
18510     new_path=`$WHICH "$new_path" 2> /dev/null`
18511     # bat and cmd files are not always considered executable in MSYS causing which
18512     # to not find them
18513     if test "x$new_path" = x \
18514         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18515         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18516       new_path="$path"
18517 
18518   windows_path="$new_path"
18519   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18520     unix_path=`$CYGPATH -u "$windows_path"`
18521     new_path="$unix_path"
18522   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18523     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18524     new_path="$unix_path"
18525   fi
18526 
18527     fi
18528 
18529     if test "x$new_path" = x; then
18530       # It's still not found. Now this is an unrecoverable error.
18531       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18532 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18533       has_space=`$ECHO "$complete" | $GREP " "`
18534       if test "x$has_space" != x; then
18535         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18537       fi
18538       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18539     fi
18540   fi
18541 
18542   # Now new_path has a complete unix path to the binary
18543   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18544     # Keep paths in /bin as-is, but remove trailing .exe if any
18545     new_path="${new_path/%.exe/}"
18546     # Do not save /bin paths to all_fixpath_prefixes!
18547   else
18548     # Not in mixed or Windows style, start by that.
18549     new_path=`cmd //c echo $new_path`
18550 
18551   input_path="$new_path"
18552   # Check if we need to convert this using DOS-style short mode. If the path
18553   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18554   # take no chances and rewrite it.
18555   # Note: m4 eats our [], so we need to use [ and ] instead.
18556   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18557   if test "x$has_forbidden_chars" != x; then
18558     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18559     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18560   fi
18561 
18562     # Output is in $new_path
18563 
18564   windows_path="$new_path"
18565   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18566     unix_path=`$CYGPATH -u "$windows_path"`
18567     new_path="$unix_path"
18568   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18569     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18570     new_path="$unix_path"
18571   fi
18572 
18573     # remove trailing .exe if any
18574     new_path="${new_path/%.exe/}"
18575 
18576     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18577     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18578   fi
18579 
18580     else
18581       # We're on a unix platform. Hooray! :)
18582       # First separate the path from the arguments. This will split at the first
18583       # space.
18584       complete="$FOUND_MAKE"
18585       path="${complete%% *}"
18586       tmp="$complete EOL"
18587       arguments="${tmp#* }"
18588 
18589       # Cannot rely on the command "which" here since it doesn't always work.
18590       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18591       if test -z "$is_absolute_path"; then
18592         # Path to executable is not absolute. Find it.
18593         IFS_save="$IFS"
18594         IFS=:
18595         for p in $PATH; do
18596           if test -f "$p/$path" && test -x "$p/$path"; then
18597             new_path="$p/$path"
18598             break
18599           fi
18600         done
18601         IFS="$IFS_save"
18602       else
18603         # This is an absolute path, we can use it without further modifications.
18604         new_path="$path"
18605       fi
18606 
18607       if test "x$new_path" = x; then
18608         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18610         has_space=`$ECHO "$complete" | $GREP " "`
18611         if test "x$has_space" != x; then
18612           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18613 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18614         fi
18615         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18616       fi
18617     fi
18618 
18619     # Now join together the path and the arguments once again
18620     if test "x$arguments" != xEOL; then
18621       new_complete="$new_path ${arguments% *}"
18622     else
18623       new_complete="$new_path"
18624     fi
18625 
18626     if test "x$complete" != "x$new_complete"; then
18627       FOUND_MAKE="$new_complete"
18628       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18629 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18630     fi
18631   fi
18632 
18633         fi
18634       fi
18635     fi
18636   fi
18637 
18638         fi
18639         PATH=$OLD_PATH
18640       fi
18641     fi
18642 
18643     if test "x$FOUND_MAKE" = x; then
18644       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
18645     fi
18646 
18647   else
18648     # The variable is set, but is it from the command line or the environment?
18649 
18650     # Try to remove the string !MAKE! from our list.
18651     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18652     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18653       # If it failed, the variable was not from the command line. Ignore it,
18654       # but warn the user (except for BASH, which is always set by the calling BASH).
18655       if test "xMAKE" != xBASH; then
18656         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18657 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18658       fi
18659       # Try to locate tool using the code snippet
18660 
18661     # Try our hardest to locate a correct version of GNU make
18662     for ac_prog in gmake
18663 do
18664   # Extract the first word of "$ac_prog", so it can be a program name with args.
18665 set dummy $ac_prog; ac_word=$2
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18667 $as_echo_n "checking for $ac_word... " >&6; }
18668 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18669   $as_echo_n "(cached) " >&6
18670 else
18671   case $CHECK_GMAKE in
18672   [\\/]* | ?:[\\/]*)
18673   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18674   ;;
18675   *)
18676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18677 for as_dir in $PATH
18678 do
18679   IFS=$as_save_IFS
18680   test -z "$as_dir" && as_dir=.
18681     for ac_exec_ext in '' $ac_executable_extensions; do
18682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18683     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18685     break 2
18686   fi
18687 done
18688   done
18689 IFS=$as_save_IFS
18690 
18691   ;;
18692 esac
18693 fi
18694 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18695 if test -n "$CHECK_GMAKE"; then
18696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18697 $as_echo "$CHECK_GMAKE" >&6; }
18698 else
18699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700 $as_echo "no" >&6; }
18701 fi
18702 
18703 
18704   test -n "$CHECK_GMAKE" && break
18705 done
18706 
18707 
18708   MAKE_CANDIDATE=""$CHECK_GMAKE""
18709   DESCRIPTION="gmake in PATH"
18710 
18711   # On Cygwin, we require a newer version of make than on other platforms
18712   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18713     MAKE_VERSION_EXPR="-e 4\."
18714     MAKE_REQUIRED_VERSION="4.0"
18715    else
18716     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18717     MAKE_REQUIRED_VERSION="3.81"
18718   fi
18719 
18720   if test "x$MAKE_CANDIDATE" != x; then
18721     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18722 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18723     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18724     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18725     if test "x$IS_GNU_MAKE" = x; then
18726       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18727 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18728     else
18729       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18730       if test "x$IS_MODERN_MAKE" = x; then
18731         { $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
18732 $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;}
18733       else
18734         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18735           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18736             MAKE_EXPECTED_ENV='cygwin'
18737           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18738             MAKE_EXPECTED_ENV='msys'
18739           else
18740             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18741           fi
18742           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18743           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18744         else
18745           # Not relevant for non-Windows
18746           IS_MAKE_CORRECT_ENV=true
18747         fi
18748         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18749           { $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
18750 $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;}
18751         else
18752           FOUND_MAKE=$MAKE_CANDIDATE
18753 
18754   # Only process if variable expands to non-empty
18755 
18756   if test "x$FOUND_MAKE" != x; then
18757     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18758 
18759   # First separate the path from the arguments. This will split at the first
18760   # space.
18761   complete="$FOUND_MAKE"
18762   path="${complete%% *}"
18763   tmp="$complete EOL"
18764   arguments="${tmp#* }"
18765 
18766   # Input might be given as Windows format, start by converting to
18767   # unix format.
18768   new_path=`$CYGPATH -u "$path"`
18769 
18770   # Now try to locate executable using which
18771   new_path=`$WHICH "$new_path" 2> /dev/null`
18772   # bat and cmd files are not always considered executable in cygwin causing which
18773   # to not find them
18774   if test "x$new_path" = x \
18775       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18776       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18777     new_path=`$CYGPATH -u "$path"`
18778   fi
18779   if test "x$new_path" = x; then
18780     # Oops. Which didn't find the executable.
18781     # The splitting of arguments from the executable at a space might have been incorrect,
18782     # since paths with space are more likely in Windows. Give it another try with the whole
18783     # argument.
18784     path="$complete"
18785     arguments="EOL"
18786     new_path=`$CYGPATH -u "$path"`
18787     new_path=`$WHICH "$new_path" 2> /dev/null`
18788     # bat and cmd files are not always considered executable in cygwin causing which
18789     # to not find them
18790     if test "x$new_path" = x \
18791         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18792         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18793       new_path=`$CYGPATH -u "$path"`
18794     fi
18795     if test "x$new_path" = x; then
18796       # It's still not found. Now this is an unrecoverable error.
18797       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18798 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18799       has_space=`$ECHO "$complete" | $GREP " "`
18800       if test "x$has_space" != x; then
18801         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18803       fi
18804       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18805     fi
18806   fi
18807 
18808   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18809   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18810   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18811   # "foo.exe" is OK but "foo" is an error.
18812   #
18813   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18814   # It is also a way to make sure we got the proper file name for the real test later on.
18815   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18816   if test "x$test_shortpath" = x; then
18817     # Short path failed, file does not exist as specified.
18818     # Try adding .exe or .cmd
18819     if test -f "${new_path}.exe"; then
18820       input_to_shortpath="${new_path}.exe"
18821     elif test -f "${new_path}.cmd"; then
18822       input_to_shortpath="${new_path}.cmd"
18823     else
18824       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18826       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18827 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18828       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18829     fi
18830   else
18831     input_to_shortpath="$new_path"
18832   fi
18833 
18834   # Call helper function which possibly converts this using DOS-style short mode.
18835   # If so, the updated path is stored in $new_path.
18836   new_path="$input_to_shortpath"
18837 
18838   input_path="$input_to_shortpath"
18839   # Check if we need to convert this using DOS-style short mode. If the path
18840   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18841   # take no chances and rewrite it.
18842   # Note: m4 eats our [], so we need to use [ and ] instead.
18843   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18844   if test "x$has_forbidden_chars" != x; then
18845     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18846     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18847     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18848     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18849       # Going to short mode and back again did indeed matter. Since short mode is
18850       # case insensitive, let's make it lowercase to improve readability.
18851       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18852       # Now convert it back to Unix-style (cygpath)
18853       input_path=`$CYGPATH -u "$shortmode_path"`
18854       new_path="$input_path"
18855     fi
18856   fi
18857 
18858   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18859   if test "x$test_cygdrive_prefix" = x; then
18860     # As a simple fix, exclude /usr/bin since it's not a real path.
18861     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18862       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18863       # a path prefixed by /cygdrive for fixpath to work.
18864       new_path="$CYGWIN_ROOT_PATH$input_path"
18865     fi
18866   fi
18867 
18868   # remove trailing .exe if any
18869   new_path="${new_path/%.exe/}"
18870 
18871     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18872 
18873   # First separate the path from the arguments. This will split at the first
18874   # space.
18875   complete="$FOUND_MAKE"
18876   path="${complete%% *}"
18877   tmp="$complete EOL"
18878   arguments="${tmp#* }"
18879 
18880   # Input might be given as Windows format, start by converting to
18881   # unix format.
18882   new_path="$path"
18883 
18884   windows_path="$new_path"
18885   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18886     unix_path=`$CYGPATH -u "$windows_path"`
18887     new_path="$unix_path"
18888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18889     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18890     new_path="$unix_path"
18891   fi
18892 
18893 
18894   # Now try to locate executable using which
18895   new_path=`$WHICH "$new_path" 2> /dev/null`
18896 
18897   if test "x$new_path" = x; then
18898     # Oops. Which didn't find the executable.
18899     # The splitting of arguments from the executable at a space might have been incorrect,
18900     # since paths with space are more likely in Windows. Give it another try with the whole
18901     # argument.
18902     path="$complete"
18903     arguments="EOL"
18904     new_path="$path"
18905 
18906   windows_path="$new_path"
18907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18908     unix_path=`$CYGPATH -u "$windows_path"`
18909     new_path="$unix_path"
18910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18911     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18912     new_path="$unix_path"
18913   fi
18914 
18915 
18916     new_path=`$WHICH "$new_path" 2> /dev/null`
18917     # bat and cmd files are not always considered executable in MSYS causing which
18918     # to not find them
18919     if test "x$new_path" = x \
18920         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18921         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18922       new_path="$path"
18923 
18924   windows_path="$new_path"
18925   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18926     unix_path=`$CYGPATH -u "$windows_path"`
18927     new_path="$unix_path"
18928   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18929     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18930     new_path="$unix_path"
18931   fi
18932 
18933     fi
18934 
18935     if test "x$new_path" = x; then
18936       # It's still not found. Now this is an unrecoverable error.
18937       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18938 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18939       has_space=`$ECHO "$complete" | $GREP " "`
18940       if test "x$has_space" != x; then
18941         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18942 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18943       fi
18944       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18945     fi
18946   fi
18947 
18948   # Now new_path has a complete unix path to the binary
18949   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18950     # Keep paths in /bin as-is, but remove trailing .exe if any
18951     new_path="${new_path/%.exe/}"
18952     # Do not save /bin paths to all_fixpath_prefixes!
18953   else
18954     # Not in mixed or Windows style, start by that.
18955     new_path=`cmd //c echo $new_path`
18956 
18957   input_path="$new_path"
18958   # Check if we need to convert this using DOS-style short mode. If the path
18959   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18960   # take no chances and rewrite it.
18961   # Note: m4 eats our [], so we need to use [ and ] instead.
18962   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18963   if test "x$has_forbidden_chars" != x; then
18964     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18965     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18966   fi
18967 
18968     # Output is in $new_path
18969 
18970   windows_path="$new_path"
18971   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18972     unix_path=`$CYGPATH -u "$windows_path"`
18973     new_path="$unix_path"
18974   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18975     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18976     new_path="$unix_path"
18977   fi
18978 
18979     # remove trailing .exe if any
18980     new_path="${new_path/%.exe/}"
18981 
18982     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18983     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18984   fi
18985 
18986     else
18987       # We're on a unix platform. Hooray! :)
18988       # First separate the path from the arguments. This will split at the first
18989       # space.
18990       complete="$FOUND_MAKE"
18991       path="${complete%% *}"
18992       tmp="$complete EOL"
18993       arguments="${tmp#* }"
18994 
18995       # Cannot rely on the command "which" here since it doesn't always work.
18996       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18997       if test -z "$is_absolute_path"; then
18998         # Path to executable is not absolute. Find it.
18999         IFS_save="$IFS"
19000         IFS=:
19001         for p in $PATH; do
19002           if test -f "$p/$path" && test -x "$p/$path"; then
19003             new_path="$p/$path"
19004             break
19005           fi
19006         done
19007         IFS="$IFS_save"
19008       else
19009         # This is an absolute path, we can use it without further modifications.
19010         new_path="$path"
19011       fi
19012 
19013       if test "x$new_path" = x; then
19014         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19015 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19016         has_space=`$ECHO "$complete" | $GREP " "`
19017         if test "x$has_space" != x; then
19018           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19019 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19020         fi
19021         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19022       fi
19023     fi
19024 
19025     # Now join together the path and the arguments once again
19026     if test "x$arguments" != xEOL; then
19027       new_complete="$new_path ${arguments% *}"
19028     else
19029       new_complete="$new_path"
19030     fi
19031 
19032     if test "x$complete" != "x$new_complete"; then
19033       FOUND_MAKE="$new_complete"
19034       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19035 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19036     fi
19037   fi
19038 
19039         fi
19040       fi
19041     fi
19042   fi
19043 
19044 
19045     if test "x$FOUND_MAKE" = x; then
19046       for ac_prog in make
19047 do
19048   # Extract the first word of "$ac_prog", so it can be a program name with args.
19049 set dummy $ac_prog; ac_word=$2
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19051 $as_echo_n "checking for $ac_word... " >&6; }
19052 if ${ac_cv_path_CHECK_MAKE+:} false; then :
19053   $as_echo_n "(cached) " >&6
19054 else
19055   case $CHECK_MAKE in
19056   [\\/]* | ?:[\\/]*)
19057   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
19058   ;;
19059   *)
19060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19061 for as_dir in $PATH
19062 do
19063   IFS=$as_save_IFS
19064   test -z "$as_dir" && as_dir=.
19065     for ac_exec_ext in '' $ac_executable_extensions; do
19066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19067     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
19068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19069     break 2
19070   fi
19071 done
19072   done
19073 IFS=$as_save_IFS
19074 
19075   ;;
19076 esac
19077 fi
19078 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
19079 if test -n "$CHECK_MAKE"; then
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
19081 $as_echo "$CHECK_MAKE" >&6; }
19082 else
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19084 $as_echo "no" >&6; }
19085 fi
19086 
19087 
19088   test -n "$CHECK_MAKE" && break
19089 done
19090 
19091 
19092   MAKE_CANDIDATE=""$CHECK_MAKE""
19093   DESCRIPTION="make in PATH"
19094 
19095   # On Cygwin, we require a newer version of make than on other platforms
19096   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19097     MAKE_VERSION_EXPR="-e 4\."
19098     MAKE_REQUIRED_VERSION="4.0"
19099    else
19100     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19101     MAKE_REQUIRED_VERSION="3.81"
19102   fi
19103 
19104   if test "x$MAKE_CANDIDATE" != x; then
19105     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19106 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19107     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19108     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19109     if test "x$IS_GNU_MAKE" = x; then
19110       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19111 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19112     else
19113       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19114       if test "x$IS_MODERN_MAKE" = x; then
19115         { $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
19116 $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;}
19117       else
19118         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19119           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19120             MAKE_EXPECTED_ENV='cygwin'
19121           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19122             MAKE_EXPECTED_ENV='msys'
19123           else
19124             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19125           fi
19126           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19127           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19128         else
19129           # Not relevant for non-Windows
19130           IS_MAKE_CORRECT_ENV=true
19131         fi
19132         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19133           { $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
19134 $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;}
19135         else
19136           FOUND_MAKE=$MAKE_CANDIDATE
19137 
19138   # Only process if variable expands to non-empty
19139 
19140   if test "x$FOUND_MAKE" != x; then
19141     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19142 
19143   # First separate the path from the arguments. This will split at the first
19144   # space.
19145   complete="$FOUND_MAKE"
19146   path="${complete%% *}"
19147   tmp="$complete EOL"
19148   arguments="${tmp#* }"
19149 
19150   # Input might be given as Windows format, start by converting to
19151   # unix format.
19152   new_path=`$CYGPATH -u "$path"`
19153 
19154   # Now try to locate executable using which
19155   new_path=`$WHICH "$new_path" 2> /dev/null`
19156   # bat and cmd files are not always considered executable in cygwin causing which
19157   # to not find them
19158   if test "x$new_path" = x \
19159       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19160       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19161     new_path=`$CYGPATH -u "$path"`
19162   fi
19163   if test "x$new_path" = x; then
19164     # Oops. Which didn't find the executable.
19165     # The splitting of arguments from the executable at a space might have been incorrect,
19166     # since paths with space are more likely in Windows. Give it another try with the whole
19167     # argument.
19168     path="$complete"
19169     arguments="EOL"
19170     new_path=`$CYGPATH -u "$path"`
19171     new_path=`$WHICH "$new_path" 2> /dev/null`
19172     # bat and cmd files are not always considered executable in cygwin causing which
19173     # to not find them
19174     if test "x$new_path" = x \
19175         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19176         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19177       new_path=`$CYGPATH -u "$path"`
19178     fi
19179     if test "x$new_path" = x; then
19180       # It's still not found. Now this is an unrecoverable error.
19181       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19182 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19183       has_space=`$ECHO "$complete" | $GREP " "`
19184       if test "x$has_space" != x; then
19185         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19186 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19187       fi
19188       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19189     fi
19190   fi
19191 
19192   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19193   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19194   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19195   # "foo.exe" is OK but "foo" is an error.
19196   #
19197   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19198   # It is also a way to make sure we got the proper file name for the real test later on.
19199   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19200   if test "x$test_shortpath" = x; then
19201     # Short path failed, file does not exist as specified.
19202     # Try adding .exe or .cmd
19203     if test -f "${new_path}.exe"; then
19204       input_to_shortpath="${new_path}.exe"
19205     elif test -f "${new_path}.cmd"; then
19206       input_to_shortpath="${new_path}.cmd"
19207     else
19208       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19209 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19210       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19211 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19212       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19213     fi
19214   else
19215     input_to_shortpath="$new_path"
19216   fi
19217 
19218   # Call helper function which possibly converts this using DOS-style short mode.
19219   # If so, the updated path is stored in $new_path.
19220   new_path="$input_to_shortpath"
19221 
19222   input_path="$input_to_shortpath"
19223   # Check if we need to convert this using DOS-style short mode. If the path
19224   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19225   # take no chances and rewrite it.
19226   # Note: m4 eats our [], so we need to use [ and ] instead.
19227   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19228   if test "x$has_forbidden_chars" != x; then
19229     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19230     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19231     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19232     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19233       # Going to short mode and back again did indeed matter. Since short mode is
19234       # case insensitive, let's make it lowercase to improve readability.
19235       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19236       # Now convert it back to Unix-style (cygpath)
19237       input_path=`$CYGPATH -u "$shortmode_path"`
19238       new_path="$input_path"
19239     fi
19240   fi
19241 
19242   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19243   if test "x$test_cygdrive_prefix" = x; then
19244     # As a simple fix, exclude /usr/bin since it's not a real path.
19245     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19246       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19247       # a path prefixed by /cygdrive for fixpath to work.
19248       new_path="$CYGWIN_ROOT_PATH$input_path"
19249     fi
19250   fi
19251 
19252   # remove trailing .exe if any
19253   new_path="${new_path/%.exe/}"
19254 
19255     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19256 
19257   # First separate the path from the arguments. This will split at the first
19258   # space.
19259   complete="$FOUND_MAKE"
19260   path="${complete%% *}"
19261   tmp="$complete EOL"
19262   arguments="${tmp#* }"
19263 
19264   # Input might be given as Windows format, start by converting to
19265   # unix format.
19266   new_path="$path"
19267 
19268   windows_path="$new_path"
19269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19270     unix_path=`$CYGPATH -u "$windows_path"`
19271     new_path="$unix_path"
19272   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19273     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19274     new_path="$unix_path"
19275   fi
19276 
19277 
19278   # Now try to locate executable using which
19279   new_path=`$WHICH "$new_path" 2> /dev/null`
19280 
19281   if test "x$new_path" = x; then
19282     # Oops. Which didn't find the executable.
19283     # The splitting of arguments from the executable at a space might have been incorrect,
19284     # since paths with space are more likely in Windows. Give it another try with the whole
19285     # argument.
19286     path="$complete"
19287     arguments="EOL"
19288     new_path="$path"
19289 
19290   windows_path="$new_path"
19291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19292     unix_path=`$CYGPATH -u "$windows_path"`
19293     new_path="$unix_path"
19294   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19295     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19296     new_path="$unix_path"
19297   fi
19298 
19299 
19300     new_path=`$WHICH "$new_path" 2> /dev/null`
19301     # bat and cmd files are not always considered executable in MSYS causing which
19302     # to not find them
19303     if test "x$new_path" = x \
19304         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19305         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19306       new_path="$path"
19307 
19308   windows_path="$new_path"
19309   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19310     unix_path=`$CYGPATH -u "$windows_path"`
19311     new_path="$unix_path"
19312   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19313     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19314     new_path="$unix_path"
19315   fi
19316 
19317     fi
19318 
19319     if test "x$new_path" = x; then
19320       # It's still not found. Now this is an unrecoverable error.
19321       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19323       has_space=`$ECHO "$complete" | $GREP " "`
19324       if test "x$has_space" != x; then
19325         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19327       fi
19328       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19329     fi
19330   fi
19331 
19332   # Now new_path has a complete unix path to the binary
19333   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19334     # Keep paths in /bin as-is, but remove trailing .exe if any
19335     new_path="${new_path/%.exe/}"
19336     # Do not save /bin paths to all_fixpath_prefixes!
19337   else
19338     # Not in mixed or Windows style, start by that.
19339     new_path=`cmd //c echo $new_path`
19340 
19341   input_path="$new_path"
19342   # Check if we need to convert this using DOS-style short mode. If the path
19343   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19344   # take no chances and rewrite it.
19345   # Note: m4 eats our [], so we need to use [ and ] instead.
19346   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19347   if test "x$has_forbidden_chars" != x; then
19348     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19349     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19350   fi
19351 
19352     # Output is in $new_path
19353 
19354   windows_path="$new_path"
19355   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19356     unix_path=`$CYGPATH -u "$windows_path"`
19357     new_path="$unix_path"
19358   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19359     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19360     new_path="$unix_path"
19361   fi
19362 
19363     # remove trailing .exe if any
19364     new_path="${new_path/%.exe/}"
19365 
19366     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19367     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19368   fi
19369 
19370     else
19371       # We're on a unix platform. Hooray! :)
19372       # First separate the path from the arguments. This will split at the first
19373       # space.
19374       complete="$FOUND_MAKE"
19375       path="${complete%% *}"
19376       tmp="$complete EOL"
19377       arguments="${tmp#* }"
19378 
19379       # Cannot rely on the command "which" here since it doesn't always work.
19380       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19381       if test -z "$is_absolute_path"; then
19382         # Path to executable is not absolute. Find it.
19383         IFS_save="$IFS"
19384         IFS=:
19385         for p in $PATH; do
19386           if test -f "$p/$path" && test -x "$p/$path"; then
19387             new_path="$p/$path"
19388             break
19389           fi
19390         done
19391         IFS="$IFS_save"
19392       else
19393         # This is an absolute path, we can use it without further modifications.
19394         new_path="$path"
19395       fi
19396 
19397       if test "x$new_path" = x; then
19398         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19399 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19400         has_space=`$ECHO "$complete" | $GREP " "`
19401         if test "x$has_space" != x; then
19402           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19403 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19404         fi
19405         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19406       fi
19407     fi
19408 
19409     # Now join together the path and the arguments once again
19410     if test "x$arguments" != xEOL; then
19411       new_complete="$new_path ${arguments% *}"
19412     else
19413       new_complete="$new_path"
19414     fi
19415 
19416     if test "x$complete" != "x$new_complete"; then
19417       FOUND_MAKE="$new_complete"
19418       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19419 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19420     fi
19421   fi
19422 
19423         fi
19424       fi
19425     fi
19426   fi
19427 
19428     fi
19429 
19430     if test "x$FOUND_MAKE" = x; then
19431       if test "x$TOOLCHAIN_PATH" != x; then
19432         # We have a toolchain path, check that as well before giving up.
19433         OLD_PATH=$PATH
19434         PATH=$TOOLCHAIN_PATH:$PATH
19435         for ac_prog in gmake
19436 do
19437   # Extract the first word of "$ac_prog", so it can be a program name with args.
19438 set dummy $ac_prog; ac_word=$2
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19440 $as_echo_n "checking for $ac_word... " >&6; }
19441 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
19442   $as_echo_n "(cached) " >&6
19443 else
19444   case $CHECK_TOOLSDIR_GMAKE in
19445   [\\/]* | ?:[\\/]*)
19446   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
19447   ;;
19448   *)
19449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19450 for as_dir in $PATH
19451 do
19452   IFS=$as_save_IFS
19453   test -z "$as_dir" && as_dir=.
19454     for ac_exec_ext in '' $ac_executable_extensions; do
19455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19456     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
19457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19458     break 2
19459   fi
19460 done
19461   done
19462 IFS=$as_save_IFS
19463 
19464   ;;
19465 esac
19466 fi
19467 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
19468 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
19469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
19470 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
19471 else
19472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19473 $as_echo "no" >&6; }
19474 fi
19475 
19476 
19477   test -n "$CHECK_TOOLSDIR_GMAKE" && break
19478 done
19479 
19480 
19481   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
19482   DESCRIPTION="gmake in tools-dir"
19483 
19484   # On Cygwin, we require a newer version of make than on other platforms
19485   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19486     MAKE_VERSION_EXPR="-e 4\."
19487     MAKE_REQUIRED_VERSION="4.0"
19488    else
19489     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19490     MAKE_REQUIRED_VERSION="3.81"
19491   fi
19492 
19493   if test "x$MAKE_CANDIDATE" != x; then
19494     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19495 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19496     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19497     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19498     if test "x$IS_GNU_MAKE" = x; then
19499       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19500 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19501     else
19502       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19503       if test "x$IS_MODERN_MAKE" = x; then
19504         { $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
19505 $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;}
19506       else
19507         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19508           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19509             MAKE_EXPECTED_ENV='cygwin'
19510           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19511             MAKE_EXPECTED_ENV='msys'
19512           else
19513             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19514           fi
19515           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19516           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19517         else
19518           # Not relevant for non-Windows
19519           IS_MAKE_CORRECT_ENV=true
19520         fi
19521         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19522           { $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
19523 $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;}
19524         else
19525           FOUND_MAKE=$MAKE_CANDIDATE
19526 
19527   # Only process if variable expands to non-empty
19528 
19529   if test "x$FOUND_MAKE" != x; then
19530     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19531 
19532   # First separate the path from the arguments. This will split at the first
19533   # space.
19534   complete="$FOUND_MAKE"
19535   path="${complete%% *}"
19536   tmp="$complete EOL"
19537   arguments="${tmp#* }"
19538 
19539   # Input might be given as Windows format, start by converting to
19540   # unix format.
19541   new_path=`$CYGPATH -u "$path"`
19542 
19543   # Now try to locate executable using which
19544   new_path=`$WHICH "$new_path" 2> /dev/null`
19545   # bat and cmd files are not always considered executable in cygwin causing which
19546   # to not find them
19547   if test "x$new_path" = x \
19548       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19549       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19550     new_path=`$CYGPATH -u "$path"`
19551   fi
19552   if test "x$new_path" = x; then
19553     # Oops. Which didn't find the executable.
19554     # The splitting of arguments from the executable at a space might have been incorrect,
19555     # since paths with space are more likely in Windows. Give it another try with the whole
19556     # argument.
19557     path="$complete"
19558     arguments="EOL"
19559     new_path=`$CYGPATH -u "$path"`
19560     new_path=`$WHICH "$new_path" 2> /dev/null`
19561     # bat and cmd files are not always considered executable in cygwin causing which
19562     # to not find them
19563     if test "x$new_path" = x \
19564         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19565         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19566       new_path=`$CYGPATH -u "$path"`
19567     fi
19568     if test "x$new_path" = x; then
19569       # It's still not found. Now this is an unrecoverable error.
19570       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19571 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19572       has_space=`$ECHO "$complete" | $GREP " "`
19573       if test "x$has_space" != x; then
19574         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19576       fi
19577       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19578     fi
19579   fi
19580 
19581   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19582   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19583   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19584   # "foo.exe" is OK but "foo" is an error.
19585   #
19586   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19587   # It is also a way to make sure we got the proper file name for the real test later on.
19588   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19589   if test "x$test_shortpath" = x; then
19590     # Short path failed, file does not exist as specified.
19591     # Try adding .exe or .cmd
19592     if test -f "${new_path}.exe"; then
19593       input_to_shortpath="${new_path}.exe"
19594     elif test -f "${new_path}.cmd"; then
19595       input_to_shortpath="${new_path}.cmd"
19596     else
19597       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19598 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19599       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19600 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19601       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19602     fi
19603   else
19604     input_to_shortpath="$new_path"
19605   fi
19606 
19607   # Call helper function which possibly converts this using DOS-style short mode.
19608   # If so, the updated path is stored in $new_path.
19609   new_path="$input_to_shortpath"
19610 
19611   input_path="$input_to_shortpath"
19612   # Check if we need to convert this using DOS-style short mode. If the path
19613   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19614   # take no chances and rewrite it.
19615   # Note: m4 eats our [], so we need to use [ and ] instead.
19616   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19617   if test "x$has_forbidden_chars" != x; then
19618     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19619     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19620     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19621     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19622       # Going to short mode and back again did indeed matter. Since short mode is
19623       # case insensitive, let's make it lowercase to improve readability.
19624       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19625       # Now convert it back to Unix-style (cygpath)
19626       input_path=`$CYGPATH -u "$shortmode_path"`
19627       new_path="$input_path"
19628     fi
19629   fi
19630 
19631   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19632   if test "x$test_cygdrive_prefix" = x; then
19633     # As a simple fix, exclude /usr/bin since it's not a real path.
19634     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19635       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19636       # a path prefixed by /cygdrive for fixpath to work.
19637       new_path="$CYGWIN_ROOT_PATH$input_path"
19638     fi
19639   fi
19640 
19641   # remove trailing .exe if any
19642   new_path="${new_path/%.exe/}"
19643 
19644     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19645 
19646   # First separate the path from the arguments. This will split at the first
19647   # space.
19648   complete="$FOUND_MAKE"
19649   path="${complete%% *}"
19650   tmp="$complete EOL"
19651   arguments="${tmp#* }"
19652 
19653   # Input might be given as Windows format, start by converting to
19654   # unix format.
19655   new_path="$path"
19656 
19657   windows_path="$new_path"
19658   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19659     unix_path=`$CYGPATH -u "$windows_path"`
19660     new_path="$unix_path"
19661   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19662     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19663     new_path="$unix_path"
19664   fi
19665 
19666 
19667   # Now try to locate executable using which
19668   new_path=`$WHICH "$new_path" 2> /dev/null`
19669 
19670   if test "x$new_path" = x; then
19671     # Oops. Which didn't find the executable.
19672     # The splitting of arguments from the executable at a space might have been incorrect,
19673     # since paths with space are more likely in Windows. Give it another try with the whole
19674     # argument.
19675     path="$complete"
19676     arguments="EOL"
19677     new_path="$path"
19678 
19679   windows_path="$new_path"
19680   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19681     unix_path=`$CYGPATH -u "$windows_path"`
19682     new_path="$unix_path"
19683   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19684     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19685     new_path="$unix_path"
19686   fi
19687 
19688 
19689     new_path=`$WHICH "$new_path" 2> /dev/null`
19690     # bat and cmd files are not always considered executable in MSYS causing which
19691     # to not find them
19692     if test "x$new_path" = x \
19693         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19694         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19695       new_path="$path"
19696 
19697   windows_path="$new_path"
19698   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19699     unix_path=`$CYGPATH -u "$windows_path"`
19700     new_path="$unix_path"
19701   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19702     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19703     new_path="$unix_path"
19704   fi
19705 
19706     fi
19707 
19708     if test "x$new_path" = x; then
19709       # It's still not found. Now this is an unrecoverable error.
19710       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19711 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19712       has_space=`$ECHO "$complete" | $GREP " "`
19713       if test "x$has_space" != x; then
19714         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19715 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19716       fi
19717       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19718     fi
19719   fi
19720 
19721   # Now new_path has a complete unix path to the binary
19722   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19723     # Keep paths in /bin as-is, but remove trailing .exe if any
19724     new_path="${new_path/%.exe/}"
19725     # Do not save /bin paths to all_fixpath_prefixes!
19726   else
19727     # Not in mixed or Windows style, start by that.
19728     new_path=`cmd //c echo $new_path`
19729 
19730   input_path="$new_path"
19731   # Check if we need to convert this using DOS-style short mode. If the path
19732   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19733   # take no chances and rewrite it.
19734   # Note: m4 eats our [], so we need to use [ and ] instead.
19735   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19736   if test "x$has_forbidden_chars" != x; then
19737     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19738     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19739   fi
19740 
19741     # Output is in $new_path
19742 
19743   windows_path="$new_path"
19744   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19745     unix_path=`$CYGPATH -u "$windows_path"`
19746     new_path="$unix_path"
19747   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19748     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19749     new_path="$unix_path"
19750   fi
19751 
19752     # remove trailing .exe if any
19753     new_path="${new_path/%.exe/}"
19754 
19755     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19756     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19757   fi
19758 
19759     else
19760       # We're on a unix platform. Hooray! :)
19761       # First separate the path from the arguments. This will split at the first
19762       # space.
19763       complete="$FOUND_MAKE"
19764       path="${complete%% *}"
19765       tmp="$complete EOL"
19766       arguments="${tmp#* }"
19767 
19768       # Cannot rely on the command "which" here since it doesn't always work.
19769       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19770       if test -z "$is_absolute_path"; then
19771         # Path to executable is not absolute. Find it.
19772         IFS_save="$IFS"
19773         IFS=:
19774         for p in $PATH; do
19775           if test -f "$p/$path" && test -x "$p/$path"; then
19776             new_path="$p/$path"
19777             break
19778           fi
19779         done
19780         IFS="$IFS_save"
19781       else
19782         # This is an absolute path, we can use it without further modifications.
19783         new_path="$path"
19784       fi
19785 
19786       if test "x$new_path" = x; then
19787         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19788 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19789         has_space=`$ECHO "$complete" | $GREP " "`
19790         if test "x$has_space" != x; then
19791           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19792 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19793         fi
19794         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19795       fi
19796     fi
19797 
19798     # Now join together the path and the arguments once again
19799     if test "x$arguments" != xEOL; then
19800       new_complete="$new_path ${arguments% *}"
19801     else
19802       new_complete="$new_path"
19803     fi
19804 
19805     if test "x$complete" != "x$new_complete"; then
19806       FOUND_MAKE="$new_complete"
19807       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19808 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19809     fi
19810   fi
19811 
19812         fi
19813       fi
19814     fi
19815   fi
19816 
19817         if test "x$FOUND_MAKE" = x; then
19818           for ac_prog in make
19819 do
19820   # Extract the first word of "$ac_prog", so it can be a program name with args.
19821 set dummy $ac_prog; ac_word=$2
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19823 $as_echo_n "checking for $ac_word... " >&6; }
19824 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19825   $as_echo_n "(cached) " >&6
19826 else
19827   case $CHECK_TOOLSDIR_MAKE in
19828   [\\/]* | ?:[\\/]*)
19829   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19830   ;;
19831   *)
19832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19833 for as_dir in $PATH
19834 do
19835   IFS=$as_save_IFS
19836   test -z "$as_dir" && as_dir=.
19837     for ac_exec_ext in '' $ac_executable_extensions; do
19838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19839     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19841     break 2
19842   fi
19843 done
19844   done
19845 IFS=$as_save_IFS
19846 
19847   ;;
19848 esac
19849 fi
19850 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19851 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19853 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19854 else
19855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19856 $as_echo "no" >&6; }
19857 fi
19858 
19859 
19860   test -n "$CHECK_TOOLSDIR_MAKE" && break
19861 done
19862 
19863 
19864   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19865   DESCRIPTION="make in tools-dir"
19866 
19867   # On Cygwin, we require a newer version of make than on other platforms
19868   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19869     MAKE_VERSION_EXPR="-e 4\."
19870     MAKE_REQUIRED_VERSION="4.0"
19871    else
19872     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19873     MAKE_REQUIRED_VERSION="3.81"
19874   fi
19875 
19876   if test "x$MAKE_CANDIDATE" != x; then
19877     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19878 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19879     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19880     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19881     if test "x$IS_GNU_MAKE" = x; then
19882       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19883 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19884     else
19885       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19886       if test "x$IS_MODERN_MAKE" = x; then
19887         { $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
19888 $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;}
19889       else
19890         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19891           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19892             MAKE_EXPECTED_ENV='cygwin'
19893           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19894             MAKE_EXPECTED_ENV='msys'
19895           else
19896             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19897           fi
19898           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19899           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19900         else
19901           # Not relevant for non-Windows
19902           IS_MAKE_CORRECT_ENV=true
19903         fi
19904         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19905           { $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
19906 $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;}
19907         else
19908           FOUND_MAKE=$MAKE_CANDIDATE
19909 
19910   # Only process if variable expands to non-empty
19911 
19912   if test "x$FOUND_MAKE" != x; then
19913     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19914 
19915   # First separate the path from the arguments. This will split at the first
19916   # space.
19917   complete="$FOUND_MAKE"
19918   path="${complete%% *}"
19919   tmp="$complete EOL"
19920   arguments="${tmp#* }"
19921 
19922   # Input might be given as Windows format, start by converting to
19923   # unix format.
19924   new_path=`$CYGPATH -u "$path"`
19925 
19926   # Now try to locate executable using which
19927   new_path=`$WHICH "$new_path" 2> /dev/null`
19928   # bat and cmd files are not always considered executable in cygwin causing which
19929   # to not find them
19930   if test "x$new_path" = x \
19931       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19932       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19933     new_path=`$CYGPATH -u "$path"`
19934   fi
19935   if test "x$new_path" = x; then
19936     # Oops. Which didn't find the executable.
19937     # The splitting of arguments from the executable at a space might have been incorrect,
19938     # since paths with space are more likely in Windows. Give it another try with the whole
19939     # argument.
19940     path="$complete"
19941     arguments="EOL"
19942     new_path=`$CYGPATH -u "$path"`
19943     new_path=`$WHICH "$new_path" 2> /dev/null`
19944     # bat and cmd files are not always considered executable in cygwin causing which
19945     # to not find them
19946     if test "x$new_path" = x \
19947         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19948         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19949       new_path=`$CYGPATH -u "$path"`
19950     fi
19951     if test "x$new_path" = x; then
19952       # It's still not found. Now this is an unrecoverable error.
19953       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19954 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19955       has_space=`$ECHO "$complete" | $GREP " "`
19956       if test "x$has_space" != x; then
19957         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19958 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19959       fi
19960       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19961     fi
19962   fi
19963 
19964   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19965   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19966   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19967   # "foo.exe" is OK but "foo" is an error.
19968   #
19969   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19970   # It is also a way to make sure we got the proper file name for the real test later on.
19971   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19972   if test "x$test_shortpath" = x; then
19973     # Short path failed, file does not exist as specified.
19974     # Try adding .exe or .cmd
19975     if test -f "${new_path}.exe"; then
19976       input_to_shortpath="${new_path}.exe"
19977     elif test -f "${new_path}.cmd"; then
19978       input_to_shortpath="${new_path}.cmd"
19979     else
19980       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19981 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19982       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19983 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19984       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19985     fi
19986   else
19987     input_to_shortpath="$new_path"
19988   fi
19989 
19990   # Call helper function which possibly converts this using DOS-style short mode.
19991   # If so, the updated path is stored in $new_path.
19992   new_path="$input_to_shortpath"
19993 
19994   input_path="$input_to_shortpath"
19995   # Check if we need to convert this using DOS-style short mode. If the path
19996   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19997   # take no chances and rewrite it.
19998   # Note: m4 eats our [], so we need to use [ and ] instead.
19999   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20000   if test "x$has_forbidden_chars" != x; then
20001     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20002     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20003     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20004     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20005       # Going to short mode and back again did indeed matter. Since short mode is
20006       # case insensitive, let's make it lowercase to improve readability.
20007       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20008       # Now convert it back to Unix-style (cygpath)
20009       input_path=`$CYGPATH -u "$shortmode_path"`
20010       new_path="$input_path"
20011     fi
20012   fi
20013 
20014   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20015   if test "x$test_cygdrive_prefix" = x; then
20016     # As a simple fix, exclude /usr/bin since it's not a real path.
20017     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20018       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20019       # a path prefixed by /cygdrive for fixpath to work.
20020       new_path="$CYGWIN_ROOT_PATH$input_path"
20021     fi
20022   fi
20023 
20024   # remove trailing .exe if any
20025   new_path="${new_path/%.exe/}"
20026 
20027     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20028 
20029   # First separate the path from the arguments. This will split at the first
20030   # space.
20031   complete="$FOUND_MAKE"
20032   path="${complete%% *}"
20033   tmp="$complete EOL"
20034   arguments="${tmp#* }"
20035 
20036   # Input might be given as Windows format, start by converting to
20037   # unix format.
20038   new_path="$path"
20039 
20040   windows_path="$new_path"
20041   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20042     unix_path=`$CYGPATH -u "$windows_path"`
20043     new_path="$unix_path"
20044   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20045     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20046     new_path="$unix_path"
20047   fi
20048 
20049 
20050   # Now try to locate executable using which
20051   new_path=`$WHICH "$new_path" 2> /dev/null`
20052 
20053   if test "x$new_path" = x; then
20054     # Oops. Which didn't find the executable.
20055     # The splitting of arguments from the executable at a space might have been incorrect,
20056     # since paths with space are more likely in Windows. Give it another try with the whole
20057     # argument.
20058     path="$complete"
20059     arguments="EOL"
20060     new_path="$path"
20061 
20062   windows_path="$new_path"
20063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20064     unix_path=`$CYGPATH -u "$windows_path"`
20065     new_path="$unix_path"
20066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20068     new_path="$unix_path"
20069   fi
20070 
20071 
20072     new_path=`$WHICH "$new_path" 2> /dev/null`
20073     # bat and cmd files are not always considered executable in MSYS causing which
20074     # to not find them
20075     if test "x$new_path" = x \
20076         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20077         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20078       new_path="$path"
20079 
20080   windows_path="$new_path"
20081   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20082     unix_path=`$CYGPATH -u "$windows_path"`
20083     new_path="$unix_path"
20084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20085     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20086     new_path="$unix_path"
20087   fi
20088 
20089     fi
20090 
20091     if test "x$new_path" = x; then
20092       # It's still not found. Now this is an unrecoverable error.
20093       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20094 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20095       has_space=`$ECHO "$complete" | $GREP " "`
20096       if test "x$has_space" != x; then
20097         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20098 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20099       fi
20100       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20101     fi
20102   fi
20103 
20104   # Now new_path has a complete unix path to the binary
20105   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20106     # Keep paths in /bin as-is, but remove trailing .exe if any
20107     new_path="${new_path/%.exe/}"
20108     # Do not save /bin paths to all_fixpath_prefixes!
20109   else
20110     # Not in mixed or Windows style, start by that.
20111     new_path=`cmd //c echo $new_path`
20112 
20113   input_path="$new_path"
20114   # Check if we need to convert this using DOS-style short mode. If the path
20115   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20116   # take no chances and rewrite it.
20117   # Note: m4 eats our [], so we need to use [ and ] instead.
20118   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20119   if test "x$has_forbidden_chars" != x; then
20120     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20121     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20122   fi
20123 
20124     # Output is in $new_path
20125 
20126   windows_path="$new_path"
20127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20128     unix_path=`$CYGPATH -u "$windows_path"`
20129     new_path="$unix_path"
20130   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20131     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20132     new_path="$unix_path"
20133   fi
20134 
20135     # remove trailing .exe if any
20136     new_path="${new_path/%.exe/}"
20137 
20138     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20139     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20140   fi
20141 
20142     else
20143       # We're on a unix platform. Hooray! :)
20144       # First separate the path from the arguments. This will split at the first
20145       # space.
20146       complete="$FOUND_MAKE"
20147       path="${complete%% *}"
20148       tmp="$complete EOL"
20149       arguments="${tmp#* }"
20150 
20151       # Cannot rely on the command "which" here since it doesn't always work.
20152       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20153       if test -z "$is_absolute_path"; then
20154         # Path to executable is not absolute. Find it.
20155         IFS_save="$IFS"
20156         IFS=:
20157         for p in $PATH; do
20158           if test -f "$p/$path" && test -x "$p/$path"; then
20159             new_path="$p/$path"
20160             break
20161           fi
20162         done
20163         IFS="$IFS_save"
20164       else
20165         # This is an absolute path, we can use it without further modifications.
20166         new_path="$path"
20167       fi
20168 
20169       if test "x$new_path" = x; then
20170         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20171 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20172         has_space=`$ECHO "$complete" | $GREP " "`
20173         if test "x$has_space" != x; then
20174           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20175 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20176         fi
20177         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20178       fi
20179     fi
20180 
20181     # Now join together the path and the arguments once again
20182     if test "x$arguments" != xEOL; then
20183       new_complete="$new_path ${arguments% *}"
20184     else
20185       new_complete="$new_path"
20186     fi
20187 
20188     if test "x$complete" != "x$new_complete"; then
20189       FOUND_MAKE="$new_complete"
20190       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20191 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20192     fi
20193   fi
20194 
20195         fi
20196       fi
20197     fi
20198   fi
20199 
20200         fi
20201         PATH=$OLD_PATH
20202       fi
20203     fi
20204 
20205     if test "x$FOUND_MAKE" = x; then
20206       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
20207     fi
20208 
20209     else
20210       # If it succeeded, then it was overridden by the user. We will use it
20211       # for the tool.
20212 
20213       # First remove it from the list of overridden variables, so we can test
20214       # for unknown variables in the end.
20215       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20216 
20217       # Check if we try to supply an empty value
20218       if test "x$MAKE" = x; then
20219         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
20220 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
20221         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20222 $as_echo_n "checking for MAKE... " >&6; }
20223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20224 $as_echo "disabled" >&6; }
20225       else
20226         # Check if the provided tool contains a complete path.
20227         tool_specified="$MAKE"
20228         tool_basename="${tool_specified##*/}"
20229         if test "x$tool_basename" = "x$tool_specified"; then
20230           # A command without a complete path is provided, search $PATH.
20231           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
20232 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
20233           # Extract the first word of "$tool_basename", so it can be a program name with args.
20234 set dummy $tool_basename; ac_word=$2
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20236 $as_echo_n "checking for $ac_word... " >&6; }
20237 if ${ac_cv_path_MAKE+:} false; then :
20238   $as_echo_n "(cached) " >&6
20239 else
20240   case $MAKE in
20241   [\\/]* | ?:[\\/]*)
20242   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
20243   ;;
20244   *)
20245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20246 for as_dir in $PATH
20247 do
20248   IFS=$as_save_IFS
20249   test -z "$as_dir" && as_dir=.
20250     for ac_exec_ext in '' $ac_executable_extensions; do
20251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20252     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
20253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20254     break 2
20255   fi
20256 done
20257   done
20258 IFS=$as_save_IFS
20259 
20260   ;;
20261 esac
20262 fi
20263 MAKE=$ac_cv_path_MAKE
20264 if test -n "$MAKE"; then
20265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
20266 $as_echo "$MAKE" >&6; }
20267 else
20268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20269 $as_echo "no" >&6; }
20270 fi
20271 
20272 
20273           if test "x$MAKE" = x; then
20274             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20275           fi
20276         else
20277           # Otherwise we believe it is a complete path. Use it as it is.
20278           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
20279 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
20280           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
20281 $as_echo_n "checking for MAKE... " >&6; }
20282           if test ! -x "$tool_specified"; then
20283             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20284 $as_echo "not found" >&6; }
20285             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
20286           fi
20287           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20288 $as_echo "$tool_specified" >&6; }
20289         fi
20290       fi
20291     fi
20292 
20293     # If MAKE was set by user, verify the version
20294 
20295   MAKE_CANDIDATE=""$MAKE""
20296   DESCRIPTION="user supplied MAKE=$MAKE"
20297 
20298   # On Cygwin, we require a newer version of make than on other platforms
20299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20300     MAKE_VERSION_EXPR="-e 4\."
20301     MAKE_REQUIRED_VERSION="4.0"
20302    else
20303     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
20304     MAKE_REQUIRED_VERSION="3.81"
20305   fi
20306 
20307   if test "x$MAKE_CANDIDATE" != x; then
20308     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
20309 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
20310     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
20311     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
20312     if test "x$IS_GNU_MAKE" = x; then
20313       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
20314 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
20315     else
20316       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
20317       if test "x$IS_MODERN_MAKE" = x; then
20318         { $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
20319 $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;}
20320       else
20321         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
20322           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20323             MAKE_EXPECTED_ENV='cygwin'
20324           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20325             MAKE_EXPECTED_ENV='msys'
20326           else
20327             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
20328           fi
20329           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
20330           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
20331         else
20332           # Not relevant for non-Windows
20333           IS_MAKE_CORRECT_ENV=true
20334         fi
20335         if test "x$IS_MAKE_CORRECT_ENV" = x; then
20336           { $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
20337 $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;}
20338         else
20339           FOUND_MAKE=$MAKE_CANDIDATE
20340 
20341   # Only process if variable expands to non-empty
20342 
20343   if test "x$FOUND_MAKE" != x; then
20344     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20345 
20346   # First separate the path from the arguments. This will split at the first
20347   # space.
20348   complete="$FOUND_MAKE"
20349   path="${complete%% *}"
20350   tmp="$complete EOL"
20351   arguments="${tmp#* }"
20352 
20353   # Input might be given as Windows format, start by converting to
20354   # unix format.
20355   new_path=`$CYGPATH -u "$path"`
20356 
20357   # Now try to locate executable using which
20358   new_path=`$WHICH "$new_path" 2> /dev/null`
20359   # bat and cmd files are not always considered executable in cygwin causing which
20360   # to not find them
20361   if test "x$new_path" = x \
20362       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20363       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20364     new_path=`$CYGPATH -u "$path"`
20365   fi
20366   if test "x$new_path" = x; then
20367     # Oops. Which didn't find the executable.
20368     # The splitting of arguments from the executable at a space might have been incorrect,
20369     # since paths with space are more likely in Windows. Give it another try with the whole
20370     # argument.
20371     path="$complete"
20372     arguments="EOL"
20373     new_path=`$CYGPATH -u "$path"`
20374     new_path=`$WHICH "$new_path" 2> /dev/null`
20375     # bat and cmd files are not always considered executable in cygwin causing which
20376     # to not find them
20377     if test "x$new_path" = x \
20378         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20379         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20380       new_path=`$CYGPATH -u "$path"`
20381     fi
20382     if test "x$new_path" = x; then
20383       # It's still not found. Now this is an unrecoverable error.
20384       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20386       has_space=`$ECHO "$complete" | $GREP " "`
20387       if test "x$has_space" != x; then
20388         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20390       fi
20391       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20392     fi
20393   fi
20394 
20395   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20396   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20397   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20398   # "foo.exe" is OK but "foo" is an error.
20399   #
20400   # This test is therefore slightly more accurate than "test -f" to check for file presence.
20401   # It is also a way to make sure we got the proper file name for the real test later on.
20402   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20403   if test "x$test_shortpath" = x; then
20404     # Short path failed, file does not exist as specified.
20405     # Try adding .exe or .cmd
20406     if test -f "${new_path}.exe"; then
20407       input_to_shortpath="${new_path}.exe"
20408     elif test -f "${new_path}.cmd"; then
20409       input_to_shortpath="${new_path}.cmd"
20410     else
20411       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
20412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
20413       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
20414 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
20415       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20416     fi
20417   else
20418     input_to_shortpath="$new_path"
20419   fi
20420 
20421   # Call helper function which possibly converts this using DOS-style short mode.
20422   # If so, the updated path is stored in $new_path.
20423   new_path="$input_to_shortpath"
20424 
20425   input_path="$input_to_shortpath"
20426   # Check if we need to convert this using DOS-style short mode. If the path
20427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20428   # take no chances and rewrite it.
20429   # Note: m4 eats our [], so we need to use [ and ] instead.
20430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20431   if test "x$has_forbidden_chars" != x; then
20432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20436       # Going to short mode and back again did indeed matter. Since short mode is
20437       # case insensitive, let's make it lowercase to improve readability.
20438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20439       # Now convert it back to Unix-style (cygpath)
20440       input_path=`$CYGPATH -u "$shortmode_path"`
20441       new_path="$input_path"
20442     fi
20443   fi
20444 
20445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20446   if test "x$test_cygdrive_prefix" = x; then
20447     # As a simple fix, exclude /usr/bin since it's not a real path.
20448     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
20449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20450       # a path prefixed by /cygdrive for fixpath to work.
20451       new_path="$CYGWIN_ROOT_PATH$input_path"
20452     fi
20453   fi
20454 
20455   # remove trailing .exe if any
20456   new_path="${new_path/%.exe/}"
20457 
20458     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20459 
20460   # First separate the path from the arguments. This will split at the first
20461   # space.
20462   complete="$FOUND_MAKE"
20463   path="${complete%% *}"
20464   tmp="$complete EOL"
20465   arguments="${tmp#* }"
20466 
20467   # Input might be given as Windows format, start by converting to
20468   # unix format.
20469   new_path="$path"
20470 
20471   windows_path="$new_path"
20472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20473     unix_path=`$CYGPATH -u "$windows_path"`
20474     new_path="$unix_path"
20475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20477     new_path="$unix_path"
20478   fi
20479 
20480 
20481   # Now try to locate executable using which
20482   new_path=`$WHICH "$new_path" 2> /dev/null`
20483 
20484   if test "x$new_path" = x; then
20485     # Oops. Which didn't find the executable.
20486     # The splitting of arguments from the executable at a space might have been incorrect,
20487     # since paths with space are more likely in Windows. Give it another try with the whole
20488     # argument.
20489     path="$complete"
20490     arguments="EOL"
20491     new_path="$path"
20492 
20493   windows_path="$new_path"
20494   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20495     unix_path=`$CYGPATH -u "$windows_path"`
20496     new_path="$unix_path"
20497   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20498     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20499     new_path="$unix_path"
20500   fi
20501 
20502 
20503     new_path=`$WHICH "$new_path" 2> /dev/null`
20504     # bat and cmd files are not always considered executable in MSYS causing which
20505     # to not find them
20506     if test "x$new_path" = x \
20507         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20508         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20509       new_path="$path"
20510 
20511   windows_path="$new_path"
20512   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20513     unix_path=`$CYGPATH -u "$windows_path"`
20514     new_path="$unix_path"
20515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20516     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20517     new_path="$unix_path"
20518   fi
20519 
20520     fi
20521 
20522     if test "x$new_path" = x; then
20523       # It's still not found. Now this is an unrecoverable error.
20524       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20525 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20526       has_space=`$ECHO "$complete" | $GREP " "`
20527       if test "x$has_space" != x; then
20528         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20530       fi
20531       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20532     fi
20533   fi
20534 
20535   # Now new_path has a complete unix path to the binary
20536   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
20537     # Keep paths in /bin as-is, but remove trailing .exe if any
20538     new_path="${new_path/%.exe/}"
20539     # Do not save /bin paths to all_fixpath_prefixes!
20540   else
20541     # Not in mixed or Windows style, start by that.
20542     new_path=`cmd //c echo $new_path`
20543 
20544   input_path="$new_path"
20545   # Check if we need to convert this using DOS-style short mode. If the path
20546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20547   # take no chances and rewrite it.
20548   # Note: m4 eats our [], so we need to use [ and ] instead.
20549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20550   if test "x$has_forbidden_chars" != x; then
20551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20552     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20553   fi
20554 
20555     # Output is in $new_path
20556 
20557   windows_path="$new_path"
20558   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20559     unix_path=`$CYGPATH -u "$windows_path"`
20560     new_path="$unix_path"
20561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20562     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20563     new_path="$unix_path"
20564   fi
20565 
20566     # remove trailing .exe if any
20567     new_path="${new_path/%.exe/}"
20568 
20569     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20570     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20571   fi
20572 
20573     else
20574       # We're on a unix platform. Hooray! :)
20575       # First separate the path from the arguments. This will split at the first
20576       # space.
20577       complete="$FOUND_MAKE"
20578       path="${complete%% *}"
20579       tmp="$complete EOL"
20580       arguments="${tmp#* }"
20581 
20582       # Cannot rely on the command "which" here since it doesn't always work.
20583       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20584       if test -z "$is_absolute_path"; then
20585         # Path to executable is not absolute. Find it.
20586         IFS_save="$IFS"
20587         IFS=:
20588         for p in $PATH; do
20589           if test -f "$p/$path" && test -x "$p/$path"; then
20590             new_path="$p/$path"
20591             break
20592           fi
20593         done
20594         IFS="$IFS_save"
20595       else
20596         # This is an absolute path, we can use it without further modifications.
20597         new_path="$path"
20598       fi
20599 
20600       if test "x$new_path" = x; then
20601         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20602 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20603         has_space=`$ECHO "$complete" | $GREP " "`
20604         if test "x$has_space" != x; then
20605           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20606 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20607         fi
20608         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20609       fi
20610     fi
20611 
20612     # Now join together the path and the arguments once again
20613     if test "x$arguments" != xEOL; then
20614       new_complete="$new_path ${arguments% *}"
20615     else
20616       new_complete="$new_path"
20617     fi
20618 
20619     if test "x$complete" != "x$new_complete"; then
20620       FOUND_MAKE="$new_complete"
20621       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20622 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20623     fi
20624   fi
20625 
20626         fi
20627       fi
20628     fi
20629   fi
20630 
20631     if test "x$FOUND_MAKE" = x; then
20632       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20633     fi
20634 
20635   fi
20636 
20637 
20638   MAKE=$FOUND_MAKE
20639 
20640   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20641 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20642 
20643 
20644   # Check if make supports the output sync option and if so, setup using it.
20645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20646 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20647   if $MAKE --version -O > /dev/null 2>&1; then
20648     OUTPUT_SYNC_SUPPORTED=true
20649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20650 $as_echo "yes" >&6; }
20651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20652 $as_echo_n "checking for output-sync value... " >&6; }
20653 
20654 # Check whether --with-output-sync was given.
20655 if test "${with_output_sync+set}" = set; then :
20656   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20657 fi
20658 
20659     if test "x$OUTPUT_SYNC" = "x"; then
20660       OUTPUT_SYNC=none
20661     fi
20662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20663 $as_echo "$OUTPUT_SYNC" >&6; }
20664     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20665       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20666     fi
20667   else
20668     OUTPUT_SYNC_SUPPORTED=false
20669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20670 $as_echo "no" >&6; }
20671   fi
20672 
20673 
20674 
20675 
20676 
20677 
20678   # Test if find supports -delete
20679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20680 $as_echo_n "checking if find supports -delete... " >&6; }
20681   FIND_DELETE="-delete"
20682 
20683   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20684 
20685   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20686 
20687   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20688   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20689     # No, it does not.
20690     rm $DELETEDIR/TestIfFindSupportsDelete
20691     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20692       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20693       FIND_DELETE="-print | xargs rm"
20694     else
20695       FIND_DELETE="-exec rm \{\} \+"
20696     fi
20697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 $as_echo "no" >&6; }
20699   else
20700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20701 $as_echo "yes" >&6; }
20702   fi
20703   rmdir $DELETEDIR
20704 
20705 
20706 
20707   # These tools might not be installed by default,
20708   # need hint on how to install them.
20709 
20710 
20711 
20712   # Publish this variable in the help.
20713 
20714 
20715   if [ -z "${UNZIP+x}" ]; then
20716     # The variable is not set by user, try to locate tool using the code snippet
20717     for ac_prog in unzip
20718 do
20719   # Extract the first word of "$ac_prog", so it can be a program name with args.
20720 set dummy $ac_prog; ac_word=$2
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20722 $as_echo_n "checking for $ac_word... " >&6; }
20723 if ${ac_cv_path_UNZIP+:} false; then :
20724   $as_echo_n "(cached) " >&6
20725 else
20726   case $UNZIP in
20727   [\\/]* | ?:[\\/]*)
20728   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20729   ;;
20730   *)
20731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20732 for as_dir in $PATH
20733 do
20734   IFS=$as_save_IFS
20735   test -z "$as_dir" && as_dir=.
20736     for ac_exec_ext in '' $ac_executable_extensions; do
20737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20738     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20740     break 2
20741   fi
20742 done
20743   done
20744 IFS=$as_save_IFS
20745 
20746   ;;
20747 esac
20748 fi
20749 UNZIP=$ac_cv_path_UNZIP
20750 if test -n "$UNZIP"; then
20751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20752 $as_echo "$UNZIP" >&6; }
20753 else
20754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20755 $as_echo "no" >&6; }
20756 fi
20757 
20758 
20759   test -n "$UNZIP" && break
20760 done
20761 
20762   else
20763     # The variable is set, but is it from the command line or the environment?
20764 
20765     # Try to remove the string !UNZIP! from our list.
20766     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20767     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20768       # If it failed, the variable was not from the command line. Ignore it,
20769       # but warn the user (except for BASH, which is always set by the calling BASH).
20770       if test "xUNZIP" != xBASH; then
20771         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20772 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20773       fi
20774       # Try to locate tool using the code snippet
20775       for ac_prog in unzip
20776 do
20777   # Extract the first word of "$ac_prog", so it can be a program name with args.
20778 set dummy $ac_prog; ac_word=$2
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20780 $as_echo_n "checking for $ac_word... " >&6; }
20781 if ${ac_cv_path_UNZIP+:} false; then :
20782   $as_echo_n "(cached) " >&6
20783 else
20784   case $UNZIP in
20785   [\\/]* | ?:[\\/]*)
20786   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20787   ;;
20788   *)
20789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20790 for as_dir in $PATH
20791 do
20792   IFS=$as_save_IFS
20793   test -z "$as_dir" && as_dir=.
20794     for ac_exec_ext in '' $ac_executable_extensions; do
20795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20796     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20798     break 2
20799   fi
20800 done
20801   done
20802 IFS=$as_save_IFS
20803 
20804   ;;
20805 esac
20806 fi
20807 UNZIP=$ac_cv_path_UNZIP
20808 if test -n "$UNZIP"; then
20809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20810 $as_echo "$UNZIP" >&6; }
20811 else
20812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20813 $as_echo "no" >&6; }
20814 fi
20815 
20816 
20817   test -n "$UNZIP" && break
20818 done
20819 
20820     else
20821       # If it succeeded, then it was overridden by the user. We will use it
20822       # for the tool.
20823 
20824       # First remove it from the list of overridden variables, so we can test
20825       # for unknown variables in the end.
20826       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20827 
20828       # Check if we try to supply an empty value
20829       if test "x$UNZIP" = x; then
20830         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20831 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20833 $as_echo_n "checking for UNZIP... " >&6; }
20834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20835 $as_echo "disabled" >&6; }
20836       else
20837         # Check if the provided tool contains a complete path.
20838         tool_specified="$UNZIP"
20839         tool_basename="${tool_specified##*/}"
20840         if test "x$tool_basename" = "x$tool_specified"; then
20841           # A command without a complete path is provided, search $PATH.
20842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20843 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20844           # Extract the first word of "$tool_basename", so it can be a program name with args.
20845 set dummy $tool_basename; ac_word=$2
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20847 $as_echo_n "checking for $ac_word... " >&6; }
20848 if ${ac_cv_path_UNZIP+:} false; then :
20849   $as_echo_n "(cached) " >&6
20850 else
20851   case $UNZIP in
20852   [\\/]* | ?:[\\/]*)
20853   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20854   ;;
20855   *)
20856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20857 for as_dir in $PATH
20858 do
20859   IFS=$as_save_IFS
20860   test -z "$as_dir" && as_dir=.
20861     for ac_exec_ext in '' $ac_executable_extensions; do
20862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20863     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20865     break 2
20866   fi
20867 done
20868   done
20869 IFS=$as_save_IFS
20870 
20871   ;;
20872 esac
20873 fi
20874 UNZIP=$ac_cv_path_UNZIP
20875 if test -n "$UNZIP"; then
20876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20877 $as_echo "$UNZIP" >&6; }
20878 else
20879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 $as_echo "no" >&6; }
20881 fi
20882 
20883 
20884           if test "x$UNZIP" = x; then
20885             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20886           fi
20887         else
20888           # Otherwise we believe it is a complete path. Use it as it is.
20889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20890 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20891           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20892 $as_echo_n "checking for UNZIP... " >&6; }
20893           if test ! -x "$tool_specified"; then
20894             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20895 $as_echo "not found" >&6; }
20896             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20897           fi
20898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20899 $as_echo "$tool_specified" >&6; }
20900         fi
20901       fi
20902     fi
20903 
20904   fi
20905 
20906 
20907 
20908   if test "x$UNZIP" = x; then
20909     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20910   fi
20911 
20912 
20913 
20914 
20915 
20916   # Publish this variable in the help.
20917 
20918 
20919   if [ -z "${ZIP+x}" ]; then
20920     # The variable is not set by user, try to locate tool using the code snippet
20921     for ac_prog in zip
20922 do
20923   # Extract the first word of "$ac_prog", so it can be a program name with args.
20924 set dummy $ac_prog; ac_word=$2
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20926 $as_echo_n "checking for $ac_word... " >&6; }
20927 if ${ac_cv_path_ZIP+:} false; then :
20928   $as_echo_n "(cached) " >&6
20929 else
20930   case $ZIP in
20931   [\\/]* | ?:[\\/]*)
20932   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20933   ;;
20934   *)
20935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20936 for as_dir in $PATH
20937 do
20938   IFS=$as_save_IFS
20939   test -z "$as_dir" && as_dir=.
20940     for ac_exec_ext in '' $ac_executable_extensions; do
20941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20942     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20944     break 2
20945   fi
20946 done
20947   done
20948 IFS=$as_save_IFS
20949 
20950   ;;
20951 esac
20952 fi
20953 ZIP=$ac_cv_path_ZIP
20954 if test -n "$ZIP"; then
20955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20956 $as_echo "$ZIP" >&6; }
20957 else
20958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20959 $as_echo "no" >&6; }
20960 fi
20961 
20962 
20963   test -n "$ZIP" && break
20964 done
20965 
20966   else
20967     # The variable is set, but is it from the command line or the environment?
20968 
20969     # Try to remove the string !ZIP! from our list.
20970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20972       # If it failed, the variable was not from the command line. Ignore it,
20973       # but warn the user (except for BASH, which is always set by the calling BASH).
20974       if test "xZIP" != xBASH; then
20975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20976 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20977       fi
20978       # Try to locate tool using the code snippet
20979       for ac_prog in zip
20980 do
20981   # Extract the first word of "$ac_prog", so it can be a program name with args.
20982 set dummy $ac_prog; ac_word=$2
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20984 $as_echo_n "checking for $ac_word... " >&6; }
20985 if ${ac_cv_path_ZIP+:} false; then :
20986   $as_echo_n "(cached) " >&6
20987 else
20988   case $ZIP in
20989   [\\/]* | ?:[\\/]*)
20990   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20991   ;;
20992   *)
20993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20994 for as_dir in $PATH
20995 do
20996   IFS=$as_save_IFS
20997   test -z "$as_dir" && as_dir=.
20998     for ac_exec_ext in '' $ac_executable_extensions; do
20999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21000     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21002     break 2
21003   fi
21004 done
21005   done
21006 IFS=$as_save_IFS
21007 
21008   ;;
21009 esac
21010 fi
21011 ZIP=$ac_cv_path_ZIP
21012 if test -n "$ZIP"; then
21013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21014 $as_echo "$ZIP" >&6; }
21015 else
21016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 $as_echo "no" >&6; }
21018 fi
21019 
21020 
21021   test -n "$ZIP" && break
21022 done
21023 
21024     else
21025       # If it succeeded, then it was overridden by the user. We will use it
21026       # for the tool.
21027 
21028       # First remove it from the list of overridden variables, so we can test
21029       # for unknown variables in the end.
21030       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21031 
21032       # Check if we try to supply an empty value
21033       if test "x$ZIP" = x; then
21034         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
21035 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
21036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21037 $as_echo_n "checking for ZIP... " >&6; }
21038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21039 $as_echo "disabled" >&6; }
21040       else
21041         # Check if the provided tool contains a complete path.
21042         tool_specified="$ZIP"
21043         tool_basename="${tool_specified##*/}"
21044         if test "x$tool_basename" = "x$tool_specified"; then
21045           # A command without a complete path is provided, search $PATH.
21046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
21047 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
21048           # Extract the first word of "$tool_basename", so it can be a program name with args.
21049 set dummy $tool_basename; ac_word=$2
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21051 $as_echo_n "checking for $ac_word... " >&6; }
21052 if ${ac_cv_path_ZIP+:} false; then :
21053   $as_echo_n "(cached) " >&6
21054 else
21055   case $ZIP in
21056   [\\/]* | ?:[\\/]*)
21057   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
21058   ;;
21059   *)
21060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21061 for as_dir in $PATH
21062 do
21063   IFS=$as_save_IFS
21064   test -z "$as_dir" && as_dir=.
21065     for ac_exec_ext in '' $ac_executable_extensions; do
21066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21067     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
21068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21069     break 2
21070   fi
21071 done
21072   done
21073 IFS=$as_save_IFS
21074 
21075   ;;
21076 esac
21077 fi
21078 ZIP=$ac_cv_path_ZIP
21079 if test -n "$ZIP"; then
21080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
21081 $as_echo "$ZIP" >&6; }
21082 else
21083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21084 $as_echo "no" >&6; }
21085 fi
21086 
21087 
21088           if test "x$ZIP" = x; then
21089             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21090           fi
21091         else
21092           # Otherwise we believe it is a complete path. Use it as it is.
21093           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
21094 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
21095           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
21096 $as_echo_n "checking for ZIP... " >&6; }
21097           if test ! -x "$tool_specified"; then
21098             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21099 $as_echo "not found" >&6; }
21100             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
21101           fi
21102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21103 $as_echo "$tool_specified" >&6; }
21104         fi
21105       fi
21106     fi
21107 
21108   fi
21109 
21110 
21111 
21112   if test "x$ZIP" = x; then
21113     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
21114   fi
21115 
21116 
21117 
21118   # Non-required basic tools
21119 
21120 
21121 
21122   # Publish this variable in the help.
21123 
21124 
21125   if [ -z "${LDD+x}" ]; then
21126     # The variable is not set by user, try to locate tool using the code snippet
21127     for ac_prog in ldd
21128 do
21129   # Extract the first word of "$ac_prog", so it can be a program name with args.
21130 set dummy $ac_prog; ac_word=$2
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21132 $as_echo_n "checking for $ac_word... " >&6; }
21133 if ${ac_cv_path_LDD+:} false; then :
21134   $as_echo_n "(cached) " >&6
21135 else
21136   case $LDD in
21137   [\\/]* | ?:[\\/]*)
21138   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21139   ;;
21140   *)
21141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21142 for as_dir in $PATH
21143 do
21144   IFS=$as_save_IFS
21145   test -z "$as_dir" && as_dir=.
21146     for ac_exec_ext in '' $ac_executable_extensions; do
21147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21148     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21150     break 2
21151   fi
21152 done
21153   done
21154 IFS=$as_save_IFS
21155 
21156   ;;
21157 esac
21158 fi
21159 LDD=$ac_cv_path_LDD
21160 if test -n "$LDD"; then
21161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21162 $as_echo "$LDD" >&6; }
21163 else
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 $as_echo "no" >&6; }
21166 fi
21167 
21168 
21169   test -n "$LDD" && break
21170 done
21171 
21172   else
21173     # The variable is set, but is it from the command line or the environment?
21174 
21175     # Try to remove the string !LDD! from our list.
21176     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
21177     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21178       # If it failed, the variable was not from the command line. Ignore it,
21179       # but warn the user (except for BASH, which is always set by the calling BASH).
21180       if test "xLDD" != xBASH; then
21181         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
21182 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
21183       fi
21184       # Try to locate tool using the code snippet
21185       for ac_prog in ldd
21186 do
21187   # Extract the first word of "$ac_prog", so it can be a program name with args.
21188 set dummy $ac_prog; ac_word=$2
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21190 $as_echo_n "checking for $ac_word... " >&6; }
21191 if ${ac_cv_path_LDD+:} false; then :
21192   $as_echo_n "(cached) " >&6
21193 else
21194   case $LDD in
21195   [\\/]* | ?:[\\/]*)
21196   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21197   ;;
21198   *)
21199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21200 for as_dir in $PATH
21201 do
21202   IFS=$as_save_IFS
21203   test -z "$as_dir" && as_dir=.
21204     for ac_exec_ext in '' $ac_executable_extensions; do
21205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21206     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21208     break 2
21209   fi
21210 done
21211   done
21212 IFS=$as_save_IFS
21213 
21214   ;;
21215 esac
21216 fi
21217 LDD=$ac_cv_path_LDD
21218 if test -n "$LDD"; then
21219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21220 $as_echo "$LDD" >&6; }
21221 else
21222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21223 $as_echo "no" >&6; }
21224 fi
21225 
21226 
21227   test -n "$LDD" && break
21228 done
21229 
21230     else
21231       # If it succeeded, then it was overridden by the user. We will use it
21232       # for the tool.
21233 
21234       # First remove it from the list of overridden variables, so we can test
21235       # for unknown variables in the end.
21236       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21237 
21238       # Check if we try to supply an empty value
21239       if test "x$LDD" = x; then
21240         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
21241 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
21242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21243 $as_echo_n "checking for LDD... " >&6; }
21244         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21245 $as_echo "disabled" >&6; }
21246       else
21247         # Check if the provided tool contains a complete path.
21248         tool_specified="$LDD"
21249         tool_basename="${tool_specified##*/}"
21250         if test "x$tool_basename" = "x$tool_specified"; then
21251           # A command without a complete path is provided, search $PATH.
21252           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
21253 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
21254           # Extract the first word of "$tool_basename", so it can be a program name with args.
21255 set dummy $tool_basename; ac_word=$2
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21257 $as_echo_n "checking for $ac_word... " >&6; }
21258 if ${ac_cv_path_LDD+:} false; then :
21259   $as_echo_n "(cached) " >&6
21260 else
21261   case $LDD in
21262   [\\/]* | ?:[\\/]*)
21263   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
21264   ;;
21265   *)
21266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21267 for as_dir in $PATH
21268 do
21269   IFS=$as_save_IFS
21270   test -z "$as_dir" && as_dir=.
21271     for ac_exec_ext in '' $ac_executable_extensions; do
21272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21273     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
21274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21275     break 2
21276   fi
21277 done
21278   done
21279 IFS=$as_save_IFS
21280 
21281   ;;
21282 esac
21283 fi
21284 LDD=$ac_cv_path_LDD
21285 if test -n "$LDD"; then
21286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
21287 $as_echo "$LDD" >&6; }
21288 else
21289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21290 $as_echo "no" >&6; }
21291 fi
21292 
21293 
21294           if test "x$LDD" = x; then
21295             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21296           fi
21297         else
21298           # Otherwise we believe it is a complete path. Use it as it is.
21299           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
21300 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
21301           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
21302 $as_echo_n "checking for LDD... " >&6; }
21303           if test ! -x "$tool_specified"; then
21304             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21305 $as_echo "not found" >&6; }
21306             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
21307           fi
21308           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21309 $as_echo "$tool_specified" >&6; }
21310         fi
21311       fi
21312     fi
21313 
21314   fi
21315 
21316 
21317   if test "x$LDD" = "x"; then
21318     # List shared lib dependencies is used for
21319     # debug output and checking for forbidden dependencies.
21320     # We can build without it.
21321     LDD="true"
21322   fi
21323 
21324 
21325   # Publish this variable in the help.
21326 
21327 
21328   if [ -z "${OTOOL+x}" ]; then
21329     # The variable is not set by user, try to locate tool using the code snippet
21330     for ac_prog in otool
21331 do
21332   # Extract the first word of "$ac_prog", so it can be a program name with args.
21333 set dummy $ac_prog; ac_word=$2
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21335 $as_echo_n "checking for $ac_word... " >&6; }
21336 if ${ac_cv_path_OTOOL+:} false; then :
21337   $as_echo_n "(cached) " >&6
21338 else
21339   case $OTOOL in
21340   [\\/]* | ?:[\\/]*)
21341   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21342   ;;
21343   *)
21344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345 for as_dir in $PATH
21346 do
21347   IFS=$as_save_IFS
21348   test -z "$as_dir" && as_dir=.
21349     for ac_exec_ext in '' $ac_executable_extensions; do
21350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21351     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21353     break 2
21354   fi
21355 done
21356   done
21357 IFS=$as_save_IFS
21358 
21359   ;;
21360 esac
21361 fi
21362 OTOOL=$ac_cv_path_OTOOL
21363 if test -n "$OTOOL"; then
21364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21365 $as_echo "$OTOOL" >&6; }
21366 else
21367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21368 $as_echo "no" >&6; }
21369 fi
21370 
21371 
21372   test -n "$OTOOL" && break
21373 done
21374 
21375   else
21376     # The variable is set, but is it from the command line or the environment?
21377 
21378     # Try to remove the string !OTOOL! from our list.
21379     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
21380     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21381       # If it failed, the variable was not from the command line. Ignore it,
21382       # but warn the user (except for BASH, which is always set by the calling BASH).
21383       if test "xOTOOL" != xBASH; then
21384         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
21385 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
21386       fi
21387       # Try to locate tool using the code snippet
21388       for ac_prog in otool
21389 do
21390   # Extract the first word of "$ac_prog", so it can be a program name with args.
21391 set dummy $ac_prog; ac_word=$2
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21393 $as_echo_n "checking for $ac_word... " >&6; }
21394 if ${ac_cv_path_OTOOL+:} false; then :
21395   $as_echo_n "(cached) " >&6
21396 else
21397   case $OTOOL in
21398   [\\/]* | ?:[\\/]*)
21399   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21400   ;;
21401   *)
21402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21403 for as_dir in $PATH
21404 do
21405   IFS=$as_save_IFS
21406   test -z "$as_dir" && as_dir=.
21407     for ac_exec_ext in '' $ac_executable_extensions; do
21408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21409     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21411     break 2
21412   fi
21413 done
21414   done
21415 IFS=$as_save_IFS
21416 
21417   ;;
21418 esac
21419 fi
21420 OTOOL=$ac_cv_path_OTOOL
21421 if test -n "$OTOOL"; then
21422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21423 $as_echo "$OTOOL" >&6; }
21424 else
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21426 $as_echo "no" >&6; }
21427 fi
21428 
21429 
21430   test -n "$OTOOL" && break
21431 done
21432 
21433     else
21434       # If it succeeded, then it was overridden by the user. We will use it
21435       # for the tool.
21436 
21437       # First remove it from the list of overridden variables, so we can test
21438       # for unknown variables in the end.
21439       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21440 
21441       # Check if we try to supply an empty value
21442       if test "x$OTOOL" = x; then
21443         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
21444 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
21445         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21446 $as_echo_n "checking for OTOOL... " >&6; }
21447         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21448 $as_echo "disabled" >&6; }
21449       else
21450         # Check if the provided tool contains a complete path.
21451         tool_specified="$OTOOL"
21452         tool_basename="${tool_specified##*/}"
21453         if test "x$tool_basename" = "x$tool_specified"; then
21454           # A command without a complete path is provided, search $PATH.
21455           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
21456 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
21457           # Extract the first word of "$tool_basename", so it can be a program name with args.
21458 set dummy $tool_basename; ac_word=$2
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21460 $as_echo_n "checking for $ac_word... " >&6; }
21461 if ${ac_cv_path_OTOOL+:} false; then :
21462   $as_echo_n "(cached) " >&6
21463 else
21464   case $OTOOL in
21465   [\\/]* | ?:[\\/]*)
21466   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
21467   ;;
21468   *)
21469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21470 for as_dir in $PATH
21471 do
21472   IFS=$as_save_IFS
21473   test -z "$as_dir" && as_dir=.
21474     for ac_exec_ext in '' $ac_executable_extensions; do
21475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21476     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
21477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21478     break 2
21479   fi
21480 done
21481   done
21482 IFS=$as_save_IFS
21483 
21484   ;;
21485 esac
21486 fi
21487 OTOOL=$ac_cv_path_OTOOL
21488 if test -n "$OTOOL"; then
21489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
21490 $as_echo "$OTOOL" >&6; }
21491 else
21492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 $as_echo "no" >&6; }
21494 fi
21495 
21496 
21497           if test "x$OTOOL" = x; then
21498             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21499           fi
21500         else
21501           # Otherwise we believe it is a complete path. Use it as it is.
21502           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
21503 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
21504           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
21505 $as_echo_n "checking for OTOOL... " >&6; }
21506           if test ! -x "$tool_specified"; then
21507             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21508 $as_echo "not found" >&6; }
21509             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
21510           fi
21511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21512 $as_echo "$tool_specified" >&6; }
21513         fi
21514       fi
21515     fi
21516 
21517   fi
21518 
21519 
21520   if test "x$OTOOL" = "x"; then
21521     OTOOL="true"
21522   fi
21523 
21524 
21525   # Publish this variable in the help.
21526 
21527 
21528   if [ -z "${READELF+x}" ]; then
21529     # The variable is not set by user, try to locate tool using the code snippet
21530     for ac_prog in greadelf readelf
21531 do
21532   # Extract the first word of "$ac_prog", so it can be a program name with args.
21533 set dummy $ac_prog; ac_word=$2
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21535 $as_echo_n "checking for $ac_word... " >&6; }
21536 if ${ac_cv_path_READELF+:} false; then :
21537   $as_echo_n "(cached) " >&6
21538 else
21539   case $READELF in
21540   [\\/]* | ?:[\\/]*)
21541   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21542   ;;
21543   *)
21544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21545 for as_dir in $PATH
21546 do
21547   IFS=$as_save_IFS
21548   test -z "$as_dir" && as_dir=.
21549     for ac_exec_ext in '' $ac_executable_extensions; do
21550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21551     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21553     break 2
21554   fi
21555 done
21556   done
21557 IFS=$as_save_IFS
21558 
21559   ;;
21560 esac
21561 fi
21562 READELF=$ac_cv_path_READELF
21563 if test -n "$READELF"; then
21564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21565 $as_echo "$READELF" >&6; }
21566 else
21567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 $as_echo "no" >&6; }
21569 fi
21570 
21571 
21572   test -n "$READELF" && break
21573 done
21574 
21575   else
21576     # The variable is set, but is it from the command line or the environment?
21577 
21578     # Try to remove the string !READELF! from our list.
21579     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21580     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21581       # If it failed, the variable was not from the command line. Ignore it,
21582       # but warn the user (except for BASH, which is always set by the calling BASH).
21583       if test "xREADELF" != xBASH; then
21584         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21585 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21586       fi
21587       # Try to locate tool using the code snippet
21588       for ac_prog in greadelf readelf
21589 do
21590   # Extract the first word of "$ac_prog", so it can be a program name with args.
21591 set dummy $ac_prog; ac_word=$2
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21593 $as_echo_n "checking for $ac_word... " >&6; }
21594 if ${ac_cv_path_READELF+:} false; then :
21595   $as_echo_n "(cached) " >&6
21596 else
21597   case $READELF in
21598   [\\/]* | ?:[\\/]*)
21599   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21600   ;;
21601   *)
21602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21603 for as_dir in $PATH
21604 do
21605   IFS=$as_save_IFS
21606   test -z "$as_dir" && as_dir=.
21607     for ac_exec_ext in '' $ac_executable_extensions; do
21608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21609     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21611     break 2
21612   fi
21613 done
21614   done
21615 IFS=$as_save_IFS
21616 
21617   ;;
21618 esac
21619 fi
21620 READELF=$ac_cv_path_READELF
21621 if test -n "$READELF"; then
21622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21623 $as_echo "$READELF" >&6; }
21624 else
21625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21626 $as_echo "no" >&6; }
21627 fi
21628 
21629 
21630   test -n "$READELF" && break
21631 done
21632 
21633     else
21634       # If it succeeded, then it was overridden by the user. We will use it
21635       # for the tool.
21636 
21637       # First remove it from the list of overridden variables, so we can test
21638       # for unknown variables in the end.
21639       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21640 
21641       # Check if we try to supply an empty value
21642       if test "x$READELF" = x; then
21643         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21644 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21646 $as_echo_n "checking for READELF... " >&6; }
21647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21648 $as_echo "disabled" >&6; }
21649       else
21650         # Check if the provided tool contains a complete path.
21651         tool_specified="$READELF"
21652         tool_basename="${tool_specified##*/}"
21653         if test "x$tool_basename" = "x$tool_specified"; then
21654           # A command without a complete path is provided, search $PATH.
21655           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21656 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21657           # Extract the first word of "$tool_basename", so it can be a program name with args.
21658 set dummy $tool_basename; ac_word=$2
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21660 $as_echo_n "checking for $ac_word... " >&6; }
21661 if ${ac_cv_path_READELF+:} false; then :
21662   $as_echo_n "(cached) " >&6
21663 else
21664   case $READELF in
21665   [\\/]* | ?:[\\/]*)
21666   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21667   ;;
21668   *)
21669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670 for as_dir in $PATH
21671 do
21672   IFS=$as_save_IFS
21673   test -z "$as_dir" && as_dir=.
21674     for ac_exec_ext in '' $ac_executable_extensions; do
21675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21676     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21678     break 2
21679   fi
21680 done
21681   done
21682 IFS=$as_save_IFS
21683 
21684   ;;
21685 esac
21686 fi
21687 READELF=$ac_cv_path_READELF
21688 if test -n "$READELF"; then
21689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21690 $as_echo "$READELF" >&6; }
21691 else
21692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21693 $as_echo "no" >&6; }
21694 fi
21695 
21696 
21697           if test "x$READELF" = x; then
21698             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21699           fi
21700         else
21701           # Otherwise we believe it is a complete path. Use it as it is.
21702           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21703 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21704           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21705 $as_echo_n "checking for READELF... " >&6; }
21706           if test ! -x "$tool_specified"; then
21707             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21708 $as_echo "not found" >&6; }
21709             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21710           fi
21711           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21712 $as_echo "$tool_specified" >&6; }
21713         fi
21714       fi
21715     fi
21716 
21717   fi
21718 
21719 
21720 
21721 
21722   # Publish this variable in the help.
21723 
21724 
21725   if [ -z "${HG+x}" ]; then
21726     # The variable is not set by user, try to locate tool using the code snippet
21727     for ac_prog in hg
21728 do
21729   # Extract the first word of "$ac_prog", so it can be a program name with args.
21730 set dummy $ac_prog; ac_word=$2
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21732 $as_echo_n "checking for $ac_word... " >&6; }
21733 if ${ac_cv_path_HG+:} false; then :
21734   $as_echo_n "(cached) " >&6
21735 else
21736   case $HG in
21737   [\\/]* | ?:[\\/]*)
21738   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21739   ;;
21740   *)
21741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21742 for as_dir in $PATH
21743 do
21744   IFS=$as_save_IFS
21745   test -z "$as_dir" && as_dir=.
21746     for ac_exec_ext in '' $ac_executable_extensions; do
21747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21748     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21750     break 2
21751   fi
21752 done
21753   done
21754 IFS=$as_save_IFS
21755 
21756   ;;
21757 esac
21758 fi
21759 HG=$ac_cv_path_HG
21760 if test -n "$HG"; then
21761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21762 $as_echo "$HG" >&6; }
21763 else
21764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21765 $as_echo "no" >&6; }
21766 fi
21767 
21768 
21769   test -n "$HG" && break
21770 done
21771 
21772   else
21773     # The variable is set, but is it from the command line or the environment?
21774 
21775     # Try to remove the string !HG! from our list.
21776     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21777     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21778       # If it failed, the variable was not from the command line. Ignore it,
21779       # but warn the user (except for BASH, which is always set by the calling BASH).
21780       if test "xHG" != xBASH; then
21781         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21782 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21783       fi
21784       # Try to locate tool using the code snippet
21785       for ac_prog in hg
21786 do
21787   # Extract the first word of "$ac_prog", so it can be a program name with args.
21788 set dummy $ac_prog; ac_word=$2
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21790 $as_echo_n "checking for $ac_word... " >&6; }
21791 if ${ac_cv_path_HG+:} false; then :
21792   $as_echo_n "(cached) " >&6
21793 else
21794   case $HG in
21795   [\\/]* | ?:[\\/]*)
21796   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21797   ;;
21798   *)
21799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21800 for as_dir in $PATH
21801 do
21802   IFS=$as_save_IFS
21803   test -z "$as_dir" && as_dir=.
21804     for ac_exec_ext in '' $ac_executable_extensions; do
21805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21806     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21808     break 2
21809   fi
21810 done
21811   done
21812 IFS=$as_save_IFS
21813 
21814   ;;
21815 esac
21816 fi
21817 HG=$ac_cv_path_HG
21818 if test -n "$HG"; then
21819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21820 $as_echo "$HG" >&6; }
21821 else
21822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 $as_echo "no" >&6; }
21824 fi
21825 
21826 
21827   test -n "$HG" && break
21828 done
21829 
21830     else
21831       # If it succeeded, then it was overridden by the user. We will use it
21832       # for the tool.
21833 
21834       # First remove it from the list of overridden variables, so we can test
21835       # for unknown variables in the end.
21836       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21837 
21838       # Check if we try to supply an empty value
21839       if test "x$HG" = x; then
21840         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21841 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21843 $as_echo_n "checking for HG... " >&6; }
21844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21845 $as_echo "disabled" >&6; }
21846       else
21847         # Check if the provided tool contains a complete path.
21848         tool_specified="$HG"
21849         tool_basename="${tool_specified##*/}"
21850         if test "x$tool_basename" = "x$tool_specified"; then
21851           # A command without a complete path is provided, search $PATH.
21852           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21853 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21854           # Extract the first word of "$tool_basename", so it can be a program name with args.
21855 set dummy $tool_basename; ac_word=$2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21857 $as_echo_n "checking for $ac_word... " >&6; }
21858 if ${ac_cv_path_HG+:} false; then :
21859   $as_echo_n "(cached) " >&6
21860 else
21861   case $HG in
21862   [\\/]* | ?:[\\/]*)
21863   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21864   ;;
21865   *)
21866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21868 do
21869   IFS=$as_save_IFS
21870   test -z "$as_dir" && as_dir=.
21871     for ac_exec_ext in '' $ac_executable_extensions; do
21872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21873     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875     break 2
21876   fi
21877 done
21878   done
21879 IFS=$as_save_IFS
21880 
21881   ;;
21882 esac
21883 fi
21884 HG=$ac_cv_path_HG
21885 if test -n "$HG"; then
21886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21887 $as_echo "$HG" >&6; }
21888 else
21889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21891 fi
21892 
21893 
21894           if test "x$HG" = x; then
21895             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21896           fi
21897         else
21898           # Otherwise we believe it is a complete path. Use it as it is.
21899           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21900 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21901           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21902 $as_echo_n "checking for HG... " >&6; }
21903           if test ! -x "$tool_specified"; then
21904             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21905 $as_echo "not found" >&6; }
21906             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21907           fi
21908           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21909 $as_echo "$tool_specified" >&6; }
21910         fi
21911       fi
21912     fi
21913 
21914   fi
21915 
21916 
21917 
21918 
21919   # Publish this variable in the help.
21920 
21921 
21922   if [ -z "${STAT+x}" ]; then
21923     # The variable is not set by user, try to locate tool using the code snippet
21924     for ac_prog in stat
21925 do
21926   # Extract the first word of "$ac_prog", so it can be a program name with args.
21927 set dummy $ac_prog; ac_word=$2
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21929 $as_echo_n "checking for $ac_word... " >&6; }
21930 if ${ac_cv_path_STAT+:} false; then :
21931   $as_echo_n "(cached) " >&6
21932 else
21933   case $STAT in
21934   [\\/]* | ?:[\\/]*)
21935   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21936   ;;
21937   *)
21938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21939 for as_dir in $PATH
21940 do
21941   IFS=$as_save_IFS
21942   test -z "$as_dir" && as_dir=.
21943     for ac_exec_ext in '' $ac_executable_extensions; do
21944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21945     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21947     break 2
21948   fi
21949 done
21950   done
21951 IFS=$as_save_IFS
21952 
21953   ;;
21954 esac
21955 fi
21956 STAT=$ac_cv_path_STAT
21957 if test -n "$STAT"; then
21958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21959 $as_echo "$STAT" >&6; }
21960 else
21961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21962 $as_echo "no" >&6; }
21963 fi
21964 
21965 
21966   test -n "$STAT" && break
21967 done
21968 
21969   else
21970     # The variable is set, but is it from the command line or the environment?
21971 
21972     # Try to remove the string !STAT! from our list.
21973     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21974     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21975       # If it failed, the variable was not from the command line. Ignore it,
21976       # but warn the user (except for BASH, which is always set by the calling BASH).
21977       if test "xSTAT" != xBASH; then
21978         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21979 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21980       fi
21981       # Try to locate tool using the code snippet
21982       for ac_prog in stat
21983 do
21984   # Extract the first word of "$ac_prog", so it can be a program name with args.
21985 set dummy $ac_prog; ac_word=$2
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21987 $as_echo_n "checking for $ac_word... " >&6; }
21988 if ${ac_cv_path_STAT+:} false; then :
21989   $as_echo_n "(cached) " >&6
21990 else
21991   case $STAT in
21992   [\\/]* | ?:[\\/]*)
21993   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21994   ;;
21995   *)
21996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21997 for as_dir in $PATH
21998 do
21999   IFS=$as_save_IFS
22000   test -z "$as_dir" && as_dir=.
22001     for ac_exec_ext in '' $ac_executable_extensions; do
22002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22003     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22005     break 2
22006   fi
22007 done
22008   done
22009 IFS=$as_save_IFS
22010 
22011   ;;
22012 esac
22013 fi
22014 STAT=$ac_cv_path_STAT
22015 if test -n "$STAT"; then
22016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22017 $as_echo "$STAT" >&6; }
22018 else
22019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22020 $as_echo "no" >&6; }
22021 fi
22022 
22023 
22024   test -n "$STAT" && break
22025 done
22026 
22027     else
22028       # If it succeeded, then it was overridden by the user. We will use it
22029       # for the tool.
22030 
22031       # First remove it from the list of overridden variables, so we can test
22032       # for unknown variables in the end.
22033       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22034 
22035       # Check if we try to supply an empty value
22036       if test "x$STAT" = x; then
22037         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
22038 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
22039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22040 $as_echo_n "checking for STAT... " >&6; }
22041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22042 $as_echo "disabled" >&6; }
22043       else
22044         # Check if the provided tool contains a complete path.
22045         tool_specified="$STAT"
22046         tool_basename="${tool_specified##*/}"
22047         if test "x$tool_basename" = "x$tool_specified"; then
22048           # A command without a complete path is provided, search $PATH.
22049           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
22050 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
22051           # Extract the first word of "$tool_basename", so it can be a program name with args.
22052 set dummy $tool_basename; ac_word=$2
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22054 $as_echo_n "checking for $ac_word... " >&6; }
22055 if ${ac_cv_path_STAT+:} false; then :
22056   $as_echo_n "(cached) " >&6
22057 else
22058   case $STAT in
22059   [\\/]* | ?:[\\/]*)
22060   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
22061   ;;
22062   *)
22063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22064 for as_dir in $PATH
22065 do
22066   IFS=$as_save_IFS
22067   test -z "$as_dir" && as_dir=.
22068     for ac_exec_ext in '' $ac_executable_extensions; do
22069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22070     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
22071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22072     break 2
22073   fi
22074 done
22075   done
22076 IFS=$as_save_IFS
22077 
22078   ;;
22079 esac
22080 fi
22081 STAT=$ac_cv_path_STAT
22082 if test -n "$STAT"; then
22083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
22084 $as_echo "$STAT" >&6; }
22085 else
22086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 $as_echo "no" >&6; }
22088 fi
22089 
22090 
22091           if test "x$STAT" = x; then
22092             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22093           fi
22094         else
22095           # Otherwise we believe it is a complete path. Use it as it is.
22096           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
22097 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
22098           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
22099 $as_echo_n "checking for STAT... " >&6; }
22100           if test ! -x "$tool_specified"; then
22101             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22102 $as_echo "not found" >&6; }
22103             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
22104           fi
22105           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22106 $as_echo "$tool_specified" >&6; }
22107         fi
22108       fi
22109     fi
22110 
22111   fi
22112 
22113 
22114 
22115 
22116   # Publish this variable in the help.
22117 
22118 
22119   if [ -z "${TIME+x}" ]; then
22120     # The variable is not set by user, try to locate tool using the code snippet
22121     for ac_prog in time
22122 do
22123   # Extract the first word of "$ac_prog", so it can be a program name with args.
22124 set dummy $ac_prog; ac_word=$2
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22126 $as_echo_n "checking for $ac_word... " >&6; }
22127 if ${ac_cv_path_TIME+:} false; then :
22128   $as_echo_n "(cached) " >&6
22129 else
22130   case $TIME in
22131   [\\/]* | ?:[\\/]*)
22132   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22133   ;;
22134   *)
22135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22136 for as_dir in $PATH
22137 do
22138   IFS=$as_save_IFS
22139   test -z "$as_dir" && as_dir=.
22140     for ac_exec_ext in '' $ac_executable_extensions; do
22141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22142     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22144     break 2
22145   fi
22146 done
22147   done
22148 IFS=$as_save_IFS
22149 
22150   ;;
22151 esac
22152 fi
22153 TIME=$ac_cv_path_TIME
22154 if test -n "$TIME"; then
22155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22156 $as_echo "$TIME" >&6; }
22157 else
22158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22159 $as_echo "no" >&6; }
22160 fi
22161 
22162 
22163   test -n "$TIME" && break
22164 done
22165 
22166   else
22167     # The variable is set, but is it from the command line or the environment?
22168 
22169     # Try to remove the string !TIME! from our list.
22170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
22171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22172       # If it failed, the variable was not from the command line. Ignore it,
22173       # but warn the user (except for BASH, which is always set by the calling BASH).
22174       if test "xTIME" != xBASH; then
22175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
22176 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
22177       fi
22178       # Try to locate tool using the code snippet
22179       for ac_prog in time
22180 do
22181   # Extract the first word of "$ac_prog", so it can be a program name with args.
22182 set dummy $ac_prog; ac_word=$2
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22184 $as_echo_n "checking for $ac_word... " >&6; }
22185 if ${ac_cv_path_TIME+:} false; then :
22186   $as_echo_n "(cached) " >&6
22187 else
22188   case $TIME in
22189   [\\/]* | ?:[\\/]*)
22190   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22191   ;;
22192   *)
22193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22194 for as_dir in $PATH
22195 do
22196   IFS=$as_save_IFS
22197   test -z "$as_dir" && as_dir=.
22198     for ac_exec_ext in '' $ac_executable_extensions; do
22199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22200     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22202     break 2
22203   fi
22204 done
22205   done
22206 IFS=$as_save_IFS
22207 
22208   ;;
22209 esac
22210 fi
22211 TIME=$ac_cv_path_TIME
22212 if test -n "$TIME"; then
22213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22214 $as_echo "$TIME" >&6; }
22215 else
22216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 $as_echo "no" >&6; }
22218 fi
22219 
22220 
22221   test -n "$TIME" && break
22222 done
22223 
22224     else
22225       # If it succeeded, then it was overridden by the user. We will use it
22226       # for the tool.
22227 
22228       # First remove it from the list of overridden variables, so we can test
22229       # for unknown variables in the end.
22230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22231 
22232       # Check if we try to supply an empty value
22233       if test "x$TIME" = x; then
22234         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
22235 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
22236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22237 $as_echo_n "checking for TIME... " >&6; }
22238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22239 $as_echo "disabled" >&6; }
22240       else
22241         # Check if the provided tool contains a complete path.
22242         tool_specified="$TIME"
22243         tool_basename="${tool_specified##*/}"
22244         if test "x$tool_basename" = "x$tool_specified"; then
22245           # A command without a complete path is provided, search $PATH.
22246           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
22247 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
22248           # Extract the first word of "$tool_basename", so it can be a program name with args.
22249 set dummy $tool_basename; ac_word=$2
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22251 $as_echo_n "checking for $ac_word... " >&6; }
22252 if ${ac_cv_path_TIME+:} false; then :
22253   $as_echo_n "(cached) " >&6
22254 else
22255   case $TIME in
22256   [\\/]* | ?:[\\/]*)
22257   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
22258   ;;
22259   *)
22260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22261 for as_dir in $PATH
22262 do
22263   IFS=$as_save_IFS
22264   test -z "$as_dir" && as_dir=.
22265     for ac_exec_ext in '' $ac_executable_extensions; do
22266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22267     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
22268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22269     break 2
22270   fi
22271 done
22272   done
22273 IFS=$as_save_IFS
22274 
22275   ;;
22276 esac
22277 fi
22278 TIME=$ac_cv_path_TIME
22279 if test -n "$TIME"; then
22280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
22281 $as_echo "$TIME" >&6; }
22282 else
22283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22284 $as_echo "no" >&6; }
22285 fi
22286 
22287 
22288           if test "x$TIME" = x; then
22289             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22290           fi
22291         else
22292           # Otherwise we believe it is a complete path. Use it as it is.
22293           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
22294 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
22295           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
22296 $as_echo_n "checking for TIME... " >&6; }
22297           if test ! -x "$tool_specified"; then
22298             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22299 $as_echo "not found" >&6; }
22300             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
22301           fi
22302           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22303 $as_echo "$tool_specified" >&6; }
22304         fi
22305       fi
22306     fi
22307 
22308   fi
22309 
22310 
22311 
22312 
22313   # Publish this variable in the help.
22314 
22315 
22316   if [ -z "${DTRACE+x}" ]; then
22317     # The variable is not set by user, try to locate tool using the code snippet
22318     for ac_prog in dtrace
22319 do
22320   # Extract the first word of "$ac_prog", so it can be a program name with args.
22321 set dummy $ac_prog; ac_word=$2
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22323 $as_echo_n "checking for $ac_word... " >&6; }
22324 if ${ac_cv_path_DTRACE+:} false; then :
22325   $as_echo_n "(cached) " >&6
22326 else
22327   case $DTRACE in
22328   [\\/]* | ?:[\\/]*)
22329   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22330   ;;
22331   *)
22332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22333 for as_dir in $PATH
22334 do
22335   IFS=$as_save_IFS
22336   test -z "$as_dir" && as_dir=.
22337     for ac_exec_ext in '' $ac_executable_extensions; do
22338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22339     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22341     break 2
22342   fi
22343 done
22344   done
22345 IFS=$as_save_IFS
22346 
22347   ;;
22348 esac
22349 fi
22350 DTRACE=$ac_cv_path_DTRACE
22351 if test -n "$DTRACE"; then
22352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22353 $as_echo "$DTRACE" >&6; }
22354 else
22355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22356 $as_echo "no" >&6; }
22357 fi
22358 
22359 
22360   test -n "$DTRACE" && break
22361 done
22362 
22363   else
22364     # The variable is set, but is it from the command line or the environment?
22365 
22366     # Try to remove the string !DTRACE! from our list.
22367     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/}
22368     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22369       # If it failed, the variable was not from the command line. Ignore it,
22370       # but warn the user (except for BASH, which is always set by the calling BASH).
22371       if test "xDTRACE" != xBASH; then
22372         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5
22373 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;}
22374       fi
22375       # Try to locate tool using the code snippet
22376       for ac_prog in dtrace
22377 do
22378   # Extract the first word of "$ac_prog", so it can be a program name with args.
22379 set dummy $ac_prog; ac_word=$2
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22381 $as_echo_n "checking for $ac_word... " >&6; }
22382 if ${ac_cv_path_DTRACE+:} false; then :
22383   $as_echo_n "(cached) " >&6
22384 else
22385   case $DTRACE in
22386   [\\/]* | ?:[\\/]*)
22387   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22388   ;;
22389   *)
22390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22391 for as_dir in $PATH
22392 do
22393   IFS=$as_save_IFS
22394   test -z "$as_dir" && as_dir=.
22395     for ac_exec_ext in '' $ac_executable_extensions; do
22396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22397     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22399     break 2
22400   fi
22401 done
22402   done
22403 IFS=$as_save_IFS
22404 
22405   ;;
22406 esac
22407 fi
22408 DTRACE=$ac_cv_path_DTRACE
22409 if test -n "$DTRACE"; then
22410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22411 $as_echo "$DTRACE" >&6; }
22412 else
22413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22414 $as_echo "no" >&6; }
22415 fi
22416 
22417 
22418   test -n "$DTRACE" && break
22419 done
22420 
22421     else
22422       # If it succeeded, then it was overridden by the user. We will use it
22423       # for the tool.
22424 
22425       # First remove it from the list of overridden variables, so we can test
22426       # for unknown variables in the end.
22427       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22428 
22429       # Check if we try to supply an empty value
22430       if test "x$DTRACE" = x; then
22431         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5
22432 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;}
22433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22434 $as_echo_n "checking for DTRACE... " >&6; }
22435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22436 $as_echo "disabled" >&6; }
22437       else
22438         # Check if the provided tool contains a complete path.
22439         tool_specified="$DTRACE"
22440         tool_basename="${tool_specified##*/}"
22441         if test "x$tool_basename" = "x$tool_specified"; then
22442           # A command without a complete path is provided, search $PATH.
22443           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5
22444 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;}
22445           # Extract the first word of "$tool_basename", so it can be a program name with args.
22446 set dummy $tool_basename; ac_word=$2
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22448 $as_echo_n "checking for $ac_word... " >&6; }
22449 if ${ac_cv_path_DTRACE+:} false; then :
22450   $as_echo_n "(cached) " >&6
22451 else
22452   case $DTRACE in
22453   [\\/]* | ?:[\\/]*)
22454   ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
22455   ;;
22456   *)
22457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22458 for as_dir in $PATH
22459 do
22460   IFS=$as_save_IFS
22461   test -z "$as_dir" && as_dir=.
22462     for ac_exec_ext in '' $ac_executable_extensions; do
22463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22464     ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
22465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22466     break 2
22467   fi
22468 done
22469   done
22470 IFS=$as_save_IFS
22471 
22472   ;;
22473 esac
22474 fi
22475 DTRACE=$ac_cv_path_DTRACE
22476 if test -n "$DTRACE"; then
22477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
22478 $as_echo "$DTRACE" >&6; }
22479 else
22480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481 $as_echo "no" >&6; }
22482 fi
22483 
22484 
22485           if test "x$DTRACE" = x; then
22486             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22487           fi
22488         else
22489           # Otherwise we believe it is a complete path. Use it as it is.
22490           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5
22491 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;}
22492           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
22493 $as_echo_n "checking for DTRACE... " >&6; }
22494           if test ! -x "$tool_specified"; then
22495             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22496 $as_echo "not found" >&6; }
22497             as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5
22498           fi
22499           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22500 $as_echo "$tool_specified" >&6; }
22501         fi
22502       fi
22503     fi
22504 
22505   fi
22506 
22507 
22508 
22509 
22510   # Publish this variable in the help.
22511 
22512 
22513   if [ -z "${PATCH+x}" ]; then
22514     # The variable is not set by user, try to locate tool using the code snippet
22515     for ac_prog in gpatch patch
22516 do
22517   # Extract the first word of "$ac_prog", so it can be a program name with args.
22518 set dummy $ac_prog; ac_word=$2
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22520 $as_echo_n "checking for $ac_word... " >&6; }
22521 if ${ac_cv_path_PATCH+:} false; then :
22522   $as_echo_n "(cached) " >&6
22523 else
22524   case $PATCH in
22525   [\\/]* | ?:[\\/]*)
22526   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22527   ;;
22528   *)
22529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22531 do
22532   IFS=$as_save_IFS
22533   test -z "$as_dir" && as_dir=.
22534     for ac_exec_ext in '' $ac_executable_extensions; do
22535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22536     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22538     break 2
22539   fi
22540 done
22541   done
22542 IFS=$as_save_IFS
22543 
22544   ;;
22545 esac
22546 fi
22547 PATCH=$ac_cv_path_PATCH
22548 if test -n "$PATCH"; then
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22550 $as_echo "$PATCH" >&6; }
22551 else
22552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554 fi
22555 
22556 
22557   test -n "$PATCH" && break
22558 done
22559 
22560   else
22561     # The variable is set, but is it from the command line or the environment?
22562 
22563     # Try to remove the string !PATCH! from our list.
22564     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
22565     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22566       # If it failed, the variable was not from the command line. Ignore it,
22567       # but warn the user (except for BASH, which is always set by the calling BASH).
22568       if test "xPATCH" != xBASH; then
22569         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
22570 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
22571       fi
22572       # Try to locate tool using the code snippet
22573       for ac_prog in gpatch patch
22574 do
22575   # Extract the first word of "$ac_prog", so it can be a program name with args.
22576 set dummy $ac_prog; ac_word=$2
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22578 $as_echo_n "checking for $ac_word... " >&6; }
22579 if ${ac_cv_path_PATCH+:} false; then :
22580   $as_echo_n "(cached) " >&6
22581 else
22582   case $PATCH in
22583   [\\/]* | ?:[\\/]*)
22584   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22585   ;;
22586   *)
22587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22588 for as_dir in $PATH
22589 do
22590   IFS=$as_save_IFS
22591   test -z "$as_dir" && as_dir=.
22592     for ac_exec_ext in '' $ac_executable_extensions; do
22593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22594     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22596     break 2
22597   fi
22598 done
22599   done
22600 IFS=$as_save_IFS
22601 
22602   ;;
22603 esac
22604 fi
22605 PATCH=$ac_cv_path_PATCH
22606 if test -n "$PATCH"; then
22607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22608 $as_echo "$PATCH" >&6; }
22609 else
22610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22611 $as_echo "no" >&6; }
22612 fi
22613 
22614 
22615   test -n "$PATCH" && break
22616 done
22617 
22618     else
22619       # If it succeeded, then it was overridden by the user. We will use it
22620       # for the tool.
22621 
22622       # First remove it from the list of overridden variables, so we can test
22623       # for unknown variables in the end.
22624       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22625 
22626       # Check if we try to supply an empty value
22627       if test "x$PATCH" = x; then
22628         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
22629 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
22630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22631 $as_echo_n "checking for PATCH... " >&6; }
22632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22633 $as_echo "disabled" >&6; }
22634       else
22635         # Check if the provided tool contains a complete path.
22636         tool_specified="$PATCH"
22637         tool_basename="${tool_specified##*/}"
22638         if test "x$tool_basename" = "x$tool_specified"; then
22639           # A command without a complete path is provided, search $PATH.
22640           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
22641 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
22642           # Extract the first word of "$tool_basename", so it can be a program name with args.
22643 set dummy $tool_basename; ac_word=$2
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22645 $as_echo_n "checking for $ac_word... " >&6; }
22646 if ${ac_cv_path_PATCH+:} false; then :
22647   $as_echo_n "(cached) " >&6
22648 else
22649   case $PATCH in
22650   [\\/]* | ?:[\\/]*)
22651   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
22652   ;;
22653   *)
22654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22655 for as_dir in $PATH
22656 do
22657   IFS=$as_save_IFS
22658   test -z "$as_dir" && as_dir=.
22659     for ac_exec_ext in '' $ac_executable_extensions; do
22660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22661     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
22662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22663     break 2
22664   fi
22665 done
22666   done
22667 IFS=$as_save_IFS
22668 
22669   ;;
22670 esac
22671 fi
22672 PATCH=$ac_cv_path_PATCH
22673 if test -n "$PATCH"; then
22674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
22675 $as_echo "$PATCH" >&6; }
22676 else
22677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22678 $as_echo "no" >&6; }
22679 fi
22680 
22681 
22682           if test "x$PATCH" = x; then
22683             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22684           fi
22685         else
22686           # Otherwise we believe it is a complete path. Use it as it is.
22687           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
22688 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
22689           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
22690 $as_echo_n "checking for PATCH... " >&6; }
22691           if test ! -x "$tool_specified"; then
22692             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22693 $as_echo "not found" >&6; }
22694             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
22695           fi
22696           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22697 $as_echo "$tool_specified" >&6; }
22698         fi
22699       fi
22700     fi
22701 
22702   fi
22703 
22704 
22705   # Check if it's GNU time
22706   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
22707   if test "x$IS_GNU_TIME" != x; then
22708     IS_GNU_TIME=yes
22709   else
22710     IS_GNU_TIME=no
22711   fi
22712 
22713 
22714   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
22715 
22716 
22717 
22718   # Publish this variable in the help.
22719 
22720 
22721   if [ -z "${DSYMUTIL+x}" ]; then
22722     # The variable is not set by user, try to locate tool using the code snippet
22723     for ac_prog in dsymutil
22724 do
22725   # Extract the first word of "$ac_prog", so it can be a program name with args.
22726 set dummy $ac_prog; ac_word=$2
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22728 $as_echo_n "checking for $ac_word... " >&6; }
22729 if ${ac_cv_path_DSYMUTIL+:} false; then :
22730   $as_echo_n "(cached) " >&6
22731 else
22732   case $DSYMUTIL in
22733   [\\/]* | ?:[\\/]*)
22734   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22735   ;;
22736   *)
22737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738 for as_dir in $PATH
22739 do
22740   IFS=$as_save_IFS
22741   test -z "$as_dir" && as_dir=.
22742     for ac_exec_ext in '' $ac_executable_extensions; do
22743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22744     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22746     break 2
22747   fi
22748 done
22749   done
22750 IFS=$as_save_IFS
22751 
22752   ;;
22753 esac
22754 fi
22755 DSYMUTIL=$ac_cv_path_DSYMUTIL
22756 if test -n "$DSYMUTIL"; then
22757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22758 $as_echo "$DSYMUTIL" >&6; }
22759 else
22760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22762 fi
22763 
22764 
22765   test -n "$DSYMUTIL" && break
22766 done
22767 
22768   else
22769     # The variable is set, but is it from the command line or the environment?
22770 
22771     # Try to remove the string !DSYMUTIL! from our list.
22772     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22773     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22774       # If it failed, the variable was not from the command line. Ignore it,
22775       # but warn the user (except for BASH, which is always set by the calling BASH).
22776       if test "xDSYMUTIL" != xBASH; then
22777         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22778 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22779       fi
22780       # Try to locate tool using the code snippet
22781       for ac_prog in dsymutil
22782 do
22783   # Extract the first word of "$ac_prog", so it can be a program name with args.
22784 set dummy $ac_prog; ac_word=$2
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22786 $as_echo_n "checking for $ac_word... " >&6; }
22787 if ${ac_cv_path_DSYMUTIL+:} false; then :
22788   $as_echo_n "(cached) " >&6
22789 else
22790   case $DSYMUTIL in
22791   [\\/]* | ?:[\\/]*)
22792   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22793   ;;
22794   *)
22795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22796 for as_dir in $PATH
22797 do
22798   IFS=$as_save_IFS
22799   test -z "$as_dir" && as_dir=.
22800     for ac_exec_ext in '' $ac_executable_extensions; do
22801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22802     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22804     break 2
22805   fi
22806 done
22807   done
22808 IFS=$as_save_IFS
22809 
22810   ;;
22811 esac
22812 fi
22813 DSYMUTIL=$ac_cv_path_DSYMUTIL
22814 if test -n "$DSYMUTIL"; then
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22816 $as_echo "$DSYMUTIL" >&6; }
22817 else
22818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22819 $as_echo "no" >&6; }
22820 fi
22821 
22822 
22823   test -n "$DSYMUTIL" && break
22824 done
22825 
22826     else
22827       # If it succeeded, then it was overridden by the user. We will use it
22828       # for the tool.
22829 
22830       # First remove it from the list of overridden variables, so we can test
22831       # for unknown variables in the end.
22832       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22833 
22834       # Check if we try to supply an empty value
22835       if test "x$DSYMUTIL" = x; then
22836         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22837 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22838         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22839 $as_echo_n "checking for DSYMUTIL... " >&6; }
22840         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22841 $as_echo "disabled" >&6; }
22842       else
22843         # Check if the provided tool contains a complete path.
22844         tool_specified="$DSYMUTIL"
22845         tool_basename="${tool_specified##*/}"
22846         if test "x$tool_basename" = "x$tool_specified"; then
22847           # A command without a complete path is provided, search $PATH.
22848           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22849 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22850           # Extract the first word of "$tool_basename", so it can be a program name with args.
22851 set dummy $tool_basename; ac_word=$2
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22853 $as_echo_n "checking for $ac_word... " >&6; }
22854 if ${ac_cv_path_DSYMUTIL+:} false; then :
22855   $as_echo_n "(cached) " >&6
22856 else
22857   case $DSYMUTIL in
22858   [\\/]* | ?:[\\/]*)
22859   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22860   ;;
22861   *)
22862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22863 for as_dir in $PATH
22864 do
22865   IFS=$as_save_IFS
22866   test -z "$as_dir" && as_dir=.
22867     for ac_exec_ext in '' $ac_executable_extensions; do
22868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22869     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22871     break 2
22872   fi
22873 done
22874   done
22875 IFS=$as_save_IFS
22876 
22877   ;;
22878 esac
22879 fi
22880 DSYMUTIL=$ac_cv_path_DSYMUTIL
22881 if test -n "$DSYMUTIL"; then
22882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22883 $as_echo "$DSYMUTIL" >&6; }
22884 else
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887 fi
22888 
22889 
22890           if test "x$DSYMUTIL" = x; then
22891             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22892           fi
22893         else
22894           # Otherwise we believe it is a complete path. Use it as it is.
22895           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22896 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22897           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22898 $as_echo_n "checking for DSYMUTIL... " >&6; }
22899           if test ! -x "$tool_specified"; then
22900             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22901 $as_echo "not found" >&6; }
22902             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22903           fi
22904           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22905 $as_echo "$tool_specified" >&6; }
22906         fi
22907       fi
22908     fi
22909 
22910   fi
22911 
22912 
22913 
22914   if test "x$DSYMUTIL" = x; then
22915     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22916   fi
22917 
22918 
22919 
22920 
22921 
22922   # Publish this variable in the help.
22923 
22924 
22925   if [ -z "${XATTR+x}" ]; then
22926     # The variable is not set by user, try to locate tool using the code snippet
22927     for ac_prog in xattr
22928 do
22929   # Extract the first word of "$ac_prog", so it can be a program name with args.
22930 set dummy $ac_prog; ac_word=$2
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22932 $as_echo_n "checking for $ac_word... " >&6; }
22933 if ${ac_cv_path_XATTR+:} false; then :
22934   $as_echo_n "(cached) " >&6
22935 else
22936   case $XATTR in
22937   [\\/]* | ?:[\\/]*)
22938   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22939   ;;
22940   *)
22941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942 for as_dir in $PATH
22943 do
22944   IFS=$as_save_IFS
22945   test -z "$as_dir" && as_dir=.
22946     for ac_exec_ext in '' $ac_executable_extensions; do
22947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22948     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22950     break 2
22951   fi
22952 done
22953   done
22954 IFS=$as_save_IFS
22955 
22956   ;;
22957 esac
22958 fi
22959 XATTR=$ac_cv_path_XATTR
22960 if test -n "$XATTR"; then
22961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22962 $as_echo "$XATTR" >&6; }
22963 else
22964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22965 $as_echo "no" >&6; }
22966 fi
22967 
22968 
22969   test -n "$XATTR" && break
22970 done
22971 
22972   else
22973     # The variable is set, but is it from the command line or the environment?
22974 
22975     # Try to remove the string !XATTR! from our list.
22976     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22977     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22978       # If it failed, the variable was not from the command line. Ignore it,
22979       # but warn the user (except for BASH, which is always set by the calling BASH).
22980       if test "xXATTR" != xBASH; then
22981         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22982 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22983       fi
22984       # Try to locate tool using the code snippet
22985       for ac_prog in xattr
22986 do
22987   # Extract the first word of "$ac_prog", so it can be a program name with args.
22988 set dummy $ac_prog; ac_word=$2
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22990 $as_echo_n "checking for $ac_word... " >&6; }
22991 if ${ac_cv_path_XATTR+:} false; then :
22992   $as_echo_n "(cached) " >&6
22993 else
22994   case $XATTR in
22995   [\\/]* | ?:[\\/]*)
22996   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22997   ;;
22998   *)
22999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23000 for as_dir in $PATH
23001 do
23002   IFS=$as_save_IFS
23003   test -z "$as_dir" && as_dir=.
23004     for ac_exec_ext in '' $ac_executable_extensions; do
23005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23006     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23008     break 2
23009   fi
23010 done
23011   done
23012 IFS=$as_save_IFS
23013 
23014   ;;
23015 esac
23016 fi
23017 XATTR=$ac_cv_path_XATTR
23018 if test -n "$XATTR"; then
23019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23020 $as_echo "$XATTR" >&6; }
23021 else
23022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23023 $as_echo "no" >&6; }
23024 fi
23025 
23026 
23027   test -n "$XATTR" && break
23028 done
23029 
23030     else
23031       # If it succeeded, then it was overridden by the user. We will use it
23032       # for the tool.
23033 
23034       # First remove it from the list of overridden variables, so we can test
23035       # for unknown variables in the end.
23036       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23037 
23038       # Check if we try to supply an empty value
23039       if test "x$XATTR" = x; then
23040         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
23041 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
23042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23043 $as_echo_n "checking for XATTR... " >&6; }
23044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23045 $as_echo "disabled" >&6; }
23046       else
23047         # Check if the provided tool contains a complete path.
23048         tool_specified="$XATTR"
23049         tool_basename="${tool_specified##*/}"
23050         if test "x$tool_basename" = "x$tool_specified"; then
23051           # A command without a complete path is provided, search $PATH.
23052           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
23053 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
23054           # Extract the first word of "$tool_basename", so it can be a program name with args.
23055 set dummy $tool_basename; ac_word=$2
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23057 $as_echo_n "checking for $ac_word... " >&6; }
23058 if ${ac_cv_path_XATTR+:} false; then :
23059   $as_echo_n "(cached) " >&6
23060 else
23061   case $XATTR in
23062   [\\/]* | ?:[\\/]*)
23063   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
23064   ;;
23065   *)
23066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23067 for as_dir in $PATH
23068 do
23069   IFS=$as_save_IFS
23070   test -z "$as_dir" && as_dir=.
23071     for ac_exec_ext in '' $ac_executable_extensions; do
23072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23073     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
23074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23075     break 2
23076   fi
23077 done
23078   done
23079 IFS=$as_save_IFS
23080 
23081   ;;
23082 esac
23083 fi
23084 XATTR=$ac_cv_path_XATTR
23085 if test -n "$XATTR"; then
23086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
23087 $as_echo "$XATTR" >&6; }
23088 else
23089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23090 $as_echo "no" >&6; }
23091 fi
23092 
23093 
23094           if test "x$XATTR" = x; then
23095             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23096           fi
23097         else
23098           # Otherwise we believe it is a complete path. Use it as it is.
23099           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
23100 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
23101           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
23102 $as_echo_n "checking for XATTR... " >&6; }
23103           if test ! -x "$tool_specified"; then
23104             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23105 $as_echo "not found" >&6; }
23106             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
23107           fi
23108           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23109 $as_echo "$tool_specified" >&6; }
23110         fi
23111       fi
23112     fi
23113 
23114   fi
23115 
23116 
23117 
23118   if test "x$XATTR" = x; then
23119     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
23120   fi
23121 
23122 
23123 
23124 
23125   # Publish this variable in the help.
23126 
23127 
23128   if [ -z "${CODESIGN+x}" ]; then
23129     # The variable is not set by user, try to locate tool using the code snippet
23130     for ac_prog in codesign
23131 do
23132   # Extract the first word of "$ac_prog", so it can be a program name with args.
23133 set dummy $ac_prog; ac_word=$2
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23135 $as_echo_n "checking for $ac_word... " >&6; }
23136 if ${ac_cv_path_CODESIGN+:} false; then :
23137   $as_echo_n "(cached) " >&6
23138 else
23139   case $CODESIGN in
23140   [\\/]* | ?:[\\/]*)
23141   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23142   ;;
23143   *)
23144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23145 for as_dir in $PATH
23146 do
23147   IFS=$as_save_IFS
23148   test -z "$as_dir" && as_dir=.
23149     for ac_exec_ext in '' $ac_executable_extensions; do
23150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23151     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23153     break 2
23154   fi
23155 done
23156   done
23157 IFS=$as_save_IFS
23158 
23159   ;;
23160 esac
23161 fi
23162 CODESIGN=$ac_cv_path_CODESIGN
23163 if test -n "$CODESIGN"; then
23164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23165 $as_echo "$CODESIGN" >&6; }
23166 else
23167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23169 fi
23170 
23171 
23172   test -n "$CODESIGN" && break
23173 done
23174 
23175   else
23176     # The variable is set, but is it from the command line or the environment?
23177 
23178     # Try to remove the string !CODESIGN! from our list.
23179     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
23180     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23181       # If it failed, the variable was not from the command line. Ignore it,
23182       # but warn the user (except for BASH, which is always set by the calling BASH).
23183       if test "xCODESIGN" != xBASH; then
23184         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
23185 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
23186       fi
23187       # Try to locate tool using the code snippet
23188       for ac_prog in codesign
23189 do
23190   # Extract the first word of "$ac_prog", so it can be a program name with args.
23191 set dummy $ac_prog; ac_word=$2
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23193 $as_echo_n "checking for $ac_word... " >&6; }
23194 if ${ac_cv_path_CODESIGN+:} false; then :
23195   $as_echo_n "(cached) " >&6
23196 else
23197   case $CODESIGN in
23198   [\\/]* | ?:[\\/]*)
23199   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23200   ;;
23201   *)
23202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23203 for as_dir in $PATH
23204 do
23205   IFS=$as_save_IFS
23206   test -z "$as_dir" && as_dir=.
23207     for ac_exec_ext in '' $ac_executable_extensions; do
23208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23209     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23211     break 2
23212   fi
23213 done
23214   done
23215 IFS=$as_save_IFS
23216 
23217   ;;
23218 esac
23219 fi
23220 CODESIGN=$ac_cv_path_CODESIGN
23221 if test -n "$CODESIGN"; then
23222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23223 $as_echo "$CODESIGN" >&6; }
23224 else
23225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23226 $as_echo "no" >&6; }
23227 fi
23228 
23229 
23230   test -n "$CODESIGN" && break
23231 done
23232 
23233     else
23234       # If it succeeded, then it was overridden by the user. We will use it
23235       # for the tool.
23236 
23237       # First remove it from the list of overridden variables, so we can test
23238       # for unknown variables in the end.
23239       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23240 
23241       # Check if we try to supply an empty value
23242       if test "x$CODESIGN" = x; then
23243         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
23244 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
23245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23246 $as_echo_n "checking for CODESIGN... " >&6; }
23247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23248 $as_echo "disabled" >&6; }
23249       else
23250         # Check if the provided tool contains a complete path.
23251         tool_specified="$CODESIGN"
23252         tool_basename="${tool_specified##*/}"
23253         if test "x$tool_basename" = "x$tool_specified"; then
23254           # A command without a complete path is provided, search $PATH.
23255           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
23256 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
23257           # Extract the first word of "$tool_basename", so it can be a program name with args.
23258 set dummy $tool_basename; ac_word=$2
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23260 $as_echo_n "checking for $ac_word... " >&6; }
23261 if ${ac_cv_path_CODESIGN+:} false; then :
23262   $as_echo_n "(cached) " >&6
23263 else
23264   case $CODESIGN in
23265   [\\/]* | ?:[\\/]*)
23266   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
23267   ;;
23268   *)
23269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23270 for as_dir in $PATH
23271 do
23272   IFS=$as_save_IFS
23273   test -z "$as_dir" && as_dir=.
23274     for ac_exec_ext in '' $ac_executable_extensions; do
23275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23276     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
23277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23278     break 2
23279   fi
23280 done
23281   done
23282 IFS=$as_save_IFS
23283 
23284   ;;
23285 esac
23286 fi
23287 CODESIGN=$ac_cv_path_CODESIGN
23288 if test -n "$CODESIGN"; then
23289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
23290 $as_echo "$CODESIGN" >&6; }
23291 else
23292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23293 $as_echo "no" >&6; }
23294 fi
23295 
23296 
23297           if test "x$CODESIGN" = x; then
23298             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23299           fi
23300         else
23301           # Otherwise we believe it is a complete path. Use it as it is.
23302           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
23303 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
23304           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
23305 $as_echo_n "checking for CODESIGN... " >&6; }
23306           if test ! -x "$tool_specified"; then
23307             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23308 $as_echo "not found" >&6; }
23309             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
23310           fi
23311           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23312 $as_echo "$tool_specified" >&6; }
23313         fi
23314       fi
23315     fi
23316 
23317   fi
23318 
23319 
23320     if test "x$CODESIGN" != "x"; then
23321       # Verify that the openjdk_codesign certificate is present
23322       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
23323 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
23324       rm -f codesign-testfile
23325       touch codesign-testfile
23326       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
23327       rm -f codesign-testfile
23328       if test "x$CODESIGN" = x; then
23329         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23331       else
23332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23333 $as_echo "yes" >&6; }
23334       fi
23335     fi
23336 
23337 
23338 
23339   # Publish this variable in the help.
23340 
23341 
23342   if [ -z "${SETFILE+x}" ]; then
23343     # The variable is not set by user, try to locate tool using the code snippet
23344     for ac_prog in SetFile
23345 do
23346   # Extract the first word of "$ac_prog", so it can be a program name with args.
23347 set dummy $ac_prog; ac_word=$2
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23349 $as_echo_n "checking for $ac_word... " >&6; }
23350 if ${ac_cv_path_SETFILE+:} false; then :
23351   $as_echo_n "(cached) " >&6
23352 else
23353   case $SETFILE in
23354   [\\/]* | ?:[\\/]*)
23355   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23356   ;;
23357   *)
23358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23359 for as_dir in $PATH
23360 do
23361   IFS=$as_save_IFS
23362   test -z "$as_dir" && as_dir=.
23363     for ac_exec_ext in '' $ac_executable_extensions; do
23364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23365     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23367     break 2
23368   fi
23369 done
23370   done
23371 IFS=$as_save_IFS
23372 
23373   ;;
23374 esac
23375 fi
23376 SETFILE=$ac_cv_path_SETFILE
23377 if test -n "$SETFILE"; then
23378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23379 $as_echo "$SETFILE" >&6; }
23380 else
23381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23382 $as_echo "no" >&6; }
23383 fi
23384 
23385 
23386   test -n "$SETFILE" && break
23387 done
23388 
23389   else
23390     # The variable is set, but is it from the command line or the environment?
23391 
23392     # Try to remove the string !SETFILE! from our list.
23393     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
23394     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
23395       # If it failed, the variable was not from the command line. Ignore it,
23396       # but warn the user (except for BASH, which is always set by the calling BASH).
23397       if test "xSETFILE" != xBASH; then
23398         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
23399 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
23400       fi
23401       # Try to locate tool using the code snippet
23402       for ac_prog in SetFile
23403 do
23404   # Extract the first word of "$ac_prog", so it can be a program name with args.
23405 set dummy $ac_prog; ac_word=$2
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23407 $as_echo_n "checking for $ac_word... " >&6; }
23408 if ${ac_cv_path_SETFILE+:} false; then :
23409   $as_echo_n "(cached) " >&6
23410 else
23411   case $SETFILE in
23412   [\\/]* | ?:[\\/]*)
23413   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23414   ;;
23415   *)
23416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23417 for as_dir in $PATH
23418 do
23419   IFS=$as_save_IFS
23420   test -z "$as_dir" && as_dir=.
23421     for ac_exec_ext in '' $ac_executable_extensions; do
23422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23423     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23425     break 2
23426   fi
23427 done
23428   done
23429 IFS=$as_save_IFS
23430 
23431   ;;
23432 esac
23433 fi
23434 SETFILE=$ac_cv_path_SETFILE
23435 if test -n "$SETFILE"; then
23436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23437 $as_echo "$SETFILE" >&6; }
23438 else
23439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23440 $as_echo "no" >&6; }
23441 fi
23442 
23443 
23444   test -n "$SETFILE" && break
23445 done
23446 
23447     else
23448       # If it succeeded, then it was overridden by the user. We will use it
23449       # for the tool.
23450 
23451       # First remove it from the list of overridden variables, so we can test
23452       # for unknown variables in the end.
23453       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
23454 
23455       # Check if we try to supply an empty value
23456       if test "x$SETFILE" = x; then
23457         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
23458 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
23459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23460 $as_echo_n "checking for SETFILE... " >&6; }
23461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
23462 $as_echo "disabled" >&6; }
23463       else
23464         # Check if the provided tool contains a complete path.
23465         tool_specified="$SETFILE"
23466         tool_basename="${tool_specified##*/}"
23467         if test "x$tool_basename" = "x$tool_specified"; then
23468           # A command without a complete path is provided, search $PATH.
23469           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
23470 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
23471           # Extract the first word of "$tool_basename", so it can be a program name with args.
23472 set dummy $tool_basename; ac_word=$2
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23474 $as_echo_n "checking for $ac_word... " >&6; }
23475 if ${ac_cv_path_SETFILE+:} false; then :
23476   $as_echo_n "(cached) " >&6
23477 else
23478   case $SETFILE in
23479   [\\/]* | ?:[\\/]*)
23480   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
23481   ;;
23482   *)
23483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23484 for as_dir in $PATH
23485 do
23486   IFS=$as_save_IFS
23487   test -z "$as_dir" && as_dir=.
23488     for ac_exec_ext in '' $ac_executable_extensions; do
23489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23490     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
23491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23492     break 2
23493   fi
23494 done
23495   done
23496 IFS=$as_save_IFS
23497 
23498   ;;
23499 esac
23500 fi
23501 SETFILE=$ac_cv_path_SETFILE
23502 if test -n "$SETFILE"; then
23503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
23504 $as_echo "$SETFILE" >&6; }
23505 else
23506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23507 $as_echo "no" >&6; }
23508 fi
23509 
23510 
23511           if test "x$SETFILE" = x; then
23512             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
23513           fi
23514         else
23515           # Otherwise we believe it is a complete path. Use it as it is.
23516           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
23517 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
23518           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
23519 $as_echo_n "checking for SETFILE... " >&6; }
23520           if test ! -x "$tool_specified"; then
23521             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23522 $as_echo "not found" >&6; }
23523             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
23524           fi
23525           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
23526 $as_echo "$tool_specified" >&6; }
23527         fi
23528       fi
23529     fi
23530 
23531   fi
23532 
23533 
23534 
23535   if test "x$SETFILE" = x; then
23536     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
23537   fi
23538 
23539 
23540   fi
23541 
23542 
23543   # Test if bash supports pipefail.
23544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
23545 $as_echo_n "checking if bash supports pipefail... " >&6; }
23546   if ${BASH} -c 'set -o pipefail'; then
23547     BASH_ARGS="$BASH_ARGS -o pipefail"
23548     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23549 $as_echo "yes" >&6; }
23550   else
23551     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552 $as_echo "no" >&6; }
23553   fi
23554 
23555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
23556 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
23557   if ${BASH} -e -c 'true'; then
23558     BASH_ARGS="$BASH_ARGS -e"
23559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23560 $as_echo "yes" >&6; }
23561   else
23562     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563 $as_echo "no" >&6; }
23564   fi
23565 
23566 
23567 
23568 
23569 # Check if pkg-config is available.
23570 
23571 
23572 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23573         if test -n "$ac_tool_prefix"; then
23574   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23577 $as_echo_n "checking for $ac_word... " >&6; }
23578 if ${ac_cv_path_PKG_CONFIG+:} false; then :
23579   $as_echo_n "(cached) " >&6
23580 else
23581   case $PKG_CONFIG in
23582   [\\/]* | ?:[\\/]*)
23583   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23584   ;;
23585   *)
23586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23587 for as_dir in $PATH
23588 do
23589   IFS=$as_save_IFS
23590   test -z "$as_dir" && as_dir=.
23591     for ac_exec_ext in '' $ac_executable_extensions; do
23592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23593     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23595     break 2
23596   fi
23597 done
23598   done
23599 IFS=$as_save_IFS
23600 
23601   ;;
23602 esac
23603 fi
23604 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23605 if test -n "$PKG_CONFIG"; then
23606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23607 $as_echo "$PKG_CONFIG" >&6; }
23608 else
23609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23610 $as_echo "no" >&6; }
23611 fi
23612 
23613 
23614 fi
23615 if test -z "$ac_cv_path_PKG_CONFIG"; then
23616   ac_pt_PKG_CONFIG=$PKG_CONFIG
23617   # Extract the first word of "pkg-config", so it can be a program name with args.
23618 set dummy pkg-config; ac_word=$2
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23620 $as_echo_n "checking for $ac_word... " >&6; }
23621 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
23622   $as_echo_n "(cached) " >&6
23623 else
23624   case $ac_pt_PKG_CONFIG in
23625   [\\/]* | ?:[\\/]*)
23626   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23627   ;;
23628   *)
23629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23630 for as_dir in $PATH
23631 do
23632   IFS=$as_save_IFS
23633   test -z "$as_dir" && as_dir=.
23634     for ac_exec_ext in '' $ac_executable_extensions; do
23635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23636     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23638     break 2
23639   fi
23640 done
23641   done
23642 IFS=$as_save_IFS
23643 
23644   ;;
23645 esac
23646 fi
23647 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23648 if test -n "$ac_pt_PKG_CONFIG"; then
23649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23650 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23651 else
23652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653 $as_echo "no" >&6; }
23654 fi
23655 
23656   if test "x$ac_pt_PKG_CONFIG" = x; then
23657     PKG_CONFIG=""
23658   else
23659     case $cross_compiling:$ac_tool_warned in
23660 yes:)
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23663 ac_tool_warned=yes ;;
23664 esac
23665     PKG_CONFIG=$ac_pt_PKG_CONFIG
23666   fi
23667 else
23668   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23669 fi
23670 
23671 fi
23672 if test -n "$PKG_CONFIG"; then
23673         _pkg_min_version=0.9.0
23674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23675 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23676         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23677                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23678 $as_echo "yes" >&6; }
23679         else
23680                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23681 $as_echo "no" >&6; }
23682                 PKG_CONFIG=""
23683         fi
23684 
23685 fi
23686 
23687 # After basic tools have been setup, we can check build os specific details.
23688 
23689   ###############################################################################
23690 
23691   # Note that this is the build platform OS version!
23692 
23693   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
23694   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
23695   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
23696   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
23697 
23698 
23699 
23700 
23701 
23702 # Misc basic settings
23703 
23704 
23705 # Check whether --with-default-make-target was given.
23706 if test "${with_default_make_target+set}" = set; then :
23707   withval=$with_default_make_target;
23708 fi
23709 
23710   if test "x$with_default_make_target" = "x" \
23711       || test "x$with_default_make_target" = "xyes"; then
23712     DEFAULT_MAKE_TARGET="exploded-image"
23713   elif test "x$with_default_make_target" = "xno"; then
23714     as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5
23715   else
23716     DEFAULT_MAKE_TARGET="$with_default_make_target"
23717   fi
23718 
23719 
23720 
23721 
23722 ###############################################################################
23723 #
23724 # Determine OpenJDK variants, options and version numbers.
23725 #
23726 ###############################################################################
23727 
23728 # We need build & target for this.
23729 
23730   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
23731   # We always build headless support.
23732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
23733 $as_echo_n "checking headful support... " >&6; }
23734   # Check whether --enable-headful was given.
23735 if test "${enable_headful+set}" = set; then :
23736   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
23737 else
23738   SUPPORT_HEADFUL=yes
23739 fi
23740 
23741 
23742   SUPPORT_HEADLESS=yes
23743   BUILD_HEADLESS="BUILD_HEADLESS:=true"
23744 
23745   if test "x$SUPPORT_HEADFUL" = xyes; then
23746     # We are building both headful and headless.
23747     headful_msg="include support for both headful and headless"
23748   fi
23749 
23750   if test "x$SUPPORT_HEADFUL" = xno; then
23751     # Thus we are building headless only.
23752     BUILD_HEADLESS="BUILD_HEADLESS:=true"
23753     headful_msg="headless only"
23754   fi
23755 
23756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23757 $as_echo "$headful_msg" >&6; }
23758 
23759 
23760 
23761 
23762 
23763   # Choose cacerts source file
23764 
23765 # Check whether --with-cacerts-file was given.
23766 if test "${with_cacerts_file+set}" = set; then :
23767   withval=$with_cacerts_file;
23768 fi
23769 
23770   if test "x$with_cacerts_file" != x; then
23771     CACERTS_FILE=$with_cacerts_file
23772   fi
23773 
23774 
23775   # Enable or disable unlimited crypto
23776   # Check whether --enable-unlimited-crypto was given.
23777 if test "${enable_unlimited_crypto+set}" = set; then :
23778   enableval=$enable_unlimited_crypto;
23779 else
23780   enable_unlimited_crypto=no
23781 fi
23782 
23783   if test "x$enable_unlimited_crypto" = "xyes"; then
23784     UNLIMITED_CRYPTO=true
23785   else
23786     UNLIMITED_CRYPTO=false
23787   fi
23788 
23789 
23790   # Should we build the serviceability agent (SA)?
23791   INCLUDE_SA=true
23792   if   [[ " $JVM_VARIANTS " =~ " zero " ]]   ||   [[ " $JVM_VARIANTS " =~ " zeroshark " ]]  ; then
23793     INCLUDE_SA=false
23794   fi
23795   if test "x$OPENJDK_TARGET_OS" = xaix ; then
23796     INCLUDE_SA=false
23797   fi
23798   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
23799     INCLUDE_SA=false
23800   fi
23801 
23802 
23803   # Compress jars
23804   COMPRESS_JARS=false
23805 
23806 
23807 
23808   # Setup default copyright year. Mostly overridden when building close to a new year.
23809 
23810 # Check whether --with-copyright-year was given.
23811 if test "${with_copyright_year+set}" = set; then :
23812   withval=$with_copyright_year;
23813 fi
23814 
23815   if test "x$with_copyright_year" = xyes; then
23816     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23817   elif test "x$with_copyright_year" != x; then
23818     COPYRIGHT_YEAR="$with_copyright_year"
23819   else
23820     COPYRIGHT_YEAR=`date +'%Y'`
23821   fi
23822 
23823 
23824 
23825   # Check whether --enable-keep-packaged-modules was given.
23826 if test "${enable_keep_packaged_modules+set}" = set; then :
23827   enableval=$enable_keep_packaged_modules;
23828 fi
23829 
23830 
23831   if test "x$enable_keep_packaged_modules" = "xyes"; then
23832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23833 $as_echo_n "checking if packaged modules are kept... " >&6; }
23834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23835 $as_echo "yes" >&6; }
23836     JLINK_KEEP_PACKAGED_MODULES=true
23837   elif test "x$enable_keep_packaged_modules" = "xno"; then
23838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5
23839 $as_echo_n "checking if packaged modules are kept... " >&6; }
23840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23841 $as_echo "no" >&6; }
23842     JLINK_KEEP_PACKAGED_MODULES=false
23843   elif test "x$enable_keep_packaged_modules" = "x"; then
23844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
23845 $as_echo "yes (default)" >&6; }
23846     JLINK_KEEP_PACKAGED_MODULES=true
23847   else
23848     as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5
23849   fi
23850 
23851 
23852 
23853 
23854   # Warn user that old version arguments are deprecated.
23855 
23856 
23857 # Check whether --with-milestone was given.
23858 if test "${with_milestone+set}" = set; then :
23859   withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5
23860 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;}
23861 fi
23862 
23863 
23864 
23865 
23866 # Check whether --with-update-version was given.
23867 if test "${with_update_version+set}" = set; then :
23868   withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5
23869 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;}
23870 fi
23871 
23872 
23873 
23874 
23875 # Check whether --with-user-release-suffix was given.
23876 if test "${with_user_release_suffix+set}" = set; then :
23877   withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5
23878 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;}
23879 fi
23880 
23881 
23882 
23883 
23884 # Check whether --with-build-number was given.
23885 if test "${with_build_number+set}" = set; then :
23886   withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5
23887 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;}
23888 fi
23889 
23890 
23891 
23892   # Source the version numbers file
23893   . $AUTOCONF_DIR/version-numbers
23894 
23895   # Some non-version number information is set in that file
23896 
23897 
23898 
23899 
23900 
23901 
23902 
23903 
23904 
23905   # Override version from arguments
23906 
23907   # If --with-version-string is set, process it first. It is possible to
23908   # override parts with more specific flags, since these are processed later.
23909 
23910 # Check whether --with-version-string was given.
23911 if test "${with_version_string+set}" = set; then :
23912   withval=$with_version_string;
23913 fi
23914 
23915   if test "x$with_version_string" = xyes; then
23916     as_fn_error $? "--with-version-string must have a value" "$LINENO" 5
23917   elif test "x$with_version_string" != x; then
23918     # Additional [] needed to keep m4 from mangling shell constructs.
23919     if  [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then
23920       VERSION_MAJOR=${BASH_REMATCH[1]}
23921       VERSION_MINOR=${BASH_REMATCH[3]}
23922       VERSION_SECURITY=${BASH_REMATCH[5]}
23923       VERSION_PATCH=${BASH_REMATCH[7]}
23924       VERSION_PRE=${BASH_REMATCH[9]}
23925       version_plus_separator=${BASH_REMATCH[11]}
23926       VERSION_BUILD=${BASH_REMATCH[12]}
23927       VERSION_OPT=${BASH_REMATCH[14]}
23928       # Unspecified numerical fields are interpreted as 0.
23929       if test "x$VERSION_MINOR" = x; then
23930         VERSION_MINOR=0
23931       fi
23932       if test "x$VERSION_SECURITY" = x; then
23933         VERSION_SECURITY=0
23934       fi
23935       if test "x$VERSION_PATCH" = x; then
23936         VERSION_PATCH=0
23937       fi
23938       if test "x$version_plus_separator" != x \
23939           && test "x$VERSION_BUILD$VERSION_OPT" = x; then
23940         as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5
23941       fi
23942       # Stop the version part process from setting default values.
23943       # We still allow them to explicitely override though.
23944       NO_DEFAULT_VERSION_PARTS=true
23945     else
23946       as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5
23947     fi
23948   fi
23949 
23950 
23951 # Check whether --with-version-pre was given.
23952 if test "${with_version_pre+set}" = set; then :
23953   withval=$with_version_pre; with_version_pre_present=true
23954 else
23955   with_version_pre_present=false
23956 fi
23957 
23958 
23959   if test "x$with_version_pre_present" = xtrue; then
23960     if test "x$with_version_pre" = xyes; then
23961       as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5
23962     elif test "x$with_version_pre" = xno; then
23963       # Interpret --without-* as empty string instead of the literal "no"
23964       VERSION_PRE=
23965     else
23966       # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4.
23967        VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'`
23968       if test "x$VERSION_PRE" != "x$with_version_pre"; then
23969         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5
23970 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;}
23971       fi
23972     fi
23973   else
23974     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
23975       # Default is to use "internal" as pre
23976       VERSION_PRE="internal"
23977     fi
23978   fi
23979 
23980 
23981 # Check whether --with-version-opt was given.
23982 if test "${with_version_opt+set}" = set; then :
23983   withval=$with_version_opt; with_version_opt_present=true
23984 else
23985   with_version_opt_present=false
23986 fi
23987 
23988 
23989   if test "x$with_version_opt_present" = xtrue; then
23990     if test "x$with_version_opt" = xyes; then
23991       as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5
23992     elif test "x$with_version_opt" = xno; then
23993       # Interpret --without-* as empty string instead of the literal "no"
23994       VERSION_OPT=
23995     else
23996       # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4.
23997        VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'`
23998       if test "x$VERSION_OPT" != "x$with_version_opt"; then
23999         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5
24000 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;}
24001       fi
24002     fi
24003   else
24004     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24005       # Default is to calculate a string like this <timestamp>.<username>.<base dir name>
24006       timestamp=`$DATE '+%Y-%m-%d-%H%M%S'`
24007       # Outer [ ] to quote m4.
24008        basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'`
24009       VERSION_OPT="$timestamp.$USERNAME.$basedirname"
24010     fi
24011   fi
24012 
24013 
24014 # Check whether --with-version-build was given.
24015 if test "${with_version_build+set}" = set; then :
24016   withval=$with_version_build; with_version_build_present=true
24017 else
24018   with_version_build_present=false
24019 fi
24020 
24021 
24022   if test "x$with_version_build_present" = xtrue; then
24023     if test "x$with_version_build" = xyes; then
24024       as_fn_error $? "--with-version-build must have a value" "$LINENO" 5
24025     elif test "x$with_version_build" = xno; then
24026       # Interpret --without-* as empty string instead of the literal "no"
24027       VERSION_BUILD=
24028     elif test "x$with_version_build" = x; then
24029       VERSION_BUILD=
24030     else
24031 
24032   # Additional [] needed to keep m4 from mangling shell constructs.
24033   if  ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24034     as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5
24035   fi
24036   # Extract the version number without leading zeros.
24037   cleaned_value=${BASH_REMATCH[1]}
24038   if test "x$cleaned_value" = x; then
24039     # Special case for zero
24040     cleaned_value=${BASH_REMATCH[2]}
24041   fi
24042 
24043   if test $cleaned_value -gt 255; then
24044     as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5
24045   fi
24046   if test "x$cleaned_value" != "x$with_version_build"; then
24047     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5
24048 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;}
24049   fi
24050   VERSION_BUILD=$cleaned_value
24051 
24052     fi
24053   else
24054     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24055       # Default is to not have a build number.
24056       VERSION_BUILD=""
24057       # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0.
24058       VERSION_BUILD=0
24059     fi
24060   fi
24061 
24062 
24063 # Check whether --with-version-major was given.
24064 if test "${with_version_major+set}" = set; then :
24065   withval=$with_version_major; with_version_major_present=true
24066 else
24067   with_version_major_present=false
24068 fi
24069 
24070 
24071   if test "x$with_version_major_present" = xtrue; then
24072     if test "x$with_version_major" = xyes; then
24073       as_fn_error $? "--with-version-major must have a value" "$LINENO" 5
24074     else
24075 
24076   # Additional [] needed to keep m4 from mangling shell constructs.
24077   if  ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24078     as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5
24079   fi
24080   # Extract the version number without leading zeros.
24081   cleaned_value=${BASH_REMATCH[1]}
24082   if test "x$cleaned_value" = x; then
24083     # Special case for zero
24084     cleaned_value=${BASH_REMATCH[2]}
24085   fi
24086 
24087   if test $cleaned_value -gt 255; then
24088     as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5
24089   fi
24090   if test "x$cleaned_value" != "x$with_version_major"; then
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5
24092 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;}
24093   fi
24094   VERSION_MAJOR=$cleaned_value
24095 
24096     fi
24097   else
24098     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24099       # Default is to get value from version-numbers
24100       VERSION_MAJOR="$DEFAULT_VERSION_MAJOR"
24101     fi
24102   fi
24103 
24104 
24105 # Check whether --with-version-minor was given.
24106 if test "${with_version_minor+set}" = set; then :
24107   withval=$with_version_minor; with_version_minor_present=true
24108 else
24109   with_version_minor_present=false
24110 fi
24111 
24112 
24113   if test "x$with_version_minor_present" = xtrue; then
24114     if test "x$with_version_minor" = xyes; then
24115       as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5
24116     elif test "x$with_version_minor" = xno; then
24117       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24118       VERSION_MINOR=0
24119     elif test "x$with_version_minor" = x; then
24120       VERSION_MINOR=0
24121     else
24122 
24123   # Additional [] needed to keep m4 from mangling shell constructs.
24124   if  ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24125     as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5
24126   fi
24127   # Extract the version number without leading zeros.
24128   cleaned_value=${BASH_REMATCH[1]}
24129   if test "x$cleaned_value" = x; then
24130     # Special case for zero
24131     cleaned_value=${BASH_REMATCH[2]}
24132   fi
24133 
24134   if test $cleaned_value -gt 255; then
24135     as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5
24136   fi
24137   if test "x$cleaned_value" != "x$with_version_minor"; then
24138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5
24139 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;}
24140   fi
24141   VERSION_MINOR=$cleaned_value
24142 
24143     fi
24144   else
24145     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24146       # Default is 0, if unspecified
24147       VERSION_MINOR=0
24148     fi
24149   fi
24150 
24151 
24152 # Check whether --with-version-security was given.
24153 if test "${with_version_security+set}" = set; then :
24154   withval=$with_version_security; with_version_security_present=true
24155 else
24156   with_version_security_present=false
24157 fi
24158 
24159 
24160   if test "x$with_version_security_present" = xtrue; then
24161     if test "x$with_version_security" = xyes; then
24162       as_fn_error $? "--with-version-security must have a value" "$LINENO" 5
24163     elif test "x$with_version_security" = xno; then
24164       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24165       VERSION_SECURITY=0
24166     elif test "x$with_version_security" = x; then
24167       VERSION_SECURITY=0
24168     else
24169 
24170   # Additional [] needed to keep m4 from mangling shell constructs.
24171   if  ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24172     as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5
24173   fi
24174   # Extract the version number without leading zeros.
24175   cleaned_value=${BASH_REMATCH[1]}
24176   if test "x$cleaned_value" = x; then
24177     # Special case for zero
24178     cleaned_value=${BASH_REMATCH[2]}
24179   fi
24180 
24181   if test $cleaned_value -gt 255; then
24182     as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5
24183   fi
24184   if test "x$cleaned_value" != "x$with_version_security"; then
24185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5
24186 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;}
24187   fi
24188   VERSION_SECURITY=$cleaned_value
24189 
24190     fi
24191   else
24192     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24193       # Default is 0, if unspecified
24194       VERSION_SECURITY=0
24195     fi
24196   fi
24197 
24198 
24199 # Check whether --with-version-patch was given.
24200 if test "${with_version_patch+set}" = set; then :
24201   withval=$with_version_patch; with_version_patch_present=true
24202 else
24203   with_version_patch_present=false
24204 fi
24205 
24206 
24207   if test "x$with_version_patch_present" = xtrue; then
24208     if test "x$with_version_patch" = xyes; then
24209       as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5
24210     elif test "x$with_version_patch" = xno; then
24211       # Interpret --without-* as empty string (i.e. 0) instead of the literal "no"
24212       VERSION_PATCH=0
24213     elif test "x$with_version_patch" = x; then
24214       VERSION_PATCH=0
24215     else
24216 
24217   # Additional [] needed to keep m4 from mangling shell constructs.
24218   if  ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]]  ; then
24219     as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5
24220   fi
24221   # Extract the version number without leading zeros.
24222   cleaned_value=${BASH_REMATCH[1]}
24223   if test "x$cleaned_value" = x; then
24224     # Special case for zero
24225     cleaned_value=${BASH_REMATCH[2]}
24226   fi
24227 
24228   if test $cleaned_value -gt 255; then
24229     as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5
24230   fi
24231   if test "x$cleaned_value" != "x$with_version_patch"; then
24232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5
24233 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;}
24234   fi
24235   VERSION_PATCH=$cleaned_value
24236 
24237     fi
24238   else
24239     if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then
24240       # Default is 0, if unspecified
24241       VERSION_PATCH=0
24242     fi
24243   fi
24244 
24245   # Calculate derived version properties
24246 
24247   # Set VERSION_IS_GA based on if VERSION_PRE has a value
24248   if test "x$VERSION_PRE" = x; then
24249     VERSION_IS_GA=true
24250   else
24251     VERSION_IS_GA=false
24252   fi
24253 
24254   # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
24255   VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH
24256 
24257   stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS
24258   # Strip trailing zeroes from stripped_version_number
24259   for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done
24260   VERSION_NUMBER=$stripped_version_number
24261 
24262   # The complete version string, with additional build information
24263   if test "x$VERSION_BUILD$VERSION_OPT" = x; then
24264     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24265   else
24266     # If either build or opt is set, we need a + separator
24267     VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT}
24268   fi
24269 
24270   # The short version string, just VERSION_NUMBER and PRE, if present.
24271   VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}
24272 
24273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5
24274 $as_echo_n "checking for version string... " >&6; }
24275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5
24276 $as_echo "$VERSION_STRING" >&6; }
24277 
24278 
24279 
24280 
24281 
24282 
24283 
24284 
24285 
24286 
24287 
24288 
24289 
24290 
24291 
24292 ###############################################################################
24293 #
24294 # Setup BootJDK, used to bootstrap the build.
24295 #
24296 ###############################################################################
24297 
24298 
24299   BOOT_JDK_FOUND=no
24300 
24301 # Check whether --with-boot-jdk was given.
24302 if test "${with_boot_jdk+set}" = set; then :
24303   withval=$with_boot_jdk;
24304 fi
24305 
24306 
24307   # We look for the Boot JDK through various means, going from more certain to
24308   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
24309   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
24310   # must check if this is indeed valid; otherwise we'll continue looking.
24311 
24312   # Test: Is bootjdk explicitely set by command line arguments?
24313 
24314   if test "x$BOOT_JDK_FOUND" = xno; then
24315     # Now execute the test
24316 
24317   if test "x$with_boot_jdk" != x; then
24318     BOOT_JDK=$with_boot_jdk
24319     BOOT_JDK_FOUND=maybe
24320     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
24321 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
24322   fi
24323 
24324 
24325     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24326     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24327       # Do we have a bin/java?
24328       if test ! -x "$BOOT_JDK/bin/java"; then
24329         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24330 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24331         BOOT_JDK_FOUND=no
24332       else
24333         # Do we have a bin/javac?
24334         if test ! -x "$BOOT_JDK/bin/javac"; then
24335           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24337           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24338 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24339           BOOT_JDK_FOUND=no
24340         else
24341           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24342           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24343 
24344           # Extra M4 quote needed to protect [] in grep expression.
24345           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24346           if test "x$FOUND_CORRECT_VERSION" = x; then
24347             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24349             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24350 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24351             BOOT_JDK_FOUND=no
24352           else
24353             # We're done! :-)
24354             BOOT_JDK_FOUND=yes
24355 
24356   # Only process if variable expands to non-empty
24357 
24358   if test "x$BOOT_JDK" != x; then
24359     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24360 
24361   # Input might be given as Windows format, start by converting to
24362   # unix format.
24363   path="$BOOT_JDK"
24364   new_path=`$CYGPATH -u "$path"`
24365 
24366   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24367   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24368   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24369   # "foo.exe" is OK but "foo" is an error.
24370   #
24371   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24372   # It is also a way to make sure we got the proper file name for the real test later on.
24373   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24374   if test "x$test_shortpath" = x; then
24375     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24376 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24377     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24378   fi
24379 
24380   # Call helper function which possibly converts this using DOS-style short mode.
24381   # If so, the updated path is stored in $new_path.
24382 
24383   input_path="$new_path"
24384   # Check if we need to convert this using DOS-style short mode. If the path
24385   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24386   # take no chances and rewrite it.
24387   # Note: m4 eats our [], so we need to use [ and ] instead.
24388   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24389   if test "x$has_forbidden_chars" != x; then
24390     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24391     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24392     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24393     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24394       # Going to short mode and back again did indeed matter. Since short mode is
24395       # case insensitive, let's make it lowercase to improve readability.
24396       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24397       # Now convert it back to Unix-style (cygpath)
24398       input_path=`$CYGPATH -u "$shortmode_path"`
24399       new_path="$input_path"
24400     fi
24401   fi
24402 
24403   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24404   if test "x$test_cygdrive_prefix" = x; then
24405     # As a simple fix, exclude /usr/bin since it's not a real path.
24406     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24407       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24408       # a path prefixed by /cygdrive for fixpath to work.
24409       new_path="$CYGWIN_ROOT_PATH$input_path"
24410     fi
24411   fi
24412 
24413 
24414   if test "x$path" != "x$new_path"; then
24415     BOOT_JDK="$new_path"
24416     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24418   fi
24419 
24420     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24421 
24422   path="$BOOT_JDK"
24423   has_colon=`$ECHO $path | $GREP ^.:`
24424   new_path="$path"
24425   if test "x$has_colon" = x; then
24426     # Not in mixed or Windows style, start by that.
24427     new_path=`cmd //c echo $path`
24428   fi
24429 
24430 
24431   input_path="$new_path"
24432   # Check if we need to convert this using DOS-style short mode. If the path
24433   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24434   # take no chances and rewrite it.
24435   # Note: m4 eats our [], so we need to use [ and ] instead.
24436   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24437   if test "x$has_forbidden_chars" != x; then
24438     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24439     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24440   fi
24441 
24442 
24443   windows_path="$new_path"
24444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24445     unix_path=`$CYGPATH -u "$windows_path"`
24446     new_path="$unix_path"
24447   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24448     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24449     new_path="$unix_path"
24450   fi
24451 
24452   if test "x$path" != "x$new_path"; then
24453     BOOT_JDK="$new_path"
24454     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24456   fi
24457 
24458   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24459   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24460 
24461     else
24462       # We're on a unix platform. Hooray! :)
24463       path="$BOOT_JDK"
24464       has_space=`$ECHO "$path" | $GREP " "`
24465       if test "x$has_space" != x; then
24466         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24467 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24468         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24469       fi
24470 
24471       # Use eval to expand a potential ~
24472       eval path="$path"
24473       if test ! -f "$path" && test ! -d "$path"; then
24474         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24475       fi
24476 
24477       if test -d "$path"; then
24478         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24479       else
24480         dir="`$DIRNAME "$path"`"
24481         base="`$BASENAME "$path"`"
24482         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24483       fi
24484     fi
24485   fi
24486 
24487             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24488 $as_echo_n "checking for Boot JDK... " >&6; }
24489             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24490 $as_echo "$BOOT_JDK" >&6; }
24491             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24492 $as_echo_n "checking Boot JDK version... " >&6; }
24493             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24494             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24495 $as_echo "$BOOT_JDK_VERSION" >&6; }
24496           fi # end check jdk version
24497         fi # end check javac
24498       fi # end check java
24499     fi # end check boot jdk found
24500   fi
24501 
24502   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
24503     # Having specified an argument which is incorrect will produce an instant failure;
24504     # we should not go on looking
24505     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
24506   fi
24507 
24508   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
24509 
24510   if test "x$BOOT_JDK_FOUND" = xno; then
24511     # Now execute the test
24512 
24513   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
24514     # First check at user selected default
24515 
24516   if test "x$BOOT_JDK_FOUND" = xno; then
24517     # Now execute the test
24518 
24519   if test -x /usr/libexec/java_home; then
24520     BOOT_JDK=`/usr/libexec/java_home `
24521     BOOT_JDK_FOUND=maybe
24522     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
24523 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
24524   fi
24525 
24526 
24527     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24528     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24529       # Do we have a bin/java?
24530       if test ! -x "$BOOT_JDK/bin/java"; then
24531         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24532 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24533         BOOT_JDK_FOUND=no
24534       else
24535         # Do we have a bin/javac?
24536         if test ! -x "$BOOT_JDK/bin/javac"; then
24537           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24538 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24539           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24540 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24541           BOOT_JDK_FOUND=no
24542         else
24543           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24544           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24545 
24546           # Extra M4 quote needed to protect [] in grep expression.
24547           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24548           if test "x$FOUND_CORRECT_VERSION" = x; then
24549             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24551             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24552 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24553             BOOT_JDK_FOUND=no
24554           else
24555             # We're done! :-)
24556             BOOT_JDK_FOUND=yes
24557 
24558   # Only process if variable expands to non-empty
24559 
24560   if test "x$BOOT_JDK" != x; then
24561     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24562 
24563   # Input might be given as Windows format, start by converting to
24564   # unix format.
24565   path="$BOOT_JDK"
24566   new_path=`$CYGPATH -u "$path"`
24567 
24568   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24569   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24570   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24571   # "foo.exe" is OK but "foo" is an error.
24572   #
24573   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24574   # It is also a way to make sure we got the proper file name for the real test later on.
24575   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24576   if test "x$test_shortpath" = x; then
24577     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24578 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24579     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24580   fi
24581 
24582   # Call helper function which possibly converts this using DOS-style short mode.
24583   # If so, the updated path is stored in $new_path.
24584 
24585   input_path="$new_path"
24586   # Check if we need to convert this using DOS-style short mode. If the path
24587   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24588   # take no chances and rewrite it.
24589   # Note: m4 eats our [], so we need to use [ and ] instead.
24590   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24591   if test "x$has_forbidden_chars" != x; then
24592     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24593     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24594     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24595     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24596       # Going to short mode and back again did indeed matter. Since short mode is
24597       # case insensitive, let's make it lowercase to improve readability.
24598       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24599       # Now convert it back to Unix-style (cygpath)
24600       input_path=`$CYGPATH -u "$shortmode_path"`
24601       new_path="$input_path"
24602     fi
24603   fi
24604 
24605   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24606   if test "x$test_cygdrive_prefix" = x; then
24607     # As a simple fix, exclude /usr/bin since it's not a real path.
24608     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24609       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24610       # a path prefixed by /cygdrive for fixpath to work.
24611       new_path="$CYGWIN_ROOT_PATH$input_path"
24612     fi
24613   fi
24614 
24615 
24616   if test "x$path" != "x$new_path"; then
24617     BOOT_JDK="$new_path"
24618     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24620   fi
24621 
24622     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24623 
24624   path="$BOOT_JDK"
24625   has_colon=`$ECHO $path | $GREP ^.:`
24626   new_path="$path"
24627   if test "x$has_colon" = x; then
24628     # Not in mixed or Windows style, start by that.
24629     new_path=`cmd //c echo $path`
24630   fi
24631 
24632 
24633   input_path="$new_path"
24634   # Check if we need to convert this using DOS-style short mode. If the path
24635   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24636   # take no chances and rewrite it.
24637   # Note: m4 eats our [], so we need to use [ and ] instead.
24638   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24639   if test "x$has_forbidden_chars" != x; then
24640     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24641     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24642   fi
24643 
24644 
24645   windows_path="$new_path"
24646   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24647     unix_path=`$CYGPATH -u "$windows_path"`
24648     new_path="$unix_path"
24649   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24650     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24651     new_path="$unix_path"
24652   fi
24653 
24654   if test "x$path" != "x$new_path"; then
24655     BOOT_JDK="$new_path"
24656     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24657 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24658   fi
24659 
24660   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24661   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24662 
24663     else
24664       # We're on a unix platform. Hooray! :)
24665       path="$BOOT_JDK"
24666       has_space=`$ECHO "$path" | $GREP " "`
24667       if test "x$has_space" != x; then
24668         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24670         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24671       fi
24672 
24673       # Use eval to expand a potential ~
24674       eval path="$path"
24675       if test ! -f "$path" && test ! -d "$path"; then
24676         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24677       fi
24678 
24679       if test -d "$path"; then
24680         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24681       else
24682         dir="`$DIRNAME "$path"`"
24683         base="`$BASENAME "$path"`"
24684         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24685       fi
24686     fi
24687   fi
24688 
24689             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24690 $as_echo_n "checking for Boot JDK... " >&6; }
24691             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24692 $as_echo "$BOOT_JDK" >&6; }
24693             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24694 $as_echo_n "checking Boot JDK version... " >&6; }
24695             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24696             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24697 $as_echo "$BOOT_JDK_VERSION" >&6; }
24698           fi # end check jdk version
24699         fi # end check javac
24700       fi # end check java
24701     fi # end check boot jdk found
24702   fi
24703 
24704     # If that did not work out (e.g. too old), try explicit versions instead
24705 
24706   if test "x$BOOT_JDK_FOUND" = xno; then
24707     # Now execute the test
24708 
24709   if test -x /usr/libexec/java_home; then
24710     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
24711     BOOT_JDK_FOUND=maybe
24712     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
24713 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
24714   fi
24715 
24716 
24717     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24718     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24719       # Do we have a bin/java?
24720       if test ! -x "$BOOT_JDK/bin/java"; then
24721         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24723         BOOT_JDK_FOUND=no
24724       else
24725         # Do we have a bin/javac?
24726         if test ! -x "$BOOT_JDK/bin/javac"; then
24727           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24729           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24730 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24731           BOOT_JDK_FOUND=no
24732         else
24733           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24734           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24735 
24736           # Extra M4 quote needed to protect [] in grep expression.
24737           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24738           if test "x$FOUND_CORRECT_VERSION" = x; then
24739             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24741             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24742 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24743             BOOT_JDK_FOUND=no
24744           else
24745             # We're done! :-)
24746             BOOT_JDK_FOUND=yes
24747 
24748   # Only process if variable expands to non-empty
24749 
24750   if test "x$BOOT_JDK" != x; then
24751     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24752 
24753   # Input might be given as Windows format, start by converting to
24754   # unix format.
24755   path="$BOOT_JDK"
24756   new_path=`$CYGPATH -u "$path"`
24757 
24758   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24759   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24760   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24761   # "foo.exe" is OK but "foo" is an error.
24762   #
24763   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24764   # It is also a way to make sure we got the proper file name for the real test later on.
24765   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24766   if test "x$test_shortpath" = x; then
24767     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24769     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24770   fi
24771 
24772   # Call helper function which possibly converts this using DOS-style short mode.
24773   # If so, the updated path is stored in $new_path.
24774 
24775   input_path="$new_path"
24776   # Check if we need to convert this using DOS-style short mode. If the path
24777   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24778   # take no chances and rewrite it.
24779   # Note: m4 eats our [], so we need to use [ and ] instead.
24780   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24781   if test "x$has_forbidden_chars" != x; then
24782     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24783     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24784     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24785     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24786       # Going to short mode and back again did indeed matter. Since short mode is
24787       # case insensitive, let's make it lowercase to improve readability.
24788       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24789       # Now convert it back to Unix-style (cygpath)
24790       input_path=`$CYGPATH -u "$shortmode_path"`
24791       new_path="$input_path"
24792     fi
24793   fi
24794 
24795   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24796   if test "x$test_cygdrive_prefix" = x; then
24797     # As a simple fix, exclude /usr/bin since it's not a real path.
24798     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24799       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24800       # a path prefixed by /cygdrive for fixpath to work.
24801       new_path="$CYGWIN_ROOT_PATH$input_path"
24802     fi
24803   fi
24804 
24805 
24806   if test "x$path" != "x$new_path"; then
24807     BOOT_JDK="$new_path"
24808     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24809 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24810   fi
24811 
24812     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24813 
24814   path="$BOOT_JDK"
24815   has_colon=`$ECHO $path | $GREP ^.:`
24816   new_path="$path"
24817   if test "x$has_colon" = x; then
24818     # Not in mixed or Windows style, start by that.
24819     new_path=`cmd //c echo $path`
24820   fi
24821 
24822 
24823   input_path="$new_path"
24824   # Check if we need to convert this using DOS-style short mode. If the path
24825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24826   # take no chances and rewrite it.
24827   # Note: m4 eats our [], so we need to use [ and ] instead.
24828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24829   if test "x$has_forbidden_chars" != x; then
24830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24831     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24832   fi
24833 
24834 
24835   windows_path="$new_path"
24836   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24837     unix_path=`$CYGPATH -u "$windows_path"`
24838     new_path="$unix_path"
24839   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24840     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24841     new_path="$unix_path"
24842   fi
24843 
24844   if test "x$path" != "x$new_path"; then
24845     BOOT_JDK="$new_path"
24846     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24847 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24848   fi
24849 
24850   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24851   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24852 
24853     else
24854       # We're on a unix platform. Hooray! :)
24855       path="$BOOT_JDK"
24856       has_space=`$ECHO "$path" | $GREP " "`
24857       if test "x$has_space" != x; then
24858         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24859 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24860         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24861       fi
24862 
24863       # Use eval to expand a potential ~
24864       eval path="$path"
24865       if test ! -f "$path" && test ! -d "$path"; then
24866         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24867       fi
24868 
24869       if test -d "$path"; then
24870         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24871       else
24872         dir="`$DIRNAME "$path"`"
24873         base="`$BASENAME "$path"`"
24874         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
24875       fi
24876     fi
24877   fi
24878 
24879             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24880 $as_echo_n "checking for Boot JDK... " >&6; }
24881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24882 $as_echo "$BOOT_JDK" >&6; }
24883             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24884 $as_echo_n "checking Boot JDK version... " >&6; }
24885             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24886             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24887 $as_echo "$BOOT_JDK_VERSION" >&6; }
24888           fi # end check jdk version
24889         fi # end check javac
24890       fi # end check java
24891     fi # end check boot jdk found
24892   fi
24893 
24894 
24895   if test "x$BOOT_JDK_FOUND" = xno; then
24896     # Now execute the test
24897 
24898   if test -x /usr/libexec/java_home; then
24899     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
24900     BOOT_JDK_FOUND=maybe
24901     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
24902 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
24903   fi
24904 
24905 
24906     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24907     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24908       # Do we have a bin/java?
24909       if test ! -x "$BOOT_JDK/bin/java"; then
24910         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24912         BOOT_JDK_FOUND=no
24913       else
24914         # Do we have a bin/javac?
24915         if test ! -x "$BOOT_JDK/bin/javac"; then
24916           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24918           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24919 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24920           BOOT_JDK_FOUND=no
24921         else
24922           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24923           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24924 
24925           # Extra M4 quote needed to protect [] in grep expression.
24926           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
24927           if test "x$FOUND_CORRECT_VERSION" = x; then
24928             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24930             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24931 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24932             BOOT_JDK_FOUND=no
24933           else
24934             # We're done! :-)
24935             BOOT_JDK_FOUND=yes
24936 
24937   # Only process if variable expands to non-empty
24938 
24939   if test "x$BOOT_JDK" != x; then
24940     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24941 
24942   # Input might be given as Windows format, start by converting to
24943   # unix format.
24944   path="$BOOT_JDK"
24945   new_path=`$CYGPATH -u "$path"`
24946 
24947   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24948   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24949   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24950   # "foo.exe" is OK but "foo" is an error.
24951   #
24952   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24953   # It is also a way to make sure we got the proper file name for the real test later on.
24954   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24955   if test "x$test_shortpath" = x; then
24956     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24958     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24959   fi
24960 
24961   # Call helper function which possibly converts this using DOS-style short mode.
24962   # If so, the updated path is stored in $new_path.
24963 
24964   input_path="$new_path"
24965   # Check if we need to convert this using DOS-style short mode. If the path
24966   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24967   # take no chances and rewrite it.
24968   # Note: m4 eats our [], so we need to use [ and ] instead.
24969   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24970   if test "x$has_forbidden_chars" != x; then
24971     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24972     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24973     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24974     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24975       # Going to short mode and back again did indeed matter. Since short mode is
24976       # case insensitive, let's make it lowercase to improve readability.
24977       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24978       # Now convert it back to Unix-style (cygpath)
24979       input_path=`$CYGPATH -u "$shortmode_path"`
24980       new_path="$input_path"
24981     fi
24982   fi
24983 
24984   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24985   if test "x$test_cygdrive_prefix" = x; then
24986     # As a simple fix, exclude /usr/bin since it's not a real path.
24987     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24988       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24989       # a path prefixed by /cygdrive for fixpath to work.
24990       new_path="$CYGWIN_ROOT_PATH$input_path"
24991     fi
24992   fi
24993 
24994 
24995   if test "x$path" != "x$new_path"; then
24996     BOOT_JDK="$new_path"
24997     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24998 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24999   fi
25000 
25001     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25002 
25003   path="$BOOT_JDK"
25004   has_colon=`$ECHO $path | $GREP ^.:`
25005   new_path="$path"
25006   if test "x$has_colon" = x; then
25007     # Not in mixed or Windows style, start by that.
25008     new_path=`cmd //c echo $path`
25009   fi
25010 
25011 
25012   input_path="$new_path"
25013   # Check if we need to convert this using DOS-style short mode. If the path
25014   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25015   # take no chances and rewrite it.
25016   # Note: m4 eats our [], so we need to use [ and ] instead.
25017   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25018   if test "x$has_forbidden_chars" != x; then
25019     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25020     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25021   fi
25022 
25023 
25024   windows_path="$new_path"
25025   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25026     unix_path=`$CYGPATH -u "$windows_path"`
25027     new_path="$unix_path"
25028   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25029     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25030     new_path="$unix_path"
25031   fi
25032 
25033   if test "x$path" != "x$new_path"; then
25034     BOOT_JDK="$new_path"
25035     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25037   fi
25038 
25039   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25040   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25041 
25042     else
25043       # We're on a unix platform. Hooray! :)
25044       path="$BOOT_JDK"
25045       has_space=`$ECHO "$path" | $GREP " "`
25046       if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5
25050       fi
25051 
25052       # Use eval to expand a potential ~
25053       eval path="$path"
25054       if test ! -f "$path" && test ! -d "$path"; then
25055         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25056       fi
25057 
25058       if test -d "$path"; then
25059         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25060       else
25061         dir="`$DIRNAME "$path"`"
25062         base="`$BASENAME "$path"`"
25063         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25064       fi
25065     fi
25066   fi
25067 
25068             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25069 $as_echo_n "checking for Boot JDK... " >&6; }
25070             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25071 $as_echo "$BOOT_JDK" >&6; }
25072             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25073 $as_echo_n "checking Boot JDK version... " >&6; }
25074             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
25075             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
25076 $as_echo "$BOOT_JDK_VERSION" >&6; }
25077           fi # end check jdk version
25078         fi # end check javac
25079       fi # end check java
25080     fi # end check boot jdk found
25081   fi
25082 
25083 
25084   if test "x$BOOT_JDK_FOUND" = xno; then
25085     # Now execute the test
25086 
25087   if test -x /usr/libexec/java_home; then
25088     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
25089     BOOT_JDK_FOUND=maybe
25090     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
25091 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
25092   fi
25093 
25094 
25095     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
25096     if test "x$BOOT_JDK_FOUND" = xmaybe; then
25097       # Do we have a bin/java?
25098       if test ! -x "$BOOT_JDK/bin/java"; then
25099         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
25100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
25101         BOOT_JDK_FOUND=no
25102       else
25103         # Do we have a bin/javac?
25104         if test ! -x "$BOOT_JDK/bin/javac"; then
25105           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25107           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25108 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25109           BOOT_JDK_FOUND=no
25110         else
25111           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25112           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25113 
25114           # Extra M4 quote needed to protect [] in grep expression.
25115           FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'`
25116           if test "x$FOUND_CORRECT_VERSION" = x; then
25117             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25119             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25121             BOOT_JDK_FOUND=no
25122           else
25123             # We're done! :-)
25124             BOOT_JDK_FOUND=yes
25125 
25126   # Only process if variable expands to non-empty
25127 
25128   if test "x$BOOT_JDK" != x; then
25129     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25130 
25131   # Input might be given as Windows format, start by converting to
25132   # unix format.
25133   path="$BOOT_JDK"
25134   new_path=`$CYGPATH -u "$path"`
25135 
25136   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25137   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25138   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25139   # "foo.exe" is OK but "foo" is an error.
25140   #
25141   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25142   # It is also a way to make sure we got the proper file name for the real test later on.
25143   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25144   if test "x$test_shortpath" = x; then
25145     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25147     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25148   fi
25149 
25150   # Call helper function which possibly converts this using DOS-style short mode.
25151   # If so, the updated path is stored in $new_path.
25152 
25153   input_path="$new_path"
25154   # Check if we need to convert this using DOS-style short mode. If the path
25155   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25156   # take no chances and rewrite it.
25157   # Note: m4 eats our [], so we need to use [ and ] instead.
25158   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25159   if test "x$has_forbidden_chars" != x; then
25160     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25161     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25162     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25163     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25164       # Going to short mode and back again did indeed matter. Since short mode is
25165       # case insensitive, let's make it lowercase to improve readability.
25166       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25167       # Now convert it back to Unix-style (cygpath)
25168       input_path=`$CYGPATH -u "$shortmode_path"`
25169       new_path="$input_path"
25170     fi
25171   fi
25172 
25173   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25174   if test "x$test_cygdrive_prefix" = x; then
25175     # As a simple fix, exclude /usr/bin since it's not a real path.
25176     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25177       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25178       # a path prefixed by /cygdrive for fixpath to work.
25179       new_path="$CYGWIN_ROOT_PATH$input_path"
25180     fi
25181   fi
25182 
25183 
25184   if test "x$path" != "x$new_path"; then
25185     BOOT_JDK="$new_path"
25186     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25188   fi
25189 
25190     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25191 
25192   path="$BOOT_JDK"
25193   has_colon=`$ECHO $path | $GREP ^.:`
25194   new_path="$path"
25195   if test "x$has_colon" = x; then
25196     # Not in mixed or Windows style, start by that.
25197     new_path=`cmd //c echo $path`
25198   fi
25199 
25200 
25201   input_path="$new_path"
25202   # Check if we need to convert this using DOS-style short mode. If the path
25203   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25204   # take no chances and rewrite it.
25205   # Note: m4 eats our [], so we need to use [ and ] instead.
25206   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25207   if test "x$has_forbidden_chars" != x; then
25208     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25209     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25210   fi
25211 
25212 
25213   windows_path="$new_path"
25214   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25215     unix_path=`$CYGPATH -u "$windows_path"`
25216     new_path="$unix_path"
25217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25218     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25219     new_path="$unix_path"
25220   fi
25221 
25222   if test "x$path" != "x$new_path"; then
25223     BOOT_JDK="$new_path"
25224     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25226   fi
25227 
25228   # Save the first 10 bytes of this path to the storage, so fixpath can work.
25229   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
25230 
25231     else
25232       # We're on a unix platform. Hooray! :)
25233       path="$BOOT_JDK"
25234       has_space=`$ECHO "$path" | $GREP " "`
25235       if test "x$has_space" != x; then
25236         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25238         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
25239       fi
25240 
25241       # Use eval to expand a potential ~
25242       eval path="$path"
25243       if test ! -f "$path" && test ! -d "$path"; then
25244         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
25245       fi
25246 
25247       if test -d "$path"; then
25248         BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
25249       else
25250         dir="`$DIRNAME "$path"`"
25251         base="`$BASENAME "$path"`"
25252         BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base"
25253       fi
25254     fi
25255   fi
25256 
25257             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
25258 $as_echo_n "checking for Boot JDK... " >&6; }
25259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
25260 $as_echo "$BOOT_JDK" >&6; }
25261             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
25262 $as_echo_n "checking Boot JDK version... " >&6; }
25263